class Google::Apis::ConnectorsV1::ConfigVariableTemplate

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

Attributes

description[RW]

Description. Corresponds to the JSON property ‘description` @return [String]

display_name[RW]

Display name of the parameter. Corresponds to the JSON property ‘displayName` @return [String]

key[RW]

Key of the config variable. Corresponds to the JSON property ‘key` @return [String]

required[RW]

Flag represents that this ‘ConfigVariable` must be provided for a connection. Corresponds to the JSON property `required` @return [Boolean]

required?[RW]

Flag represents that this ‘ConfigVariable` must be provided for a connection. Corresponds to the JSON property `required` @return [Boolean]

role_grant[RW]

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` @return [Google::Apis::ConnectorsV1::RoleGrant]

validation_regex[RW]

Regular expression in RE2 syntax used for validating the ‘value` of a ` ConfigVariable`. Corresponds to the JSON property `validationRegex` @return [String]

value_type[RW]

Type of the parameter: string, int, bool etc. consider custom type for the benefit for the validation. Corresponds to the JSON property ‘valueType` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/connectors_v1/classes.rb, line 343
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/connectors_v1/classes.rb, line 348
def update!(**args)
  @description = args[:description] if args.key?(:description)
  @display_name = args[:display_name] if args.key?(:display_name)
  @key = args[:key] if args.key?(:key)
  @required = args[:required] if args.key?(:required)
  @role_grant = args[:role_grant] if args.key?(:role_grant)
  @validation_regex = args[:validation_regex] if args.key?(:validation_regex)
  @value_type = args[:value_type] if args.key?(:value_type)
end