Class: Google::Apis::ConnectorsV1::ConfigVariable

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

ConfigVariable represents a configuration variable present in a Connection. or AuthConfig.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ConfigVariable

Returns a new instance of ConfigVariable.



370
371
372
# File 'lib/google/apis/connectors_v1/classes.rb', line 370

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#bool_valueBoolean Also known as: bool_value?

Value is a bool. Corresponds to the JSON property boolValue

Returns:

  • (Boolean)


342
343
344
# File 'lib/google/apis/connectors_v1/classes.rb', line 342

def bool_value
  @bool_value
end

#int_valueFixnum

Value is an integer Corresponds to the JSON property intValue

Returns:

  • (Fixnum)


348
349
350
# File 'lib/google/apis/connectors_v1/classes.rb', line 348

def int_value
  @int_value
end

#keyString

Key of the config variable. Corresponds to the JSON property key

Returns:

  • (String)


353
354
355
# File 'lib/google/apis/connectors_v1/classes.rb', line 353

def key
  @key
end

#key_valueGoogle::Apis::ConnectorsV1::EncryptionKey

Encryption Key value. Corresponds to the JSON property keyValue



358
359
360
# File 'lib/google/apis/connectors_v1/classes.rb', line 358

def key_value
  @key_value
end

#secret_valueGoogle::Apis::ConnectorsV1::Secret

Secret provides a reference to entries in Secret Manager. Corresponds to the JSON property secretValue



363
364
365
# File 'lib/google/apis/connectors_v1/classes.rb', line 363

def secret_value
  @secret_value
end

#string_valueString

Value is a string. Corresponds to the JSON property stringValue

Returns:

  • (String)


368
369
370
# File 'lib/google/apis/connectors_v1/classes.rb', line 368

def string_value
  @string_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



375
376
377
378
379
380
381
382
# File 'lib/google/apis/connectors_v1/classes.rb', line 375

def update!(**args)
  @bool_value = args[:bool_value] if args.key?(:bool_value)
  @int_value = args[:int_value] if args.key?(:int_value)
  @key = args[:key] if args.key?(:key)
  @key_value = args[:key_value] if args.key?(:key_value)
  @secret_value = args[:secret_value] if args.key?(:secret_value)
  @string_value = args[:string_value] if args.key?(:string_value)
end