Class: Azure::Cosmosdb::Mgmt::V2019_08_01::Models::Location
- Inherits:
-
Object
- Object
- Azure::Cosmosdb::Mgmt::V2019_08_01::Models::Location
- Includes:
- MsRestAzure
- Defined in:
- lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/location.rb
Overview
A region in which the Azure Cosmos DB database account is deployed.
Instance Attribute Summary collapse
- #document_endpoint ⇒ String
-
#failover_priority ⇒ Integer
priority of 0 indicates a write region.
-
#id ⇒ String
database account.
-
#is_zone_redundant ⇒ Boolean
AvailabilityZone region.
-
#location_name ⇒ String
The name of the region.
- #provisioning_state ⇒ String
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for Location class as Ruby Hash.
Instance Attribute Details
#document_endpoint ⇒ String
25 26 27 |
# File 'lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/location.rb', line 25 def document_endpoint @document_endpoint end |
#failover_priority ⇒ Integer
priority of 0 indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists.
35 36 37 |
# File 'lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/location.rb', line 35 def failover_priority @failover_priority end |
#id ⇒ String
database account. Example: <accountName>-<locationName>.
17 18 19 |
# File 'lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/location.rb', line 17 def id @id end |
#is_zone_redundant ⇒ Boolean
AvailabilityZone region
39 40 41 |
# File 'lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/location.rb', line 39 def is_zone_redundant @is_zone_redundant end |
#location_name ⇒ String
20 21 22 |
# File 'lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/location.rb', line 20 def location_name @location_name end |
#provisioning_state ⇒ String
28 29 30 |
# File 'lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/location.rb', line 28 def provisioning_state @provisioning_state end |
Class Method Details
.mapper ⇒ Object
Mapper for Location class as Ruby Hash. This will be used for serialization/deserialization.
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 |
# File 'lib/2019-08-01/generated/azure_mgmt_cosmosdb/models/location.rb', line 46 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'Location', type: { name: 'Composite', class_name: 'Location', model_properties: { id: { client_side_validation: true, required: false, read_only: true, serialized_name: 'id', type: { name: 'String' } }, location_name: { client_side_validation: true, required: false, serialized_name: 'locationName', type: { name: 'String' } }, document_endpoint: { client_side_validation: true, required: false, read_only: true, serialized_name: 'documentEndpoint', type: { name: 'String' } }, provisioning_state: { client_side_validation: true, required: false, serialized_name: 'provisioningState', type: { name: 'String' } }, failover_priority: { client_side_validation: true, required: false, serialized_name: 'failoverPriority', constraints: { InclusiveMinimum: 0 }, type: { name: 'Number' } }, is_zone_redundant: { client_side_validation: true, required: false, serialized_name: 'isZoneRedundant', type: { name: 'Boolean' } } } } } end |