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.



5371
5372
5373
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5371

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)


5363
5364
5365
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5363

def locked
  @locked
end

#reasonString

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

Returns:

  • (String)


5369
5370
5371
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5369

def reason
  @reason
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5376
5377
5378
5379
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 5376

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