Class: Azure::ARM::SQL::Models::FailoverGroupUpdate

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

Overview

A failover group update request.

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.



25
26
27
# File 'lib/generated/azure_mgmt_sql/models/failover_group_update.rb', line 25

def databases
  @databases
end

#read_only_endpointFailoverGroupReadOnlyEndpoint

failover group instance.

Returns:



22
23
24
# File 'lib/generated/azure_mgmt_sql/models/failover_group_update.rb', line 22

def read_only_endpoint
  @read_only_endpoint
end

#read_write_endpointFailoverGroupReadWriteEndpoint

failover group instance.

Returns:



18
19
20
# File 'lib/generated/azure_mgmt_sql/models/failover_group_update.rb', line 18

def read_write_endpoint
  @read_write_endpoint
end

#tagsHash{String => String}

Returns Resource tags.

Returns:

  • (Hash{String => String})

    Resource tags.



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

def tags
  @tags
end

Class Method Details

.mapperObject

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



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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# File 'lib/generated/azure_mgmt_sql/models/failover_group_update.rb', line 35

def self.mapper()
  {
    required: false,
    serialized_name: 'FailoverGroupUpdate',
    type: {
      name: 'Composite',
      class_name: 'FailoverGroupUpdate',
      model_properties: {
        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'
          }
        },
        databases: {
          required: false,
          serialized_name: 'properties.databases',
          type: {
            name: 'Sequence',
            element: {
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        tags: {
          required: false,
          serialized_name: 'tags',
          type: {
            name: 'Dictionary',
            value: {
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        }
      }
    }
  }
end