- JSON representation
- ValueType
- EnumOption
- AuthorizationCodeLink
- State
- LogicalExpression
- FieldComparison
- Comparator
- Operator
- LocationType
ConfigVariableTemplate provides metadata about a ConfigVariable
that is used in a Connection.
JSON representation |
---|
{ "key": string, "valueType": enum ( |
Fields | |
---|---|
key |
Key of the config variable. |
valueType |
Type of the parameter: string, int, bool etc. consider custom type for the benefit for the validation. |
displayName |
Display name of the parameter. |
description |
Description. |
validationRegex |
Regular expression in RE2 syntax used for validating the |
required |
Flag represents that this |
roleGrant |
Role grant configuration for the config variable. |
enumOptions[] |
Enum options. To be populated if |
authorizationCodeLink |
Authorization code link options. To be populated if |
state |
State of the config variable. |
isAdvanced |
Indicates if current template is part of advanced settings |
requiredCondition |
Condition under which a field would be required. The condition can be represented in the form of a logical expression. |
locationType |
Optional. Location Tyep denotes where this value should be sent in BYOC connections. |
ValueType
ValueType indicates the data type of the value.
Enums | |
---|---|
VALUE_TYPE_UNSPECIFIED |
Value type is not specified. |
STRING |
Value type is string. |
INT |
Value type is integer. |
BOOL |
Value type is boolean. |
SECRET |
Value type is secret. |
ENUM |
Value type is enum. |
AUTHORIZATION_CODE |
Value type is authorization code. |
ENCRYPTION_KEY |
Encryption Key. |
EnumOption
EnumOption definition
JSON representation |
---|
{ "id": string, "displayName": string } |
Fields | |
---|---|
id |
Id of the option. |
displayName |
Display name of the option. |
AuthorizationCodeLink
This configuration captures the details required to render an authorization link for the OAuth Authorization Code Flow.
JSON representation |
---|
{ "uri": string, "scopes": [ string ], "clientId": string, "enablePkce": boolean } |
Fields | |
---|---|
uri |
The base URI the user must click to trigger the authorization code login flow. |
scopes[] |
The scopes for which the user will authorize Google Cloud Connectors on the connector data source. |
clientId |
The client ID assigned to the Google Cloud Connectors OAuth app for the connector data source. |
enablePkce |
Whether to enable PKCE for the auth code flow. |
State
Indicates the state of the config variable.
Enums | |
---|---|
STATE_UNSPECIFIED |
Status is unspecified. |
ACTIVE |
Config variable is active |
DEPRECATED |
Config variable is deprecated. |
LogicalExpression
Struct for representing boolean expressions.
JSON representation |
---|
{ "fieldComparisons": [ { object ( |
Fields | |
---|---|
fieldComparisons[] |
A list of fields to be compared. |
logicalExpressions[] |
A list of nested conditions to be compared. |
logicalOperator |
The logical operator to use between the fields and conditions. |
FieldComparison
Field that needs to be compared.
JSON representation |
---|
{ "key": string, "comparator": enum ( |
Fields | |
---|---|
key |
Key of the field. |
comparator |
Comparator to use for comparing the field value. |
Union field value . Value to compare against. value can be only one of the following: |
|
stringValue |
String value |
boolValue |
Boolean value |
intValue |
Integer value |
Comparator
Representation of the different comparators that can be used.
Enums | |
---|---|
COMPARATOR_UNSPECIFIED |
The default value. |
EQUALS |
The field value must be equal to the specified value. |
NOT_EQUALS |
The field value must not be equal to the specified value. |
Operator
Representation of the different logical operators that can be used.
Enums | |
---|---|
OPERATOR_UNSPECIFIED |
The default value. |
AND |
AND operator; The conditions must all be true. |
OR |
OR operator; At least one of the conditions must be true. |
LocationType
Location Type are the options where this value should be sent in BYOC connections.
Enums | |
---|---|
LOCATION_TYPE_UNSPECIFIED |
Location type unspecified. |
HEADER |
Request header. |
PAYLOAD |
Request Payload. |
QUERY_PARAM |
Request query param. |
PATH_PARAM |
Request path param. |