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.



1692
1693
1694
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1692

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

Instance Attribute Details

#app_instancesArray<Google::Apis::WorkloadmanagerV1::SapDiscoveryResourceInstancePropertiesAppInstance>

Optional. App server instances on the host Corresponds to the JSON property appInstances



1670
1671
1672
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1670

def app_instances
  @app_instances
end

#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>)


1675
1676
1677
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1675

def cluster_instances
  @cluster_instances
end

#instance_numberFixnum

Optional. The VM's instance number. Corresponds to the JSON property instanceNumber

Returns:

  • (Fixnum)


1680
1681
1682
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1680

def instance_number
  @instance_number
end

#instance_roleString

Optional. Bitmask of instance role, a resource may have multiple roles at once. Corresponds to the JSON property instanceRole

Returns:

  • (String)


1685
1686
1687
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1685

def instance_role
  @instance_role
end

#virtual_hostnameString

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

Returns:

  • (String)


1690
1691
1692
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1690

def virtual_hostname
  @virtual_hostname
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1697
1698
1699
1700
1701
1702
1703
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1697

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