Skip to content

Commit d592806

Browse files
feat(connectors): update the api
#### connectors:v1 The following keys were added: - resources.projects.resources.locations.methods.getRegionalSettings (Total Keys: 11) - resources.projects.resources.locations.methods.updateRegionalSettings (Total Keys: 15) - schemas.ConnectorInfraConfig.properties.deploymentModel.type (Total Keys: 1) - schemas.Destination.properties.serviceAttachment.deprecated (Total Keys: 1) - schemas.NetworkConfig (Total Keys: 6) - schemas.RegionalSettings (Total Keys: 5)
1 parent fdd1086 commit d592806

File tree

4 files changed

+203
-2
lines changed

4 files changed

+203
-2
lines changed

docs/dyn/connectors_v1.projects.locations.html

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ <h2>Instance Methods</h2>
105105
<p class="toc_element">
106106
<code><a href="#get">get(name, x__xgafv=None)</a></code></p>
107107
<p class="firstline">Gets information about a location.</p>
108+
<p class="toc_element">
109+
<code><a href="#getRegionalSettings">getRegionalSettings(name, x__xgafv=None)</a></code></p>
110+
<p class="firstline">GetRegionalSettings gets settings of a region. RegionalSettings is a singleton resource.</p>
108111
<p class="toc_element">
109112
<code><a href="#getRuntimeConfig">getRuntimeConfig(name, x__xgafv=None)</a></code></p>
110113
<p class="firstline">Gets the runtimeConfig of a location. RuntimeConfig is a singleton resource for each location.</p>
@@ -114,6 +117,9 @@ <h2>Instance Methods</h2>
114117
<p class="toc_element">
115118
<code><a href="#list_next">list_next()</a></code></p>
116119
<p class="firstline">Retrieves the next page of results.</p>
120+
<p class="toc_element">
121+
<code><a href="#updateRegionalSettings">updateRegionalSettings(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
122+
<p class="firstline">Update the settings of a region.</p>
117123
<h3>Method Details</h3>
118124
<div class="method">
119125
<code class="details" id="close">close()</code>
@@ -147,6 +153,31 @@ <h3>Method Details</h3>
147153
}</pre>
148154
</div>
149155

156+
<div class="method">
157+
<code class="details" id="getRegionalSettings">getRegionalSettings(name, x__xgafv=None)</code>
158+
<pre>GetRegionalSettings gets settings of a region. RegionalSettings is a singleton resource.
159+
160+
Args:
161+
name: string, Required. The resource name of the Regional Settings. (required)
162+
x__xgafv: string, V1 error format.
163+
Allowed values
164+
1 - v1 error format
165+
2 - v2 error format
166+
167+
Returns:
168+
An object of the form:
169+
170+
{ # Regional Settings details.
171+
&quot;name&quot;: &quot;A String&quot;, # Output only. Resource name of the Connection. Format: projects/{project}/locations/{location}/regionalSettings
172+
&quot;networkConfig&quot;: { # Regional Network Config. # Optional. Regional network config.
173+
&quot;egressIps&quot;: [ # Output only. Egress IPs
174+
&quot;A String&quot;,
175+
],
176+
&quot;egressMode&quot;: &quot;A String&quot;, # Optional. Egress mode for the network.
177+
},
178+
}</pre>
179+
</div>
180+
150181
<div class="method">
151182
<code class="details" id="getRuntimeConfig">getRuntimeConfig(name, x__xgafv=None)</code>
152183
<pre>Gets the runtimeConfig of a location. RuntimeConfig is a singleton resource for each location.
@@ -224,4 +255,53 @@ <h3>Method Details</h3>
224255
</pre>
225256
</div>
226257

258+
<div class="method">
259+
<code class="details" id="updateRegionalSettings">updateRegionalSettings(name, body=None, updateMask=None, x__xgafv=None)</code>
260+
<pre>Update the settings of a region.
261+
262+
Args:
263+
name: string, Output only. Resource name of the Connection. Format: projects/{project}/locations/{location}/regionalSettings (required)
264+
body: object, The request body.
265+
The object takes the form of:
266+
267+
{ # Regional Settings details.
268+
&quot;name&quot;: &quot;A String&quot;, # Output only. Resource name of the Connection. Format: projects/{project}/locations/{location}/regionalSettings
269+
&quot;networkConfig&quot;: { # Regional Network Config. # Optional. Regional network config.
270+
&quot;egressIps&quot;: [ # Output only. Egress IPs
271+
&quot;A String&quot;,
272+
],
273+
&quot;egressMode&quot;: &quot;A String&quot;, # Optional. Egress mode for the network.
274+
},
275+
}
276+
277+
updateMask: string, Required. The list of fields to update.
278+
x__xgafv: string, V1 error format.
279+
Allowed values
280+
1 - v1 error format
281+
2 - v2 error format
282+
283+
Returns:
284+
An object of the form:
285+
286+
{ # This resource represents a long-running operation that is the result of a network API call.
287+
&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.
288+
&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.
289+
&quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
290+
&quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
291+
{
292+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
293+
},
294+
],
295+
&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.
296+
},
297+
&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.
298+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
299+
},
300+
&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}`.
301+
&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`.
302+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
303+
},
304+
}</pre>
305+
</div>
306+
227307
</body></html>

docs/dyn/connectors_v1.projects.locations.providers.connectors.versions.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ <h3>Method Details</h3>
231231
],
232232
&quot;connectorInfraConfig&quot;: { # This cofiguration provides infra configs like rate limit threshold which need to be configurable for every connector version # Output only. Infra configs supported by Connector.
233233
&quot;connectionRatelimitWindowSeconds&quot;: &quot;A String&quot;, # The window used for ratelimiting runtime requests to connections.
234+
&quot;deploymentModel&quot;: &quot;A String&quot;, # Indicate whether connector is deployed on GKE/CloudRun
234235
&quot;hpaConfig&quot;: { # Autoscaling config for connector deployment system metrics. # HPA autoscaling config.
235236
&quot;cpuUtilizationThreshold&quot;: &quot;A String&quot;, # Output only. Percent CPU utilization where HPA triggers autoscaling.
236237
&quot;memoryUtilizationThreshold&quot;: &quot;A String&quot;, # Output only. Percent Memory utilization where HPA triggers autoscaling.
@@ -694,6 +695,7 @@ <h3>Method Details</h3>
694695
],
695696
&quot;connectorInfraConfig&quot;: { # This cofiguration provides infra configs like rate limit threshold which need to be configurable for every connector version # Output only. Infra configs supported by Connector.
696697
&quot;connectionRatelimitWindowSeconds&quot;: &quot;A String&quot;, # The window used for ratelimiting runtime requests to connections.
698+
&quot;deploymentModel&quot;: &quot;A String&quot;, # Indicate whether connector is deployed on GKE/CloudRun
697699
&quot;hpaConfig&quot;: { # Autoscaling config for connector deployment system metrics. # HPA autoscaling config.
698700
&quot;cpuUtilizationThreshold&quot;: &quot;A String&quot;, # Output only. Percent CPU utilization where HPA triggers autoscaling.
699701
&quot;memoryUtilizationThreshold&quot;: &quot;A String&quot;, # Output only. Percent Memory utilization where HPA triggers autoscaling.

googleapiclient/discovery_cache/documents/connectors.v1.json

Lines changed: 120 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,31 @@
134134
"https://www.googleapis.com/auth/cloud-platform"
135135
]
136136
},
137+
"getRegionalSettings": {
138+
"description": "GetRegionalSettings gets settings of a region. RegionalSettings is a singleton resource.",
139+
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/regionalSettings",
140+
"httpMethod": "GET",
141+
"id": "connectors.projects.locations.getRegionalSettings",
142+
"parameterOrder": [
143+
"name"
144+
],
145+
"parameters": {
146+
"name": {
147+
"description": "Required. The resource name of the Regional Settings.",
148+
"location": "path",
149+
"pattern": "^projects/[^/]+/locations/[^/]+/regionalSettings$",
150+
"required": true,
151+
"type": "string"
152+
}
153+
},
154+
"path": "v1/{+name}",
155+
"response": {
156+
"$ref": "RegionalSettings"
157+
},
158+
"scopes": [
159+
"https://www.googleapis.com/auth/cloud-platform"
160+
]
161+
},
137162
"getRuntimeConfig": {
138163
"description": "Gets the runtimeConfig of a location. RuntimeConfig is a singleton resource for each location.",
139164
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/runtimeConfig",
@@ -199,6 +224,40 @@
199224
"scopes": [
200225
"https://www.googleapis.com/auth/cloud-platform"
201226
]
227+
},
228+
"updateRegionalSettings": {
229+
"description": "Update the settings of a region.",
230+
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/regionalSettings",
231+
"httpMethod": "PATCH",
232+
"id": "connectors.projects.locations.updateRegionalSettings",
233+
"parameterOrder": [
234+
"name"
235+
],
236+
"parameters": {
237+
"name": {
238+
"description": "Output only. Resource name of the Connection. Format: projects/{project}/locations/{location}/regionalSettings",
239+
"location": "path",
240+
"pattern": "^projects/[^/]+/locations/[^/]+/regionalSettings$",
241+
"required": true,
242+
"type": "string"
243+
},
244+
"updateMask": {
245+
"description": "Required. The list of fields to update.",
246+
"format": "google-fieldmask",
247+
"location": "query",
248+
"type": "string"
249+
}
250+
},
251+
"path": "v1/{+name}",
252+
"request": {
253+
"$ref": "RegionalSettings"
254+
},
255+
"response": {
256+
"$ref": "Operation"
257+
},
258+
"scopes": [
259+
"https://www.googleapis.com/auth/cloud-platform"
260+
]
202261
}
203262
},
204263
"resources": {
@@ -1773,7 +1832,7 @@
17731832
}
17741833
}
17751834
},
1776-
"revision": "20230920",
1835+
"revision": "20231011",
17771836
"rootUrl": "https://connectors.googleapis.com/",
17781837
"schemas": {
17791838
"AuditConfig": {
@@ -2460,6 +2519,20 @@
24602519
"format": "int64",
24612520
"type": "string"
24622521
},
2522+
"deploymentModel": {
2523+
"description": "Indicate whether connector is deployed on GKE/CloudRun",
2524+
"enum": [
2525+
"DEPLOYMENT_MODEL_UNSPECIFIED",
2526+
"GKE_MST",
2527+
"CLOUD_RUN_MST"
2528+
],
2529+
"enumDescriptions": [
2530+
"Deployment model is not specified.",
2531+
"Default model gke mst.",
2532+
"Cloud run mst."
2533+
],
2534+
"type": "string"
2535+
},
24632536
"hpaConfig": {
24642537
"$ref": "HPAConfig",
24652538
"description": "HPA autoscaling config."
@@ -2681,6 +2754,7 @@
26812754
"type": "integer"
26822755
},
26832756
"serviceAttachment": {
2757+
"deprecated": true,
26842758
"description": "PSC service attachments. Format: projects/*/regions/*/serviceAttachments/*",
26852759
"type": "string"
26862760
}
@@ -4319,6 +4393,35 @@
43194393
},
43204394
"type": "object"
43214395
},
4396+
"NetworkConfig": {
4397+
"description": "Regional Network Config.",
4398+
"id": "NetworkConfig",
4399+
"properties": {
4400+
"egressIps": {
4401+
"description": "Output only. Egress IPs",
4402+
"items": {
4403+
"type": "string"
4404+
},
4405+
"readOnly": true,
4406+
"type": "array"
4407+
},
4408+
"egressMode": {
4409+
"description": "Optional. Egress mode for the network.",
4410+
"enum": [
4411+
"NETWORK_EGRESS_MODE_UNSPECIFIED",
4412+
"AUTO_IP",
4413+
"STATIC_IP"
4414+
],
4415+
"enumDescriptions": [
4416+
"Egress mode unspecified.",
4417+
"Network egress through auto assigned IPs.",
4418+
"Network egress through static IPs."
4419+
],
4420+
"type": "string"
4421+
}
4422+
},
4423+
"type": "object"
4424+
},
43224425
"NodeConfig": {
43234426
"description": "Node configuration for the connection.",
43244427
"id": "NodeConfig",
@@ -4600,6 +4703,22 @@
46004703
"properties": {},
46014704
"type": "object"
46024705
},
4706+
"RegionalSettings": {
4707+
"description": "Regional Settings details.",
4708+
"id": "RegionalSettings",
4709+
"properties": {
4710+
"name": {
4711+
"description": "Output only. Resource name of the Connection. Format: projects/{project}/locations/{location}/regionalSettings",
4712+
"readOnly": true,
4713+
"type": "string"
4714+
},
4715+
"networkConfig": {
4716+
"$ref": "NetworkConfig",
4717+
"description": "Optional. Regional network config."
4718+
}
4719+
},
4720+
"type": "object"
4721+
},
46034722
"RepairEventingRequest": {
46044723
"description": "Request message for ConnectorsService.RepairEventing",
46054724
"id": "RepairEventingRequest",

googleapiclient/discovery_cache/documents/connectors.v2.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@
558558
}
559559
}
560560
},
561-
"revision": "20230920",
561+
"revision": "20231011",
562562
"rootUrl": "https://connectors.googleapis.com/",
563563
"schemas": {
564564
"Action": {

0 commit comments

Comments
 (0)