google-apis-cloudsupport_v2 0.21.0 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 680e400c4045907013300e86b51178def0c3aae5ceadf91c0b0e4519b7576212
|
|
4
|
+
data.tar.gz: 44aa300155b5760a38bf94852449ba78a52dc50367739bb947df62290b0c9e70
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fadea47bb38ad346c62dfd582c84b32730ddbf680a4f25c55a755100cede97be17c35d6c865c479dfcc7751200f3a427ebfc8a75f3cee512166016b74fc60d8c
|
|
7
|
+
data.tar.gz: 761b96a077b0bd8b766da6426e4ae17aa2dba96d58cbb758d9d47e403833df199f7393a3d1c2d31cb0ad033f6e179cada1e72e54216629a2b323f9bd5ce577be
|
data/CHANGELOG.md
CHANGED
|
@@ -1025,6 +1025,12 @@ module Google
|
|
|
1025
1025
|
# @return [String]
|
|
1026
1026
|
attr_accessor :sha256_hash
|
|
1027
1027
|
|
|
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
|
+
|
|
1028
1034
|
# # gdata.* are outside protos with mising documentation
|
|
1029
1035
|
# Corresponds to the JSON property `timestamp`
|
|
1030
1036
|
# @return [Fixnum]
|
|
@@ -1069,6 +1075,7 @@ module Google
|
|
|
1069
1075
|
@reference_type = args[:reference_type] if args.key?(:reference_type)
|
|
1070
1076
|
@sha1_hash = args[:sha1_hash] if args.key?(:sha1_hash)
|
|
1071
1077
|
@sha256_hash = args[:sha256_hash] if args.key?(:sha256_hash)
|
|
1078
|
+
@sha512_hash = args[:sha512_hash] if args.key?(:sha512_hash)
|
|
1072
1079
|
@timestamp = args[:timestamp] if args.key?(:timestamp)
|
|
1073
1080
|
@token = args[:token] if args.key?(:token)
|
|
1074
1081
|
end
|
|
@@ -16,13 +16,13 @@ module Google
|
|
|
16
16
|
module Apis
|
|
17
17
|
module CloudsupportV2
|
|
18
18
|
# Version of the google-apis-cloudsupport_v2 gem
|
|
19
|
-
GEM_VERSION = "0.
|
|
19
|
+
GEM_VERSION = "0.22.0"
|
|
20
20
|
|
|
21
21
|
# Version of the code generator used to generate this client
|
|
22
22
|
GENERATOR_VERSION = "0.18.0"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
25
|
+
REVISION = "20260519"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -438,6 +438,7 @@ module Google
|
|
|
438
438
|
property :reference_type, as: 'referenceType'
|
|
439
439
|
property :sha1_hash, :base64 => true, as: 'sha1Hash'
|
|
440
440
|
property :sha256_hash, :base64 => true, as: 'sha256Hash'
|
|
441
|
+
property :sha512_hash, :base64 => true, as: 'sha512Hash'
|
|
441
442
|
property :timestamp, :numeric_string => true, as: 'timestamp'
|
|
442
443
|
property :token, as: 'token'
|
|
443
444
|
end
|
|
@@ -467,6 +467,45 @@ module Google
|
|
|
467
467
|
execute_or_queue_command(command, &block)
|
|
468
468
|
end
|
|
469
469
|
|
|
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
|
+
|
|
470
509
|
# List all the attachments associated with a support case. EXAMPLES: cURL: ```
|
|
471
510
|
# shell case="projects/some-project/cases/23598314" curl \ --header "
|
|
472
511
|
# Authorization: Bearer $(gcloud auth print-access-token)" \ "https://
|
|
@@ -561,6 +600,44 @@ module Google
|
|
|
561
600
|
execute_or_queue_command(command, &block)
|
|
562
601
|
end
|
|
563
602
|
|
|
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
|
+
|
|
564
641
|
# List all the comments associated with a case. EXAMPLES: cURL: ```shell case="
|
|
565
642
|
# projects/some-project/cases/43595344" curl \ --header "Authorization: Bearer $(
|
|
566
643
|
# gcloud auth print-access-token)" \ "https://cloudsupport.googleapis.com/v2/$
|
|
@@ -660,7 +737,7 @@ module Google
|
|
|
660
737
|
# is in a file I'm uploading using CSAPI." \ > "./example_file.txt" case="
|
|
661
738
|
# projects/some-project/cases/43594844" curl \ --header "Authorization: Bearer $(
|
|
662
739
|
# gcloud auth print-access-token)" \ --data-binary @"./example_file.txt" \ "
|
|
663
|
-
# https://cloudsupport.googleapis.com/upload/
|
|
740
|
+
# https://cloudsupport.googleapis.com/upload/v2/$case/attachments?attachment.
|
|
664
741
|
# filename=uploaded_via_curl.txt" ``` Python: ```python import googleapiclient.
|
|
665
742
|
# discovery api_version = "v2" supportApiService = googleapiclient.discovery.
|
|
666
743
|
# build( serviceName="cloudsupport", version=api_version, discoveryServiceUrl=f"
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-apis-cloudsupport_v2
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.22.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -57,7 +57,7 @@ licenses:
|
|
|
57
57
|
metadata:
|
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudsupport_v2/CHANGELOG.md
|
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudsupport_v2/v0.
|
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudsupport_v2/v0.22.0
|
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudsupport_v2
|
|
62
62
|
rdoc_options: []
|
|
63
63
|
require_paths:
|