/
flexible_server_status_arm_types_gen.go
356 lines (267 loc) · 15.7 KB
/
flexible_server_status_arm_types_gen.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
// Code generated by azure-service-operator-codegen. DO NOT EDIT.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
package v1api20230601preview
type FlexibleServer_STATUS_ARM struct {
// Id: Fully qualified resource ID for the resource. E.g.
// "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
Id *string `json:"id,omitempty"`
// Identity: Describes the identity of the application.
Identity *UserAssignedIdentity_STATUS_ARM `json:"identity,omitempty"`
// Location: The geo-location where the resource lives
Location *string `json:"location,omitempty"`
// Name: The name of the resource
Name *string `json:"name,omitempty"`
// Properties: Properties of the server.
Properties *ServerProperties_STATUS_ARM `json:"properties,omitempty"`
// Sku: The SKU (pricing tier) of the server.
Sku *Sku_STATUS_ARM `json:"sku,omitempty"`
// SystemData: Azure Resource Manager metadata containing createdBy and modifiedBy information.
SystemData *SystemData_STATUS_ARM `json:"systemData,omitempty"`
// Tags: Resource tags.
Tags map[string]string `json:"tags,omitempty"`
// Type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string `json:"type,omitempty"`
}
// The properties of a server.
type ServerProperties_STATUS_ARM struct {
// AdministratorLogin: The administrator's login name of a server. Can only be specified when the server is being created
// (and is required for creation).
AdministratorLogin *string `json:"administratorLogin,omitempty"`
// AuthConfig: AuthConfig properties of a server.
AuthConfig *AuthConfig_STATUS_ARM `json:"authConfig,omitempty"`
// AvailabilityZone: availability zone information of the server.
AvailabilityZone *string `json:"availabilityZone,omitempty"`
// Backup: Backup properties of a server.
Backup *Backup_STATUS_ARM `json:"backup,omitempty"`
// CreateMode: The mode to create a new PostgreSQL server.
CreateMode *ServerProperties_CreateMode_STATUS `json:"createMode,omitempty"`
// DataEncryption: Data encryption properties of a server.
DataEncryption *DataEncryption_STATUS_ARM `json:"dataEncryption,omitempty"`
// FullyQualifiedDomainName: The fully qualified domain name of a server.
FullyQualifiedDomainName *string `json:"fullyQualifiedDomainName,omitempty"`
// HighAvailability: High availability properties of a server.
HighAvailability *HighAvailability_STATUS_ARM `json:"highAvailability,omitempty"`
// MaintenanceWindow: Maintenance window properties of a server.
MaintenanceWindow *MaintenanceWindow_STATUS_ARM `json:"maintenanceWindow,omitempty"`
// MinorVersion: The minor version of the server.
MinorVersion *string `json:"minorVersion,omitempty"`
// Network: Network properties of a server. This Network property is required to be passed only in case you want the server
// to be Private access server.
Network *Network_STATUS_ARM `json:"network,omitempty"`
// PointInTimeUTC: Restore point creation time (ISO8601 format), specifying the time to restore from. It's required when
// 'createMode' is 'PointInTimeRestore' or 'GeoRestore' or 'ReviveDropped'.
PointInTimeUTC *string `json:"pointInTimeUTC,omitempty"`
// PrivateEndpointConnections: List of private endpoint connections associated with the specified resource.
PrivateEndpointConnections []PrivateEndpointConnection_STATUS_ARM `json:"privateEndpointConnections,omitempty"`
// Replica: Replica properties of a server. These Replica properties are required to be passed only in case you want to
// Promote a server.
Replica *Replica_STATUS_ARM `json:"replica,omitempty"`
// ReplicaCapacity: Replicas allowed for a server.
ReplicaCapacity *int `json:"replicaCapacity,omitempty"`
// ReplicationRole: Replication role of the server
ReplicationRole *ReplicationRole_STATUS `json:"replicationRole,omitempty"`
// SourceServerResourceId: The source server resource ID to restore from. It's required when 'createMode' is
// 'PointInTimeRestore' or 'GeoRestore' or 'Replica' or 'ReviveDropped'. This property is returned only for Replica server
SourceServerResourceId *string `json:"sourceServerResourceId,omitempty"`
// State: A state of a server that is visible to user.
State *ServerProperties_State_STATUS `json:"state,omitempty"`
// Storage: Storage properties of a server.
Storage *Storage_STATUS_ARM `json:"storage,omitempty"`
// Version: PostgreSQL Server version.
Version *ServerVersion_STATUS `json:"version,omitempty"`
}
// Sku information related properties of a server.
type Sku_STATUS_ARM struct {
// Name: The name of the sku, typically, tier + family + cores, e.g. Standard_D4s_v3.
Name *string `json:"name,omitempty"`
// Tier: The tier of the particular SKU, e.g. Burstable.
Tier *Sku_Tier_STATUS `json:"tier,omitempty"`
}
// Metadata pertaining to creation and last modification of the resource.
type SystemData_STATUS_ARM struct {
// CreatedAt: The timestamp of resource creation (UTC).
CreatedAt *string `json:"createdAt,omitempty"`
// CreatedBy: The identity that created the resource.
CreatedBy *string `json:"createdBy,omitempty"`
// CreatedByType: The type of identity that created the resource.
CreatedByType *SystemData_CreatedByType_STATUS `json:"createdByType,omitempty"`
// LastModifiedAt: The timestamp of resource last modification (UTC)
LastModifiedAt *string `json:"lastModifiedAt,omitempty"`
// LastModifiedBy: The identity that last modified the resource.
LastModifiedBy *string `json:"lastModifiedBy,omitempty"`
// LastModifiedByType: The type of identity that last modified the resource.
LastModifiedByType *SystemData_LastModifiedByType_STATUS `json:"lastModifiedByType,omitempty"`
}
// Information describing the identities associated with this application.
type UserAssignedIdentity_STATUS_ARM struct {
// TenantId: Tenant id of the server.
TenantId *string `json:"tenantId,omitempty"`
// Type: the types of identities associated with this resource; currently restricted to 'None and UserAssigned'
Type *UserAssignedIdentity_Type_STATUS `json:"type,omitempty"`
// UserAssignedIdentities: represents user assigned identities map.
UserAssignedIdentities map[string]UserIdentity_STATUS_ARM `json:"userAssignedIdentities,omitempty"`
}
// Authentication configuration properties of a server
type AuthConfig_STATUS_ARM struct {
// ActiveDirectoryAuth: If Enabled, Azure Active Directory authentication is enabled.
ActiveDirectoryAuth *AuthConfig_ActiveDirectoryAuth_STATUS `json:"activeDirectoryAuth,omitempty"`
// PasswordAuth: If Enabled, Password authentication is enabled.
PasswordAuth *AuthConfig_PasswordAuth_STATUS `json:"passwordAuth,omitempty"`
// TenantId: Tenant id of the server.
TenantId *string `json:"tenantId,omitempty"`
}
// Backup properties of a server
type Backup_STATUS_ARM struct {
// BackupRetentionDays: Backup retention days for the server.
BackupRetentionDays *int `json:"backupRetentionDays,omitempty"`
// EarliestRestoreDate: The earliest restore point time (ISO8601 format) for server.
EarliestRestoreDate *string `json:"earliestRestoreDate,omitempty"`
// GeoRedundantBackup: A value indicating whether Geo-Redundant backup is enabled on the server.
GeoRedundantBackup *Backup_GeoRedundantBackup_STATUS `json:"geoRedundantBackup,omitempty"`
}
// Data encryption properties of a server
type DataEncryption_STATUS_ARM struct {
// GeoBackupEncryptionKeyStatus: Geo-backup encryption key status for Data encryption enabled server.
GeoBackupEncryptionKeyStatus *DataEncryption_GeoBackupEncryptionKeyStatus_STATUS `json:"geoBackupEncryptionKeyStatus,omitempty"`
// GeoBackupKeyURI: URI for the key in keyvault for data encryption for geo-backup of server.
GeoBackupKeyURI *string `json:"geoBackupKeyURI,omitempty"`
// GeoBackupUserAssignedIdentityId: Resource Id for the User assigned identity to be used for data encryption for
// geo-backup of server.
GeoBackupUserAssignedIdentityId *string `json:"geoBackupUserAssignedIdentityId,omitempty"`
// PrimaryEncryptionKeyStatus: Primary encryption key status for Data encryption enabled server.
PrimaryEncryptionKeyStatus *DataEncryption_PrimaryEncryptionKeyStatus_STATUS `json:"primaryEncryptionKeyStatus,omitempty"`
// PrimaryKeyURI: URI for the key in keyvault for data encryption of the primary server.
PrimaryKeyURI *string `json:"primaryKeyURI,omitempty"`
// PrimaryUserAssignedIdentityId: Resource Id for the User assigned identity to be used for data encryption of the primary
// server.
PrimaryUserAssignedIdentityId *string `json:"primaryUserAssignedIdentityId,omitempty"`
// Type: Data encryption type to depict if it is System Managed vs Azure Key vault.
Type *DataEncryption_Type_STATUS `json:"type,omitempty"`
}
// High availability properties of a server
type HighAvailability_STATUS_ARM struct {
// Mode: The HA mode for the server.
Mode *HighAvailability_Mode_STATUS `json:"mode,omitempty"`
// StandbyAvailabilityZone: availability zone information of the standby.
StandbyAvailabilityZone *string `json:"standbyAvailabilityZone,omitempty"`
// State: A state of a HA server that is visible to user.
State *HighAvailability_State_STATUS `json:"state,omitempty"`
}
// Maintenance window properties of a server.
type MaintenanceWindow_STATUS_ARM struct {
// CustomWindow: indicates whether custom window is enabled or disabled
CustomWindow *string `json:"customWindow,omitempty"`
// DayOfWeek: day of week for maintenance window
DayOfWeek *int `json:"dayOfWeek,omitempty"`
// StartHour: start hour for maintenance window
StartHour *int `json:"startHour,omitempty"`
// StartMinute: start minute for maintenance window
StartMinute *int `json:"startMinute,omitempty"`
}
// Network properties of a server.
type Network_STATUS_ARM struct {
// DelegatedSubnetResourceId: Delegated subnet arm resource id. This is required to be passed during create, in case we
// want the server to be VNET injected, i.e. Private access server. During update, pass this only if we want to update the
// value for Private DNS zone.
DelegatedSubnetResourceId *string `json:"delegatedSubnetResourceId,omitempty"`
// PrivateDnsZoneArmResourceId: Private dns zone arm resource id. This is required to be passed during create, in case we
// want the server to be VNET injected, i.e. Private access server. During update, pass this only if we want to update the
// value for Private DNS zone.
PrivateDnsZoneArmResourceId *string `json:"privateDnsZoneArmResourceId,omitempty"`
// PublicNetworkAccess: public network access is enabled or not
PublicNetworkAccess *Network_PublicNetworkAccess_STATUS `json:"publicNetworkAccess,omitempty"`
}
// The private endpoint connection resource.
type PrivateEndpointConnection_STATUS_ARM struct {
// Id: Fully qualified resource ID for the resource. E.g.
// "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
Id *string `json:"id,omitempty"`
}
// Replica properties of a server
type Replica_STATUS_ARM struct {
// Capacity: Replicas allowed for a server.
Capacity *int `json:"capacity,omitempty"`
// PromoteMode: Sets the promote mode for a replica server. This is a write only property.
PromoteMode *Replica_PromoteMode_STATUS `json:"promoteMode,omitempty"`
// PromoteOption: Sets the promote options for a replica server. This is a write only property.
PromoteOption *Replica_PromoteOption_STATUS `json:"promoteOption,omitempty"`
// ReplicationState: Gets the replication state of a replica server. This property is returned only for replicas api call.
// Supported values are Active, Catchup, Provisioning, Updating, Broken, Reconfiguring
ReplicationState *Replica_ReplicationState_STATUS `json:"replicationState,omitempty"`
// Role: Used to indicate role of the server in replication set.
Role *ReplicationRole_STATUS `json:"role,omitempty"`
}
type Sku_Tier_STATUS string
const (
Sku_Tier_STATUS_Burstable = Sku_Tier_STATUS("Burstable")
Sku_Tier_STATUS_GeneralPurpose = Sku_Tier_STATUS("GeneralPurpose")
Sku_Tier_STATUS_MemoryOptimized = Sku_Tier_STATUS("MemoryOptimized")
)
// Mapping from string to Sku_Tier_STATUS
var sku_Tier_STATUS_Values = map[string]Sku_Tier_STATUS{
"burstable": Sku_Tier_STATUS_Burstable,
"generalpurpose": Sku_Tier_STATUS_GeneralPurpose,
"memoryoptimized": Sku_Tier_STATUS_MemoryOptimized,
}
// Storage properties of a server
type Storage_STATUS_ARM struct {
// AutoGrow: Flag to enable / disable Storage Auto grow for flexible server.
AutoGrow *Storage_AutoGrow_STATUS `json:"autoGrow,omitempty"`
// Iops: Storage tier IOPS quantity. This property is required to be set for storage Type PremiumV2_LRS
Iops *int `json:"iops,omitempty"`
// StorageSizeGB: Max storage allowed for a server.
StorageSizeGB *int `json:"storageSizeGB,omitempty"`
// Throughput: Storage throughput for the server. This is required to be set for storage Type PremiumV2_LRS
Throughput *int `json:"throughput,omitempty"`
// Tier: Name of storage tier for IOPS.
Tier *Storage_Tier_STATUS `json:"tier,omitempty"`
// Type: Storage type for the server. Allowed values are Premium_LRS and PremiumV2_LRS, and default is Premium_LRS if not
// specified
Type *Storage_Type_STATUS `json:"type,omitempty"`
}
type SystemData_CreatedByType_STATUS string
const (
SystemData_CreatedByType_STATUS_Application = SystemData_CreatedByType_STATUS("Application")
SystemData_CreatedByType_STATUS_Key = SystemData_CreatedByType_STATUS("Key")
SystemData_CreatedByType_STATUS_ManagedIdentity = SystemData_CreatedByType_STATUS("ManagedIdentity")
SystemData_CreatedByType_STATUS_User = SystemData_CreatedByType_STATUS("User")
)
// Mapping from string to SystemData_CreatedByType_STATUS
var systemData_CreatedByType_STATUS_Values = map[string]SystemData_CreatedByType_STATUS{
"application": SystemData_CreatedByType_STATUS_Application,
"key": SystemData_CreatedByType_STATUS_Key,
"managedidentity": SystemData_CreatedByType_STATUS_ManagedIdentity,
"user": SystemData_CreatedByType_STATUS_User,
}
type SystemData_LastModifiedByType_STATUS string
const (
SystemData_LastModifiedByType_STATUS_Application = SystemData_LastModifiedByType_STATUS("Application")
SystemData_LastModifiedByType_STATUS_Key = SystemData_LastModifiedByType_STATUS("Key")
SystemData_LastModifiedByType_STATUS_ManagedIdentity = SystemData_LastModifiedByType_STATUS("ManagedIdentity")
SystemData_LastModifiedByType_STATUS_User = SystemData_LastModifiedByType_STATUS("User")
)
// Mapping from string to SystemData_LastModifiedByType_STATUS
var systemData_LastModifiedByType_STATUS_Values = map[string]SystemData_LastModifiedByType_STATUS{
"application": SystemData_LastModifiedByType_STATUS_Application,
"key": SystemData_LastModifiedByType_STATUS_Key,
"managedidentity": SystemData_LastModifiedByType_STATUS_ManagedIdentity,
"user": SystemData_LastModifiedByType_STATUS_User,
}
type UserAssignedIdentity_Type_STATUS string
const (
UserAssignedIdentity_Type_STATUS_None = UserAssignedIdentity_Type_STATUS("None")
UserAssignedIdentity_Type_STATUS_UserAssigned = UserAssignedIdentity_Type_STATUS("UserAssigned")
)
// Mapping from string to UserAssignedIdentity_Type_STATUS
var userAssignedIdentity_Type_STATUS_Values = map[string]UserAssignedIdentity_Type_STATUS{
"none": UserAssignedIdentity_Type_STATUS_None,
"userassigned": UserAssignedIdentity_Type_STATUS_UserAssigned,
}
// Describes a single user-assigned identity associated with the application.
type UserIdentity_STATUS_ARM struct {
// ClientId: the client identifier of the Service Principal which this identity represents.
ClientId *string `json:"clientId,omitempty"`
// PrincipalId: the object identifier of the Service Principal which this identity represents.
PrincipalId *string `json:"principalId,omitempty"`
}