Class: Google::Apis::ApphubV1alpha::WorkloadReference
- Inherits:
-
Object
- Object
- Google::Apis::ApphubV1alpha::WorkloadReference
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/apphub_v1alpha/classes.rb,
lib/google/apis/apphub_v1alpha/representations.rb,
lib/google/apis/apphub_v1alpha/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.
2118 2119 2120 |
# File 'lib/google/apis/apphub_v1alpha/classes.rb', line 2118 def initialize(**args) update!(**args) end |
Instance Attribute Details
#uri ⇒ String
Output only. The underlying compute resource uri.
Corresponds to the JSON property uri
2116 2117 2118 |
# File 'lib/google/apis/apphub_v1alpha/classes.rb', line 2116 def uri @uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2123 2124 2125 |
# File 'lib/google/apis/apphub_v1alpha/classes.rb', line 2123 def update!(**args) @uri = args[:uri] if args.key?(:uri) end |