Class: Azure::ARM::SQL::Models::FailoverGroup

Inherits:
ProxyResource
  • Object
show all
Includes:
MsRest::JSONable, MsRestAzure
Defined in:
lib/generated/azure_mgmt_sql/models/failover_group.rb

Overview

A failover group.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#databasesArray<String>

Returns List of databases in the failover group.

Returns:

  • (Array<String>)

    List of databases in the failover group.



43
44
45
# File 'lib/generated/azure_mgmt_sql/models/failover_group.rb', line 43

def databases
  @databases
end

#locationString

Returns Resource location.

Returns:

  • (String)

    Resource location.



17
18
19
# File 'lib/generated/azure_mgmt_sql/models/failover_group.rb', line 17

def location
  @location
end

#partner_serversArray<PartnerInfo>

failover group.

Returns:

  • (Array<PartnerInfo>)

    List of partner server information for the



40
41
42
# File 'lib/generated/azure_mgmt_sql/models/failover_group.rb', line 40

def partner_servers
  @partner_servers
end

#read_only_endpointFailoverGroupReadOnlyEndpoint

failover group instance.

Returns:



28
29
30
# File 'lib/generated/azure_mgmt_sql/models/failover_group.rb', line 28

def read_only_endpoint
  @read_only_endpoint
end

#read_write_endpointFailoverGroupReadWriteEndpoint

failover group instance.

Returns:



24
25
26
# File 'lib/generated/azure_mgmt_sql/models/failover_group.rb', line 24

def read_write_endpoint
  @read_write_endpoint
end

#replication_roleFailoverGroupReplicationRole

failover group instance. Possible values include: ‘Primary’, ‘Secondary’

Returns:



33
34
35
# File 'lib/generated/azure_mgmt_sql/models/failover_group.rb', line 33

def replication_role
  @replication_role
end

#replication_stateString

Returns Replication state of the failover group instance.

Returns:

  • (String)

    Replication state of the failover group instance.



36
37
38
# File 'lib/generated/azure_mgmt_sql/models/failover_group.rb', line 36

def replication_state
  @replication_state
end

#tagsHash{String => String}

Returns Resource tags.

Returns:

  • (Hash{String => String})

    Resource tags.



20
21
22
# File 'lib/generated/azure_mgmt_sql/models/failover_group.rb', line 20

def tags
  @tags
end

Class Method Details

.mapperObject

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



50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
# File 'lib/generated/azure_mgmt_sql/models/failover_group.rb', line 50

def self.mapper()
  {
    required: false,
    serialized_name: 'FailoverGroup',
    type: {
      name: 'Composite',
      class_name: 'FailoverGroup',
      model_properties: {
        id: {
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        name: {
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        type: {
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        location: {
          required: false,
          read_only: true,
          serialized_name: 'location',
          type: {
            name: 'String'
          }
        },
        tags: {
          required: false,
          serialized_name: 'tags',
          type: {
            name: 'Dictionary',
            value: {
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        read_write_endpoint: {
          required: false,
          serialized_name: 'properties.readWriteEndpoint',
          type: {
            name: 'Composite',
            class_name: 'FailoverGroupReadWriteEndpoint'
          }
        },
        read_only_endpoint: {
          required: false,
          serialized_name: 'properties.readOnlyEndpoint',
          type: {
            name: 'Composite',
            class_name: 'FailoverGroupReadOnlyEndpoint'
          }
        },
        replication_role: {
          required: false,
          read_only: true,
          serialized_name: 'properties.replicationRole',
          type: {
            name: 'String'
          }
        },
        replication_state: {
          required: false,
          read_only: true,
          serialized_name: 'properties.replicationState',
          type: {
            name: 'String'
          }
        },
        partner_servers: {
          required: false,
          serialized_name: 'properties.partnerServers',
          type: {
            name: 'Sequence',
            element: {
                required: false,
                serialized_name: 'PartnerInfoElementType',
                type: {
                  name: 'Composite',
                  class_name: 'PartnerInfo'
                }
            }
          }
        },
        databases: {
          required: false,
          serialized_name: 'properties.databases',
          type: {
            name: 'Sequence',
            element: {
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        }
      }
    }
  }
end