-
Notifications
You must be signed in to change notification settings - Fork 69
/
zz_servicesaccount_types.go
executable file
·416 lines (305 loc) · 20.6 KB
/
zz_servicesaccount_types.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
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
// SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>
//
// SPDX-License-Identifier: Apache-2.0
// Code generated by upjet. DO NOT EDIT.
package v1beta2
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime/schema"
v1 "github.com/crossplane/crossplane-runtime/apis/common/v1"
)
type EncryptionInitParameters struct {
// Specifies the URI of the Key Vault Key used to encrypt data. The key may either be versioned (for example https://vault/keys/mykey/version1) or reference a key without a version (for example https://vault/keys/mykey).
KeyVaultKeyIdentifier *string `json:"keyVaultKeyIdentifier,omitempty" tf:"key_vault_key_identifier,omitempty"`
// A managed_identity block as defined below.
ManagedIdentity *ManagedIdentityInitParameters `json:"managedIdentity,omitempty" tf:"managed_identity,omitempty"`
// Specifies the type of key used to encrypt the account data. Possible values are SystemKey and CustomerKey. Defaults to SystemKey.
Type *string `json:"type,omitempty" tf:"type,omitempty"`
}
type EncryptionObservation struct {
// The current key used to encrypt the Media Services Account, including the key version.
CurrentKeyIdentifier *string `json:"currentKeyIdentifier,omitempty" tf:"current_key_identifier,omitempty"`
// Specifies the URI of the Key Vault Key used to encrypt data. The key may either be versioned (for example https://vault/keys/mykey/version1) or reference a key without a version (for example https://vault/keys/mykey).
KeyVaultKeyIdentifier *string `json:"keyVaultKeyIdentifier,omitempty" tf:"key_vault_key_identifier,omitempty"`
// A managed_identity block as defined below.
ManagedIdentity *ManagedIdentityObservation `json:"managedIdentity,omitempty" tf:"managed_identity,omitempty"`
// Specifies the type of key used to encrypt the account data. Possible values are SystemKey and CustomerKey. Defaults to SystemKey.
Type *string `json:"type,omitempty" tf:"type,omitempty"`
}
type EncryptionParameters struct {
// Specifies the URI of the Key Vault Key used to encrypt data. The key may either be versioned (for example https://vault/keys/mykey/version1) or reference a key without a version (for example https://vault/keys/mykey).
// +kubebuilder:validation:Optional
KeyVaultKeyIdentifier *string `json:"keyVaultKeyIdentifier,omitempty" tf:"key_vault_key_identifier,omitempty"`
// A managed_identity block as defined below.
// +kubebuilder:validation:Optional
ManagedIdentity *ManagedIdentityParameters `json:"managedIdentity,omitempty" tf:"managed_identity,omitempty"`
// Specifies the type of key used to encrypt the account data. Possible values are SystemKey and CustomerKey. Defaults to SystemKey.
// +kubebuilder:validation:Optional
Type *string `json:"type,omitempty" tf:"type,omitempty"`
}
type IdentityInitParameters struct {
// Specifies a list of User Assigned Managed Identity IDs to be assigned to this Media Services Account.
// +listType=set
IdentityIds []*string `json:"identityIds,omitempty" tf:"identity_ids,omitempty"`
// Specifies the type of Managed Service Identity that should be configured on this Media Services Account. Possible values are SystemAssigned, UserAssigned, SystemAssigned, UserAssigned (to enable both).
Type *string `json:"type,omitempty" tf:"type,omitempty"`
}
type IdentityObservation struct {
// Specifies a list of User Assigned Managed Identity IDs to be assigned to this Media Services Account.
// +listType=set
IdentityIds []*string `json:"identityIds,omitempty" tf:"identity_ids,omitempty"`
// The Principal ID associated with this Managed Service Identity.
PrincipalID *string `json:"principalId,omitempty" tf:"principal_id,omitempty"`
// The Tenant ID associated with this Managed Service Identity.
TenantID *string `json:"tenantId,omitempty" tf:"tenant_id,omitempty"`
// Specifies the type of Managed Service Identity that should be configured on this Media Services Account. Possible values are SystemAssigned, UserAssigned, SystemAssigned, UserAssigned (to enable both).
Type *string `json:"type,omitempty" tf:"type,omitempty"`
}
type IdentityParameters struct {
// Specifies a list of User Assigned Managed Identity IDs to be assigned to this Media Services Account.
// +kubebuilder:validation:Optional
// +listType=set
IdentityIds []*string `json:"identityIds,omitempty" tf:"identity_ids,omitempty"`
// Specifies the type of Managed Service Identity that should be configured on this Media Services Account. Possible values are SystemAssigned, UserAssigned, SystemAssigned, UserAssigned (to enable both).
// +kubebuilder:validation:Optional
Type *string `json:"type" tf:"type,omitempty"`
}
type KeyDeliveryAccessControlInitParameters struct {
// The Default Action to use when no rules match from ip_allow_list. Possible values are Allow and Deny.
DefaultAction *string `json:"defaultAction,omitempty" tf:"default_action,omitempty"`
// One or more IP Addresses, or CIDR Blocks which should be able to access the Key Delivery.
// +listType=set
IPAllowList []*string `json:"ipAllowList,omitempty" tf:"ip_allow_list,omitempty"`
}
type KeyDeliveryAccessControlObservation struct {
// The Default Action to use when no rules match from ip_allow_list. Possible values are Allow and Deny.
DefaultAction *string `json:"defaultAction,omitempty" tf:"default_action,omitempty"`
// One or more IP Addresses, or CIDR Blocks which should be able to access the Key Delivery.
// +listType=set
IPAllowList []*string `json:"ipAllowList,omitempty" tf:"ip_allow_list,omitempty"`
}
type KeyDeliveryAccessControlParameters struct {
// The Default Action to use when no rules match from ip_allow_list. Possible values are Allow and Deny.
// +kubebuilder:validation:Optional
DefaultAction *string `json:"defaultAction,omitempty" tf:"default_action,omitempty"`
// One or more IP Addresses, or CIDR Blocks which should be able to access the Key Delivery.
// +kubebuilder:validation:Optional
// +listType=set
IPAllowList []*string `json:"ipAllowList,omitempty" tf:"ip_allow_list,omitempty"`
}
type ManagedIdentityInitParameters struct {
// Whether to use System Assigned Identity. Possible Values are true and false.
UseSystemAssignedIdentity *bool `json:"useSystemAssignedIdentity,omitempty" tf:"use_system_assigned_identity,omitempty"`
// The ID of the User Assigned Identity. This value can only be set when use_system_assigned_identity is false
UserAssignedIdentityID *string `json:"userAssignedIdentityId,omitempty" tf:"user_assigned_identity_id,omitempty"`
}
type ManagedIdentityObservation struct {
// Whether to use System Assigned Identity. Possible Values are true and false.
UseSystemAssignedIdentity *bool `json:"useSystemAssignedIdentity,omitempty" tf:"use_system_assigned_identity,omitempty"`
// The ID of the User Assigned Identity. This value can only be set when use_system_assigned_identity is false
UserAssignedIdentityID *string `json:"userAssignedIdentityId,omitempty" tf:"user_assigned_identity_id,omitempty"`
}
type ManagedIdentityParameters struct {
// Whether to use System Assigned Identity. Possible Values are true and false.
// +kubebuilder:validation:Optional
UseSystemAssignedIdentity *bool `json:"useSystemAssignedIdentity,omitempty" tf:"use_system_assigned_identity,omitempty"`
// The ID of the User Assigned Identity. This value can only be set when use_system_assigned_identity is false
// +kubebuilder:validation:Optional
UserAssignedIdentityID *string `json:"userAssignedIdentityId,omitempty" tf:"user_assigned_identity_id,omitempty"`
}
type ServicesAccountInitParameters struct {
// An encryption block as defined below.
Encryption *EncryptionInitParameters `json:"encryption,omitempty" tf:"encryption,omitempty"`
// An identity block as defined below.
Identity *IdentityInitParameters `json:"identity,omitempty" tf:"identity,omitempty"`
// A key_delivery_access_control block as defined below.
KeyDeliveryAccessControl *KeyDeliveryAccessControlInitParameters `json:"keyDeliveryAccessControl,omitempty" tf:"key_delivery_access_control,omitempty"`
// Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
Location *string `json:"location,omitempty" tf:"location,omitempty"`
// Whether public network access is allowed for this server. Defaults to true.
PublicNetworkAccessEnabled *bool `json:"publicNetworkAccessEnabled,omitempty" tf:"public_network_access_enabled,omitempty"`
// One or more storage_account blocks as defined below.
StorageAccount []StorageAccountInitParameters `json:"storageAccount,omitempty" tf:"storage_account,omitempty"`
// Specifies the storage authentication type. Possible value is ManagedIdentity or System.
StorageAuthenticationType *string `json:"storageAuthenticationType,omitempty" tf:"storage_authentication_type,omitempty"`
// A mapping of tags assigned to the resource.
// +mapType=granular
Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
}
type ServicesAccountObservation struct {
// An encryption block as defined below.
Encryption *EncryptionObservation `json:"encryption,omitempty" tf:"encryption,omitempty"`
// The ID of the Media Services Account.
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// An identity block as defined below.
Identity *IdentityObservation `json:"identity,omitempty" tf:"identity,omitempty"`
// A key_delivery_access_control block as defined below.
KeyDeliveryAccessControl *KeyDeliveryAccessControlObservation `json:"keyDeliveryAccessControl,omitempty" tf:"key_delivery_access_control,omitempty"`
// Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
Location *string `json:"location,omitempty" tf:"location,omitempty"`
// Whether public network access is allowed for this server. Defaults to true.
PublicNetworkAccessEnabled *bool `json:"publicNetworkAccessEnabled,omitempty" tf:"public_network_access_enabled,omitempty"`
// The name of the resource group in which to create the Media Services Account. Changing this forces a new resource to be created.
ResourceGroupName *string `json:"resourceGroupName,omitempty" tf:"resource_group_name,omitempty"`
// One or more storage_account blocks as defined below.
StorageAccount []StorageAccountObservation `json:"storageAccount,omitempty" tf:"storage_account,omitempty"`
// Specifies the storage authentication type. Possible value is ManagedIdentity or System.
StorageAuthenticationType *string `json:"storageAuthenticationType,omitempty" tf:"storage_authentication_type,omitempty"`
// A mapping of tags assigned to the resource.
// +mapType=granular
Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
}
type ServicesAccountParameters struct {
// An encryption block as defined below.
// +kubebuilder:validation:Optional
Encryption *EncryptionParameters `json:"encryption,omitempty" tf:"encryption,omitempty"`
// An identity block as defined below.
// +kubebuilder:validation:Optional
Identity *IdentityParameters `json:"identity,omitempty" tf:"identity,omitempty"`
// A key_delivery_access_control block as defined below.
// +kubebuilder:validation:Optional
KeyDeliveryAccessControl *KeyDeliveryAccessControlParameters `json:"keyDeliveryAccessControl,omitempty" tf:"key_delivery_access_control,omitempty"`
// Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
// +kubebuilder:validation:Optional
Location *string `json:"location,omitempty" tf:"location,omitempty"`
// Whether public network access is allowed for this server. Defaults to true.
// +kubebuilder:validation:Optional
PublicNetworkAccessEnabled *bool `json:"publicNetworkAccessEnabled,omitempty" tf:"public_network_access_enabled,omitempty"`
// The name of the resource group in which to create the Media Services Account. Changing this forces a new resource to be created.
// +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/azure/v1beta1.ResourceGroup
// +kubebuilder:validation:Optional
ResourceGroupName *string `json:"resourceGroupName,omitempty" tf:"resource_group_name,omitempty"`
// Reference to a ResourceGroup in azure to populate resourceGroupName.
// +kubebuilder:validation:Optional
ResourceGroupNameRef *v1.Reference `json:"resourceGroupNameRef,omitempty" tf:"-"`
// Selector for a ResourceGroup in azure to populate resourceGroupName.
// +kubebuilder:validation:Optional
ResourceGroupNameSelector *v1.Selector `json:"resourceGroupNameSelector,omitempty" tf:"-"`
// One or more storage_account blocks as defined below.
// +kubebuilder:validation:Optional
StorageAccount []StorageAccountParameters `json:"storageAccount,omitempty" tf:"storage_account,omitempty"`
// Specifies the storage authentication type. Possible value is ManagedIdentity or System.
// +kubebuilder:validation:Optional
StorageAuthenticationType *string `json:"storageAuthenticationType,omitempty" tf:"storage_authentication_type,omitempty"`
// A mapping of tags assigned to the resource.
// +kubebuilder:validation:Optional
// +mapType=granular
Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
}
type StorageAccountInitParameters struct {
// Specifies the ID of the Storage Account that will be associated with the Media Services instance.
// +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/storage/v1beta2.Account
// +crossplane:generate:reference:extractor=github.com/upbound/provider-azure/apis/rconfig.ExtractResourceID()
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// Reference to a Account in storage to populate id.
// +kubebuilder:validation:Optional
IDRef *v1.Reference `json:"idRef,omitempty" tf:"-"`
// Selector for a Account in storage to populate id.
// +kubebuilder:validation:Optional
IDSelector *v1.Selector `json:"idSelector,omitempty" tf:"-"`
// Specifies whether the storage account should be the primary account or not. Defaults to false.
IsPrimary *bool `json:"isPrimary,omitempty" tf:"is_primary,omitempty"`
// A managed_identity block as defined below.
ManagedIdentity *StorageAccountManagedIdentityInitParameters `json:"managedIdentity,omitempty" tf:"managed_identity,omitempty"`
}
type StorageAccountManagedIdentityInitParameters struct {
// Whether to use System Assigned Identity. Possible Values are true and false.
UseSystemAssignedIdentity *bool `json:"useSystemAssignedIdentity,omitempty" tf:"use_system_assigned_identity,omitempty"`
// The ID of the User Assigned Identity. This value can only be set when use_system_assigned_identity is false
UserAssignedIdentityID *string `json:"userAssignedIdentityId,omitempty" tf:"user_assigned_identity_id,omitempty"`
}
type StorageAccountManagedIdentityObservation struct {
// Whether to use System Assigned Identity. Possible Values are true and false.
UseSystemAssignedIdentity *bool `json:"useSystemAssignedIdentity,omitempty" tf:"use_system_assigned_identity,omitempty"`
// The ID of the User Assigned Identity. This value can only be set when use_system_assigned_identity is false
UserAssignedIdentityID *string `json:"userAssignedIdentityId,omitempty" tf:"user_assigned_identity_id,omitempty"`
}
type StorageAccountManagedIdentityParameters struct {
// Whether to use System Assigned Identity. Possible Values are true and false.
// +kubebuilder:validation:Optional
UseSystemAssignedIdentity *bool `json:"useSystemAssignedIdentity,omitempty" tf:"use_system_assigned_identity,omitempty"`
// The ID of the User Assigned Identity. This value can only be set when use_system_assigned_identity is false
// +kubebuilder:validation:Optional
UserAssignedIdentityID *string `json:"userAssignedIdentityId,omitempty" tf:"user_assigned_identity_id,omitempty"`
}
type StorageAccountObservation struct {
// Specifies the ID of the Storage Account that will be associated with the Media Services instance.
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// Specifies whether the storage account should be the primary account or not. Defaults to false.
IsPrimary *bool `json:"isPrimary,omitempty" tf:"is_primary,omitempty"`
// A managed_identity block as defined below.
ManagedIdentity *StorageAccountManagedIdentityObservation `json:"managedIdentity,omitempty" tf:"managed_identity,omitempty"`
}
type StorageAccountParameters struct {
// Specifies the ID of the Storage Account that will be associated with the Media Services instance.
// +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/storage/v1beta2.Account
// +crossplane:generate:reference:extractor=github.com/upbound/provider-azure/apis/rconfig.ExtractResourceID()
// +kubebuilder:validation:Optional
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// Reference to a Account in storage to populate id.
// +kubebuilder:validation:Optional
IDRef *v1.Reference `json:"idRef,omitempty" tf:"-"`
// Selector for a Account in storage to populate id.
// +kubebuilder:validation:Optional
IDSelector *v1.Selector `json:"idSelector,omitempty" tf:"-"`
// Specifies whether the storage account should be the primary account or not. Defaults to false.
// +kubebuilder:validation:Optional
IsPrimary *bool `json:"isPrimary,omitempty" tf:"is_primary,omitempty"`
// A managed_identity block as defined below.
// +kubebuilder:validation:Optional
ManagedIdentity *StorageAccountManagedIdentityParameters `json:"managedIdentity,omitempty" tf:"managed_identity,omitempty"`
}
// ServicesAccountSpec defines the desired state of ServicesAccount
type ServicesAccountSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider ServicesAccountParameters `json:"forProvider"`
// THIS IS A BETA FIELD. It will be honored
// unless the Management Policies feature flag is disabled.
// InitProvider holds the same fields as ForProvider, with the exception
// of Identifier and other resource reference fields. The fields that are
// in InitProvider are merged into ForProvider when the resource is created.
// The same fields are also added to the terraform ignore_changes hook, to
// avoid updating them after creation. This is useful for fields that are
// required on creation, but we do not desire to update them after creation,
// for example because of an external controller is managing them, like an
// autoscaler.
InitProvider ServicesAccountInitParameters `json:"initProvider,omitempty"`
}
// ServicesAccountStatus defines the observed state of ServicesAccount.
type ServicesAccountStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider ServicesAccountObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// ServicesAccount is the Schema for the ServicesAccounts API. Manages a Media Services Account.
// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status"
// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status"
// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name"
// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp"
// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,azure}
type ServicesAccount struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.location) || (has(self.initProvider) && has(self.initProvider.location))",message="spec.forProvider.location is a required parameter"
// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.storageAccount) || (has(self.initProvider) && has(self.initProvider.storageAccount))",message="spec.forProvider.storageAccount is a required parameter"
Spec ServicesAccountSpec `json:"spec"`
Status ServicesAccountStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// ServicesAccountList contains a list of ServicesAccounts
type ServicesAccountList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ServicesAccount `json:"items"`
}
// Repository type metadata.
var (
ServicesAccount_Kind = "ServicesAccount"
ServicesAccount_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: ServicesAccount_Kind}.String()
ServicesAccount_KindAPIVersion = ServicesAccount_Kind + "." + CRDGroupVersion.String()
ServicesAccount_GroupVersionKind = CRDGroupVersion.WithKind(ServicesAccount_Kind)
)
func init() {
SchemeBuilder.Register(&ServicesAccount{}, &ServicesAccountList{})
}