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.



5249
5250
5251
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5249

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)


5241
5242
5243
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5241

def locked
  @locked
end

#reasonString

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

Returns:

  • (String)


5247
5248
5249
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5247

def reason
  @reason
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5254
5255
5256
5257
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5254

def update!(**args)
  @locked = args[:locked] if args.key?(:locked)
  @reason = args[:reason] if args.key?(:reason)
end