Skip to content

Commit d958862

Browse files
feat(cloudfunctions): update the api
#### cloudfunctions:v1 The following keys were added: - resources.projects.resources.locations.resources.functions.methods.get.parameters.versionId (Total Keys: 3)
1 parent 07c0633 commit d958862

File tree

5 files changed

+13
-6
lines changed

5 files changed

+13
-6
lines changed

docs/dyn/cloudfunctions_v1.projects.locations.functions.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ <h2>Instance Methods</h2>
9393
<code><a href="#generateUploadUrl">generateUploadUrl(parent, body=None, x__xgafv=None)</a></code></p>
9494
<p class="firstline">Returns a signed URL for uploading a function source code. For more information about the signed URL usage see: https://cloud.google.com/storage/docs/access-control/signed-urls. Once the function source code upload is complete, the used signed URL should be provided in CreateFunction or UpdateFunction request as a reference to the function source code. When uploading source code to the generated signed URL, please follow these restrictions: * Source file type should be a zip file. * Source file size should not exceed 100MB limit. * No credentials should be attached - the signed URLs provide access to the target bucket using internal service identity; if credentials were attached, the identity from the credentials would be used, but that identity does not have permissions to upload files to the URL. When making a HTTP PUT request, these two headers need to be specified: * `content-type: application/zip` * `x-goog-content-length-range: 0,104857600` And this header SHOULD NOT be specified: * `Authorization: Bearer YOUR_TOKEN`</p>
9595
<p class="toc_element">
96-
<code><a href="#get">get(name, x__xgafv=None)</a></code></p>
96+
<code><a href="#get">get(name, versionId=None, x__xgafv=None)</a></code></p>
9797
<p class="firstline">Returns a function with the given name from the requested project.</p>
9898
<p class="toc_element">
9999
<code><a href="#getIamPolicy">getIamPolicy(resource, options_requestedPolicyVersion=None, x__xgafv=None)</a></code></p>
@@ -348,11 +348,12 @@ <h3>Method Details</h3>
348348
</div>
349349

350350
<div class="method">
351-
<code class="details" id="get">get(name, x__xgafv=None)</code>
351+
<code class="details" id="get">get(name, versionId=None, x__xgafv=None)</code>
352352
<pre>Returns a function with the given name from the requested project.
353353

354354
Args:
355355
name: string, Required. The name of the function which details should be obtained. (required)
356+
versionId: string, Optional. The optional version of the function whose details should be obtained. The version of a 1st Gen function is an integer that starts from 1 and gets incremented on redeployments. Each deployment creates a config version of the underlying function. GCF may keep historical configs for old versions. This field can be specified to fetch the historical configs. Leave it blank or set to 0 to get the latest version of the function.
356357
x__xgafv: string, V1 error format.
357358
Allowed values
358359
1 - v1 error format

googleapiclient/discovery_cache/documents/cloudfunctions.v1.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,12 @@
372372
"pattern": "^projects/[^/]+/locations/[^/]+/functions/[^/]+$",
373373
"required": true,
374374
"type": "string"
375+
},
376+
"versionId": {
377+
"description": "Optional. The optional version of the function whose details should be obtained. The version of a 1st Gen function is an integer that starts from 1 and gets incremented on redeployments. Each deployment creates a config version of the underlying function. GCF may keep historical configs for old versions. This field can be specified to fetch the historical configs. Leave it blank or set to 0 to get the latest version of the function.",
378+
"format": "int64",
379+
"location": "query",
380+
"type": "string"
375381
}
376382
},
377383
"path": "v1/{+name}",
@@ -546,7 +552,7 @@
546552
}
547553
}
548554
},
549-
"revision": "20231005",
555+
"revision": "20231012",
550556
"rootUrl": "https://cloudfunctions.googleapis.com/",
551557
"schemas": {
552558
"AuditConfig": {

googleapiclient/discovery_cache/documents/cloudfunctions.v2.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@
571571
}
572572
}
573573
},
574-
"revision": "20231005",
574+
"revision": "20231012",
575575
"rootUrl": "https://cloudfunctions.googleapis.com/",
576576
"schemas": {
577577
"AuditConfig": {

googleapiclient/discovery_cache/documents/cloudfunctions.v2alpha.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@
571571
}
572572
}
573573
},
574-
"revision": "20231005",
574+
"revision": "20231012",
575575
"rootUrl": "https://cloudfunctions.googleapis.com/",
576576
"schemas": {
577577
"AuditConfig": {

googleapiclient/discovery_cache/documents/cloudfunctions.v2beta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@
571571
}
572572
}
573573
},
574-
"revision": "20231005",
574+
"revision": "20231012",
575575
"rootUrl": "https://cloudfunctions.googleapis.com/",
576576
"schemas": {
577577
"AuditConfig": {

0 commit comments

Comments
 (0)