Skip to content

Commit 7ec6186

Browse files
feat: Automated regeneration of cloudfunctions v2beta client (googleapis#21468)
Auto-created at 2025-01-26 09:49:40 +0000 using the toys pull request generator.
1 parent 884d7aa commit 7ec6186

File tree

6 files changed

+73
-4
lines changed

6 files changed

+73
-4
lines changed

api_names_out.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67913,6 +67913,7 @@
6791367913
"/cloudfunctions:v2beta/Date/day": day
6791467914
"/cloudfunctions:v2beta/Date/month": month
6791567915
"/cloudfunctions:v2beta/Date/year": year
67916+
"/cloudfunctions:v2beta/DetachFunctionRequest": detach_function_request
6791667917
"/cloudfunctions:v2beta/EventFilter": event_filter
6791767918
"/cloudfunctions:v2beta/EventFilter/attribute": attribute
6791867919
"/cloudfunctions:v2beta/EventFilter/operator": operator
@@ -68210,6 +68211,8 @@
6821068211
"/cloudfunctions:v2beta/cloudfunctions.projects.locations.functions.create/parent": parent
6821168212
"/cloudfunctions:v2beta/cloudfunctions.projects.locations.functions.delete": delete_project_location_function
6821268213
"/cloudfunctions:v2beta/cloudfunctions.projects.locations.functions.delete/name": name
68214+
"/cloudfunctions:v2beta/cloudfunctions.projects.locations.functions.detachFunction": detach_function
68215+
"/cloudfunctions:v2beta/cloudfunctions.projects.locations.functions.detachFunction/name": name
6821368216
"/cloudfunctions:v2beta/cloudfunctions.projects.locations.functions.generateDownloadUrl": generate_function_download_url
6821468217
"/cloudfunctions:v2beta/cloudfunctions.projects.locations.functions.generateDownloadUrl/name": name
6821568218
"/cloudfunctions:v2beta/cloudfunctions.projects.locations.functions.generateUploadUrl": generate_function_upload_url

generated/google-apis-cloudfunctions_v2beta/CHANGELOG.md

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

3+
### v0.47.0 (2025-01-26)
4+
5+
* Regenerated from discovery document revision 20250116
6+
* Regenerated using generator version 0.16.0
7+
38
### v0.46.0 (2024-12-02)
49

510
* Regenerated from discovery document revision 20241117

generated/google-apis-cloudfunctions_v2beta/lib/google/apis/cloudfunctions_v2beta/classes.rb

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,10 @@ class BuildConfig
240240

241241
# Docker Registry to use for this deployment. This configuration is only
242242
# applicable to 1st Gen functions, 2nd Gen functions can only use Artifact
243-
# Registry. If unspecified, it defaults to `ARTIFACT_REGISTRY`. If `
243+
# Registry. Deprecated: Container Registry option will no longer be available
244+
# after March 2025: https://cloud.google.com/artifact-registry/docs/transition/
245+
# transition-from-gcr Please use Artifact Registry instead, which is the default
246+
# choice. If unspecified, it defaults to `ARTIFACT_REGISTRY`. If `
244247
# docker_repository` field is specified, this field should either be left
245248
# unspecified or set to `ARTIFACT_REGISTRY`.
246249
# Corresponds to the JSON property `dockerRegistry`
@@ -395,6 +398,19 @@ def update!(**args)
395398
end
396399
end
397400

401+
# Request for the `DetachFunction` method.
402+
class DetachFunctionRequest
403+
include Google::Apis::Core::Hashable
404+
405+
def initialize(**args)
406+
update!(**args)
407+
end
408+
409+
# Update properties of this object
410+
def update!(**args)
411+
end
412+
end
413+
398414
# Filters events based on exact matches on the CloudEvents attributes.
399415
class EventFilter
400416
include Google::Apis::Core::Hashable

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module CloudfunctionsV2beta
1818
# Version of the google-apis-cloudfunctions_v2beta gem
19-
GEM_VERSION = "0.46.0"
19+
GEM_VERSION = "0.47.0"
2020

2121
# Version of the code generator used to generate this client
22-
GENERATOR_VERSION = "0.15.1"
22+
GENERATOR_VERSION = "0.16.0"
2323

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

generated/google-apis-cloudfunctions_v2beta/lib/google/apis/cloudfunctions_v2beta/representations.rb

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
7070
include Google::Apis::Core::JsonObjectSupport
7171
end
7272

73+
class DetachFunctionRequest
74+
class Representation < Google::Apis::Core::JsonRepresentation; end
75+
76+
include Google::Apis::Core::JsonObjectSupport
77+
end
78+
7379
class EventFilter
7480
class Representation < Google::Apis::Core::JsonRepresentation; end
7581

@@ -375,6 +381,12 @@ class Representation < Google::Apis::Core::JsonRepresentation
375381
end
376382
end
377383

384+
class DetachFunctionRequest
385+
# @private
386+
class Representation < Google::Apis::Core::JsonRepresentation
387+
end
388+
end
389+
378390
class EventFilter
379391
# @private
380392
class Representation < Google::Apis::Core::JsonRepresentation

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

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,39 @@ def delete_project_location_function(name, fields: nil, quota_user: nil, options
237237
execute_or_queue_command(command, &block)
238238
end
239239

240+
# Detaches 2nd Gen function to Cloud Run function.
241+
# @param [String] name
242+
# Required. The name of the function for which should be detached.
243+
# @param [Google::Apis::CloudfunctionsV2beta::DetachFunctionRequest] detach_function_request_object
244+
# @param [String] fields
245+
# Selector specifying which fields to include in a partial response.
246+
# @param [String] quota_user
247+
# Available to use for quota purposes for server-side applications. Can be any
248+
# arbitrary string assigned to a user, but should not exceed 40 characters.
249+
# @param [Google::Apis::RequestOptions] options
250+
# Request-specific options
251+
#
252+
# @yield [result, err] Result & error if block supplied
253+
# @yieldparam result [Google::Apis::CloudfunctionsV2beta::Operation] parsed result object
254+
# @yieldparam err [StandardError] error object if request failed
255+
#
256+
# @return [Google::Apis::CloudfunctionsV2beta::Operation]
257+
#
258+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
259+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
260+
# @raise [Google::Apis::AuthorizationError] Authorization is required
261+
def detach_function(name, detach_function_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
262+
command = make_simple_command(:post, 'v2beta/{+name}:detachFunction', options)
263+
command.request_representation = Google::Apis::CloudfunctionsV2beta::DetachFunctionRequest::Representation
264+
command.request_object = detach_function_request_object
265+
command.response_representation = Google::Apis::CloudfunctionsV2beta::Operation::Representation
266+
command.response_class = Google::Apis::CloudfunctionsV2beta::Operation
267+
command.params['name'] = name unless name.nil?
268+
command.query['fields'] = fields unless fields.nil?
269+
command.query['quotaUser'] = quota_user unless quota_user.nil?
270+
execute_or_queue_command(command, &block)
271+
end
272+
240273
# Returns a signed URL for downloading deployed function source code. The URL is
241274
# only valid for a limited period and should be used within 30 minutes of
242275
# generation. For more information about the signed URL usage see: https://cloud.

0 commit comments

Comments
 (0)