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.
2127 2128 2129 |
# File 'lib/google/apis/databasecenter_v1beta/classes.rb', line 2127 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
2119 2120 2121 |
# File 'lib/google/apis/databasecenter_v1beta/classes.rb', line 2119 def resource_suspended @resource_suspended end |
#suspension_reason ⇒ String
Suspension reason for the resource.
Corresponds to the JSON property suspensionReason
2125 2126 2127 |
# File 'lib/google/apis/databasecenter_v1beta/classes.rb', line 2125 def suspension_reason @suspension_reason end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2132 2133 2134 2135 |
# File 'lib/google/apis/databasecenter_v1beta/classes.rb', line 2132 def update!(**args) @resource_suspended = args[:resource_suspended] if args.key?(:resource_suspended) @suspension_reason = args[:suspension_reason] if args.key?(:suspension_reason) end |