Class: Azure::SQL::Mgmt::V2015_05_01_preview::Models::PartnerInfo

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2015-05-01-preview/generated/azure_mgmt_sql/models/partner_info.rb

Overview

Partner server information for the failover group.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#idString

Returns Resource identifier of the partner server.

Returns:

  • (String)

    Resource identifier of the partner server.



16
17
18
# File 'lib/2015-05-01-preview/generated/azure_mgmt_sql/models/partner_info.rb', line 16

def id
  @id
end

#locationString

Returns Geo location of the partner server.

Returns:

  • (String)

    Geo location of the partner server.



19
20
21
# File 'lib/2015-05-01-preview/generated/azure_mgmt_sql/models/partner_info.rb', line 19

def location
  @location
end

#replication_roleFailoverGroupReplicationRole

server. Possible values include: ‘Primary’, ‘Secondary’

Returns:



23
24
25
# File 'lib/2015-05-01-preview/generated/azure_mgmt_sql/models/partner_info.rb', line 23

def replication_role
  @replication_role
end

Class Method Details

.mapperObject

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



30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# 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