Class: Google::Apis::DeveloperconnectV1::AppHubWorkload
- Inherits:
-
Object
- Object
- Google::Apis::DeveloperconnectV1::AppHubWorkload
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/developerconnect_v1/classes.rb,
lib/google/apis/developerconnect_v1/representations.rb,
lib/google/apis/developerconnect_v1/representations.rb
Overview
AppHubWorkload represents the App Hub Workload.
Instance Attribute Summary collapse
-
#criticality ⇒ String
Output only.
-
#environment ⇒ String
Output only.
-
#workload ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AppHubWorkload
constructor
A new instance of AppHubWorkload.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AppHubWorkload
Returns a new instance of AppHubWorkload.
164 165 166 |
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 164 def initialize(**args) update!(**args) end |
Instance Attribute Details
#criticality ⇒ String
Output only. The criticality of the App Hub Workload.
Corresponds to the JSON property criticality
150 151 152 |
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 150 def criticality @criticality end |
#environment ⇒ String
Output only. The environment of the App Hub Workload.
Corresponds to the JSON property environment
155 156 157 |
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 155 def environment @environment end |
#workload ⇒ String
Required. Output only. Immutable. The name of the App Hub Workload. Format:
projects/project/locations/location/applications/application/workloads/
workload`.
Corresponds to the JSON propertyworkload`
162 163 164 |
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 162 def workload @workload end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
169 170 171 172 173 |
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 169 def update!(**args) @criticality = args[:criticality] if args.key?(:criticality) @environment = args[:environment] if args.key?(:environment) @workload = args[:workload] if args.key?(:workload) end |