Class: Google::Apis::WorkloadmanagerV1::SapDiscoveryResource
- Inherits:
-
Object
- Object
- Google::Apis::WorkloadmanagerV1::SapDiscoveryResource
- 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
Message describing a resource.
Instance Attribute Summary collapse
-
#instance_properties ⇒ Google::Apis::WorkloadmanagerV1::SapDiscoveryResourceInstanceProperties
A set of properties only present for an instance type resource Corresponds to the JSON property
instanceProperties
. -
#related_resources ⇒ Array<String>
Optional.
-
#resource_kind ⇒ String
Required.
-
#resource_type ⇒ String
Required.
-
#resource_uri ⇒ String
Required.
-
#update_time ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SapDiscoveryResource
constructor
A new instance of SapDiscoveryResource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SapDiscoveryResource
Returns a new instance of SapDiscoveryResource.
1743 1744 1745 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1743 def initialize(**args) update!(**args) end |
Instance Attribute Details
#instance_properties ⇒ Google::Apis::WorkloadmanagerV1::SapDiscoveryResourceInstanceProperties
A set of properties only present for an instance type resource
Corresponds to the JSON property instanceProperties
1715 1716 1717 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1715 def instance_properties @instance_properties end |
#related_resources ⇒ Array<String>
Optional. A list of resource URIs related to this resource.
Corresponds to the JSON property relatedResources
1720 1721 1722 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1720 def @related_resources end |
#resource_kind ⇒ String
Required. ComputeInstance, ComputeDisk, VPC, Bare Metal server, etc.
Corresponds to the JSON property resourceKind
1725 1726 1727 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1725 def resource_kind @resource_kind end |
#resource_type ⇒ String
Required. The type of this resource.
Corresponds to the JSON property resourceType
1730 1731 1732 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1730 def resource_type @resource_type end |
#resource_uri ⇒ String
Required. URI of the resource, includes project, location, and name.
Corresponds to the JSON property resourceUri
1735 1736 1737 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1735 def resource_uri @resource_uri end |
#update_time ⇒ String
Required. Unix timestamp of when this resource last had its discovery data
updated.
Corresponds to the JSON property updateTime
1741 1742 1743 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1741 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1748 1749 1750 1751 1752 1753 1754 1755 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1748 def update!(**args) @instance_properties = args[:instance_properties] if args.key?(:instance_properties) @related_resources = args[:related_resources] if args.key?(:related_resources) @resource_kind = args[:resource_kind] if args.key?(:resource_kind) @resource_type = args[:resource_type] if args.key?(:resource_type) @resource_uri = args[:resource_uri] if args.key?(:resource_uri) @update_time = args[:update_time] if args.key?(:update_time) end |