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.



525
526
527
# File 'lib/google/apis/connectors_v1/classes.rb', line 525

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



444
445
446
# File 'lib/google/apis/connectors_v1/classes.rb', line 444

def authorization_code_link
  @authorization_code_link
end

#descriptionString

Description. Corresponds to the JSON property description

Returns:

  • (String)


449
450
451
# File 'lib/google/apis/connectors_v1/classes.rb', line 449

def description
  @description
end

#display_nameString

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

Returns:

  • (String)


454
455
456
# File 'lib/google/apis/connectors_v1/classes.rb', line 454

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



459
460
461
# File 'lib/google/apis/connectors_v1/classes.rb', line 459

def enum_options
  @enum_options
end

#enum_sourceString

Optional. enum source denotes the source of api to fill the enum options Corresponds to the JSON property enumSource

Returns:

  • (String)


464
465
466
# File 'lib/google/apis/connectors_v1/classes.rb', line 464

def enum_source
  @enum_source
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)


469
470
471
# File 'lib/google/apis/connectors_v1/classes.rb', line 469

def is_advanced
  @is_advanced
end

#keyString

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

Returns:

  • (String)


475
476
477
# File 'lib/google/apis/connectors_v1/classes.rb', line 475

def key
  @key
end

#location_typeString

Optional. Location Tyep denotes where this value should be sent in BYOC connections. Corresponds to the JSON property locationType

Returns:

  • (String)


481
482
483
# File 'lib/google/apis/connectors_v1/classes.rb', line 481

def location_type
  @location_type
end

#multiple_select_configGoogle::Apis::ConnectorsV1::MultipleSelectConfig

MultipleSelectConfig represents the multiple options for a config variable. Corresponds to the JSON property multipleSelectConfig



486
487
488
# File 'lib/google/apis/connectors_v1/classes.rb', line 486

def multiple_select_config
  @multiple_select_config
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)


491
492
493
# File 'lib/google/apis/connectors_v1/classes.rb', line 491

def required
  @required
end

#required_conditionGoogle::Apis::ConnectorsV1::LogicalExpression

Struct for representing boolean expressions. Corresponds to the JSON property requiredCondition



497
498
499
# File 'lib/google/apis/connectors_v1/classes.rb', line 497

def required_condition
  @required_condition
end

#role_grantGoogle::Apis::ConnectorsV1::RoleGrant

This configuration defines all the Cloud IAM roles that needs to be granted to a particular Google Cloud resource for the selected principal 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



506
507
508
# File 'lib/google/apis/connectors_v1/classes.rb', line 506

def role_grant
  @role_grant
end

#stateString

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

Returns:

  • (String)


511
512
513
# File 'lib/google/apis/connectors_v1/classes.rb', line 511

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)


517
518
519
# File 'lib/google/apis/connectors_v1/classes.rb', line 517

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)


523
524
525
# File 'lib/google/apis/connectors_v1/classes.rb', line 523

def value_type
  @value_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
# File 'lib/google/apis/connectors_v1/classes.rb', line 530

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)
  @enum_source = args[:enum_source] if args.key?(:enum_source)
  @is_advanced = args[:is_advanced] if args.key?(:is_advanced)
  @key = args[:key] if args.key?(:key)
  @location_type = args[:location_type] if args.key?(:location_type)
  @multiple_select_config = args[:multiple_select_config] if args.key?(:multiple_select_config)
  @required = args[:required] if args.key?(:required)
  @required_condition = args[:required_condition] if args.key?(:required_condition)
  @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