google-cloud-support-v2 1.3.0 → 1.4.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 +4 -4
- data/lib/google/cloud/support/v2/actor_pb.rb +1 -1
- data/lib/google/cloud/support/v2/attachment_service_services_pb.rb +32 -2
- data/lib/google/cloud/support/v2/case_attachment_service/client.rb +41 -7
- data/lib/google/cloud/support/v2/case_attachment_service.rb +1 -1
- data/lib/google/cloud/support/v2/case_service/client.rb +336 -57
- data/lib/google/cloud/support/v2/case_service_services_pb.rb +302 -21
- data/lib/google/cloud/support/v2/comment_pb.rb +1 -1
- data/lib/google/cloud/support/v2/comment_service/client.rb +77 -9
- data/lib/google/cloud/support/v2/comment_service_services_pb.rb +72 -3
- data/lib/google/cloud/support/v2/version.rb +1 -1
- data/proto_docs/google/cloud/support/v2/actor.rb +17 -7
- data/proto_docs/google/cloud/support/v2/attachment.rb +8 -1
- data/proto_docs/google/cloud/support/v2/attachment_service.rb +13 -9
- data/proto_docs/google/cloud/support/v2/case.rb +42 -3
- data/proto_docs/google/cloud/support/v2/case_service.rb +45 -47
- data/proto_docs/google/cloud/support/v2/comment.rb +16 -7
- data/proto_docs/google/cloud/support/v2/comment_service.rb +10 -11
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 352f385b65eeb95d07f3b21325031879ad12e49db9957274e0e806c07179ebfc
|
4
|
+
data.tar.gz: 7d7d267f347f1d02957ab589618a32df37b579bc9e5bad791e57e8181012a87d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fabb9fe277ab3c7c70e8122916a8f99201beaa85093a146fffdd9c5f4a1f5ff7f0b254ad9fcc1ed65b6b2dc6cb7f42475c8ae17b26abeb690465269517e2b353
|
7
|
+
data.tar.gz: cddccc37a6f16fe3f589488dc30ef305a6a1916fc8a250e16908637f933cbc503fca1d2798506d4ff3ec81e24f88eb9cbd805b3ccbfea93a8ba4202872f83a66
|
@@ -7,7 +7,7 @@ require 'google/protobuf'
|
|
7
7
|
require 'google/api/field_behavior_pb'
|
8
8
|
|
9
9
|
|
10
|
-
descriptor_data = "\n#google/cloud/support/v2/actor.proto\x12\x17google.cloud.support.v2\x1a\x1fgoogle/api/field_behavior.proto\"
|
10
|
+
descriptor_data = "\n#google/cloud/support/v2/actor.proto\x12\x17google.cloud.support.v2\x1a\x1fgoogle/api/field_behavior.proto\"d\n\x05\x41\x63tor\x12\x14\n\x0c\x64isplay_name\x18\x01 \x01(\t\x12\x11\n\x05\x65mail\x18\x02 \x01(\tB\x02\x18\x01\x12\x1b\n\x0egoogle_support\x18\x04 \x01(\x08\x42\x03\xe0\x41\x03\x12\x15\n\x08username\x18\x05 \x01(\tB\x03\xe0\x41\x03\x42\xb3\x01\n\x1b\x63om.google.cloud.support.v2B\nActorProtoP\x01Z5cloud.google.com/go/support/apiv2/supportpb;supportpb\xaa\x02\x17Google.Cloud.Support.V2\xca\x02\x17Google\\Cloud\\Support\\V2\xea\x02\x1aGoogle::Cloud::Support::V2b\x06proto3"
|
11
11
|
|
12
12
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
13
13
|
|
@@ -24,7 +24,7 @@ module Google
|
|
24
24
|
module Support
|
25
25
|
module V2
|
26
26
|
module CaseAttachmentService
|
27
|
-
# A service to manage file
|
27
|
+
# A service to manage file attachments for Google Cloud support cases.
|
28
28
|
class Service
|
29
29
|
|
30
30
|
include ::GRPC::GenericService
|
@@ -33,7 +33,37 @@ module Google
|
|
33
33
|
self.unmarshal_class_method = :decode
|
34
34
|
self.service_name = 'google.cloud.support.v2.CaseAttachmentService'
|
35
35
|
|
36
|
-
#
|
36
|
+
# List all the attachments associated with a support case.
|
37
|
+
#
|
38
|
+
# EXAMPLES:
|
39
|
+
#
|
40
|
+
# cURL:
|
41
|
+
#
|
42
|
+
# ```shell
|
43
|
+
# case="projects/some-project/cases/23598314"
|
44
|
+
# curl \
|
45
|
+
# --header "Authorization: Bearer $(gcloud auth print-access-token)" \
|
46
|
+
# "https://cloudsupport.googleapis.com/v2/$case/attachments"
|
47
|
+
# ```
|
48
|
+
#
|
49
|
+
# Python:
|
50
|
+
#
|
51
|
+
# ```python
|
52
|
+
# import googleapiclient.discovery
|
53
|
+
#
|
54
|
+
# api_version = "v2"
|
55
|
+
# supportApiService = googleapiclient.discovery.build(
|
56
|
+
# serviceName="cloudsupport",
|
57
|
+
# version=api_version,
|
58
|
+
# discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}",
|
59
|
+
# )
|
60
|
+
# request = (
|
61
|
+
# supportApiService.cases()
|
62
|
+
# .attachments()
|
63
|
+
# .list(parent="projects/some-project/cases/43595344")
|
64
|
+
# )
|
65
|
+
# print(request.execute())
|
66
|
+
# ```
|
37
67
|
rpc :ListAttachments, ::Google::Cloud::Support::V2::ListAttachmentsRequest, ::Google::Cloud::Support::V2::ListAttachmentsResponse
|
38
68
|
end
|
39
69
|
|
@@ -27,7 +27,7 @@ module Google
|
|
27
27
|
##
|
28
28
|
# Client for the CaseAttachmentService service.
|
29
29
|
#
|
30
|
-
# A service to manage file
|
30
|
+
# A service to manage file attachments for Google Cloud support cases.
|
31
31
|
#
|
32
32
|
class Client
|
33
33
|
# @private
|
@@ -189,7 +189,37 @@ module Google
|
|
189
189
|
# Service calls
|
190
190
|
|
191
191
|
##
|
192
|
-
#
|
192
|
+
# List all the attachments associated with a support case.
|
193
|
+
#
|
194
|
+
# EXAMPLES:
|
195
|
+
#
|
196
|
+
# cURL:
|
197
|
+
#
|
198
|
+
# ```shell
|
199
|
+
# case="projects/some-project/cases/23598314"
|
200
|
+
# curl \
|
201
|
+
# --header "Authorization: Bearer $(gcloud auth print-access-token)" \
|
202
|
+
# "https://cloudsupport.googleapis.com/v2/$case/attachments"
|
203
|
+
# ```
|
204
|
+
#
|
205
|
+
# Python:
|
206
|
+
#
|
207
|
+
# ```python
|
208
|
+
# import googleapiclient.discovery
|
209
|
+
#
|
210
|
+
# api_version = "v2"
|
211
|
+
# supportApiService = googleapiclient.discovery.build(
|
212
|
+
# serviceName="cloudsupport",
|
213
|
+
# version=api_version,
|
214
|
+
# discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version=\\{api_version}",
|
215
|
+
# )
|
216
|
+
# request = (
|
217
|
+
# supportApiService.cases()
|
218
|
+
# .attachments()
|
219
|
+
# .list(parent="projects/some-project/cases/43595344")
|
220
|
+
# )
|
221
|
+
# print(request.execute())
|
222
|
+
# ```
|
193
223
|
#
|
194
224
|
# @overload list_attachments(request, options = nil)
|
195
225
|
# Pass arguments to `list_attachments` via a request object, either of type
|
@@ -207,12 +237,16 @@ module Google
|
|
207
237
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
208
238
|
#
|
209
239
|
# @param parent [::String]
|
210
|
-
# Required. The
|
211
|
-
# listed.
|
240
|
+
# Required. The name of the case for which attachments should be listed.
|
212
241
|
# @param page_size [::Integer]
|
213
|
-
# The maximum number of attachments fetched with each request.
|
214
|
-
#
|
215
|
-
#
|
242
|
+
# The maximum number of attachments fetched with each request.
|
243
|
+
#
|
244
|
+
# If not provided, the default is 10. The maximum page size that will be
|
245
|
+
# returned is 100.
|
246
|
+
#
|
247
|
+
# The size of each page can be smaller than the requested page size and can
|
248
|
+
# include zero. For example, you could request 100 attachments on one page,
|
249
|
+
# receive 0, and then on the next page, receive 90.
|
216
250
|
# @param page_token [::String]
|
217
251
|
# A token identifying the page of results to return. If unspecified, the
|
218
252
|
# first page is retrieved.
|
@@ -31,7 +31,7 @@ module Google
|
|
31
31
|
module Support
|
32
32
|
module V2
|
33
33
|
##
|
34
|
-
# A service to manage file
|
34
|
+
# A service to manage file attachments for Google Cloud support cases.
|
35
35
|
#
|
36
36
|
# @example Load this service and instantiate a gRPC client
|
37
37
|
#
|