Class: Google::Apis::WorkloadmanagerV1::AvailabilityGroup
- Inherits:
-
Object
- Object
- Google::Apis::WorkloadmanagerV1::AvailabilityGroup
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/workloadmanager_v1/classes.rb,
lib/google/apis/workloadmanager_v1/representations.rb,
lib/google/apis/workloadmanager_v1/representations.rb
Overview
The availability groups for sqlserver
Instance Attribute Summary collapse
-
#databases ⇒ Array<String>
Output only.
-
#name ⇒ String
Output only.
-
#primary_server ⇒ String
Output only.
-
#secondary_servers ⇒ Array<String>
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AvailabilityGroup
constructor
A new instance of AvailabilityGroup.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AvailabilityGroup
Returns a new instance of AvailabilityGroup.
80 81 82 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 80 def initialize(**args) update!(**args) end |
Instance Attribute Details
#databases ⇒ Array<String>
Output only. The databases
Corresponds to the JSON property databases
63 64 65 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 63 def databases @databases end |
#name ⇒ String
Output only. The availability group name
Corresponds to the JSON property name
68 69 70 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 68 def name @name end |
#primary_server ⇒ String
Output only. The primary server
Corresponds to the JSON property primaryServer
73 74 75 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 73 def primary_server @primary_server end |
#secondary_servers ⇒ Array<String>
Output only. The secondary servers
Corresponds to the JSON property secondaryServers
78 79 80 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 78 def secondary_servers @secondary_servers end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
85 86 87 88 89 90 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 85 def update!(**args) @databases = args[:databases] if args.key?(:databases) @name = args[:name] if args.key?(:name) @primary_server = args[:primary_server] if args.key?(:primary_server) @secondary_servers = args[:secondary_servers] if args.key?(:secondary_servers) end |