-
Notifications
You must be signed in to change notification settings - Fork 188
/
server_status_arm_types_gen.go
151 lines (111 loc) · 6.26 KB
/
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
// Code generated by azure-service-operator-codegen. DO NOT EDIT.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
package v1beta20180601
// Represents a server.
type Server_STATUS_ARM struct {
// Id: Fully qualified resource ID for the resource. Ex -
// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
Id *string `json:"id,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"`
// 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"`
// EarliestRestoreDate: Earliest restore point creation time (ISO8601 format)
EarliestRestoreDate *string `json:"earliestRestoreDate,omitempty"`
// FullyQualifiedDomainName: The fully qualified domain name of a server.
FullyQualifiedDomainName *string `json:"fullyQualifiedDomainName,omitempty"`
// MasterServerId: The master server id of a replica server.
MasterServerId *string `json:"masterServerId,omitempty"`
// MinimalTlsVersion: Enforce a minimal Tls version for the server.
MinimalTlsVersion *MinimalTlsVersion_STATUS `json:"minimalTlsVersion,omitempty"`
// PrivateEndpointConnections: List of private endpoint connections on a server
PrivateEndpointConnections []ServerPrivateEndpointConnection_STATUS_ARM `json:"privateEndpointConnections,omitempty"`
// PublicNetworkAccess: Whether or not public network access is allowed for this server. Value is optional but if passed
// in, must be 'Enabled' or 'Disabled'
PublicNetworkAccess *PublicNetworkAccess_STATUS `json:"publicNetworkAccess,omitempty"`
// ReplicaCapacity: The maximum number of replicas that a master server can have.
ReplicaCapacity *int `json:"replicaCapacity,omitempty"`
// ReplicationRole: The replication role of the server.
ReplicationRole *string `json:"replicationRole,omitempty"`
// SslEnforcement: Enable ssl enforcement or not when connect to server.
SslEnforcement *SslEnforcement_STATUS `json:"sslEnforcement,omitempty"`
// StorageProfile: Storage profile of a server.
StorageProfile *StorageProfile_STATUS_ARM `json:"storageProfile,omitempty"`
// UserVisibleState: A state of a server that is visible to user.
UserVisibleState *ServerProperties_UserVisibleState_STATUS `json:"userVisibleState,omitempty"`
// Version: Server version.
Version *ServerVersion_STATUS `json:"version,omitempty"`
}
// Billing information related properties of a server.
type Sku_STATUS_ARM struct {
// Capacity: The scale up/out capacity, representing server's compute units.
Capacity *int `json:"capacity,omitempty"`
// Family: The family of hardware.
Family *string `json:"family,omitempty"`
// Name: The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8.
Name *string `json:"name,omitempty"`
// Size: The size code, to be interpreted by resource as appropriate.
Size *string `json:"size,omitempty"`
// Tier: The tier of the particular SKU, e.g. Basic.
Tier *Sku_Tier_STATUS `json:"tier,omitempty"`
}
// A private endpoint connection under a server
type ServerPrivateEndpointConnection_STATUS_ARM struct {
// Id: Resource Id of the private endpoint connection.
Id *string `json:"id,omitempty"`
// Properties: Private endpoint connection properties
Properties *ServerPrivateEndpointConnectionProperties_STATUS_ARM `json:"properties,omitempty"`
}
type Sku_Tier_STATUS string
const (
Sku_Tier_STATUS_Basic = Sku_Tier_STATUS("Basic")
Sku_Tier_STATUS_GeneralPurpose = Sku_Tier_STATUS("GeneralPurpose")
Sku_Tier_STATUS_MemoryOptimized = Sku_Tier_STATUS("MemoryOptimized")
)
// Storage Profile properties of a server
type StorageProfile_STATUS_ARM struct {
// BackupRetentionDays: Backup retention days for the server.
BackupRetentionDays *int `json:"backupRetentionDays,omitempty"`
// GeoRedundantBackup: Enable Geo-redundant or not for server backup.
GeoRedundantBackup *StorageProfile_GeoRedundantBackup_STATUS `json:"geoRedundantBackup,omitempty"`
// StorageAutogrow: Enable Storage Auto Grow.
StorageAutogrow *StorageProfile_StorageAutogrow_STATUS `json:"storageAutogrow,omitempty"`
// StorageMB: Max storage allowed for a server.
StorageMB *int `json:"storageMB,omitempty"`
}
// Properties of a private endpoint connection.
type ServerPrivateEndpointConnectionProperties_STATUS_ARM struct {
// PrivateEndpoint: Private endpoint which the connection belongs to.
PrivateEndpoint *PrivateEndpointProperty_STATUS_ARM `json:"privateEndpoint,omitempty"`
// PrivateLinkServiceConnectionState: Connection state of the private endpoint connection.
PrivateLinkServiceConnectionState *ServerPrivateLinkServiceConnectionStateProperty_STATUS_ARM `json:"privateLinkServiceConnectionState,omitempty"`
// ProvisioningState: State of the private endpoint connection.
ProvisioningState *ServerPrivateEndpointConnectionProperties_ProvisioningState_STATUS `json:"provisioningState,omitempty"`
}
type PrivateEndpointProperty_STATUS_ARM struct {
// Id: Resource id of the private endpoint.
Id *string `json:"id,omitempty"`
}
type ServerPrivateLinkServiceConnectionStateProperty_STATUS_ARM struct {
// ActionsRequired: The actions required for private link service connection.
ActionsRequired *ServerPrivateLinkServiceConnectionStateProperty_ActionsRequired_STATUS `json:"actionsRequired,omitempty"`
// Description: The private link service connection description.
Description *string `json:"description,omitempty"`
// Status: The private link service connection status.
Status *ServerPrivateLinkServiceConnectionStateProperty_Status_STATUS `json:"status,omitempty"`
}