Class: Google::Apis::ConnectorsV1::ConfigVariableTemplate
- Inherits:
-
Object
- Object
- Google::Apis::ConnectorsV1::ConfigVariableTemplate
- 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
-
#description ⇒ String
Description.
-
#display_name ⇒ String
Display name of the parameter.
-
#enum_options ⇒ Array<Google::Apis::ConnectorsV1::EnumOption>
Enum options.
-
#key ⇒ String
Key of the config variable.
-
#required ⇒ Boolean
(also: #required?)
Flag represents that this
ConfigVariablemust be provided for a connection. -
#role_grant ⇒ Google::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.
-
#validation_regex ⇒ String
Regular expression in RE2 syntax used for validating the
valueof aConfigVariable. -
#value_type ⇒ String
Type of the parameter: string, int, bool etc.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ConfigVariableTemplate
constructor
A new instance of ConfigVariableTemplate.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ConfigVariableTemplate
Returns a new instance of ConfigVariableTemplate.
354 355 356 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 354 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
Description.
Corresponds to the JSON property description
310 311 312 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 310 def description @description end |
#display_name ⇒ String
Display name of the parameter.
Corresponds to the JSON property displayName
315 316 317 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 315 def display_name @display_name end |
#enum_options ⇒ Array<Google::Apis::ConnectorsV1::EnumOption>
Enum options. To be populated if ValueType is ENUM
Corresponds to the JSON property enumOptions
320 321 322 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 320 def @enum_options end |
#key ⇒ String
Key of the config variable.
Corresponds to the JSON property key
325 326 327 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 325 def key @key end |
#required ⇒ Boolean Also known as: required?
Flag represents that this ConfigVariable must be provided for a connection.
Corresponds to the JSON property required
330 331 332 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 330 def required @required end |
#role_grant ⇒ Google::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
340 341 342 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 340 def role_grant @role_grant end |
#validation_regex ⇒ String
Regular expression in RE2 syntax used for validating the value of a
ConfigVariable.
Corresponds to the JSON property validationRegex
346 347 348 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 346 def validation_regex @validation_regex end |
#value_type ⇒ String
Type of the parameter: string, int, bool etc. consider custom type for the
benefit for the validation.
Corresponds to the JSON property valueType
352 353 354 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 352 def value_type @value_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
359 360 361 362 363 364 365 366 367 368 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 359 def update!(**args) @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) @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 |