Class: Azure::Compute::Mgmt::V2019_03_01::Models::TargetRegion

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-03-01/generated/azure_mgmt_compute/models/target_region.rb

Overview

Describes the target region information.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#nameString

Returns The name of the region.

Returns:

  • (String)

    The name of the region.



16
17
18
# File 'lib/2019-03-01/generated/azure_mgmt_compute/models/target_region.rb', line 16

def name
  @name
end

#regional_replica_countInteger

created per region. This property is updatable.

Returns:

  • (Integer)

    The number of replicas of the Image Version to be



20
21
22
# File 'lib/2019-03-01/generated/azure_mgmt_compute/models/target_region.rb', line 20

def regional_replica_count
  @regional_replica_count
end

#storage_account_typeStorageAccountType

used to store the image. This property is not updatable. Possible values include: 'Standard_LRS', 'Standard_ZRS'

Returns:



25
26
27
# File 'lib/2019-03-01/generated/azure_mgmt_compute/models/target_region.rb', line 25

def 
  @storage_account_type
end

Class Method Details

.mapperObject

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



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
# File 'lib/2019-03-01/generated/azure_mgmt_compute/models/target_region.rb', line 32

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'TargetRegion',
    type: {
      name: 'Composite',
      class_name: 'TargetRegion',
      model_properties: {
        name: {
          client_side_validation: true,
          required: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        regional_replica_count: {
          client_side_validation: true,
          required: false,
          serialized_name: 'regionalReplicaCount',
          type: {
            name: 'Number'
          }
        },
        storage_account_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'storageAccountType',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end