Class: Google::Apis::ConnectorsV1::LockConfig
- Inherits:
-
Object
- Object
- Google::Apis::ConnectorsV1::LockConfig
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/connectors_v1/classes.rb,
lib/google/apis/connectors_v1/representations.rb,
lib/google/apis/connectors_v1/representations.rb
Overview
Determines whether or no a connection is locked. If locked, a reason must be specified.
Instance Attribute Summary collapse
-
#locked ⇒ Boolean
(also: #locked?)
Optional.
-
#reason ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LockConfig
constructor
A new instance of LockConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LockConfig
Returns a new instance of LockConfig.
5168 5169 5170 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 5168 def initialize(**args) update!(**args) end |
Instance Attribute Details
#locked ⇒ Boolean Also known as: locked?
Optional. Indicates whether or not the connection is locked.
Corresponds to the JSON property locked
5160 5161 5162 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 5160 def locked @locked end |
#reason ⇒ String
Optional. Describes why a connection is locked.
Corresponds to the JSON property reason
5166 5167 5168 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 5166 def reason @reason end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5173 5174 5175 5176 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 5173 def update!(**args) @locked = args[:locked] if args.key?(:locked) @reason = args[:reason] if args.key?(:reason) end |