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.customConnectors.resources.customConnectorVersions.methods.deprecate (Total Keys: 12)
- schemas.ConnectorsLogConfig.properties.level.type (Total Keys: 1)
- schemas.DeprecateCustomConnectorVersionRequest (Total Keys: 2)
- schemas.EndpointAttachment.properties.endpointGlobalAccess.type (Total Keys: 1)
  • Loading branch information
yoshi-automation committed May 14, 2024
1 parent 90fdc0a commit fa24e25
Show file tree
Hide file tree
Showing 4 changed files with 108 additions and 1 deletion.
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 @@ -491,6 +491,7 @@ <h3>Method Details</h3>
},
&quot;logConfig&quot;: { # Log configuration for the connection. # Optional. Log configuration for the connection.
&quot;enabled&quot;: True or False, # Enabled represents whether logging is enabled or not for a connection.
&quot;level&quot;: &quot;A String&quot;, # Optional. Log configuration level.
},
&quot;name&quot;: &quot;A String&quot;, # Output only. Resource name of the Connection. Format: projects/{project}/locations/{location}/connections/{connection}
&quot;nodeConfig&quot;: { # Node configuration for the connection. # Optional. Node configuration for the connection.
Expand Down Expand Up @@ -964,6 +965,7 @@ <h3>Method Details</h3>
},
&quot;logConfig&quot;: { # Log configuration for the connection. # Optional. Log configuration for the connection.
&quot;enabled&quot;: True or False, # Enabled represents whether logging is enabled or not for a connection.
&quot;level&quot;: &quot;A String&quot;, # Optional. Log configuration level.
},
&quot;name&quot;: &quot;A String&quot;, # Output only. Resource name of the Connection. Format: projects/{project}/locations/{location}/connections/{connection}
&quot;nodeConfig&quot;: { # Node configuration for the connection. # Optional. Node configuration for the connection.
Expand Down Expand Up @@ -1456,6 +1458,7 @@ <h3>Method Details</h3>
},
&quot;logConfig&quot;: { # Log configuration for the connection. # Optional. Log configuration for the connection.
&quot;enabled&quot;: True or False, # Enabled represents whether logging is enabled or not for a connection.
&quot;level&quot;: &quot;A String&quot;, # Optional. Log configuration level.
},
&quot;name&quot;: &quot;A String&quot;, # Output only. Resource name of the Connection. Format: projects/{project}/locations/{location}/connections/{connection}
&quot;nodeConfig&quot;: { # Node configuration for the connection. # Optional. Node configuration for the connection.
Expand Down Expand Up @@ -1902,6 +1905,7 @@ <h3>Method Details</h3>
},
&quot;logConfig&quot;: { # Log configuration for the connection. # Optional. Log configuration for the connection.
&quot;enabled&quot;: True or False, # Enabled represents whether logging is enabled or not for a connection.
&quot;level&quot;: &quot;A String&quot;, # Optional. Log configuration level.
},
&quot;name&quot;: &quot;A String&quot;, # Output only. Resource name of the Connection. Format: projects/{project}/locations/{location}/connections/{connection}
&quot;nodeConfig&quot;: { # Node configuration for the connection. # Optional. Node configuration for the connection.
Expand Down Expand Up @@ -2479,6 +2483,7 @@ <h3>Method Details</h3>
},
&quot;logConfig&quot;: { # Log configuration for the connection. # Optional. Log configuration for the connection.
&quot;enabled&quot;: True or False, # Enabled represents whether logging is enabled or not for a connection.
&quot;level&quot;: &quot;A String&quot;, # Optional. Log configuration level.
},
&quot;name&quot;: &quot;A String&quot;, # Output only. Resource name of the Connection. Format: projects/{project}/locations/{location}/connections/{connection}
&quot;nodeConfig&quot;: { # Node configuration for the connection. # Optional. Node configuration for the connection.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ <h2>Instance Methods</h2>
<p class="toc_element">
<code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
<p class="firstline">Deletes a single CustomConnectorVersion.</p>
<p class="toc_element">
<code><a href="#deprecate">deprecate(name, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Deprecates a single CustomConnectorVersion.</p>
<h3>Method Details</h3>
<div class="method">
<code class="details" id="close">close()</code>
Expand Down Expand Up @@ -121,4 +124,45 @@ <h3>Method Details</h3>
}</pre>
</div>

<div class="method">
<code class="details" id="deprecate">deprecate(name, body=None, x__xgafv=None)</code>
<pre>Deprecates a single CustomConnectorVersion.

Args:
name: string, Required. Resource name of the form: `projects/{project}/locations/{location}/customConnectors/{custom_connector}/customConnectorVersions/{custom_connector_version}` (required)
body: object, The request body.
The object takes the form of:

{ # Request message for ConnectorsService.DeprecateCustomConnectorVersion
}

x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format

Returns:
An object of the form:

{ # This resource represents a long-running operation that is the result of a network API call.
&quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
&quot;error&quot;: { # 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). # The error result of the operation in case of failure or cancellation.
&quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
&quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
{
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
},
],
&quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
},
&quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
},
&quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
&quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
},
}</pre>
</div>

</body></html>
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ <h3>Method Details</h3>
{ # represents the Connector&#x27;s Endpoint Attachment resource
&quot;createTime&quot;: &quot;A String&quot;, # Output only. Created time.
&quot;description&quot;: &quot;A String&quot;, # Optional. Description of the resource.
&quot;endpointGlobalAccess&quot;: True or False, # Optional. The Private Service Connect Connection Endpoint Global Access. https://cloud.google.com/vpc/docs/about-accessing-vpc-hosted-services-endpoints#global-access
&quot;endpointIp&quot;: &quot;A String&quot;, # Output only. The Private Service Connect connection endpoint ip
&quot;labels&quot;: { # Optional. 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 @@ -204,6 +205,7 @@ <h3>Method Details</h3>
{ # represents the Connector&#x27;s Endpoint Attachment resource
&quot;createTime&quot;: &quot;A String&quot;, # Output only. Created time.
&quot;description&quot;: &quot;A String&quot;, # Optional. Description of the resource.
&quot;endpointGlobalAccess&quot;: True or False, # Optional. The Private Service Connect Connection Endpoint Global Access. https://cloud.google.com/vpc/docs/about-accessing-vpc-hosted-services-endpoints#global-access
&quot;endpointIp&quot;: &quot;A String&quot;, # Output only. The Private Service Connect connection endpoint ip
&quot;labels&quot;: { # Optional. 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 @@ -237,6 +239,7 @@ <h3>Method Details</h3>
{ # represents the Connector&#x27;s Endpoint Attachment resource
&quot;createTime&quot;: &quot;A String&quot;, # Output only. Created time.
&quot;description&quot;: &quot;A String&quot;, # Optional. Description of the resource.
&quot;endpointGlobalAccess&quot;: True or False, # Optional. The Private Service Connect Connection Endpoint Global Access. https://cloud.google.com/vpc/docs/about-accessing-vpc-hosted-services-endpoints#global-access
&quot;endpointIp&quot;: &quot;A String&quot;, # Output only. The Private Service Connect connection endpoint ip
&quot;labels&quot;: { # Optional. 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 @@ -279,6 +282,7 @@ <h3>Method Details</h3>
{ # represents the Connector&#x27;s Endpoint Attachment resource
&quot;createTime&quot;: &quot;A String&quot;, # Output only. Created time.
&quot;description&quot;: &quot;A String&quot;, # Optional. Description of the resource.
&quot;endpointGlobalAccess&quot;: True or False, # Optional. The Private Service Connect Connection Endpoint Global Access. https://cloud.google.com/vpc/docs/about-accessing-vpc-hosted-services-endpoints#global-access
&quot;endpointIp&quot;: &quot;A String&quot;, # Output only. The Private Service Connect connection endpoint ip
&quot;labels&quot;: { # Optional. 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
56 changes: 55 additions & 1 deletion googleapiclient/discovery_cache/documents/connectors.v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -1212,6 +1212,34 @@
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"deprecate": {
"description": "Deprecates a single CustomConnectorVersion.",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/customConnectors/{customConnectorsId}/customConnectorVersions/{customConnectorVersionsId}:deprecate",
"httpMethod": "POST",
"id": "connectors.projects.locations.customConnectors.customConnectorVersions.deprecate",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Required. Resource name of the form: `projects/{project}/locations/{location}/customConnectors/{custom_connector}/customConnectorVersions/{custom_connector_version}`",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/customConnectors/[^/]+/customConnectorVersions/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+name}:deprecate",
"request": {
"$ref": "DeprecateCustomConnectorVersionRequest"
},
"response": {
"$ref": "Operation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
}
}
}
Expand Down Expand Up @@ -2399,7 +2427,7 @@
}
}
},
"revision": "20240415",
"revision": "20240504",
"rootUrl": "https://connectors.googleapis.com/",
"schemas": {
"AuditConfig": {
Expand Down Expand Up @@ -3422,6 +3450,22 @@
"enabled": {
"description": "Enabled represents whether logging is enabled or not for a connection.",
"type": "boolean"
},
"level": {
"description": "Optional. Log configuration level.",
"enum": [
"LOG_LEVEL_UNSPECIFIED",
"ERROR",
"INFO",
"DEBUG"
],
"enumDescriptions": [
"Log level unspecified.",
"Only error logs are enabled.",
"Info and error logs are enabled.",
"Debug and high verbosity logs are enabled."
],
"type": "string"
}
},
"type": "object"
Expand Down Expand Up @@ -3654,6 +3698,12 @@
},
"type": "object"
},
"DeprecateCustomConnectorVersionRequest": {
"description": "Request message for ConnectorsService.DeprecateCustomConnectorVersion",
"id": "DeprecateCustomConnectorVersionRequest",
"properties": {},
"type": "object"
},
"Destination": {
"id": "Destination",
"properties": {
Expand Down Expand Up @@ -3860,6 +3910,10 @@
"description": "Optional. Description of the resource.",
"type": "string"
},
"endpointGlobalAccess": {
"description": "Optional. The Private Service Connect Connection Endpoint Global Access. https://cloud.google.com/vpc/docs/about-accessing-vpc-hosted-services-endpoints#global-access",
"type": "boolean"
},
"endpointIp": {
"description": "Output only. The Private Service Connect connection endpoint ip",
"readOnly": true,
Expand Down

0 comments on commit fa24e25

Please sign in to comment.