Skip to content

Commit 4c2ca7d

Browse files
Allow AUTH_TYPE_UNSPECIFIED in auth config for connection (#12629) (#20782)
[upstream:5fdcb6ef8f1b6fa149a8062dd386e23236bd26bd] Signed-off-by: Modular Magician <magic-modules@google.com>
1 parent 55a7b68 commit 4c2ca7d

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.changelog/12629.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:bug
2+
integrationconnectors: allowed `AUTH_TYPE_UNSPECIFIED` option in `google_integration_connectors_connection` resource to support non-standard auth types
3+
```

google/services/integrationconnectors/resource_integration_connectors_connection.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ func ResourceIntegrationConnectorsConnection() *schema.Resource {
103103
"auth_type": {
104104
Type: schema.TypeString,
105105
Required: true,
106-
ValidateFunc: verify.ValidateEnum([]string{"USER_PASSWORD", "OAUTH2_JWT_BEARER", "OAUTH2_CLIENT_CREDENTIALS", "SSH_PUBLIC_KEY", "OAUTH2_AUTH_CODE_FLOW"}),
107-
Description: `authType of the Connection Possible values: ["USER_PASSWORD", "OAUTH2_JWT_BEARER", "OAUTH2_CLIENT_CREDENTIALS", "SSH_PUBLIC_KEY", "OAUTH2_AUTH_CODE_FLOW"]`,
106+
ValidateFunc: verify.ValidateEnum([]string{"AUTH_TYPE_UNSPECIFIED", "USER_PASSWORD", "OAUTH2_JWT_BEARER", "OAUTH2_CLIENT_CREDENTIALS", "SSH_PUBLIC_KEY", "OAUTH2_AUTH_CODE_FLOW"}),
107+
Description: `authType of the Connection Possible values: ["AUTH_TYPE_UNSPECIFIED", "USER_PASSWORD", "OAUTH2_JWT_BEARER", "OAUTH2_CLIENT_CREDENTIALS", "SSH_PUBLIC_KEY", "OAUTH2_AUTH_CODE_FLOW"]`,
108108
},
109109
"additional_variable": {
110110
Type: schema.TypeList,

website/docs/r/integration_connectors_connection.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ The following arguments are supported:
430430
* `auth_type` -
431431
(Required)
432432
authType of the Connection
433-
Possible values are: `USER_PASSWORD`, `OAUTH2_JWT_BEARER`, `OAUTH2_CLIENT_CREDENTIALS`, `SSH_PUBLIC_KEY`, `OAUTH2_AUTH_CODE_FLOW`.
433+
Possible values are: `AUTH_TYPE_UNSPECIFIED`, `USER_PASSWORD`, `OAUTH2_JWT_BEARER`, `OAUTH2_CLIENT_CREDENTIALS`, `SSH_PUBLIC_KEY`, `OAUTH2_AUTH_CODE_FLOW`.
434434

435435
* `additional_variable` -
436436
(Optional)

0 commit comments

Comments
 (0)