Skip to content

Commit

Permalink
feat(connectors): update the api
Browse files Browse the repository at this point in the history
#### connectors:v1

The following keys were added:
- schemas.ConnectorInfraConfig.properties.maxInstanceRequestConcurrency (Total Keys: 2)
- schemas.ConnectorVersion.properties.isCustomActionsSupported (Total Keys: 2)
- schemas.ConnectorVersion.properties.isCustomEntitiesSupported (Total Keys: 2)
- schemas.ConnectorVersion.properties.supportedStandardActions (Total Keys: 3)
- schemas.ConnectorVersion.properties.supportedStandardEntities (Total Keys: 3)
- schemas.ConnectorVersionInfraConfig.properties.maxInstanceRequestConcurrency (Total Keys: 3)
- schemas.StandardAction (Total Keys: 3)
- schemas.StandardEntity (Total Keys: 3)

#### connectors:v2

The following keys were added:
- schemas.AuthCodeData (Total Keys: 5)
- schemas.ExchangeAuthCodeRequest.properties.authCodeData.$ref (Total Keys: 1)
- schemas.RefreshAccessTokenRequest.properties.refreshToken.type (Total Keys: 1)
  • Loading branch information
yoshi-automation committed Aug 13, 2024
1 parent e69ea3c commit 168a5f4
Show file tree
Hide file tree
Showing 5 changed files with 137 additions and 10 deletions.
5 changes: 5 additions & 0 deletions docs/dyn/connectors_v1.projects.locations.connections.html
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ <h3>Method Details</h3>
&quot;memoryUtilizationThreshold&quot;: &quot;A String&quot;, # Output only. Percent Memory utilization where HPA triggers autoscaling.
},
&quot;internalclientRatelimitThreshold&quot;: &quot;A String&quot;, # Output only. Max QPS supported for internal requests originating from Connd.
&quot;maxInstanceRequestConcurrency&quot;: 42, # Output only. Max instance request concurrency.
&quot;ratelimitThreshold&quot;: &quot;A String&quot;, # Output only. Max QPS supported by the connector version before throttling of requests.
&quot;resourceLimits&quot;: { # Resource limits defined for connection pods of a given connector type. # Output only. System resource limits.
&quot;cpu&quot;: &quot;A String&quot;, # Output only. CPU limit.
Expand Down Expand Up @@ -726,6 +727,7 @@ <h3>Method Details</h3>
&quot;memoryUtilizationThreshold&quot;: &quot;A String&quot;, # Output only. Percent Memory utilization where HPA triggers autoscaling.
},
&quot;internalclientRatelimitThreshold&quot;: &quot;A String&quot;, # Output only. Max QPS supported for internal requests originating from Connd.
&quot;maxInstanceRequestConcurrency&quot;: 42, # Output only. Max instance request concurrency.
&quot;ratelimitThreshold&quot;: &quot;A String&quot;, # Output only. Max QPS supported by the connector version before throttling of requests.
&quot;resourceLimits&quot;: { # Resource limits defined for connection pods of a given connector type. # Output only. System resource limits.
&quot;cpu&quot;: &quot;A String&quot;, # Output only. CPU limit.
Expand Down Expand Up @@ -1221,6 +1223,7 @@ <h3>Method Details</h3>
&quot;memoryUtilizationThreshold&quot;: &quot;A String&quot;, # Output only. Percent Memory utilization where HPA triggers autoscaling.
},
&quot;internalclientRatelimitThreshold&quot;: &quot;A String&quot;, # Output only. Max QPS supported for internal requests originating from Connd.
&quot;maxInstanceRequestConcurrency&quot;: 42, # Output only. Max instance request concurrency.
&quot;ratelimitThreshold&quot;: &quot;A String&quot;, # Output only. Max QPS supported by the connector version before throttling of requests.
&quot;resourceLimits&quot;: { # Resource limits defined for connection pods of a given connector type. # Output only. System resource limits.
&quot;cpu&quot;: &quot;A String&quot;, # Output only. CPU limit.
Expand Down Expand Up @@ -1670,6 +1673,7 @@ <h3>Method Details</h3>
&quot;memoryUtilizationThreshold&quot;: &quot;A String&quot;, # Output only. Percent Memory utilization where HPA triggers autoscaling.
},
&quot;internalclientRatelimitThreshold&quot;: &quot;A String&quot;, # Output only. Max QPS supported for internal requests originating from Connd.
&quot;maxInstanceRequestConcurrency&quot;: 42, # Output only. Max instance request concurrency.
&quot;ratelimitThreshold&quot;: &quot;A String&quot;, # Output only. Max QPS supported by the connector version before throttling of requests.
&quot;resourceLimits&quot;: { # Resource limits defined for connection pods of a given connector type. # Output only. System resource limits.
&quot;cpu&quot;: &quot;A String&quot;, # Output only. CPU limit.
Expand Down Expand Up @@ -2252,6 +2256,7 @@ <h3>Method Details</h3>
&quot;memoryUtilizationThreshold&quot;: &quot;A String&quot;, # Output only. Percent Memory utilization where HPA triggers autoscaling.
},
&quot;internalclientRatelimitThreshold&quot;: &quot;A String&quot;, # Output only. Max QPS supported for internal requests originating from Connd.
&quot;maxInstanceRequestConcurrency&quot;: 42, # Output only. Max instance request concurrency.
&quot;ratelimitThreshold&quot;: &quot;A String&quot;, # Output only. Max QPS supported by the connector version before throttling of requests.
&quot;resourceLimits&quot;: { # Resource limits defined for connection pods of a given connector type. # Output only. System resource limits.
&quot;cpu&quot;: &quot;A String&quot;, # Output only. CPU limit.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ <h3>Method Details</h3>
&quot;memoryUtilizationThreshold&quot;: &quot;A String&quot;, # Output only. Percent Memory utilization where HPA triggers autoscaling.
},
&quot;internalclientRatelimitThreshold&quot;: &quot;A String&quot;, # Max QPS supported for internal requests originating from Connd.
&quot;maxInstanceRequestConcurrency&quot;: 42, # Max Instance Request Conncurrency for Cloud Run service.
&quot;migrateDeploymentModel&quot;: True or False, # Indicate whether connector is being migrated to cloud run deployment model.
&quot;ratelimitThreshold&quot;: &quot;A String&quot;, # Max QPS supported by the connector version before throttling of requests.
&quot;resourceLimits&quot;: { # Resource limits defined for connection pods of a given connector type. # System resource limits.
Expand Down Expand Up @@ -696,6 +697,8 @@ <h3>Method Details</h3>
},
],
},
&quot;isCustomActionsSupported&quot;: True or False, # Output only. Is custom actions supported.
&quot;isCustomEntitiesSupported&quot;: True or False, # Output only. Is custom entities supported.
&quot;labels&quot;: { # Output only. Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources
&quot;a_key&quot;: &quot;A String&quot;,
},
Expand Down Expand Up @@ -812,6 +815,16 @@ <h3>Method Details</h3>
&quot;entityApis&quot;: True or False, # Specifies if the connector supports entity apis like &#x27;createEntity&#x27;.
&quot;sqlQuery&quot;: True or False, # Specifies if the connector supports &#x27;ExecuteSqlQuery&#x27; operation.
},
&quot;supportedStandardActions&quot;: [ # Output only. Supported standard actions.
{ # Standard action
&quot;name&quot;: &quot;A String&quot;, # Name of the standard action.
},
],
&quot;supportedStandardEntities&quot;: [ # Output only. Supported standard entities.
{ # Standard entity
&quot;name&quot;: &quot;A String&quot;, # Name of the standard entity.
},
],
&quot;unsupportedConnectionTypes&quot;: [ # Output only. Unsupported connection types.
&quot;A String&quot;,
],
Expand Down Expand Up @@ -994,6 +1007,7 @@ <h3>Method Details</h3>
&quot;memoryUtilizationThreshold&quot;: &quot;A String&quot;, # Output only. Percent Memory utilization where HPA triggers autoscaling.
},
&quot;internalclientRatelimitThreshold&quot;: &quot;A String&quot;, # Max QPS supported for internal requests originating from Connd.
&quot;maxInstanceRequestConcurrency&quot;: 42, # Max Instance Request Conncurrency for Cloud Run service.
&quot;migrateDeploymentModel&quot;: True or False, # Indicate whether connector is being migrated to cloud run deployment model.
&quot;ratelimitThreshold&quot;: &quot;A String&quot;, # Max QPS supported by the connector version before throttling of requests.
&quot;resourceLimits&quot;: { # Resource limits defined for connection pods of a given connector type. # System resource limits.
Expand Down Expand Up @@ -1422,6 +1436,8 @@ <h3>Method Details</h3>
},
],
},
&quot;isCustomActionsSupported&quot;: True or False, # Output only. Is custom actions supported.
&quot;isCustomEntitiesSupported&quot;: True or False, # Output only. Is custom entities supported.
&quot;labels&quot;: { # Output only. Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources
&quot;a_key&quot;: &quot;A String&quot;,
},
Expand Down Expand Up @@ -1538,6 +1554,16 @@ <h3>Method Details</h3>
&quot;entityApis&quot;: True or False, # Specifies if the connector supports entity apis like &#x27;createEntity&#x27;.
&quot;sqlQuery&quot;: True or False, # Specifies if the connector supports &#x27;ExecuteSqlQuery&#x27; operation.
},
&quot;supportedStandardActions&quot;: [ # Output only. Supported standard actions.
{ # Standard action
&quot;name&quot;: &quot;A String&quot;, # Name of the standard action.
},
],
&quot;supportedStandardEntities&quot;: [ # Output only. Supported standard entities.
{ # Standard entity
&quot;name&quot;: &quot;A String&quot;, # Name of the standard entity.
},
],
&quot;unsupportedConnectionTypes&quot;: [ # Output only. Unsupported connection types.
&quot;A String&quot;,
],
Expand Down
10 changes: 8 additions & 2 deletions docs/dyn/connectors_v2.projects.locations.connections.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,12 @@ <h3>Method Details</h3>
body: object, The request body.
The object takes the form of:

{ # ExchangeAuthCodeRequest currently includes no fields.
{ # ExchangeAuthCodeRequest currently includes the auth code data.
&quot;authCodeData&quot;: { # AuthCodeData contains the data the runtime plane will give the connector backend in exchange for access and refresh tokens. # Optional. AuthCodeData contains the data the runtime requires to exchange for access and refresh tokens. If the data is not provided, the runtime will read the data from the secret manager.
&quot;authCode&quot;: &quot;A String&quot;, # OAuth authorization code.
&quot;pkceVerifier&quot;: &quot;A String&quot;, # OAuth PKCE verifier, needed if PKCE is enabled for this particular connection.
&quot;redirectUri&quot;: &quot;A String&quot;, # OAuth redirect URI passed in during the auth code flow, required by some OAuth backends.
},
}

x__xgafv: string, V1 error format.
Expand Down Expand Up @@ -225,7 +230,8 @@ <h3>Method Details</h3>
body: object, The request body.
The object takes the form of:

{ # RefreshAccessTokenRequest currently includes no fields.
{ # RefreshAccessTokenRequest includes the refresh token.
&quot;refreshToken&quot;: &quot;A String&quot;, # Optional. Refresh Token String. If the Refresh Token is not provided, the runtime will read the data from the secret manager.
}

x__xgafv: string, V1 error format.
Expand Down
67 changes: 64 additions & 3 deletions googleapiclient/discovery_cache/documents/connectors.v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -2427,7 +2427,7 @@
}
}
},
"revision": "20240715",
"revision": "20240729",
"rootUrl": "https://connectors.googleapis.com/",
"schemas": {
"AuditConfig": {
Expand Down Expand Up @@ -3256,6 +3256,11 @@
"format": "int64",
"type": "string"
},
"maxInstanceRequestConcurrency": {
"description": "Max Instance Request Conncurrency for Cloud Run service.",
"format": "int32",
"type": "integer"
},
"migrateDeploymentModel": {
"description": "Indicate whether connector is being migrated to cloud run deployment model.",
"type": "boolean"
Expand Down Expand Up @@ -3339,6 +3344,16 @@
"description": "Output only. Eventing configuration supported by the Connector.",
"readOnly": true
},
"isCustomActionsSupported": {
"description": "Output only. Is custom actions supported.",
"readOnly": true,
"type": "boolean"
},
"isCustomEntitiesSupported": {
"description": "Output only. Is custom entities supported.",
"readOnly": true,
"type": "boolean"
},
"labels": {
"additionalProperties": {
"type": "string"
Expand Down Expand Up @@ -3403,6 +3418,22 @@
"description": "Output only. Information about the runtime features supported by the Connector.",
"readOnly": true
},
"supportedStandardActions": {
"description": "Output only. Supported standard actions.",
"items": {
"$ref": "StandardAction"
},
"readOnly": true,
"type": "array"
},
"supportedStandardEntities": {
"description": "Output only. Supported standard entities.",
"items": {
"$ref": "StandardEntity"
},
"readOnly": true,
"type": "array"
},
"unsupportedConnectionTypes": {
"description": "Output only. Unsupported connection types.",
"items": {
Expand Down Expand Up @@ -3462,13 +3493,15 @@
"DEPLOYMENT_MODEL_MIGRATION_STATE_UNSPECIFIED",
"IN_PROGRESS",
"COMPLETED",
"ROLLEDBACK"
"ROLLEDBACK",
"ROLLBACK_IN_PROGRESS"
],
"enumDescriptions": [
"Deployment model migration state is not specified.",
"Deployment model migration is in progress.",
"Deployment model migration is completed.",
"Deployment model migration rolledback."
"Deployment model migration rolledback.",
"Deployment model migration rollback in progress."
],
"readOnly": true,
"type": "string"
Expand All @@ -3484,6 +3517,12 @@
"readOnly": true,
"type": "string"
},
"maxInstanceRequestConcurrency": {
"description": "Output only. Max instance request concurrency.",
"format": "int32",
"readOnly": true,
"type": "integer"
},
"ratelimitThreshold": {
"description": "Output only. Max QPS supported by the connector version before throttling of requests.",
"format": "int64",
Expand Down Expand Up @@ -7190,6 +7229,28 @@ false
},
"type": "object"
},
"StandardAction": {
"description": "Standard action",
"id": "StandardAction",
"properties": {
"name": {
"description": "Name of the standard action.",
"type": "string"
}
},
"type": "object"
},
"StandardEntity": {
"description": "Standard entity",
"id": "StandardEntity",
"properties": {
"name": {
"description": "Name of the standard entity.",
"type": "string"
}
},
"type": "object"
},
"Status": {
"description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).",
"id": "Status",
Expand Down
39 changes: 34 additions & 5 deletions googleapiclient/discovery_cache/documents/connectors.v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@
}
}
},
"revision": "20240708",
"revision": "20240729",
"rootUrl": "https://connectors.googleapis.com/",
"schemas": {
"AccessCredentials": {
Expand Down Expand Up @@ -724,6 +724,25 @@
},
"type": "object"
},
"AuthCodeData": {
"description": "AuthCodeData contains the data the runtime plane will give the connector backend in exchange for access and refresh tokens.",
"id": "AuthCodeData",
"properties": {
"authCode": {
"description": "OAuth authorization code.",
"type": "string"
},
"pkceVerifier": {
"description": "OAuth PKCE verifier, needed if PKCE is enabled for this particular connection.",
"type": "string"
},
"redirectUri": {
"description": "OAuth redirect URI passed in during the auth code flow, required by some OAuth backends.",
"type": "string"
}
},
"type": "object"
},
"CheckReadinessResponse": {
"description": "Response containing status of the connector for readiness prober.",
"id": "CheckReadinessResponse",
Expand Down Expand Up @@ -888,9 +907,14 @@
"type": "object"
},
"ExchangeAuthCodeRequest": {
"description": "ExchangeAuthCodeRequest currently includes no fields.",
"description": "ExchangeAuthCodeRequest currently includes the auth code data.",
"id": "ExchangeAuthCodeRequest",
"properties": {},
"properties": {
"authCodeData": {
"$ref": "AuthCodeData",
"description": "Optional. AuthCodeData contains the data the runtime requires to exchange for access and refresh tokens. If the data is not provided, the runtime will read the data from the secret manager."
}
},
"type": "object"
},
"ExchangeAuthCodeResponse": {
Expand Down Expand Up @@ -2105,9 +2129,14 @@ false
"type": "object"
},
"RefreshAccessTokenRequest": {
"description": "RefreshAccessTokenRequest currently includes no fields.",
"description": "RefreshAccessTokenRequest includes the refresh token.",
"id": "RefreshAccessTokenRequest",
"properties": {},
"properties": {
"refreshToken": {
"description": "Optional. Refresh Token String. If the Refresh Token is not provided, the runtime will read the data from the secret manager.",
"type": "string"
}
},
"type": "object"
},
"RefreshAccessTokenResponse": {
Expand Down

0 comments on commit 168a5f4

Please sign in to comment.