Class: Azure::ARM::SQL::Models::FailoverGroup
- Inherits:
-
ProxyResource
- Object
- MsRestAzure::Resource
- ProxyResource
- Azure::ARM::SQL::Models::FailoverGroup
- Includes:
- MsRest::JSONable, MsRestAzure
- Defined in:
- lib/generated/azure_mgmt_sql/models/failover_group.rb
Overview
A failover group.
Instance Attribute Summary collapse
-
#databases ⇒ Array<String>
List of databases in the failover group.
-
#location ⇒ String
Resource location.
-
#partner_servers ⇒ Array<PartnerInfo>
failover group.
-
#read_only_endpoint ⇒ FailoverGroupReadOnlyEndpoint
failover group instance.
-
#read_write_endpoint ⇒ FailoverGroupReadWriteEndpoint
failover group instance.
-
#replication_role ⇒ FailoverGroupReplicationRole
failover group instance.
-
#replication_state ⇒ String
Replication state of the failover group instance.
-
#tags ⇒ Hash{String => String}
Resource tags.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for FailoverGroup class as Ruby Hash.
Instance Attribute Details
#databases ⇒ Array<String>
Returns 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 |
#location ⇒ String
Returns Resource location.
17 18 19 |
# File 'lib/generated/azure_mgmt_sql/models/failover_group.rb', line 17 def location @location end |
#partner_servers ⇒ Array<PartnerInfo>
failover group.
40 41 42 |
# File 'lib/generated/azure_mgmt_sql/models/failover_group.rb', line 40 def partner_servers @partner_servers end |
#read_only_endpoint ⇒ FailoverGroupReadOnlyEndpoint
failover group instance.
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_endpoint ⇒ FailoverGroupReadWriteEndpoint
failover group instance.
24 25 26 |
# File 'lib/generated/azure_mgmt_sql/models/failover_group.rb', line 24 def read_write_endpoint @read_write_endpoint end |
#replication_role ⇒ FailoverGroupReplicationRole
failover group instance. Possible values include: ‘Primary’, ‘Secondary’
33 34 35 |
# File 'lib/generated/azure_mgmt_sql/models/failover_group.rb', line 33 def replication_role @replication_role end |
#replication_state ⇒ String
Returns 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 |
#tags ⇒ Hash{String => String}
Returns Resource tags.
20 21 22 |
# File 'lib/generated/azure_mgmt_sql/models/failover_group.rb', line 20 def @tags end |
Class Method Details
.mapper ⇒ Object
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 |