Skip to content

Commit 06337c0

Browse files
feat: Automated regeneration of cloudfunctions v2alpha client (googleapis#21482)
Auto-created at 2025-01-26 10:12:36 +0000 using the toys pull request generator.
1 parent 7a1e97c commit 06337c0

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
@@ -67539,6 +67539,7 @@
6753967539
"/cloudfunctions:v2alpha/Date/day": day
6754067540
"/cloudfunctions:v2alpha/Date/month": month
6754167541
"/cloudfunctions:v2alpha/Date/year": year
67542+
"/cloudfunctions:v2alpha/DetachFunctionRequest": detach_function_request
6754267543
"/cloudfunctions:v2alpha/EventFilter": event_filter
6754367544
"/cloudfunctions:v2alpha/EventFilter/attribute": attribute
6754467545
"/cloudfunctions:v2alpha/EventFilter/operator": operator
@@ -67836,6 +67837,8 @@
6783667837
"/cloudfunctions:v2alpha/cloudfunctions.projects.locations.functions.create/parent": parent
6783767838
"/cloudfunctions:v2alpha/cloudfunctions.projects.locations.functions.delete": delete_project_location_function
6783867839
"/cloudfunctions:v2alpha/cloudfunctions.projects.locations.functions.delete/name": name
67840+
"/cloudfunctions:v2alpha/cloudfunctions.projects.locations.functions.detachFunction": detach_function
67841+
"/cloudfunctions:v2alpha/cloudfunctions.projects.locations.functions.detachFunction/name": name
6783967842
"/cloudfunctions:v2alpha/cloudfunctions.projects.locations.functions.generateDownloadUrl": generate_function_download_url
6784067843
"/cloudfunctions:v2alpha/cloudfunctions.projects.locations.functions.generateDownloadUrl/name": name
6784167844
"/cloudfunctions:v2alpha/cloudfunctions.projects.locations.functions.generateUploadUrl": generate_function_upload_url

generated/google-apis-cloudfunctions_v2alpha/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_v2alpha
22

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

510
* Regenerated from discovery document revision 20241117

generated/google-apis-cloudfunctions_v2alpha/lib/google/apis/cloudfunctions_v2alpha/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_v2alpha/lib/google/apis/cloudfunctions_v2alpha/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 CloudfunctionsV2alpha
1818
# Version of the google-apis-cloudfunctions_v2alpha gem
19-
GEM_VERSION = "0.48.0"
19+
GEM_VERSION = "0.49.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_v2alpha/lib/google/apis/cloudfunctions_v2alpha/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_v2alpha/lib/google/apis/cloudfunctions_v2alpha/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::CloudfunctionsV2alpha::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::CloudfunctionsV2alpha::Operation] parsed result object
254+
# @yieldparam err [StandardError] error object if request failed
255+
#
256+
# @return [Google::Apis::CloudfunctionsV2alpha::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, 'v2alpha/{+name}:detachFunction', options)
263+
command.request_representation = Google::Apis::CloudfunctionsV2alpha::DetachFunctionRequest::Representation
264+
command.request_object = detach_function_request_object
265+
command.response_representation = Google::Apis::CloudfunctionsV2alpha::Operation::Representation
266+
command.response_class = Google::Apis::CloudfunctionsV2alpha::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)