Class: Google::Apis::ConnectorsV1::LockConfig

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/connectors_v1/classes.rb,
lib/google/apis/connectors_v1/representations.rb,
lib/google/apis/connectors_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) ⇒ LockConfig

Returns a new instance of LockConfig.



2654
2655
2656
# File 'lib/google/apis/connectors_v1/classes.rb', line 2654

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)


2646
2647
2648
# File 'lib/google/apis/connectors_v1/classes.rb', line 2646

def locked
  @locked
end

#reasonString

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

Returns:

  • (String)


2652
2653
2654
# File 'lib/google/apis/connectors_v1/classes.rb', line 2652

def reason
  @reason
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2659
2660
2661
2662
# File 'lib/google/apis/connectors_v1/classes.rb', line 2659

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