Sha256: 860d54c2d0f09fb8fb85d6d09b1081f6a650b603a82d5259a43fa29a6e7f2a9d

Contents?: true

Size: 1.52 KB

Versions: 5

Compression:

Stored size: 1.52 KB

Contents

# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::Cosmosdb::Mgmt::V2019_12_12
  module Models
    #
    # The list of new failover policies for the failover priority change.
    #
    class FailoverPolicies

      include MsRestAzure

      # @return [Array<FailoverPolicy>] List of failover policies.
      attr_accessor :failover_policies


      #
      # Mapper for FailoverPolicies class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'FailoverPolicies',
          type: {
            name: 'Composite',
            class_name: 'FailoverPolicies',
            model_properties: {
              failover_policies: {
                client_side_validation: true,
                required: true,
                serialized_name: 'failoverPolicies',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'FailoverPolicyElementType',
                      type: {
                        name: 'Composite',
                        class_name: 'FailoverPolicy'
                      }
                  }
                }
              }
            }
          }
        }
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
azure_mgmt_cosmosdb-0.24.1 lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/failover_policies.rb
azure_mgmt_cosmosdb-0.24.0 lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/failover_policies.rb
azure_mgmt_cosmosdb-0.23.1 lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/failover_policies.rb
azure_mgmt_cosmosdb-0.22.0 lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/failover_policies.rb
azure_mgmt_cosmosdb-0.21.2 lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/failover_policies.rb