Class: Google::Apis::WorkloadmanagerV1::SapDiscoveryResourceInstanceProperties
- Inherits:
-
Object
- Object
- Google::Apis::WorkloadmanagerV1::SapDiscoveryResourceInstanceProperties
- 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
-
#app_instances ⇒ Array<Google::Apis::WorkloadmanagerV1::SapDiscoveryResourceInstancePropertiesAppInstance>
Optional.
-
#cluster_instances ⇒ Array<String>
Optional.
-
#instance_number ⇒ Fixnum
Optional.
-
#instance_role ⇒ String
Optional.
-
#virtual_hostname ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SapDiscoveryResourceInstanceProperties
constructor
A new instance of SapDiscoveryResourceInstanceProperties.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SapDiscoveryResourceInstanceProperties
Returns a new instance of SapDiscoveryResourceInstanceProperties.
1593 1594 1595 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1593 def initialize(**args) update!(**args) end |
Instance Attribute Details
#app_instances ⇒ Array<Google::Apis::WorkloadmanagerV1::SapDiscoveryResourceInstancePropertiesAppInstance>
Optional. App server instances on the host
Corresponds to the JSON property appInstances
1571 1572 1573 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1571 def app_instances @app_instances end |
#cluster_instances ⇒ Array<String>
Optional. A list of instance URIs that are part of a cluster with this one.
Corresponds to the JSON property clusterInstances
1576 1577 1578 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1576 def cluster_instances @cluster_instances end |
#instance_number ⇒ Fixnum
Optional. The VM's instance number.
Corresponds to the JSON property instanceNumber
1581 1582 1583 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1581 def instance_number @instance_number end |
#instance_role ⇒ String
Optional. Bitmask of instance role, a resource may have multiple roles at once.
Corresponds to the JSON property instanceRole
1586 1587 1588 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1586 def instance_role @instance_role end |
#virtual_hostname ⇒ String
Optional. A virtual hostname of the instance if it has one.
Corresponds to the JSON property virtualHostname
1591 1592 1593 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1591 def virtual_hostname @virtual_hostname end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1598 1599 1600 1601 1602 1603 1604 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1598 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 |