Class: Google::Apis::ApphubV1alpha::Criticality
- Inherits:
-
Object
- Object
- Google::Apis::ApphubV1alpha::Criticality
- 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
Criticality of the Application, Service, or Workload
Instance Attribute Summary collapse
-
#level ⇒ String
Optional.
-
#mission_critical ⇒ Boolean
(also: #mission_critical?)
Optional.
-
#type ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Criticality
constructor
A new instance of Criticality.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Criticality
Returns a new instance of Criticality.
510 511 512 |
# File 'lib/google/apis/apphub_v1alpha/classes.rb', line 510 def initialize(**args) update!(**args) end |
Instance Attribute Details
#level ⇒ String
Optional. Criticality level. Can contain only lowercase letters, numeric
characters, underscores, and dashes. Can have a maximum length of 63
characters. Deprecated: Please refer to type instead.
Corresponds to the JSON property level
496 497 498 |
# File 'lib/google/apis/apphub_v1alpha/classes.rb', line 496 def level @level end |
#mission_critical ⇒ Boolean Also known as: mission_critical?
Optional. Indicates mission-critical Application, Service, or Workload.
Deprecated: Please refer to type instead.
Corresponds to the JSON property missionCritical
502 503 504 |
# File 'lib/google/apis/apphub_v1alpha/classes.rb', line 502 def mission_critical @mission_critical end |
#type ⇒ String
Required. Criticality Type.
Corresponds to the JSON property type
508 509 510 |
# File 'lib/google/apis/apphub_v1alpha/classes.rb', line 508 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
515 516 517 518 519 |
# File 'lib/google/apis/apphub_v1alpha/classes.rb', line 515 def update!(**args) @level = args[:level] if args.key?(:level) @mission_critical = args[:mission_critical] if args.key?(:mission_critical) @type = args[:type] if args.key?(:type) end |