Class: Google::Apis::ApphubV1::WorkloadProperties
- Inherits:
-
Object
- Object
- Google::Apis::ApphubV1::WorkloadProperties
- 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
Properties of an underlying compute resource represented by the Workload.
Instance Attribute Summary collapse
-
#gcp_project ⇒ String
Output only.
-
#location ⇒ String
Output only.
-
#zone ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ WorkloadProperties
constructor
A new instance of WorkloadProperties.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ WorkloadProperties
Returns a new instance of WorkloadProperties.
1552 1553 1554 |
# File 'lib/google/apis/apphub_v1/classes.rb', line 1552 def initialize(**args) update!(**args) end |
Instance Attribute Details
#gcp_project ⇒ String
Output only. The service project identifier that the underlying cloud resource
resides in. Empty for non cloud resources.
Corresponds to the JSON property gcpProject
1538 1539 1540 |
# File 'lib/google/apis/apphub_v1/classes.rb', line 1538 def gcp_project @gcp_project end |
#location ⇒ String
Output only. The location that the underlying compute resource resides in (e.g
us-west1).
Corresponds to the JSON property location
1544 1545 1546 |
# File 'lib/google/apis/apphub_v1/classes.rb', line 1544 def location @location end |
#zone ⇒ String
Output only. The location that the underlying compute resource resides in if
it is zonal (e.g us-west1-a).
Corresponds to the JSON property zone
1550 1551 1552 |
# File 'lib/google/apis/apphub_v1/classes.rb', line 1550 def zone @zone end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1557 1558 1559 1560 1561 |
# File 'lib/google/apis/apphub_v1/classes.rb', line 1557 def update!(**args) @gcp_project = args[:gcp_project] if args.key?(:gcp_project) @location = args[:location] if args.key?(:location) @zone = args[:zone] if args.key?(:zone) end |