Class: Google::Apis::WorkloadmanagerV1::SapDiscoveryResourceInstanceProperties

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

A set of properties only present for an instance type resource

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SapDiscoveryResourceInstanceProperties

Returns a new instance of SapDiscoveryResourceInstanceProperties.



1207
1208
1209
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1207

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#cluster_instancesArray<String>

Optional. A list of instance URIs that are part of a cluster with this one. Corresponds to the JSON property clusterInstances

Returns:

  • (Array<String>)


1200
1201
1202
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1200

def cluster_instances
  @cluster_instances
end

#virtual_hostnameString

Optional. A virtual hostname of the instance if it has one. Corresponds to the JSON property virtualHostname

Returns:

  • (String)


1205
1206
1207
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1205

def virtual_hostname
  @virtual_hostname
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1212
1213
1214
1215
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1212

def update!(**args)
  @cluster_instances = args[:cluster_instances] if args.key?(:cluster_instances)
  @virtual_hostname = args[:virtual_hostname] if args.key?(:virtual_hostname)
end