Skip to content

Commit 5b837b2

Browse files
feat: Automated regeneration of cloudsupport v2 client (#26565)
Auto-created at 2026-05-24 10:58:45 +0000 using the toys pull request generator.
1 parent 3b3e905 commit 5b837b2

6 files changed

Lines changed: 97 additions & 3 deletions

File tree

api_names_out.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93798,6 +93798,7 @@
9379893798
"/cloudsupport:v2/Media/referenceType": reference_type
9379993799
"/cloudsupport:v2/Media/sha1Hash": sha1_hash
9380093800
"/cloudsupport:v2/Media/sha256Hash": sha256_hash
93801+
"/cloudsupport:v2/Media/sha512Hash": sha512_hash
9380193802
"/cloudsupport:v2/Media/timestamp": timestamp
9380293803
"/cloudsupport:v2/Media/token": token
9380393804
"/cloudsupport:v2/ObjectId": object_id_prop
@@ -93820,6 +93821,8 @@
9382093821
"/cloudsupport:v2/cloudsupport.caseClassifications.search/pageSize": page_size
9382193822
"/cloudsupport:v2/cloudsupport.caseClassifications.search/pageToken": page_token
9382293823
"/cloudsupport:v2/cloudsupport.caseClassifications.search/query": query
93824+
"/cloudsupport:v2/cloudsupport.cases.attachments.get": get_case_attachment
93825+
"/cloudsupport:v2/cloudsupport.cases.attachments.get/name": name
9382393826
"/cloudsupport:v2/cloudsupport.cases.attachments.list": list_case_attachments
9382493827
"/cloudsupport:v2/cloudsupport.cases.attachments.list/pageSize": page_size
9382593828
"/cloudsupport:v2/cloudsupport.cases.attachments.list/pageToken": page_token
@@ -93828,6 +93831,8 @@
9382893831
"/cloudsupport:v2/cloudsupport.cases.close/name": name
9382993832
"/cloudsupport:v2/cloudsupport.cases.comments.create": create_case_comment
9383093833
"/cloudsupport:v2/cloudsupport.cases.comments.create/parent": parent
93834+
"/cloudsupport:v2/cloudsupport.cases.comments.get": get_case_comment
93835+
"/cloudsupport:v2/cloudsupport.cases.comments.get/name": name
9383193836
"/cloudsupport:v2/cloudsupport.cases.comments.list": list_case_comments
9383293837
"/cloudsupport:v2/cloudsupport.cases.comments.list/pageSize": page_size
9383393838
"/cloudsupport:v2/cloudsupport.cases.comments.list/pageToken": page_token

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

3+
### v0.22.0 (2026-05-24)
4+
5+
* Regenerated from discovery document revision 20260519
6+
37
### v0.21.0 (2026-04-19)
48

59
* Regenerated from discovery document revision 20260409

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,6 +1025,12 @@ class Media
10251025
# @return [String]
10261026
attr_accessor :sha256_hash
10271027

1028+
# # gdata.* are outside protos with mising documentation
1029+
# Corresponds to the JSON property `sha512Hash`
1030+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
1031+
# @return [String]
1032+
attr_accessor :sha512_hash
1033+
10281034
# # gdata.* are outside protos with mising documentation
10291035
# Corresponds to the JSON property `timestamp`
10301036
# @return [Fixnum]
@@ -1069,6 +1075,7 @@ def update!(**args)
10691075
@reference_type = args[:reference_type] if args.key?(:reference_type)
10701076
@sha1_hash = args[:sha1_hash] if args.key?(:sha1_hash)
10711077
@sha256_hash = args[:sha256_hash] if args.key?(:sha256_hash)
1078+
@sha512_hash = args[:sha512_hash] if args.key?(:sha512_hash)
10721079
@timestamp = args[:timestamp] if args.key?(:timestamp)
10731080
@token = args[:token] if args.key?(:token)
10741081
end

generated/google-apis-cloudsupport_v2/lib/google/apis/cloudsupport_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 CloudsupportV2
1818
# Version of the google-apis-cloudsupport_v2 gem
19-
GEM_VERSION = "0.21.0"
19+
GEM_VERSION = "0.22.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 = "20260409"
25+
REVISION = "20260519"
2626
end
2727
end
2828
end

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
438438
property :reference_type, as: 'referenceType'
439439
property :sha1_hash, :base64 => true, as: 'sha1Hash'
440440
property :sha256_hash, :base64 => true, as: 'sha256Hash'
441+
property :sha512_hash, :base64 => true, as: 'sha512Hash'
441442
property :timestamp, :numeric_string => true, as: 'timestamp'
442443
property :token, as: 'token'
443444
end

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

Lines changed: 78 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,45 @@ def search_cases(parent, page_size: nil, page_token: nil, query: nil, fields: ni
467467
execute_or_queue_command(command, &block)
468468
end
469469

470+
# Retrieve an attachment associated with a support case. EXAMPLES: cURL: ```
471+
# shell attachment="projects/some-project/cases/23598314/attachments/
472+
# 0684M00000P3h1fQAB" curl \ --header "Authorization: Bearer $(gcloud auth print-
473+
# access-token)" \ "https://cloudsupport.googleapis.com/v2/$attachment" ```
474+
# Python: ```python import googleapiclient.discovery api_version = "v2"
475+
# supportApiService = googleapiclient.discovery.build( serviceName="cloudsupport"
476+
# , version=api_version, discoveryServiceUrl=f"https://cloudsupport.googleapis.
477+
# com/$discovery/rest?version=`api_version`", ) request = ( supportApiService.
478+
# cases() .attachments() .get(name="projects/some-project/cases/43595344/
479+
# attachments/0684M00000P3h1fQAB") ) print(request.execute()) ```
480+
# @param [String] name
481+
# Required. The name of the attachment to get.
482+
# @param [String] fields
483+
# Selector specifying which fields to include in a partial response.
484+
# @param [String] quota_user
485+
# Available to use for quota purposes for server-side applications. Can be any
486+
# arbitrary string assigned to a user, but should not exceed 40 characters.
487+
# @param [Google::Apis::RequestOptions] options
488+
# Request-specific options
489+
#
490+
# @yield [result, err] Result & error if block supplied
491+
# @yieldparam result [Google::Apis::CloudsupportV2::Attachment] parsed result object
492+
# @yieldparam err [StandardError] error object if request failed
493+
#
494+
# @return [Google::Apis::CloudsupportV2::Attachment]
495+
#
496+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
497+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
498+
# @raise [Google::Apis::AuthorizationError] Authorization is required
499+
def get_case_attachment(name, fields: nil, quota_user: nil, options: nil, &block)
500+
command = make_simple_command(:get, 'v2/{+name}', options)
501+
command.response_representation = Google::Apis::CloudsupportV2::Attachment::Representation
502+
command.response_class = Google::Apis::CloudsupportV2::Attachment
503+
command.params['name'] = name unless name.nil?
504+
command.query['fields'] = fields unless fields.nil?
505+
command.query['quotaUser'] = quota_user unless quota_user.nil?
506+
execute_or_queue_command(command, &block)
507+
end
508+
470509
# List all the attachments associated with a support case. EXAMPLES: cURL: ```
471510
# shell case="projects/some-project/cases/23598314" curl \ --header "
472511
# Authorization: Bearer $(gcloud auth print-access-token)" \ "https://
@@ -561,6 +600,44 @@ def create_case_comment(parent, comment_object = nil, fields: nil, quota_user: n
561600
execute_or_queue_command(command, &block)
562601
end
563602

603+
# Retrieve a comment. EXAMPLES: cURL: ```shell comment="projects/some-project/
604+
# cases/43595344/comments/234567890" curl \ --header "Authorization: Bearer $(
605+
# gcloud auth print-access-token)" \ "https://cloudsupport.googleapis.com/v2/$
606+
# comment" ``` Python: ```python import googleapiclient.discovery api_version = "
607+
# v2" supportApiService = googleapiclient.discovery.build( serviceName="
608+
# cloudsupport", version=api_version, discoveryServiceUrl=f"https://cloudsupport.
609+
# googleapis.com/$discovery/rest?version=`api_version`", ) request =
610+
# supportApiService.cases().comments().get( name="projects/some-project/cases/
611+
# 43595344/comments/234567890", ) print(request.execute()) ```
612+
# @param [String] name
613+
# Required. The name of the comment to retrieve.
614+
# @param [String] fields
615+
# Selector specifying which fields to include in a partial response.
616+
# @param [String] quota_user
617+
# Available to use for quota purposes for server-side applications. Can be any
618+
# arbitrary string assigned to a user, but should not exceed 40 characters.
619+
# @param [Google::Apis::RequestOptions] options
620+
# Request-specific options
621+
#
622+
# @yield [result, err] Result & error if block supplied
623+
# @yieldparam result [Google::Apis::CloudsupportV2::Comment] parsed result object
624+
# @yieldparam err [StandardError] error object if request failed
625+
#
626+
# @return [Google::Apis::CloudsupportV2::Comment]
627+
#
628+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
629+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
630+
# @raise [Google::Apis::AuthorizationError] Authorization is required
631+
def get_case_comment(name, fields: nil, quota_user: nil, options: nil, &block)
632+
command = make_simple_command(:get, 'v2/{+name}', options)
633+
command.response_representation = Google::Apis::CloudsupportV2::Comment::Representation
634+
command.response_class = Google::Apis::CloudsupportV2::Comment
635+
command.params['name'] = name unless name.nil?
636+
command.query['fields'] = fields unless fields.nil?
637+
command.query['quotaUser'] = quota_user unless quota_user.nil?
638+
execute_or_queue_command(command, &block)
639+
end
640+
564641
# List all the comments associated with a case. EXAMPLES: cURL: ```shell case="
565642
# projects/some-project/cases/43595344" curl \ --header "Authorization: Bearer $(
566643
# gcloud auth print-access-token)" \ "https://cloudsupport.googleapis.com/v2/$
@@ -660,7 +737,7 @@ def download_medium(name, fields: nil, quota_user: nil, download_dest: nil, opti
660737
# is in a file I'm uploading using CSAPI." \ > "./example_file.txt" case="
661738
# projects/some-project/cases/43594844" curl \ --header "Authorization: Bearer $(
662739
# gcloud auth print-access-token)" \ --data-binary @"./example_file.txt" \ "
663-
# https://cloudsupport.googleapis.com/upload/v2beta/$case/attachments?attachment.
740+
# https://cloudsupport.googleapis.com/upload/v2/$case/attachments?attachment.
664741
# filename=uploaded_via_curl.txt" ``` Python: ```python import googleapiclient.
665742
# discovery api_version = "v2" supportApiService = googleapiclient.discovery.
666743
# build( serviceName="cloudsupport", version=api_version, discoveryServiceUrl=f"

0 commit comments

Comments
 (0)