Skip to content

Commit 992006c

Browse files
feat: Automated regeneration of cloudsupport v2beta client (googleapis#23886)
Auto-created at 2025-08-10 09:46:11 +0000 using the toys pull request generator.
1 parent 6072b6d commit 992006c

File tree

4 files changed

+87
-2
lines changed

4 files changed

+87
-2
lines changed

api_names_out.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81983,6 +81983,8 @@
8198381983
"/cloudsupport:v2beta/cloudsupport.caseClassifications.search/product.productLine": product_product_line
8198481984
"/cloudsupport:v2beta/cloudsupport.caseClassifications.search/product.productSubline": product_product_subline
8198581985
"/cloudsupport:v2beta/cloudsupport.caseClassifications.search/query": query
81986+
"/cloudsupport:v2beta/cloudsupport.cases.attachments.get": get_case_attachment
81987+
"/cloudsupport:v2beta/cloudsupport.cases.attachments.get/name": name
8198681988
"/cloudsupport:v2beta/cloudsupport.cases.attachments.list": list_case_attachments
8198781989
"/cloudsupport:v2beta/cloudsupport.cases.attachments.list/pageSize": page_size
8198881990
"/cloudsupport:v2beta/cloudsupport.cases.attachments.list/pageToken": page_token
@@ -81991,6 +81993,8 @@
8199181993
"/cloudsupport:v2beta/cloudsupport.cases.close/name": name
8199281994
"/cloudsupport:v2beta/cloudsupport.cases.comments.create": create_case_comment
8199381995
"/cloudsupport:v2beta/cloudsupport.cases.comments.create/parent": parent
81996+
"/cloudsupport:v2beta/cloudsupport.cases.comments.get": get_case_comment
81997+
"/cloudsupport:v2beta/cloudsupport.cases.comments.get/name": name
8199481998
"/cloudsupport:v2beta/cloudsupport.cases.comments.list": list_case_comments
8199581999
"/cloudsupport:v2beta/cloudsupport.cases.comments.list/pageSize": page_size
8199682000
"/cloudsupport:v2beta/cloudsupport.cases.comments.list/pageToken": page_token

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

3+
### v0.47.0 (2025-08-10)
4+
5+
* Regenerated from discovery document revision 20250806
6+
37
### v0.46.0 (2025-06-15)
48

59
* Regenerated from discovery document revision 20250609

generated/google-apis-cloudsupport_v2beta/lib/google/apis/cloudsupport_v2beta/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 CloudsupportV2beta
1818
# Version of the google-apis-cloudsupport_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
2222
GENERATOR_VERSION = "0.18.0"
2323

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

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

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,45 @@ def show_case_feed(parent, order_by: nil, page_size: nil, page_token: nil, field
511511
execute_or_queue_command(command, &block)
512512
end
513513

514+
# Retrieve an attachment associated with a support case. EXAMPLES: cURL: ```
515+
# shell attachment="projects/some-project/cases/23598314/attachments/
516+
# 0684M00000P3h1fQAB" curl \ --header "Authorization: Bearer $(gcloud auth print-
517+
# access-token)" \ "https://cloudsupport.googleapis.com/v2/$attachment" ```
518+
# Python: ```python import googleapiclient.discovery api_version = "v2beta"
519+
# supportApiService = googleapiclient.discovery.build( serviceName="cloudsupport"
520+
# , version=api_version, discoveryServiceUrl=f"https://cloudsupport.googleapis.
521+
# com/$discovery/rest?version=`api_version`", ) request = ( supportApiService.
522+
# cases() .attachments() .get(name="projects/some-project/cases/43595344/
523+
# attachments/0684M00000P3h1fQAB") ) print(request.execute()) ```
524+
# @param [String] name
525+
# Required. The name of the attachment to get.
526+
# @param [String] fields
527+
# Selector specifying which fields to include in a partial response.
528+
# @param [String] quota_user
529+
# Available to use for quota purposes for server-side applications. Can be any
530+
# arbitrary string assigned to a user, but should not exceed 40 characters.
531+
# @param [Google::Apis::RequestOptions] options
532+
# Request-specific options
533+
#
534+
# @yield [result, err] Result & error if block supplied
535+
# @yieldparam result [Google::Apis::CloudsupportV2beta::Attachment] parsed result object
536+
# @yieldparam err [StandardError] error object if request failed
537+
#
538+
# @return [Google::Apis::CloudsupportV2beta::Attachment]
539+
#
540+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
541+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
542+
# @raise [Google::Apis::AuthorizationError] Authorization is required
543+
def get_case_attachment(name, fields: nil, quota_user: nil, options: nil, &block)
544+
command = make_simple_command(:get, 'v2beta/{+name}', options)
545+
command.response_representation = Google::Apis::CloudsupportV2beta::Attachment::Representation
546+
command.response_class = Google::Apis::CloudsupportV2beta::Attachment
547+
command.params['name'] = name unless name.nil?
548+
command.query['fields'] = fields unless fields.nil?
549+
command.query['quotaUser'] = quota_user unless quota_user.nil?
550+
execute_or_queue_command(command, &block)
551+
end
552+
514553
# List all the attachments associated with a support case. EXAMPLES: cURL: ```
515554
# shell case="projects/some-project/cases/23598314" curl \ --header "
516555
# Authorization: Bearer $(gcloud auth print-access-token)" \ "https://
@@ -605,6 +644,44 @@ def create_case_comment(parent, comment_object = nil, fields: nil, quota_user: n
605644
execute_or_queue_command(command, &block)
606645
end
607646

647+
# Retrieve a comment. EXAMPLES: cURL: ```shell comment="projects/some-project/
648+
# cases/43595344/comments/234567890" curl \ --header "Authorization: Bearer $(
649+
# gcloud auth print-access-token)" \ "https://cloudsupport.googleapis.com/v2/$
650+
# comment" ``` Python: ```python import googleapiclient.discovery api_version = "
651+
# v2beta" supportApiService = googleapiclient.discovery.build( serviceName="
652+
# cloudsupport", version=api_version, discoveryServiceUrl=f"https://cloudsupport.
653+
# googleapis.com/$discovery/rest?version=`api_version`", ) request =
654+
# supportApiService.cases().comments().get( name="projects/some-project/cases/
655+
# 43595344/comments/234567890", ) print(request.execute()) ```
656+
# @param [String] name
657+
# Required. The name of the comment to retrieve.
658+
# @param [String] fields
659+
# Selector specifying which fields to include in a partial response.
660+
# @param [String] quota_user
661+
# Available to use for quota purposes for server-side applications. Can be any
662+
# arbitrary string assigned to a user, but should not exceed 40 characters.
663+
# @param [Google::Apis::RequestOptions] options
664+
# Request-specific options
665+
#
666+
# @yield [result, err] Result & error if block supplied
667+
# @yieldparam result [Google::Apis::CloudsupportV2beta::Comment] parsed result object
668+
# @yieldparam err [StandardError] error object if request failed
669+
#
670+
# @return [Google::Apis::CloudsupportV2beta::Comment]
671+
#
672+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
673+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
674+
# @raise [Google::Apis::AuthorizationError] Authorization is required
675+
def get_case_comment(name, fields: nil, quota_user: nil, options: nil, &block)
676+
command = make_simple_command(:get, 'v2beta/{+name}', options)
677+
command.response_representation = Google::Apis::CloudsupportV2beta::Comment::Representation
678+
command.response_class = Google::Apis::CloudsupportV2beta::Comment
679+
command.params['name'] = name unless name.nil?
680+
command.query['fields'] = fields unless fields.nil?
681+
command.query['quotaUser'] = quota_user unless quota_user.nil?
682+
execute_or_queue_command(command, &block)
683+
end
684+
608685
# List all the comments associated with a case. EXAMPLES: cURL: ```shell case="
609686
# projects/some-project/cases/43595344" curl \ --header "Authorization: Bearer $(
610687
# gcloud auth print-access-token)" \ "https://cloudsupport.googleapis.com/v2/$

0 commit comments

Comments
 (0)