Class: Google::Apis::DatabasecenterV1beta::ResourceSuspensionInfo
- Inherits:
-
Object
- Object
- Google::Apis::DatabasecenterV1beta::ResourceSuspensionInfo
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/databasecenter_v1beta/classes.rb,
lib/google/apis/databasecenter_v1beta/representations.rb,
lib/google/apis/databasecenter_v1beta/representations.rb
Overview
Resource suspension info for a database resource.
Instance Attribute Summary collapse
-
#resource_suspended ⇒ Boolean
(also: #resource_suspended?)
Is resource suspended.
-
#suspension_reason ⇒ String
Suspension reason for the resource.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ResourceSuspensionInfo
constructor
A new instance of ResourceSuspensionInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ResourceSuspensionInfo
Returns a new instance of ResourceSuspensionInfo.
2120 2121 2122 |
# File 'lib/google/apis/databasecenter_v1beta/classes.rb', line 2120 def initialize(**args) update!(**args) end |
Instance Attribute Details
#resource_suspended ⇒ Boolean Also known as: resource_suspended?
Is resource suspended.
Corresponds to the JSON property resourceSuspended
2112 2113 2114 |
# File 'lib/google/apis/databasecenter_v1beta/classes.rb', line 2112 def resource_suspended @resource_suspended end |
#suspension_reason ⇒ String
Suspension reason for the resource.
Corresponds to the JSON property suspensionReason
2118 2119 2120 |
# File 'lib/google/apis/databasecenter_v1beta/classes.rb', line 2118 def suspension_reason @suspension_reason end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2125 2126 2127 2128 |
# File 'lib/google/apis/databasecenter_v1beta/classes.rb', line 2125 def update!(**args) @resource_suspended = args[:resource_suspended] if args.key?(:resource_suspended) @suspension_reason = args[:suspension_reason] if args.key?(:suspension_reason) end |