Class: Google::Apis::MonitoringV3::ResponseStatusCode
- Inherits:
-
Object
- Object
- Google::Apis::MonitoringV3::ResponseStatusCode
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/monitoring_v3/classes.rb,
lib/google/apis/monitoring_v3/representations.rb,
lib/google/apis/monitoring_v3/representations.rb
Overview
A status to accept. Either a status code class like "2xx", or an integer status code like "200".
Instance Attribute Summary collapse
-
#status_class ⇒ String
A class of status codes to accept.
-
#status_value ⇒ Fixnum
A status code to accept.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ResponseStatusCode
constructor
A new instance of ResponseStatusCode.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ResponseStatusCode
Returns a new instance of ResponseStatusCode.
4024 4025 4026 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 4024 def initialize(**args) update!(**args) end |
Instance Attribute Details
#status_class ⇒ String
A class of status codes to accept.
Corresponds to the JSON property statusClass
4017 4018 4019 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 4017 def status_class @status_class end |
#status_value ⇒ Fixnum
A status code to accept.
Corresponds to the JSON property statusValue
4022 4023 4024 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 4022 def status_value @status_value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4029 4030 4031 4032 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 4029 def update!(**args) @status_class = args[:status_class] if args.key?(:status_class) @status_value = args[:status_value] if args.key?(:status_value) end |