Class: Google::Apis::ApphubV1::WorkloadReference
- Inherits:
-
Object
- Object
- Google::Apis::ApphubV1::WorkloadReference
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/apphub_v1/classes.rb,
lib/google/apis/apphub_v1/representations.rb,
lib/google/apis/apphub_v1/representations.rb
Overview
Reference of an underlying compute resource represented by the Workload.
Instance Attribute Summary collapse
-
#uri ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ WorkloadReference
constructor
A new instance of WorkloadReference.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ WorkloadReference
Returns a new instance of WorkloadReference.
2025 2026 2027 |
# File 'lib/google/apis/apphub_v1/classes.rb', line 2025 def initialize(**args) update!(**args) end |
Instance Attribute Details
#uri ⇒ String
Output only. The underlying compute resource uri.
Corresponds to the JSON property uri
2023 2024 2025 |
# File 'lib/google/apis/apphub_v1/classes.rb', line 2023 def uri @uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2030 2031 2032 |
# File 'lib/google/apis/apphub_v1/classes.rb', line 2030 def update!(**args) @uri = args[:uri] if args.key?(:uri) end |