From de160dd6b8944d93a1ce0fdea0c9fe4be5c3040b Mon Sep 17 00:00:00 2001 From: Yoshi Automation Date: Tue, 11 Apr 2023 07:08:01 +0000 Subject: [PATCH] feat(connectors): update the api #### connectors:v1 The following keys were added: - schemas.AuthConfig.properties.oauth2AuthCodeFlow.$ref (Total Keys: 1) - schemas.Connection.properties.logConfig.$ref (Total Keys: 1) - schemas.ConnectorVersion.properties.destinationConfigTemplates (Total Keys: 3) - schemas.ConnectorsLogConfig (Total Keys: 3) - schemas.DestinationConfigTemplate (Total Keys: 13) - schemas.Oauth2AuthCodeFlow (Total Keys: 10) --- ...ors_v1.projects.locations.connections.html | 64 +++++++++ ...cations.providers.connectors.versions.html | 26 ++++ .../documents/connectors.v1.json | 125 +++++++++++++++++- .../documents/connectors.v2.json | 2 +- 4 files changed, 215 insertions(+), 2 deletions(-) diff --git a/docs/dyn/connectors_v1.projects.locations.connections.html b/docs/dyn/connectors_v1.projects.locations.connections.html index 32d54466588..a8db7b05975 100644 --- a/docs/dyn/connectors_v1.projects.locations.connections.html +++ b/docs/dyn/connectors_v1.projects.locations.connections.html @@ -151,6 +151,19 @@

Method Details

}, ], "authType": "A String", # The type of authentication configured. + "oauth2AuthCodeFlow": { # Parameters to support Oauth 2.0 Auth Code Grant Authentication. See https://www.rfc-editor.org/rfc/rfc6749#section-1.3.1 for more details. # Oauth2AuthCodeFlow. + "authCode": "A String", # Authorization code to be exchanged for access and refresh tokens. + "clientId": "A String", # Client ID for user-provided OAuth app. + "clientSecret": { # Secret provides a reference to entries in Secret Manager. # Client secret for user-provided OAuth app. + "secretVersion": "A String", # The resource name of the secret version in the format, format as: `projects/*/secrets/*/versions/*`. + }, + "enablePkce": True or False, # Whether to enable PKCE when the user performs the auth code flow. + "pkceVerifier": "A String", # PKCE verifier to be used during the auth code exchange. + "redirectUri": "A String", # Redirect URI to be provided during the auth code exchange. + "scopes": [ # Scopes the connection will request when the user performs the auth code flow. + "A String", + ], + }, "oauth2ClientCredentials": { # Parameters to support Oauth 2.0 Client Credentials Grant Authentication. See https://tools.ietf.org/html/rfc6749#section-1.3.4 for more details. # Oauth2ClientCredentials. "clientId": "A String", # The client identifier. "clientSecret": { # Secret provides a reference to entries in Secret Manager. # Secret version reference containing the client secret. @@ -219,6 +232,9 @@

Method Details

"locked": True or False, # Indicates whether or not the connection is locked. "reason": "A String", # Describes why a connection is locked. }, + "logConfig": { # Log configuration for the connection. # Optional. Log configuration for the connection. + "enabled": True or False, # Enabled represents whether logging is enabled or not for a connection. + }, "name": "A String", # Output only. Resource name of the Connection. Format: projects/{project}/locations/{location}/connections/{connection} "nodeConfig": { # Node configuration for the connection. # Optional. Node configuration for the connection. "maxNodeCount": 42, # Maximum number of nodes in the runtime nodes. @@ -363,6 +379,19 @@

Method Details

}, ], "authType": "A String", # The type of authentication configured. + "oauth2AuthCodeFlow": { # Parameters to support Oauth 2.0 Auth Code Grant Authentication. See https://www.rfc-editor.org/rfc/rfc6749#section-1.3.1 for more details. # Oauth2AuthCodeFlow. + "authCode": "A String", # Authorization code to be exchanged for access and refresh tokens. + "clientId": "A String", # Client ID for user-provided OAuth app. + "clientSecret": { # Secret provides a reference to entries in Secret Manager. # Client secret for user-provided OAuth app. + "secretVersion": "A String", # The resource name of the secret version in the format, format as: `projects/*/secrets/*/versions/*`. + }, + "enablePkce": True or False, # Whether to enable PKCE when the user performs the auth code flow. + "pkceVerifier": "A String", # PKCE verifier to be used during the auth code exchange. + "redirectUri": "A String", # Redirect URI to be provided during the auth code exchange. + "scopes": [ # Scopes the connection will request when the user performs the auth code flow. + "A String", + ], + }, "oauth2ClientCredentials": { # Parameters to support Oauth 2.0 Client Credentials Grant Authentication. See https://tools.ietf.org/html/rfc6749#section-1.3.4 for more details. # Oauth2ClientCredentials. "clientId": "A String", # The client identifier. "clientSecret": { # Secret provides a reference to entries in Secret Manager. # Secret version reference containing the client secret. @@ -431,6 +460,9 @@

Method Details

"locked": True or False, # Indicates whether or not the connection is locked. "reason": "A String", # Describes why a connection is locked. }, + "logConfig": { # Log configuration for the connection. # Optional. Log configuration for the connection. + "enabled": True or False, # Enabled represents whether logging is enabled or not for a connection. + }, "name": "A String", # Output only. Resource name of the Connection. Format: projects/{project}/locations/{location}/connections/{connection} "nodeConfig": { # Node configuration for the connection. # Optional. Node configuration for the connection. "maxNodeCount": 42, # Maximum number of nodes in the runtime nodes. @@ -593,6 +625,19 @@

Method Details

}, ], "authType": "A String", # The type of authentication configured. + "oauth2AuthCodeFlow": { # Parameters to support Oauth 2.0 Auth Code Grant Authentication. See https://www.rfc-editor.org/rfc/rfc6749#section-1.3.1 for more details. # Oauth2AuthCodeFlow. + "authCode": "A String", # Authorization code to be exchanged for access and refresh tokens. + "clientId": "A String", # Client ID for user-provided OAuth app. + "clientSecret": { # Secret provides a reference to entries in Secret Manager. # Client secret for user-provided OAuth app. + "secretVersion": "A String", # The resource name of the secret version in the format, format as: `projects/*/secrets/*/versions/*`. + }, + "enablePkce": True or False, # Whether to enable PKCE when the user performs the auth code flow. + "pkceVerifier": "A String", # PKCE verifier to be used during the auth code exchange. + "redirectUri": "A String", # Redirect URI to be provided during the auth code exchange. + "scopes": [ # Scopes the connection will request when the user performs the auth code flow. + "A String", + ], + }, "oauth2ClientCredentials": { # Parameters to support Oauth 2.0 Client Credentials Grant Authentication. See https://tools.ietf.org/html/rfc6749#section-1.3.4 for more details. # Oauth2ClientCredentials. "clientId": "A String", # The client identifier. "clientSecret": { # Secret provides a reference to entries in Secret Manager. # Secret version reference containing the client secret. @@ -661,6 +706,9 @@

Method Details

"locked": True or False, # Indicates whether or not the connection is locked. "reason": "A String", # Describes why a connection is locked. }, + "logConfig": { # Log configuration for the connection. # Optional. Log configuration for the connection. + "enabled": True or False, # Enabled represents whether logging is enabled or not for a connection. + }, "name": "A String", # Output only. Resource name of the Connection. Format: projects/{project}/locations/{location}/connections/{connection} "nodeConfig": { # Node configuration for the connection. # Optional. Node configuration for the connection. "maxNodeCount": 42, # Maximum number of nodes in the runtime nodes. @@ -751,6 +799,19 @@

Method Details

}, ], "authType": "A String", # The type of authentication configured. + "oauth2AuthCodeFlow": { # Parameters to support Oauth 2.0 Auth Code Grant Authentication. See https://www.rfc-editor.org/rfc/rfc6749#section-1.3.1 for more details. # Oauth2AuthCodeFlow. + "authCode": "A String", # Authorization code to be exchanged for access and refresh tokens. + "clientId": "A String", # Client ID for user-provided OAuth app. + "clientSecret": { # Secret provides a reference to entries in Secret Manager. # Client secret for user-provided OAuth app. + "secretVersion": "A String", # The resource name of the secret version in the format, format as: `projects/*/secrets/*/versions/*`. + }, + "enablePkce": True or False, # Whether to enable PKCE when the user performs the auth code flow. + "pkceVerifier": "A String", # PKCE verifier to be used during the auth code exchange. + "redirectUri": "A String", # Redirect URI to be provided during the auth code exchange. + "scopes": [ # Scopes the connection will request when the user performs the auth code flow. + "A String", + ], + }, "oauth2ClientCredentials": { # Parameters to support Oauth 2.0 Client Credentials Grant Authentication. See https://tools.ietf.org/html/rfc6749#section-1.3.4 for more details. # Oauth2ClientCredentials. "clientId": "A String", # The client identifier. "clientSecret": { # Secret provides a reference to entries in Secret Manager. # Secret version reference containing the client secret. @@ -819,6 +880,9 @@

Method Details

"locked": True or False, # Indicates whether or not the connection is locked. "reason": "A String", # Describes why a connection is locked. }, + "logConfig": { # Log configuration for the connection. # Optional. Log configuration for the connection. + "enabled": True or False, # Enabled represents whether logging is enabled or not for a connection. + }, "name": "A String", # Output only. Resource name of the Connection. Format: projects/{project}/locations/{location}/connections/{connection} "nodeConfig": { # Node configuration for the connection. # Optional. Node configuration for the connection. "maxNodeCount": 42, # Maximum number of nodes in the runtime nodes. diff --git a/docs/dyn/connectors_v1.projects.locations.providers.connectors.versions.html b/docs/dyn/connectors_v1.projects.locations.providers.connectors.versions.html index f8110223693..02269427229 100644 --- a/docs/dyn/connectors_v1.projects.locations.providers.connectors.versions.html +++ b/docs/dyn/connectors_v1.projects.locations.providers.connectors.versions.html @@ -194,6 +194,19 @@

Method Details

}, ], "createTime": "A String", # Output only. Created time. + "destinationConfigTemplates": [ # Output only. List of destination configs needed to create a connection. + { # DestinationConfigTemplate defines required destinations supported by the Connector. + "defaultPort": 42, # The default port. + "description": "A String", # Description. + "displayName": "A String", # Display name of the parameter. + "isAdvanced": True or False, # Whether the current destination tempalate is part of Advanced settings + "key": "A String", # Key of the destination. + "max": 42, # The maximum number of destinations supported for this key. + "min": 42, # The minimum number of destinations supported for this key. + "portFieldType": "A String", # Whether port number should be provided by customers. + "regexPattern": "A String", # Regex pattern for host. + }, + ], "displayName": "A String", # Output only. Display name. "egressControlConfig": { # Egress control config for connector runtime. These configurations define the rules to identify which outbound domains/hosts needs to be whitelisted. It may be a static information for a particular connector version or it is derived from the configurations provided by the customer in Connection resource. # Output only. Configuration for Egress Control. "backends": "A String", # Static Comma separated backends which are common for all Connection resources. Supported formats for each backend are host:port or just host (host can be ip address or domain name). @@ -401,6 +414,19 @@

Method Details

}, ], "createTime": "A String", # Output only. Created time. + "destinationConfigTemplates": [ # Output only. List of destination configs needed to create a connection. + { # DestinationConfigTemplate defines required destinations supported by the Connector. + "defaultPort": 42, # The default port. + "description": "A String", # Description. + "displayName": "A String", # Display name of the parameter. + "isAdvanced": True or False, # Whether the current destination tempalate is part of Advanced settings + "key": "A String", # Key of the destination. + "max": 42, # The maximum number of destinations supported for this key. + "min": 42, # The minimum number of destinations supported for this key. + "portFieldType": "A String", # Whether port number should be provided by customers. + "regexPattern": "A String", # Regex pattern for host. + }, + ], "displayName": "A String", # Output only. Display name. "egressControlConfig": { # Egress control config for connector runtime. These configurations define the rules to identify which outbound domains/hosts needs to be whitelisted. It may be a static information for a particular connector version or it is derived from the configurations provided by the customer in Connection resource. # Output only. Configuration for Egress Control. "backends": "A String", # Static Comma separated backends which are common for all Connection resources. Supported formats for each backend are host:port or just host (host can be ip address or domain name). diff --git a/googleapiclient/discovery_cache/documents/connectors.v1.json b/googleapiclient/discovery_cache/documents/connectors.v1.json index 0b3e1d0f6bf..4624e80ccbe 100644 --- a/googleapiclient/discovery_cache/documents/connectors.v1.json +++ b/googleapiclient/discovery_cache/documents/connectors.v1.json @@ -1108,7 +1108,7 @@ } } }, - "revision": "20230322", + "revision": "20230403", "rootUrl": "https://connectors.googleapis.com/", "schemas": { "AuditConfig": { @@ -1190,6 +1190,10 @@ ], "type": "string" }, + "oauth2AuthCodeFlow": { + "$ref": "Oauth2AuthCodeFlow", + "description": "Oauth2AuthCodeFlow." + }, "oauth2ClientCredentials": { "$ref": "Oauth2ClientCredentials", "description": "Oauth2ClientCredentials." @@ -1472,6 +1476,10 @@ "$ref": "LockConfig", "description": "Optional. Configuration that indicates whether or not the Connection can be edited." }, + "logConfig": { + "$ref": "ConnectorsLogConfig", + "description": "Optional. Log configuration for the connection." + }, "name": { "description": "Output only. Resource name of the Connection. Format: projects/{project}/locations/{location}/connections/{connection}", "readOnly": true, @@ -1708,6 +1716,14 @@ "readOnly": true, "type": "string" }, + "destinationConfigTemplates": { + "description": "Output only. List of destination configs needed to create a connection.", + "items": { + "$ref": "DestinationConfigTemplate" + }, + "readOnly": true, + "type": "array" + }, "displayName": { "description": "Output only. Display name.", "readOnly": true, @@ -1787,6 +1803,17 @@ }, "type": "object" }, + "ConnectorsLogConfig": { + "description": "Log configuration for the connection.", + "id": "ConnectorsLogConfig", + "properties": { + "enabled": { + "description": "Enabled represents whether logging is enabled or not for a connection.", + "type": "boolean" + } + }, + "type": "object" + }, "Destination": { "id": "Destination", "properties": { @@ -1824,6 +1851,64 @@ }, "type": "object" }, + "DestinationConfigTemplate": { + "description": "DestinationConfigTemplate defines required destinations supported by the Connector.", + "id": "DestinationConfigTemplate", + "properties": { + "defaultPort": { + "description": "The default port.", + "format": "int32", + "type": "integer" + }, + "description": { + "description": "Description.", + "type": "string" + }, + "displayName": { + "description": "Display name of the parameter.", + "type": "string" + }, + "isAdvanced": { + "description": "Whether the current destination tempalate is part of Advanced settings", + "type": "boolean" + }, + "key": { + "description": "Key of the destination.", + "type": "string" + }, + "max": { + "description": "The maximum number of destinations supported for this key.", + "format": "int32", + "type": "integer" + }, + "min": { + "description": "The minimum number of destinations supported for this key.", + "format": "int32", + "type": "integer" + }, + "portFieldType": { + "description": "Whether port number should be provided by customers.", + "enum": [ + "FIELD_TYPE_UNSPECIFIED", + "REQUIRED", + "OPTIONAL", + "NOT_USED" + ], + "enumDescriptions": [ + "", + "", + "", + "" + ], + "type": "string" + }, + "regexPattern": { + "description": "Regex pattern for host.", + "type": "string" + } + }, + "type": "object" + }, "EgressControlConfig": { "description": "Egress control config for connector runtime. These configurations define the rules to identify which outbound domains/hosts needs to be whitelisted. It may be a static information for a particular connector version or it is derived from the configurations provided by the customer in Connection resource.", "id": "EgressControlConfig", @@ -2427,6 +2512,44 @@ }, "type": "object" }, + "Oauth2AuthCodeFlow": { + "description": "Parameters to support Oauth 2.0 Auth Code Grant Authentication. See https://www.rfc-editor.org/rfc/rfc6749#section-1.3.1 for more details.", + "id": "Oauth2AuthCodeFlow", + "properties": { + "authCode": { + "description": "Authorization code to be exchanged for access and refresh tokens.", + "type": "string" + }, + "clientId": { + "description": "Client ID for user-provided OAuth app.", + "type": "string" + }, + "clientSecret": { + "$ref": "Secret", + "description": "Client secret for user-provided OAuth app." + }, + "enablePkce": { + "description": "Whether to enable PKCE when the user performs the auth code flow.", + "type": "boolean" + }, + "pkceVerifier": { + "description": "PKCE verifier to be used during the auth code exchange.", + "type": "string" + }, + "redirectUri": { + "description": "Redirect URI to be provided during the auth code exchange.", + "type": "string" + }, + "scopes": { + "description": "Scopes the connection will request when the user performs the auth code flow.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "Oauth2ClientCredentials": { "description": "Parameters to support Oauth 2.0 Client Credentials Grant Authentication. See https://tools.ietf.org/html/rfc6749#section-1.3.4 for more details.", "id": "Oauth2ClientCredentials", diff --git a/googleapiclient/discovery_cache/documents/connectors.v2.json b/googleapiclient/discovery_cache/documents/connectors.v2.json index 7f4530c8863..42e4287cc9b 100644 --- a/googleapiclient/discovery_cache/documents/connectors.v2.json +++ b/googleapiclient/discovery_cache/documents/connectors.v2.json @@ -478,7 +478,7 @@ } } }, - "revision": "20230322", + "revision": "20230403", "rootUrl": "https://connectors.googleapis.com/", "schemas": { "Action": {