class Azure::Cosmosdb::Mgmt::V2020_03_01::Models::FailoverPolicy
The failover policy for a given region of a database account.
Attributes
failover_priority[RW]
@return [Integer] The failover priority of the region. A failover 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.
id[RW]
@return [String] The unique identifier of the region in which the database account replicates to. Example: <accountName>-<locationName>.
location_name[RW]
@return [String] The name of the region in which the database account exists.
Public Class Methods
mapper()
click to toggle source
Mapper for FailoverPolicy
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/failover_policy.rb, line 36 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'FailoverPolicy', type: { name: 'Composite', class_name: 'FailoverPolicy', 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' } }, failover_priority: { client_side_validation: true, required: false, serialized_name: 'failoverPriority', constraints: { InclusiveMinimum: 0 }, type: { name: 'Number' } } } } } end