This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
account.go
382 lines (358 loc) · 17.9 KB
/
account.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
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
// *** 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 latest
import (
"context"
"reflect"
"github.com/pkg/errors"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
// A Data Lake Analytics account object, containing all information associated with the named Data Lake Analytics account.
// Latest API Version: 2016-11-01.
type Account struct {
pulumi.CustomResourceState
// The unique identifier associated with this Data Lake Analytics account.
AccountId pulumi.StringOutput `pulumi:"accountId"`
// The list of compute policies associated with this account.
ComputePolicies ComputePolicyResponseArrayOutput `pulumi:"computePolicies"`
// The account creation time.
CreationTime pulumi.StringOutput `pulumi:"creationTime"`
// The commitment tier in use for the current month.
CurrentTier pulumi.StringOutput `pulumi:"currentTier"`
// The list of Data Lake Store accounts associated with this account.
DataLakeStoreAccounts DataLakeStoreAccountInformationResponseArrayOutput `pulumi:"dataLakeStoreAccounts"`
// The current state of the DebugDataAccessLevel for this account.
DebugDataAccessLevel pulumi.StringOutput `pulumi:"debugDataAccessLevel"`
// The default Data Lake Store account associated with this account.
DefaultDataLakeStoreAccount pulumi.StringOutput `pulumi:"defaultDataLakeStoreAccount"`
// The full CName endpoint for this account.
Endpoint pulumi.StringOutput `pulumi:"endpoint"`
// The current state of allowing or disallowing IPs originating within Azure through the firewall. If the firewall is disabled, this is not enforced.
FirewallAllowAzureIps pulumi.StringOutput `pulumi:"firewallAllowAzureIps"`
// The list of firewall rules associated with this account.
FirewallRules FirewallRuleResponseArrayOutput `pulumi:"firewallRules"`
// The current state of the IP address firewall for this account.
FirewallState pulumi.StringOutput `pulumi:"firewallState"`
// The list of hiveMetastores associated with this account.
HiveMetastores HiveMetastoreResponseArrayOutput `pulumi:"hiveMetastores"`
// The account last modified time.
LastModifiedTime pulumi.StringOutput `pulumi:"lastModifiedTime"`
// The resource location.
Location pulumi.StringOutput `pulumi:"location"`
// The maximum supported degree of parallelism for this account.
MaxDegreeOfParallelism pulumi.IntPtrOutput `pulumi:"maxDegreeOfParallelism"`
// The maximum supported degree of parallelism per job for this account.
MaxDegreeOfParallelismPerJob pulumi.IntOutput `pulumi:"maxDegreeOfParallelismPerJob"`
// The maximum supported jobs running under the account at the same time.
MaxJobCount pulumi.IntPtrOutput `pulumi:"maxJobCount"`
// The minimum supported priority per job for this account.
MinPriorityPerJob pulumi.IntOutput `pulumi:"minPriorityPerJob"`
// The resource name.
Name pulumi.StringOutput `pulumi:"name"`
// The commitment tier for the next month.
NewTier pulumi.StringOutput `pulumi:"newTier"`
// The provisioning status of the Data Lake Analytics account.
ProvisioningState pulumi.StringOutput `pulumi:"provisioningState"`
// The number of days that job metadata is retained.
QueryStoreRetention pulumi.IntPtrOutput `pulumi:"queryStoreRetention"`
// The state of the Data Lake Analytics account.
State pulumi.StringOutput `pulumi:"state"`
// The list of Azure Blob Storage accounts associated with this account.
StorageAccounts StorageAccountInformationResponseArrayOutput `pulumi:"storageAccounts"`
// The system defined maximum supported degree of parallelism for this account, which restricts the maximum value of parallelism the user can set for the account.
SystemMaxDegreeOfParallelism pulumi.IntOutput `pulumi:"systemMaxDegreeOfParallelism"`
// The system defined maximum supported jobs running under the account at the same time, which restricts the maximum number of running jobs the user can set for the account.
SystemMaxJobCount pulumi.IntOutput `pulumi:"systemMaxJobCount"`
// The resource tags.
Tags pulumi.StringMapOutput `pulumi:"tags"`
// The resource type.
Type pulumi.StringOutput `pulumi:"type"`
// The list of virtualNetwork rules associated with this account.
VirtualNetworkRules VirtualNetworkRuleResponseArrayOutput `pulumi:"virtualNetworkRules"`
}
// NewAccount registers a new resource with the given unique name, arguments, and options.
func NewAccount(ctx *pulumi.Context,
name string, args *AccountArgs, opts ...pulumi.ResourceOption) (*Account, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.AccountName == nil {
return nil, errors.New("invalid value for required argument 'AccountName'")
}
if args.DataLakeStoreAccounts == nil {
return nil, errors.New("invalid value for required argument 'DataLakeStoreAccounts'")
}
if args.DefaultDataLakeStoreAccount == nil {
return nil, errors.New("invalid value for required argument 'DefaultDataLakeStoreAccount'")
}
if args.Location == nil {
return nil, errors.New("invalid value for required argument 'Location'")
}
if args.ResourceGroupName == nil {
return nil, errors.New("invalid value for required argument 'ResourceGroupName'")
}
if args.MaxDegreeOfParallelism == nil {
args.MaxDegreeOfParallelism = pulumi.IntPtr(30)
}
if args.MaxJobCount == nil {
args.MaxJobCount = pulumi.IntPtr(3)
}
if args.QueryStoreRetention == nil {
args.QueryStoreRetention = pulumi.IntPtr(30)
}
aliases := pulumi.Aliases([]pulumi.Alias{
{
Type: pulumi.String("azure-nextgen:datalakeanalytics/v20151001preview:Account"),
},
{
Type: pulumi.String("azure-nextgen:datalakeanalytics/v20161101:Account"),
},
})
opts = append(opts, aliases)
var resource Account
err := ctx.RegisterResource("azure-nextgen:datalakeanalytics/latest:Account", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetAccount gets an existing Account 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 GetAccount(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *AccountState, opts ...pulumi.ResourceOption) (*Account, error) {
var resource Account
err := ctx.ReadResource("azure-nextgen:datalakeanalytics/latest:Account", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering Account resources.
type accountState struct {
// The unique identifier associated with this Data Lake Analytics account.
AccountId *string `pulumi:"accountId"`
// The list of compute policies associated with this account.
ComputePolicies []ComputePolicyResponse `pulumi:"computePolicies"`
// The account creation time.
CreationTime *string `pulumi:"creationTime"`
// The commitment tier in use for the current month.
CurrentTier *string `pulumi:"currentTier"`
// The list of Data Lake Store accounts associated with this account.
DataLakeStoreAccounts []DataLakeStoreAccountInformationResponse `pulumi:"dataLakeStoreAccounts"`
// The current state of the DebugDataAccessLevel for this account.
DebugDataAccessLevel *string `pulumi:"debugDataAccessLevel"`
// The default Data Lake Store account associated with this account.
DefaultDataLakeStoreAccount *string `pulumi:"defaultDataLakeStoreAccount"`
// The full CName endpoint for this account.
Endpoint *string `pulumi:"endpoint"`
// The current state of allowing or disallowing IPs originating within Azure through the firewall. If the firewall is disabled, this is not enforced.
FirewallAllowAzureIps *string `pulumi:"firewallAllowAzureIps"`
// The list of firewall rules associated with this account.
FirewallRules []FirewallRuleResponse `pulumi:"firewallRules"`
// The current state of the IP address firewall for this account.
FirewallState *string `pulumi:"firewallState"`
// The list of hiveMetastores associated with this account.
HiveMetastores []HiveMetastoreResponse `pulumi:"hiveMetastores"`
// The account last modified time.
LastModifiedTime *string `pulumi:"lastModifiedTime"`
// The resource location.
Location *string `pulumi:"location"`
// The maximum supported degree of parallelism for this account.
MaxDegreeOfParallelism *int `pulumi:"maxDegreeOfParallelism"`
// The maximum supported degree of parallelism per job for this account.
MaxDegreeOfParallelismPerJob *int `pulumi:"maxDegreeOfParallelismPerJob"`
// The maximum supported jobs running under the account at the same time.
MaxJobCount *int `pulumi:"maxJobCount"`
// The minimum supported priority per job for this account.
MinPriorityPerJob *int `pulumi:"minPriorityPerJob"`
// The resource name.
Name *string `pulumi:"name"`
// The commitment tier for the next month.
NewTier *string `pulumi:"newTier"`
// The provisioning status of the Data Lake Analytics account.
ProvisioningState *string `pulumi:"provisioningState"`
// The number of days that job metadata is retained.
QueryStoreRetention *int `pulumi:"queryStoreRetention"`
// The state of the Data Lake Analytics account.
State *string `pulumi:"state"`
// The list of Azure Blob Storage accounts associated with this account.
StorageAccounts []StorageAccountInformationResponse `pulumi:"storageAccounts"`
// The system defined maximum supported degree of parallelism for this account, which restricts the maximum value of parallelism the user can set for the account.
SystemMaxDegreeOfParallelism *int `pulumi:"systemMaxDegreeOfParallelism"`
// The system defined maximum supported jobs running under the account at the same time, which restricts the maximum number of running jobs the user can set for the account.
SystemMaxJobCount *int `pulumi:"systemMaxJobCount"`
// The resource tags.
Tags map[string]string `pulumi:"tags"`
// The resource type.
Type *string `pulumi:"type"`
// The list of virtualNetwork rules associated with this account.
VirtualNetworkRules []VirtualNetworkRuleResponse `pulumi:"virtualNetworkRules"`
}
type AccountState struct {
// The unique identifier associated with this Data Lake Analytics account.
AccountId pulumi.StringPtrInput
// The list of compute policies associated with this account.
ComputePolicies ComputePolicyResponseArrayInput
// The account creation time.
CreationTime pulumi.StringPtrInput
// The commitment tier in use for the current month.
CurrentTier pulumi.StringPtrInput
// The list of Data Lake Store accounts associated with this account.
DataLakeStoreAccounts DataLakeStoreAccountInformationResponseArrayInput
// The current state of the DebugDataAccessLevel for this account.
DebugDataAccessLevel pulumi.StringPtrInput
// The default Data Lake Store account associated with this account.
DefaultDataLakeStoreAccount pulumi.StringPtrInput
// The full CName endpoint for this account.
Endpoint pulumi.StringPtrInput
// The current state of allowing or disallowing IPs originating within Azure through the firewall. If the firewall is disabled, this is not enforced.
FirewallAllowAzureIps pulumi.StringPtrInput
// The list of firewall rules associated with this account.
FirewallRules FirewallRuleResponseArrayInput
// The current state of the IP address firewall for this account.
FirewallState pulumi.StringPtrInput
// The list of hiveMetastores associated with this account.
HiveMetastores HiveMetastoreResponseArrayInput
// The account last modified time.
LastModifiedTime pulumi.StringPtrInput
// The resource location.
Location pulumi.StringPtrInput
// The maximum supported degree of parallelism for this account.
MaxDegreeOfParallelism pulumi.IntPtrInput
// The maximum supported degree of parallelism per job for this account.
MaxDegreeOfParallelismPerJob pulumi.IntPtrInput
// The maximum supported jobs running under the account at the same time.
MaxJobCount pulumi.IntPtrInput
// The minimum supported priority per job for this account.
MinPriorityPerJob pulumi.IntPtrInput
// The resource name.
Name pulumi.StringPtrInput
// The commitment tier for the next month.
NewTier pulumi.StringPtrInput
// The provisioning status of the Data Lake Analytics account.
ProvisioningState pulumi.StringPtrInput
// The number of days that job metadata is retained.
QueryStoreRetention pulumi.IntPtrInput
// The state of the Data Lake Analytics account.
State pulumi.StringPtrInput
// The list of Azure Blob Storage accounts associated with this account.
StorageAccounts StorageAccountInformationResponseArrayInput
// The system defined maximum supported degree of parallelism for this account, which restricts the maximum value of parallelism the user can set for the account.
SystemMaxDegreeOfParallelism pulumi.IntPtrInput
// The system defined maximum supported jobs running under the account at the same time, which restricts the maximum number of running jobs the user can set for the account.
SystemMaxJobCount pulumi.IntPtrInput
// The resource tags.
Tags pulumi.StringMapInput
// The resource type.
Type pulumi.StringPtrInput
// The list of virtualNetwork rules associated with this account.
VirtualNetworkRules VirtualNetworkRuleResponseArrayInput
}
func (AccountState) ElementType() reflect.Type {
return reflect.TypeOf((*accountState)(nil)).Elem()
}
type accountArgs struct {
// The name of the Data Lake Analytics account.
AccountName string `pulumi:"accountName"`
// The list of compute policies associated with this account.
ComputePolicies []CreateComputePolicyWithAccountParameters `pulumi:"computePolicies"`
// The list of Data Lake Store accounts associated with this account.
DataLakeStoreAccounts []AddDataLakeStoreWithAccountParameters `pulumi:"dataLakeStoreAccounts"`
// The default Data Lake Store account associated with this account.
DefaultDataLakeStoreAccount string `pulumi:"defaultDataLakeStoreAccount"`
// The current state of allowing or disallowing IPs originating within Azure through the firewall. If the firewall is disabled, this is not enforced.
FirewallAllowAzureIps *string `pulumi:"firewallAllowAzureIps"`
// The list of firewall rules associated with this account.
FirewallRules []CreateFirewallRuleWithAccountParameters `pulumi:"firewallRules"`
// The current state of the IP address firewall for this account.
FirewallState *string `pulumi:"firewallState"`
// The resource location.
Location string `pulumi:"location"`
// The maximum supported degree of parallelism for this account.
MaxDegreeOfParallelism *int `pulumi:"maxDegreeOfParallelism"`
// The maximum supported degree of parallelism per job for this account.
MaxDegreeOfParallelismPerJob *int `pulumi:"maxDegreeOfParallelismPerJob"`
// The maximum supported jobs running under the account at the same time.
MaxJobCount *int `pulumi:"maxJobCount"`
// The minimum supported priority per job for this account.
MinPriorityPerJob *int `pulumi:"minPriorityPerJob"`
// The commitment tier for the next month.
NewTier *string `pulumi:"newTier"`
// The number of days that job metadata is retained.
QueryStoreRetention *int `pulumi:"queryStoreRetention"`
// The name of the Azure resource group.
ResourceGroupName string `pulumi:"resourceGroupName"`
// The list of Azure Blob Storage accounts associated with this account.
StorageAccounts []AddStorageAccountWithAccountParameters `pulumi:"storageAccounts"`
// The resource tags.
Tags map[string]string `pulumi:"tags"`
}
// The set of arguments for constructing a Account resource.
type AccountArgs struct {
// The name of the Data Lake Analytics account.
AccountName pulumi.StringInput
// The list of compute policies associated with this account.
ComputePolicies CreateComputePolicyWithAccountParametersArrayInput
// The list of Data Lake Store accounts associated with this account.
DataLakeStoreAccounts AddDataLakeStoreWithAccountParametersArrayInput
// The default Data Lake Store account associated with this account.
DefaultDataLakeStoreAccount pulumi.StringInput
// The current state of allowing or disallowing IPs originating within Azure through the firewall. If the firewall is disabled, this is not enforced.
FirewallAllowAzureIps FirewallAllowAzureIpsState
// The list of firewall rules associated with this account.
FirewallRules CreateFirewallRuleWithAccountParametersArrayInput
// The current state of the IP address firewall for this account.
FirewallState FirewallState
// The resource location.
Location pulumi.StringInput
// The maximum supported degree of parallelism for this account.
MaxDegreeOfParallelism pulumi.IntPtrInput
// The maximum supported degree of parallelism per job for this account.
MaxDegreeOfParallelismPerJob pulumi.IntPtrInput
// The maximum supported jobs running under the account at the same time.
MaxJobCount pulumi.IntPtrInput
// The minimum supported priority per job for this account.
MinPriorityPerJob pulumi.IntPtrInput
// The commitment tier for the next month.
NewTier TierType
// The number of days that job metadata is retained.
QueryStoreRetention pulumi.IntPtrInput
// The name of the Azure resource group.
ResourceGroupName pulumi.StringInput
// The list of Azure Blob Storage accounts associated with this account.
StorageAccounts AddStorageAccountWithAccountParametersArrayInput
// The resource tags.
Tags pulumi.StringMapInput
}
func (AccountArgs) ElementType() reflect.Type {
return reflect.TypeOf((*accountArgs)(nil)).Elem()
}
type AccountInput interface {
pulumi.Input
ToAccountOutput() AccountOutput
ToAccountOutputWithContext(ctx context.Context) AccountOutput
}
func (*Account) ElementType() reflect.Type {
return reflect.TypeOf((*Account)(nil))
}
func (i *Account) ToAccountOutput() AccountOutput {
return i.ToAccountOutputWithContext(context.Background())
}
func (i *Account) ToAccountOutputWithContext(ctx context.Context) AccountOutput {
return pulumi.ToOutputWithContext(ctx, i).(AccountOutput)
}
type AccountOutput struct {
*pulumi.OutputState
}
func (AccountOutput) ElementType() reflect.Type {
return reflect.TypeOf((*Account)(nil))
}
func (o AccountOutput) ToAccountOutput() AccountOutput {
return o
}
func (o AccountOutput) ToAccountOutputWithContext(ctx context.Context) AccountOutput {
return o
}
func init() {
pulumi.RegisterOutputType(AccountOutput{})
}