This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
/
operationalizationCluster.go
255 lines (231 loc) · 10.7 KB
/
operationalizationCluster.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package v20170801preview
import (
"context"
"reflect"
"github.com/pkg/errors"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
// Instance of an Azure ML Operationalization Cluster resource.
type OperationalizationCluster struct {
pulumi.CustomResourceState
// AppInsights configuration.
AppInsights AppInsightsPropertiesResponsePtrOutput `pulumi:"appInsights"`
// The cluster type.
ClusterType pulumi.StringOutput `pulumi:"clusterType"`
// Container Registry properties.
ContainerRegistry ContainerRegistryPropertiesResponsePtrOutput `pulumi:"containerRegistry"`
// Parameters for the Azure Container Service cluster.
ContainerService AcsClusterPropertiesResponsePtrOutput `pulumi:"containerService"`
// The date and time when the cluster was created.
CreatedOn pulumi.StringOutput `pulumi:"createdOn"`
// The description of the cluster.
Description pulumi.StringPtrOutput `pulumi:"description"`
// Contains global configuration for the web services in the cluster.
GlobalServiceConfiguration GlobalServiceConfigurationResponsePtrOutput `pulumi:"globalServiceConfiguration"`
// Specifies the location of the resource.
Location pulumi.StringOutput `pulumi:"location"`
// The date and time when the cluster was last modified.
ModifiedOn pulumi.StringOutput `pulumi:"modifiedOn"`
// Specifies the name of the resource.
Name pulumi.StringOutput `pulumi:"name"`
// List of provisioning errors reported by the resource provider.
ProvisioningErrors ErrorResponseWrapperResponseArrayOutput `pulumi:"provisioningErrors"`
// The provision state of the cluster. Valid values are Unknown, Updating, Provisioning, Succeeded, and Failed.
ProvisioningState pulumi.StringOutput `pulumi:"provisioningState"`
// Storage Account properties.
StorageAccount StorageAccountPropertiesResponsePtrOutput `pulumi:"storageAccount"`
// Contains resource tags defined as key/value pairs.
Tags pulumi.StringMapOutput `pulumi:"tags"`
// Specifies the type of the resource.
Type pulumi.StringOutput `pulumi:"type"`
}
// NewOperationalizationCluster registers a new resource with the given unique name, arguments, and options.
func NewOperationalizationCluster(ctx *pulumi.Context,
name string, args *OperationalizationClusterArgs, opts ...pulumi.ResourceOption) (*OperationalizationCluster, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.ClusterName == nil {
return nil, errors.New("invalid value for required argument 'ClusterName'")
}
if args.ClusterType == nil {
return nil, errors.New("invalid value for required argument 'ClusterType'")
}
if args.ResourceGroupName == nil {
return nil, errors.New("invalid value for required argument 'ResourceGroupName'")
}
aliases := pulumi.Aliases([]pulumi.Alias{
{
Type: pulumi.String("azure-nextgen:machinelearningcompute/v20170601preview:OperationalizationCluster"),
},
})
opts = append(opts, aliases)
var resource OperationalizationCluster
err := ctx.RegisterResource("azure-nextgen:machinelearningcompute/v20170801preview:OperationalizationCluster", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetOperationalizationCluster gets an existing OperationalizationCluster resource's state with the given name, ID, and optional
// state properties that are used to uniquely qualify the lookup (nil if not required).
func GetOperationalizationCluster(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *OperationalizationClusterState, opts ...pulumi.ResourceOption) (*OperationalizationCluster, error) {
var resource OperationalizationCluster
err := ctx.ReadResource("azure-nextgen:machinelearningcompute/v20170801preview:OperationalizationCluster", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering OperationalizationCluster resources.
type operationalizationClusterState struct {
// AppInsights configuration.
AppInsights *AppInsightsPropertiesResponse `pulumi:"appInsights"`
// The cluster type.
ClusterType *string `pulumi:"clusterType"`
// Container Registry properties.
ContainerRegistry *ContainerRegistryPropertiesResponse `pulumi:"containerRegistry"`
// Parameters for the Azure Container Service cluster.
ContainerService *AcsClusterPropertiesResponse `pulumi:"containerService"`
// The date and time when the cluster was created.
CreatedOn *string `pulumi:"createdOn"`
// The description of the cluster.
Description *string `pulumi:"description"`
// Contains global configuration for the web services in the cluster.
GlobalServiceConfiguration *GlobalServiceConfigurationResponse `pulumi:"globalServiceConfiguration"`
// Specifies the location of the resource.
Location *string `pulumi:"location"`
// The date and time when the cluster was last modified.
ModifiedOn *string `pulumi:"modifiedOn"`
// Specifies the name of the resource.
Name *string `pulumi:"name"`
// List of provisioning errors reported by the resource provider.
ProvisioningErrors []ErrorResponseWrapperResponse `pulumi:"provisioningErrors"`
// The provision state of the cluster. Valid values are Unknown, Updating, Provisioning, Succeeded, and Failed.
ProvisioningState *string `pulumi:"provisioningState"`
// Storage Account properties.
StorageAccount *StorageAccountPropertiesResponse `pulumi:"storageAccount"`
// Contains resource tags defined as key/value pairs.
Tags map[string]string `pulumi:"tags"`
// Specifies the type of the resource.
Type *string `pulumi:"type"`
}
type OperationalizationClusterState struct {
// AppInsights configuration.
AppInsights AppInsightsPropertiesResponsePtrInput
// The cluster type.
ClusterType pulumi.StringPtrInput
// Container Registry properties.
ContainerRegistry ContainerRegistryPropertiesResponsePtrInput
// Parameters for the Azure Container Service cluster.
ContainerService AcsClusterPropertiesResponsePtrInput
// The date and time when the cluster was created.
CreatedOn pulumi.StringPtrInput
// The description of the cluster.
Description pulumi.StringPtrInput
// Contains global configuration for the web services in the cluster.
GlobalServiceConfiguration GlobalServiceConfigurationResponsePtrInput
// Specifies the location of the resource.
Location pulumi.StringPtrInput
// The date and time when the cluster was last modified.
ModifiedOn pulumi.StringPtrInput
// Specifies the name of the resource.
Name pulumi.StringPtrInput
// List of provisioning errors reported by the resource provider.
ProvisioningErrors ErrorResponseWrapperResponseArrayInput
// The provision state of the cluster. Valid values are Unknown, Updating, Provisioning, Succeeded, and Failed.
ProvisioningState pulumi.StringPtrInput
// Storage Account properties.
StorageAccount StorageAccountPropertiesResponsePtrInput
// Contains resource tags defined as key/value pairs.
Tags pulumi.StringMapInput
// Specifies the type of the resource.
Type pulumi.StringPtrInput
}
func (OperationalizationClusterState) ElementType() reflect.Type {
return reflect.TypeOf((*operationalizationClusterState)(nil)).Elem()
}
type operationalizationClusterArgs struct {
// AppInsights configuration.
AppInsights *AppInsightsProperties `pulumi:"appInsights"`
// The name of the cluster.
ClusterName string `pulumi:"clusterName"`
// The cluster type.
ClusterType string `pulumi:"clusterType"`
// Container Registry properties.
ContainerRegistry *ContainerRegistryProperties `pulumi:"containerRegistry"`
// Parameters for the Azure Container Service cluster.
ContainerService *AcsClusterProperties `pulumi:"containerService"`
// The description of the cluster.
Description *string `pulumi:"description"`
// Contains global configuration for the web services in the cluster.
GlobalServiceConfiguration *GlobalServiceConfiguration `pulumi:"globalServiceConfiguration"`
// Specifies the location of the resource.
Location *string `pulumi:"location"`
// Name of the resource group in which the cluster is located.
ResourceGroupName string `pulumi:"resourceGroupName"`
// Storage Account properties.
StorageAccount *StorageAccountProperties `pulumi:"storageAccount"`
// Contains resource tags defined as key/value pairs.
Tags map[string]string `pulumi:"tags"`
}
// The set of arguments for constructing a OperationalizationCluster resource.
type OperationalizationClusterArgs struct {
// AppInsights configuration.
AppInsights AppInsightsPropertiesPtrInput
// The name of the cluster.
ClusterName pulumi.StringInput
// The cluster type.
ClusterType pulumi.StringInput
// Container Registry properties.
ContainerRegistry ContainerRegistryPropertiesPtrInput
// Parameters for the Azure Container Service cluster.
ContainerService AcsClusterPropertiesPtrInput
// The description of the cluster.
Description pulumi.StringPtrInput
// Contains global configuration for the web services in the cluster.
GlobalServiceConfiguration GlobalServiceConfigurationPtrInput
// Specifies the location of the resource.
Location pulumi.StringPtrInput
// Name of the resource group in which the cluster is located.
ResourceGroupName pulumi.StringInput
// Storage Account properties.
StorageAccount StorageAccountPropertiesPtrInput
// Contains resource tags defined as key/value pairs.
Tags pulumi.StringMapInput
}
func (OperationalizationClusterArgs) ElementType() reflect.Type {
return reflect.TypeOf((*operationalizationClusterArgs)(nil)).Elem()
}
type OperationalizationClusterInput interface {
pulumi.Input
ToOperationalizationClusterOutput() OperationalizationClusterOutput
ToOperationalizationClusterOutputWithContext(ctx context.Context) OperationalizationClusterOutput
}
func (*OperationalizationCluster) ElementType() reflect.Type {
return reflect.TypeOf((*OperationalizationCluster)(nil))
}
func (i *OperationalizationCluster) ToOperationalizationClusterOutput() OperationalizationClusterOutput {
return i.ToOperationalizationClusterOutputWithContext(context.Background())
}
func (i *OperationalizationCluster) ToOperationalizationClusterOutputWithContext(ctx context.Context) OperationalizationClusterOutput {
return pulumi.ToOutputWithContext(ctx, i).(OperationalizationClusterOutput)
}
type OperationalizationClusterOutput struct {
*pulumi.OutputState
}
func (OperationalizationClusterOutput) ElementType() reflect.Type {
return reflect.TypeOf((*OperationalizationCluster)(nil))
}
func (o OperationalizationClusterOutput) ToOperationalizationClusterOutput() OperationalizationClusterOutput {
return o
}
func (o OperationalizationClusterOutput) ToOperationalizationClusterOutputWithContext(ctx context.Context) OperationalizationClusterOutput {
return o
}
func init() {
pulumi.RegisterOutputType(OperationalizationClusterOutput{})
}