Class: Azure::SQL::Mgmt::V2015_05_01_preview::Models::FailoverGroup
- Inherits:
-
ProxyResource
- Object
- Resource
- ProxyResource
- Azure::SQL::Mgmt::V2015_05_01_preview::Models::FailoverGroup
- Includes:
- MsRestAzure
- Defined in:
- lib/2015-05-01-preview/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.
Attributes inherited from Resource
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for FailoverGroup class as Ruby Hash.
Methods inherited from Resource
Instance Attribute Details
#databases ⇒ Array<String>
Returns List of databases in the failover group.
42 43 44 |
# File 'lib/2015-05-01-preview/generated/azure_mgmt_sql/models/failover_group.rb', line 42 def databases @databases end |
#location ⇒ String
Returns Resource location.
16 17 18 |
# File 'lib/2015-05-01-preview/generated/azure_mgmt_sql/models/failover_group.rb', line 16 def location @location end |
#partner_servers ⇒ Array<PartnerInfo>
failover group.
39 40 41 |
# File 'lib/2015-05-01-preview/generated/azure_mgmt_sql/models/failover_group.rb', line 39 def partner_servers @partner_servers end |
#read_only_endpoint ⇒ FailoverGroupReadOnlyEndpoint
failover group instance.
27 28 29 |
# File 'lib/2015-05-01-preview/generated/azure_mgmt_sql/models/failover_group.rb', line 27 def read_only_endpoint @read_only_endpoint end |
#read_write_endpoint ⇒ FailoverGroupReadWriteEndpoint
failover group instance.
23 24 25 |
# File 'lib/2015-05-01-preview/generated/azure_mgmt_sql/models/failover_group.rb', line 23 def read_write_endpoint @read_write_endpoint end |
#replication_role ⇒ FailoverGroupReplicationRole
failover group instance. Possible values include: ‘Primary’, ‘Secondary’
32 33 34 |
# File 'lib/2015-05-01-preview/generated/azure_mgmt_sql/models/failover_group.rb', line 32 def replication_role @replication_role end |
#replication_state ⇒ String
Returns Replication state of the failover group instance.
35 36 37 |
# File 'lib/2015-05-01-preview/generated/azure_mgmt_sql/models/failover_group.rb', line 35 def replication_state @replication_state end |
#tags ⇒ Hash{String => String}
Returns Resource tags.
19 20 21 |
# File 'lib/2015-05-01-preview/generated/azure_mgmt_sql/models/failover_group.rb', line 19 def @tags end |
Class Method Details
.mapper ⇒ Object
Mapper for FailoverGroup class as Ruby Hash. This will be used for serialization/deserialization.
49 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 169 170 171 172 173 174 175 176 177 178 179 180 181 182 |
# 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 |