Class: Google::Apis::IntegrationsV1alpha::GoogleCloudConnectorsV1LockConfig
- Inherits:
-
Object
- Object
- Google::Apis::IntegrationsV1alpha::GoogleCloudConnectorsV1LockConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/integrations_v1alpha/classes.rb,
lib/google/apis/integrations_v1alpha/representations.rb,
lib/google/apis/integrations_v1alpha/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?)
Indicates whether or not the connection is locked.
-
#reason ⇒ String
Describes why a connection is locked.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudConnectorsV1LockConfig
constructor
A new instance of GoogleCloudConnectorsV1LockConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudConnectorsV1LockConfig
Returns a new instance of GoogleCloudConnectorsV1LockConfig.
5237 5238 5239 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5237 def initialize(**args) update!(**args) end |
Instance Attribute Details
#locked ⇒ Boolean Also known as: locked?
Indicates whether or not the connection is locked.
Corresponds to the JSON property locked
5229 5230 5231 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5229 def locked @locked end |
#reason ⇒ String
Describes why a connection is locked.
Corresponds to the JSON property reason
5235 5236 5237 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5235 def reason @reason end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5242 5243 5244 5245 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5242 def update!(**args) @locked = args[:locked] if args.key?(:locked) @reason = args[:reason] if args.key?(:reason) end |