Class: Google::Apis::IntegrationsV1alpha::GoogleCloudConnectorsV1LockConfig

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#lockedBoolean Also known as: locked?

Indicates whether or not the connection is locked. Corresponds to the JSON property locked

Returns:

  • (Boolean)


5229
5230
5231
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5229

def locked
  @locked
end

#reasonString

Describes why a connection is locked. Corresponds to the JSON property reason

Returns:

  • (String)


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