Class: Google::Apis::WorkloadmanagerV1::AvailabilityGroup

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#databasesArray<String>

Output only. The databases Corresponds to the JSON property databases

Returns:

  • (Array<String>)


63
64
65
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 63

def databases
  @databases
end

#nameString

Output only. The availability group name Corresponds to the JSON property name

Returns:

  • (String)


68
69
70
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 68

def name
  @name
end

#primary_serverString

Output only. The primary server Corresponds to the JSON property primaryServer

Returns:

  • (String)


73
74
75
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 73

def primary_server
  @primary_server
end

#secondary_serversArray<String>

Output only. The secondary servers Corresponds to the JSON property secondaryServers

Returns:

  • (Array<String>)


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