class Azure::SQL::Mgmt::V2015_05_01_preview::Models::PartnerInfo

Partner server information for the failover group.

Attributes

id[RW]

@return [String] Resource identifier of the partner server.

location[RW]

@return [String] Geo location of the partner server.

replication_role[RW]

@return [FailoverGroupReplicationRole] Replication role of the partner server. Possible values include: 'Primary', 'Secondary'

Private Class Methods

mapper() click to toggle source

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

# File lib/2015-05-01-preview/generated/azure_mgmt_sql/models/partner_info.rb, line 30
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'PartnerInfo',
    type: {
      name: 'Composite',
      class_name: 'PartnerInfo',
      model_properties: {
        id: {
          client_side_validation: true,
          required: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        location: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'location',
          type: {
            name: 'String'
          }
        },
        replication_role: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'replicationRole',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end