Class: Google::Apis::ConnectorsV1::ConfigVariableTemplate

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

ConfigVariableTemplate provides metadata about a ConfigVariable that is used in a Connection.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ConfigVariableTemplate

Returns a new instance of ConfigVariableTemplate.



436
437
438
# File 'lib/google/apis/connectors_v1/classes.rb', line 436

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

Instance Attribute Details

This configuration captures the details required to render an authorization link for the OAuth Authorization Code Flow. Corresponds to the JSON property authorizationCodeLink



376
377
378
# File 'lib/google/apis/connectors_v1/classes.rb', line 376

def authorization_code_link
  @authorization_code_link
end

#descriptionString

Description. Corresponds to the JSON property description

Returns:

  • (String)


381
382
383
# File 'lib/google/apis/connectors_v1/classes.rb', line 381

def description
  @description
end

#display_nameString

Display name of the parameter. Corresponds to the JSON property displayName

Returns:

  • (String)


386
387
388
# File 'lib/google/apis/connectors_v1/classes.rb', line 386

def display_name
  @display_name
end

#enum_optionsArray<Google::Apis::ConnectorsV1::EnumOption>

Enum options. To be populated if ValueType is ENUM Corresponds to the JSON property enumOptions



391
392
393
# File 'lib/google/apis/connectors_v1/classes.rb', line 391

def enum_options
  @enum_options
end

#is_advancedBoolean Also known as: is_advanced?

Indicates if current template is part of advanced settings Corresponds to the JSON property isAdvanced

Returns:

  • (Boolean)


396
397
398
# File 'lib/google/apis/connectors_v1/classes.rb', line 396

def is_advanced
  @is_advanced
end

#keyString

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

Returns:

  • (String)


402
403
404
# File 'lib/google/apis/connectors_v1/classes.rb', line 402

def key
  @key
end

#requiredBoolean Also known as: required?

Flag represents that this ConfigVariable must be provided for a connection. Corresponds to the JSON property required

Returns:

  • (Boolean)


407
408
409
# File 'lib/google/apis/connectors_v1/classes.rb', line 407

def required
  @required
end

#role_grantGoogle::Apis::ConnectorsV1::RoleGrant

This configuration defines all the Cloud IAM roles that needs to be granted to a particular GCP resource for the selected prinicpal like service account. These configurations will let UI display to customers what IAM roles need to be granted by them. Or these configurations can be used by the UI to render a ' grant' button to do the same on behalf of the user. Corresponds to the JSON property roleGrant



417
418
419
# File 'lib/google/apis/connectors_v1/classes.rb', line 417

def role_grant
  @role_grant
end

#stateString

State of the config variable. Corresponds to the JSON property state

Returns:

  • (String)


422
423
424
# File 'lib/google/apis/connectors_v1/classes.rb', line 422

def state
  @state
end

#validation_regexString

Regular expression in RE2 syntax used for validating the value of a ConfigVariable. Corresponds to the JSON property validationRegex

Returns:

  • (String)


428
429
430
# File 'lib/google/apis/connectors_v1/classes.rb', line 428

def validation_regex
  @validation_regex
end

#value_typeString

Type of the parameter: string, int, bool etc. consider custom type for the benefit for the validation. Corresponds to the JSON property valueType

Returns:

  • (String)


434
435
436
# File 'lib/google/apis/connectors_v1/classes.rb', line 434

def value_type
  @value_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



441
442
443
444
445
446
447
448
449
450
451
452
453
# File 'lib/google/apis/connectors_v1/classes.rb', line 441

def update!(**args)
  @authorization_code_link = args[:authorization_code_link] if args.key?(:authorization_code_link)
  @description = args[:description] if args.key?(:description)
  @display_name = args[:display_name] if args.key?(:display_name)
  @enum_options = args[:enum_options] if args.key?(:enum_options)
  @is_advanced = args[:is_advanced] if args.key?(:is_advanced)
  @key = args[:key] if args.key?(:key)
  @required = args[:required] if args.key?(:required)
  @role_grant = args[:role_grant] if args.key?(:role_grant)
  @state = args[:state] if args.key?(:state)
  @validation_regex = args[:validation_regex] if args.key?(:validation_regex)
  @value_type = args[:value_type] if args.key?(:value_type)
end