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:
- resources.projects.resources.locations.resources.connections.methods.search (Total Keys: 18)
- schemas.BillingConfig (Total Keys: 4)
- schemas.Connection.properties.billingConfig (Total Keys: 2)
- schemas.CustomConnector.properties.activeConnectorVersions.readOnly (Total Keys: 1)
- schemas.CustomConnector.properties.allConnectorVersions (Total Keys: 3)
- schemas.RuntimeEntitySchema.properties.operations (Total Keys: 2)
- schemas.SearchConnectionInstance (Total Keys: 8)
- schemas.SearchConnectionsResponse (Total Keys: 7)

#### connectors:v2

The following keys were added:
- schemas.EntityType.properties.operations (Total Keys: 2)
  • Loading branch information
yoshi-automation committed Apr 23, 2024
1 parent 7d5361e commit b6c3df8
Show file tree
Hide file tree
Showing 7 changed files with 804 additions and 7 deletions.
Expand Up @@ -392,6 +392,9 @@ <h3>Method Details</h3>
&quot;A String&quot;,
],
},
&quot;operations&quot;: [ # List of operations supported by this entity
&quot;A String&quot;,
],
},
],
&quot;nextPageToken&quot;: &quot;A String&quot;, # token for next page
Expand Down
604 changes: 604 additions & 0 deletions docs/dyn/connectors_v1.projects.locations.connections.html

Large diffs are not rendered by default.

Expand Up @@ -163,6 +163,9 @@ <h3>Method Details</h3>
&quot;A String&quot;,
],
},
&quot;operations&quot;: [ # List of operations supported by this entity
&quot;A String&quot;,
],
},
],
}</pre>
Expand Down
Expand Up @@ -116,7 +116,10 @@ <h3>Method Details</h3>
The object takes the form of:

{ # CustomConnector represents the custom connector defined by the customer as part of byoc.
&quot;activeConnectorVersions&quot;: [ # Optional. Active connector versions.
&quot;activeConnectorVersions&quot;: [ # Output only. Active connector versions.
&quot;A String&quot;,
],
&quot;allConnectorVersions&quot;: [ # Output only. All connector versions.
&quot;A String&quot;,
],
&quot;createTime&quot;: &quot;A String&quot;, # Output only. Created time.
Expand Down Expand Up @@ -212,7 +215,10 @@ <h3>Method Details</h3>
An object of the form:

{ # CustomConnector represents the custom connector defined by the customer as part of byoc.
&quot;activeConnectorVersions&quot;: [ # Optional. Active connector versions.
&quot;activeConnectorVersions&quot;: [ # Output only. Active connector versions.
&quot;A String&quot;,
],
&quot;allConnectorVersions&quot;: [ # Output only. All connector versions.
&quot;A String&quot;,
],
&quot;createTime&quot;: &quot;A String&quot;, # Output only. Created time.
Expand Down Expand Up @@ -248,7 +254,10 @@ <h3>Method Details</h3>
{ # Response message for Connectors.ListCustomConnectors.
&quot;customConnectors&quot;: [ # A list of customConnectors.
{ # CustomConnector represents the custom connector defined by the customer as part of byoc.
&quot;activeConnectorVersions&quot;: [ # Optional. Active connector versions.
&quot;activeConnectorVersions&quot;: [ # Output only. Active connector versions.
&quot;A String&quot;,
],
&quot;allConnectorVersions&quot;: [ # Output only. All connector versions.
&quot;A String&quot;,
],
&quot;createTime&quot;: &quot;A String&quot;, # Output only. Created time.
Expand Down Expand Up @@ -294,7 +303,10 @@ <h3>Method Details</h3>
The object takes the form of:

{ # CustomConnector represents the custom connector defined by the customer as part of byoc.
&quot;activeConnectorVersions&quot;: [ # Optional. Active connector versions.
&quot;activeConnectorVersions&quot;: [ # Output only. Active connector versions.
&quot;A String&quot;,
],
&quot;allConnectorVersions&quot;: [ # Output only. All connector versions.
&quot;A String&quot;,
],
&quot;createTime&quot;: &quot;A String&quot;, # Output only. Created time.
Expand Down
Expand Up @@ -174,6 +174,9 @@ <h3>Method Details</h3>
],
},
&quot;name&quot;: &quot;A String&quot;, # The name of the entity type.
&quot;operations&quot;: [
&quot;A String&quot;,
],
}</pre>
</div>

Expand Down Expand Up @@ -264,6 +267,9 @@ <h3>Method Details</h3>
],
},
&quot;name&quot;: &quot;A String&quot;, # The name of the entity type.
&quot;operations&quot;: [
&quot;A String&quot;,
],
},
],
&quot;unsupportedTypeNames&quot;: [ # List of entity type names which contain unsupported Datatypes. Check datatype.proto for more information.
Expand Down
151 changes: 149 additions & 2 deletions googleapiclient/discovery_cache/documents/connectors.v1.json
Expand Up @@ -568,6 +568,47 @@
"https://www.googleapis.com/auth/cloud-platform"
]
},
"search": {
"description": "Returns Top matching Connections for a given query.",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/connections:search",
"httpMethod": "GET",
"id": "connectors.projects.locations.connections.search",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Required. Parent resource of the Connection, of the form: `projects/*/locations/*/connections`",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/connections$",
"required": true,
"type": "string"
},
"pageSize": {
"description": "Optional. The number of top matching connectors to return",
"format": "int32",
"location": "query",
"type": "integer"
},
"pageToken": {
"description": "Optional. page_token",
"location": "query",
"type": "string"
},
"query": {
"description": "Required. The query against which the search needs to be done.",
"location": "query",
"type": "string"
}
},
"path": "v1/{+name}:search",
"response": {
"$ref": "SearchConnectionsResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"setIamPolicy": {
"description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/connections/{connectionsId}:setIamPolicy",
Expand Down Expand Up @@ -2358,7 +2399,7 @@
}
}
},
"revision": "20240320",
"revision": "20240415",
"rootUrl": "https://connectors.googleapis.com/",
"schemas": {
"AuditConfig": {
Expand Down Expand Up @@ -2543,6 +2584,28 @@
},
"type": "object"
},
"BillingConfig": {
"description": "Billing config for the connection.",
"id": "BillingConfig",
"properties": {
"billingCategory": {
"description": "Output only. Billing category for the connector.",
"enum": [
"BILLING_CATEGORY_UNSPECIFIED",
"GCP_AND_TECHNICAL_CONNECTOR",
"NON_GCP_CONNECTOR"
],
"enumDescriptions": [
"Billing category is not specified.",
"GCP/Technical connector.",
"Non-GCP connector."
],
"readOnly": true,
"type": "string"
}
},
"type": "object"
},
"Binding": {
"description": "Associates `members`, or principals, with a `role`.",
"id": "Binding",
Expand Down Expand Up @@ -2729,6 +2792,11 @@
"$ref": "AuthConfig",
"description": "Optional. Configuration for establishing the connection's authentication with an external system."
},
"billingConfig": {
"$ref": "BillingConfig",
"description": "Output only. Billing config for the connection.",
"readOnly": true
},
"configVariables": {
"description": "Optional. Configuration for configuring the connection with an external system.",
"items": {
Expand Down Expand Up @@ -3363,10 +3431,19 @@
"id": "CustomConnector",
"properties": {
"activeConnectorVersions": {
"description": "Optional. Active connector versions.",
"description": "Output only. Active connector versions.",
"items": {
"type": "string"
},
"readOnly": true,
"type": "array"
},
"allConnectorVersions": {
"description": "Output only. All connector versions.",
"items": {
"type": "string"
},
"readOnly": true,
"type": "array"
},
"createTime": {
Expand Down Expand Up @@ -6528,6 +6605,29 @@ false
"$ref": "JsonSchema",
"description": "Output only. JsonSchema representation of this entity's metadata",
"readOnly": true
},
"operations": {
"description": "List of operations supported by this entity",
"items": {
"enum": [
"OPERATION_UNSPECIFIED",
"LIST",
"GET",
"CREATE",
"UPDATE",
"DELETE"
],
"enumDescriptions": [
"Operation unspecified.",
"This operation means entity type supports LIST entities.",
"This operation means entity type supports GET entity.",
"This operation means entity type supports CREATE entity.",
"This operation means entity type supports UPDATE entity.",
"This operation means entity type supports DELETE entity."
],
"type": "string"
},
"type": "array"
}
},
"type": "object"
Expand Down Expand Up @@ -6587,6 +6687,53 @@ false
},
"type": "object"
},
"SearchConnectionInstance": {
"description": "SearchConnectionInstance represents an instance of connector with specific fields",
"id": "SearchConnectionInstance",
"properties": {
"actionSchema": {
"$ref": "RuntimeActionSchema",
"description": "Output only. Schema of a runtime action.",
"readOnly": true
},
"connection": {
"$ref": "Connection",
"description": "Output only. Connection details",
"readOnly": true
},
"entitySchema": {
"$ref": "RuntimeEntitySchema",
"description": "Output only. Schema of a runtime entity.",
"readOnly": true
}
},
"type": "object"
},
"SearchConnectionsResponse": {
"description": "Response message for Connectors.SearchConnections.",
"id": "SearchConnectionsResponse",
"properties": {
"connections": {
"description": "A list of connectors.",
"items": {
"$ref": "SearchConnectionInstance"
},
"type": "array"
},
"nextPageToken": {
"description": "Optional. page_token",
"type": "string"
},
"unreachable": {
"description": "Locations that could not be reached.",
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"Secret": {
"description": "Secret provides a reference to entries in Secret Manager.",
"id": "Secret",
Expand Down
24 changes: 23 additions & 1 deletion googleapiclient/discovery_cache/documents/connectors.v2.json
Expand Up @@ -660,7 +660,7 @@
}
}
},
"revision": "20240320",
"revision": "20240415",
"rootUrl": "https://connectors.googleapis.com/",
"schemas": {
"AccessCredentials": {
Expand Down Expand Up @@ -861,6 +861,28 @@
"name": {
"description": "The name of the entity type.",
"type": "string"
},
"operations": {
"items": {
"enum": [
"OPERATION_UNSPECIFIED",
"LIST",
"GET",
"CREATE",
"UPDATE",
"DELETE"
],
"enumDescriptions": [
"Operation unspecified.",
"This operation means entity type supports LIST method.",
"This operation means entity type supports GET method.",
"This operation means entity type supports CREATE method.",
"This operation means entity type supports UPDATE method.",
"This operation means entity type supports DELETE method."
],
"type": "string"
},
"type": "array"
}
},
"type": "object"
Expand Down

0 comments on commit b6c3df8

Please sign in to comment.