Skip to content

Commit d3c76de

Browse files
feat: Automated regeneration of cloudfunctions v2 client (#18474)
Auto-created at 2024-03-10 10:34:55 +0000 using the toys pull request generator.
1 parent b97a116 commit d3c76de

4 files changed

Lines changed: 15 additions & 3 deletions

File tree

api_names_out.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59173,6 +59173,7 @@
5917359173
"/cloudfunctions:v2/cloudfunctions.projects.locations.functions.generateUploadUrl/parent": parent
5917459174
"/cloudfunctions:v2/cloudfunctions.projects.locations.functions.get": get_project_location_function
5917559175
"/cloudfunctions:v2/cloudfunctions.projects.locations.functions.get/name": name
59176+
"/cloudfunctions:v2/cloudfunctions.projects.locations.functions.get/revision": revision
5917659177
"/cloudfunctions:v2/cloudfunctions.projects.locations.functions.getIamPolicy": get_project_location_function_iam_policy
5917759178
"/cloudfunctions:v2/cloudfunctions.projects.locations.functions.getIamPolicy/options.requestedPolicyVersion": options_requested_policy_version
5917859179
"/cloudfunctions:v2/cloudfunctions.projects.locations.functions.getIamPolicy/resource": resource

generated/google-apis-cloudfunctions_v2/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-cloudfunctions_v2
22

3+
### v0.39.0 (2024-03-10)
4+
5+
* Regenerated from discovery document revision 20240229
6+
37
### v0.38.0 (2024-02-24)
48

59
* Regenerated using generator version 0.14.0

generated/google-apis-cloudfunctions_v2/lib/google/apis/cloudfunctions_v2/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module CloudfunctionsV2
1818
# Version of the google-apis-cloudfunctions_v2 gem
19-
GEM_VERSION = "0.38.0"
19+
GEM_VERSION = "0.39.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.14.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20240207"
25+
REVISION = "20240229"
2626
end
2727
end
2828
end

generated/google-apis-cloudfunctions_v2/lib/google/apis/cloudfunctions_v2/service.rb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,12 @@ def generate_function_upload_url(parent, generate_upload_url_request_object = ni
323323
# Returns a function with the given name from the requested project.
324324
# @param [String] name
325325
# Required. The name of the function which details should be obtained.
326+
# @param [String] revision
327+
# Optional. The optional version of the 1st gen function whose details should be
328+
# obtained. The version of a 1st gen function is an integer that starts from 1
329+
# and gets incremented on redeployments. GCF may keep historical configs for old
330+
# versions of 1st gen function. This field can be specified to fetch the
331+
# historical configs. This field is valid only for GCF 1st gen function.
326332
# @param [String] fields
327333
# Selector specifying which fields to include in a partial response.
328334
# @param [String] quota_user
@@ -340,11 +346,12 @@ def generate_function_upload_url(parent, generate_upload_url_request_object = ni
340346
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
341347
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
342348
# @raise [Google::Apis::AuthorizationError] Authorization is required
343-
def get_project_location_function(name, fields: nil, quota_user: nil, options: nil, &block)
349+
def get_project_location_function(name, revision: nil, fields: nil, quota_user: nil, options: nil, &block)
344350
command = make_simple_command(:get, 'v2/{+name}', options)
345351
command.response_representation = Google::Apis::CloudfunctionsV2::Function::Representation
346352
command.response_class = Google::Apis::CloudfunctionsV2::Function
347353
command.params['name'] = name unless name.nil?
354+
command.query['revision'] = revision unless revision.nil?
348355
command.query['fields'] = fields unless fields.nil?
349356
command.query['quotaUser'] = quota_user unless quota_user.nil?
350357
execute_or_queue_command(command, &block)

0 commit comments

Comments
 (0)