Class: Google::Apis::IntegrationsV1::GoogleCloudConnectorsV1LockConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/integrations_v1/classes.rb,
lib/google/apis/integrations_v1/representations.rb,
lib/google/apis/integrations_v1/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.



6142
6143
6144
# File 'lib/google/apis/integrations_v1/classes.rb', line 6142

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)


6134
6135
6136
# File 'lib/google/apis/integrations_v1/classes.rb', line 6134

def locked
  @locked
end

#reasonString

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

Returns:

  • (String)


6140
6141
6142
# File 'lib/google/apis/integrations_v1/classes.rb', line 6140

def reason
  @reason
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6147
6148
6149
6150
# File 'lib/google/apis/integrations_v1/classes.rb', line 6147

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