Class: Google::Apis::LoggingV2::AppHubWorkload
- Inherits:
-
Object
- Object
- Google::Apis::LoggingV2::AppHubWorkload
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/logging_v2/classes.rb,
lib/google/apis/logging_v2/representations.rb,
lib/google/apis/logging_v2/representations.rb
Overview
Metadata associated with an App Hub workload.
Instance Attribute Summary collapse
-
#criticality_type ⇒ String
Workload criticality type Example: "CRITICAL" Corresponds to the JSON property
criticalityType. -
#environment_type ⇒ String
Workload environment type Example: "DEV" Corresponds to the JSON property
environmentType. -
#id ⇒ String
Workload Id.
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.
144 145 146 |
# File 'lib/google/apis/logging_v2/classes.rb', line 144 def initialize(**args) update!(**args) end |
Instance Attribute Details
#criticality_type ⇒ String
Workload criticality type Example: "CRITICAL"
Corresponds to the JSON property criticalityType
132 133 134 |
# File 'lib/google/apis/logging_v2/classes.rb', line 132 def criticality_type @criticality_type end |
#environment_type ⇒ String
Workload environment type Example: "DEV"
Corresponds to the JSON property environmentType
137 138 139 |
# File 'lib/google/apis/logging_v2/classes.rb', line 137 def environment_type @environment_type end |
#id ⇒ String
Workload Id. Example: "my-workload"
Corresponds to the JSON property id
142 143 144 |
# File 'lib/google/apis/logging_v2/classes.rb', line 142 def id @id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
149 150 151 152 153 |
# File 'lib/google/apis/logging_v2/classes.rb', line 149 def update!(**args) @criticality_type = args[:criticality_type] if args.key?(:criticality_type) @environment_type = args[:environment_type] if args.key?(:environment_type) @id = args[:id] if args.key?(:id) end |