class Azure::SQL::Mgmt::V2015_05_01_preview::Models::FailoverGroup

A failover group.

Attributes

databases[RW]

@return [Array<String>] List of databases in the failover group.

location[RW]

@return [String] Resource location.

partner_servers[RW]

@return [Array<PartnerInfo>] List of partner server information for the failover group.

read_only_endpoint[RW]

@return [FailoverGroupReadOnlyEndpoint] Read-only endpoint of the failover group instance.

read_write_endpoint[RW]

@return [FailoverGroupReadWriteEndpoint] Read-write endpoint of the failover group instance.

replication_role[RW]

@return [FailoverGroupReplicationRole] Local replication role of the failover group instance. Possible values include: 'Primary', 'Secondary'

replication_state[RW]

@return [String] Replication state of the failover group instance.

tags[RW]

@return [Hash{String => String}] Resource tags.

Private Class Methods

mapper() click to toggle source

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

# File lib/2015-05-01-preview/generated/azure_mgmt_sql/models/failover_group.rb, line 49
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'FailoverGroup',
    type: {
      name: 'Composite',
      class_name: 'FailoverGroup',
      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: false,
          read_only: 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'
                }
            }
          }
        },
        read_write_endpoint: {
          client_side_validation: true,
          required: true,
          serialized_name: 'properties.readWriteEndpoint',
          type: {
            name: 'Composite',
            class_name: 'FailoverGroupReadWriteEndpoint'
          }
        },
        read_only_endpoint: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.readOnlyEndpoint',
          type: {
            name: 'Composite',
            class_name: 'FailoverGroupReadOnlyEndpoint'
          }
        },
        replication_role: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.replicationRole',
          type: {
            name: 'String'
          }
        },
        replication_state: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.replicationState',
          type: {
            name: 'String'
          }
        },
        partner_servers: {
          client_side_validation: true,
          required: true,
          serialized_name: 'properties.partnerServers',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'PartnerInfoElementType',
                type: {
                  name: 'Composite',
                  class_name: 'PartnerInfo'
                }
            }
          }
        },
        databases: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.databases',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        }
      }
    }
  }
end