Class: Azure::SQL::Mgmt::V2015_05_01_preview::Models::ManagedInstance

Inherits:
TrackedResource show all
Includes:
MsRestAzure
Defined in:
lib/2015-05-01-preview/generated/azure_mgmt_sql/models/managed_instance.rb

Overview

An Azure SQL managed instance.

Instance Attribute Summary collapse

Attributes inherited from TrackedResource

#location, #tags

Attributes inherited from Resource

#id, #name, #type

Class Method Summary collapse

Methods inherited from Resource

#resource_group

Instance Attribute Details

#administrator_loginString

only be specified when the managed instance is being created (and is required for creation).

Returns:

  • (String)

    Administrator username for the managed instance. Can



40
41
42
# File 'lib/2015-05-01-preview/generated/azure_mgmt_sql/models/managed_instance.rb', line 40

def 
  @administrator_login
end

#administrator_login_passwordString

instance creation).

Returns:

  • (String)

    The administrator login password (required for managed



44
45
46
# File 'lib/2015-05-01-preview/generated/azure_mgmt_sql/models/managed_instance.rb', line 44

def 
  @administrator_login_password
end

#collationString

Returns Collation of the managed instance.

Returns:

  • (String)

    Collation of the managed instance.



67
68
69
# File 'lib/2015-05-01-preview/generated/azure_mgmt_sql/models/managed_instance.rb', line 67

def collation
  @collation
end

#dns_zoneString

Returns The Dns Zone that the managed instance is in.

Returns:

  • (String)

    The Dns Zone that the managed instance is in.



70
71
72
# File 'lib/2015-05-01-preview/generated/azure_mgmt_sql/models/managed_instance.rb', line 70

def dns_zone
  @dns_zone
end

#dns_zone_partnerString

zone this managed instance will share after creation.

Returns:

  • (String)

    The resource id of another managed instance whose DNS



74
75
76
# File 'lib/2015-05-01-preview/generated/azure_mgmt_sql/models/managed_instance.rb', line 74

def dns_zone_partner
  @dns_zone_partner
end

#fully_qualified_domain_nameString

instance.

Returns:

  • (String)

    The fully qualified domain name of the managed



35
36
37
# File 'lib/2015-05-01-preview/generated/azure_mgmt_sql/models/managed_instance.rb', line 35

def fully_qualified_domain_name
  @fully_qualified_domain_name
end

#identityResourceIdentity

managed instance.

Returns:



17
18
19
# File 'lib/2015-05-01-preview/generated/azure_mgmt_sql/models/managed_instance.rb', line 17

def identity
  @identity
end

#instance_pool_idString

belongs to.

Returns:

  • (String)

    The Id of the instance pool this managed server



108
109
110
# File 'lib/2015-05-01-preview/generated/azure_mgmt_sql/models/managed_instance.rb', line 108

def instance_pool_id
  @instance_pool_id
end

#license_typeManagedInstanceLicenseType

are ‘LicenseIncluded’ (regular price inclusive of a new SQL license) and ‘BasePrice’ (discounted AHB price for bringing your own SQL licenses). Possible values include: ‘LicenseIncluded’, ‘BasePrice’

Returns:



56
57
58
# File 'lib/2015-05-01-preview/generated/azure_mgmt_sql/models/managed_instance.rb', line 56

def license_type
  @license_type
end

#managed_instance_create_modeManagedServerCreateMode

creation.

Default: Regular instance creation.

Restore: Creates an instance by restoring a set of backups to specific point in time. RestorePointInTime and SourceManagedInstanceId must be specified. Possible values include: ‘Default’, ‘PointInTimeRestore’

Returns:



31
32
33
# File 'lib/2015-05-01-preview/generated/azure_mgmt_sql/models/managed_instance.rb', line 31

def managed_instance_create_mode
  @managed_instance_create_mode
end

#proxy_overrideManagedInstanceProxyOverride

connecting to the instance. Possible values include: ‘Proxy’, ‘Redirect’, ‘Default’

Returns:



90
91
92
# File 'lib/2015-05-01-preview/generated/azure_mgmt_sql/models/managed_instance.rb', line 90

def proxy_override
  @proxy_override
end

#public_data_endpoint_enabledBoolean

Returns Whether or not the public data endpoint is enabled.

Returns:

  • (Boolean)

    Whether or not the public data endpoint is enabled.



77
78
79
# File 'lib/2015-05-01-preview/generated/azure_mgmt_sql/models/managed_instance.rb', line 77

def public_data_endpoint_enabled
  @public_data_endpoint_enabled
end

#restore_point_in_timeDateTime

source database that will be restored to create the new database.

Returns:

  • (DateTime)

    Specifies the point in time (ISO8601 format) of the



85
86
87
# File 'lib/2015-05-01-preview/generated/azure_mgmt_sql/models/managed_instance.rb', line 85

def restore_point_in_time
  @restore_point_in_time
end

#skuSku

GP_Gen4, GP_Gen5, BC_Gen4, BC_Gen5

Returns:

  • (Sku)

    Managed instance SKU. Allowed values for sku.name:



21
22
23
# File 'lib/2015-05-01-preview/generated/azure_mgmt_sql/models/managed_instance.rb', line 21

def sku
  @sku
end

#source_managed_instance_idString

associated with create operation of this instance.

Returns:

  • (String)

    The resource identifier of the source managed instance



81
82
83
# File 'lib/2015-05-01-preview/generated/azure_mgmt_sql/models/managed_instance.rb', line 81

def source_managed_instance_id
  @source_managed_instance_id
end

#stateString

Returns The state of the managed instance.

Returns:

  • (String)

    The state of the managed instance.



50
51
52
# File 'lib/2015-05-01-preview/generated/azure_mgmt_sql/models/managed_instance.rb', line 50

def state
  @state
end

#storage_size_in_gbInteger

  1. Increments of 32 GB allowed only.

Returns:

  • (Integer)

    Storage size in GB. Minimum value: 32. Maximum value:



64
65
66
# File 'lib/2015-05-01-preview/generated/azure_mgmt_sql/models/managed_instance.rb', line 64

def storage_size_in_gb
  @storage_size_in_gb
end

#subnet_idString

Returns Subnet resource ID for the managed instance.

Returns:

  • (String)

    Subnet resource ID for the managed instance.



47
48
49
# File 'lib/2015-05-01-preview/generated/azure_mgmt_sql/models/managed_instance.rb', line 47

def subnet_id
  @subnet_id
end

#timezone_idString

supported by Windows. Windows keeps details on supported timezones, including the id, in registry under KEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionTime Zones. You can get those registry values via SQL Server by querying SELECT name AS timezone_id FROM sys.time_zone_info. List of Ids can also be obtained by executing [System.TimeZoneInfo]::GetSystemTimeZones() in PowerShell. An example of valid timezone id is “Pacific Standard Time” or “W. Europe Standard Time”.

Returns:

  • (String)

    Id of the timezone. Allowed values are timezones



104
105
106
# File 'lib/2015-05-01-preview/generated/azure_mgmt_sql/models/managed_instance.rb', line 104

def timezone_id
  @timezone_id
end

#v_coresInteger

40, 64, 80.

Returns:

  • (Integer)

    The number of vCores. Allowed values: 8, 16, 24, 32,



60
61
62
# File 'lib/2015-05-01-preview/generated/azure_mgmt_sql/models/managed_instance.rb', line 60

def v_cores
  @v_cores
end

Class Method Details

.mapperObject

Mapper for ManagedInstance class as Ruby Hash. This will be used for serialization/deserialization.



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
# File 'lib/2015-05-01-preview/generated/azure_mgmt_sql/models/managed_instance.rb', line 115

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ManagedInstance',
    type: {
      name: 'Composite',
      class_name: 'ManagedInstance',
      model_properties: {
        id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        location: {
          client_side_validation: true,
          required: true,
          serialized_name: 'location',
          type: {
            name: 'String'
          }
        },
        tags: {
          client_side_validation: true,
          required: false,
          serialized_name: 'tags',
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        identity: {
          client_side_validation: true,
          required: false,
          serialized_name: 'identity',
          type: {
            name: 'Composite',
            class_name: 'ResourceIdentity'
          }
        },
        sku: {
          client_side_validation: true,
          required: false,
          serialized_name: 'sku',
          type: {
            name: 'Composite',
            class_name: 'Sku'
          }
        },
        managed_instance_create_mode: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.managedInstanceCreateMode',
          type: {
            name: 'String'
          }
        },
        fully_qualified_domain_name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.fullyQualifiedDomainName',
          type: {
            name: 'String'
          }
        },
        administrator_login: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.administratorLogin',
          type: {
            name: 'String'
          }
        },
        administrator_login_password: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.administratorLoginPassword',
          type: {
            name: 'String'
          }
        },
        subnet_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.subnetId',
          type: {
            name: 'String'
          }
        },
        state: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.state',
          type: {
            name: 'String'
          }
        },
        license_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.licenseType',
          type: {
            name: 'String'
          }
        },
        v_cores: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.vCores',
          type: {
            name: 'Number'
          }
        },
        storage_size_in_gb: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.storageSizeInGB',
          type: {
            name: 'Number'
          }
        },
        collation: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.collation',
          type: {
            name: 'String'
          }
        },
        dns_zone: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.dnsZone',
          type: {
            name: 'String'
          }
        },
        dns_zone_partner: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.dnsZonePartner',
          type: {
            name: 'String'
          }
        },
        public_data_endpoint_enabled: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.publicDataEndpointEnabled',
          type: {
            name: 'Boolean'
          }
        },
        source_managed_instance_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.sourceManagedInstanceId',
          type: {
            name: 'String'
          }
        },
        restore_point_in_time: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.restorePointInTime',
          type: {
            name: 'DateTime'
          }
        },
        proxy_override: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.proxyOverride',
          type: {
            name: 'String'
          }
        },
        timezone_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.timezoneId',
          type: {
            name: 'String'
          }
        },
        instance_pool_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.instancePoolId',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end