google-cloud-support-v2 1.4.0 → 1.4.1
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/attachment_pb.rb +1 -1
- data/lib/google/cloud/support/v2/attachment_service_services_pb.rb +0 -30
- data/lib/google/cloud/support/v2/case_attachment_service/client.rb +0 -30
- data/lib/google/cloud/support/v2/case_pb.rb +1 -1
- data/lib/google/cloud/support/v2/case_service/client.rb +0 -274
- data/lib/google/cloud/support/v2/case_service_services_pb.rb +0 -274
- data/lib/google/cloud/support/v2/comment_service/client.rb +0 -68
- data/lib/google/cloud/support/v2/comment_service_services_pb.rb +0 -68
- data/lib/google/cloud/support/v2/version.rb +1 -1
- data/proto_docs/google/cloud/support/v2/actor.rb +1 -1
- data/proto_docs/google/cloud/support/v2/attachment.rb +1 -1
- data/proto_docs/google/cloud/support/v2/case.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d39158c3d695b6aa74b3434a5165d9e91e3722da3ddaf787c8112ebbdf4ddf4
|
4
|
+
data.tar.gz: 915a4e79b13b827b9a82abc702aea717d274d1a4c14cc4b4f640bc4bb0419163
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a5e48a11f94ec1cda727f570a7b138df36c5eaf64abe20e616fa46e3e8dae6533276d2d2b3b2d52cdd6e006abef744099e5077df92f07d0e37defa5833f0e23
|
7
|
+
data.tar.gz: 52d3bbad6b88eef63d892ea252d771f7d13d09c6635fd4763606f75808078d1c0b09cbad6a774555be6c0e93896ea29eb57893f39bb4ceac8190994a00117567
|
@@ -10,7 +10,7 @@ require 'google/cloud/support/v2/actor_pb'
|
|
10
10
|
require 'google/protobuf/timestamp_pb'
|
11
11
|
|
12
12
|
|
13
|
-
descriptor_data = "\n(google/cloud/support/v2/attachment.proto\x12\x17google.cloud.support.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/cloud/support/v2/actor.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\
|
13
|
+
descriptor_data = "\n(google/cloud/support/v2/attachment.proto\x12\x17google.cloud.support.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/cloud/support/v2/actor.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x84\x03\n\nAttachment\x12\x14\n\x04name\x18\x01 \x01(\tB\x06\xe0\x41\x03\xe0\x41\x08\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x07\x63reator\x18\x03 \x01(\x0b\x32\x1e.google.cloud.support.v2.ActorB\x03\xe0\x41\x03\x12\x10\n\x08\x66ilename\x18\x04 \x01(\t\x12\x16\n\tmime_type\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\nsize_bytes\x18\x06 \x01(\x03\x42\x03\xe0\x41\x03:\xb0\x01\xea\x41\xac\x01\n&cloudsupport.googleapis.com/Attachment\x12\x45organizations/{organization}/cases/{case}/attachments/{attachment_id}\x12;projects/{project}/cases/{case}/attachments/{attachment_id}B\xb8\x01\n\x1b\x63om.google.cloud.support.v2B\x0f\x41ttachmentProtoP\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"
|
14
14
|
|
15
15
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
16
16
|
|
@@ -34,36 +34,6 @@ module Google
|
|
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
|
-
# ```
|
67
37
|
rpc :ListAttachments, ::Google::Cloud::Support::V2::ListAttachmentsRequest, ::Google::Cloud::Support::V2::ListAttachmentsResponse
|
68
38
|
end
|
69
39
|
|
@@ -191,36 +191,6 @@ module Google
|
|
191
191
|
##
|
192
192
|
# List all the attachments associated with a support case.
|
193
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
|
-
# ```
|
223
|
-
#
|
224
194
|
# @overload list_attachments(request, options = nil)
|
225
195
|
# Pass arguments to `list_attachments` via a request object, either of type
|
226
196
|
# {::Google::Cloud::Support::V2::ListAttachmentsRequest} or an equivalent Hash.
|
@@ -10,7 +10,7 @@ require 'google/cloud/support/v2/actor_pb'
|
|
10
10
|
require 'google/protobuf/timestamp_pb'
|
11
11
|
|
12
12
|
|
13
|
-
descriptor_data = "\n\"google/cloud/support/v2/case.proto\x12\x17google.cloud.support.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/cloud/support/v2/actor.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\
|
13
|
+
descriptor_data = "\n\"google/cloud/support/v2/case.proto\x12\x17google.cloud.support.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/cloud/support/v2/actor.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe6\x06\n\x04\x43\x61se\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x43\n\x0e\x63lassification\x18\x04 \x01(\x0b\x32+.google.cloud.support.v2.CaseClassification\x12\x11\n\ttime_zone\x18\x08 \x01(\t\x12\"\n\x1asubscriber_email_addresses\x18\t \x03(\t\x12\x37\n\x05state\x18\x0c \x01(\x0e\x32#.google.cloud.support.v2.Case.StateB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\r \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x0e \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12/\n\x07\x63reator\x18\x0f \x01(\x0b\x32\x1e.google.cloud.support.v2.Actor\x12\x15\n\rcontact_email\x18# \x01(\t\x12\x11\n\tescalated\x18\x11 \x01(\x08\x12\x11\n\ttest_case\x18\x13 \x01(\x08\x12\x15\n\rlanguage_code\x18\x17 \x01(\t\x12\x38\n\x08priority\x18 \x01(\x0e\x32&.google.cloud.support.v2.Case.Priority\"\x7f\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x07\n\x03NEW\x10\x01\x12\x1e\n\x1aIN_PROGRESS_GOOGLE_SUPPORT\x10\x02\x12\x13\n\x0f\x41\x43TION_REQUIRED\x10\x03\x12\x15\n\x11SOLUTION_PROVIDED\x10\x04\x12\n\n\x06\x43LOSED\x10\x05\"L\n\x08Priority\x12\x18\n\x14PRIORITY_UNSPECIFIED\x10\x00\x12\x06\n\x02P0\x10\x01\x12\x06\n\x02P1\x10\x02\x12\x06\n\x02P2\x10\x03\x12\x06\n\x02P3\x10\x04\x12\x06\n\x02P4\x10\x05:q\xea\x41n\n cloudsupport.googleapis.com/Case\x12)organizations/{organization}/cases/{case}\x12\x1fprojects/{project}/cases/{case}\"6\n\x12\x43\x61seClassification\x12\n\n\x02id\x18\x03 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x04 \x01(\tB\xb2\x01\n\x1b\x63om.google.cloud.support.v2B\tCaseProtoP\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"
|
14
14
|
|
15
15
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
16
16
|
|
@@ -214,35 +214,6 @@ module Google
|
|
214
214
|
##
|
215
215
|
# Retrieve a case.
|
216
216
|
#
|
217
|
-
# EXAMPLES:
|
218
|
-
#
|
219
|
-
# cURL:
|
220
|
-
#
|
221
|
-
# ```shell
|
222
|
-
# case="projects/some-project/cases/16033687"
|
223
|
-
# curl \
|
224
|
-
# --header "Authorization: Bearer $(gcloud auth print-access-token)" \
|
225
|
-
# "https://cloudsupport.googleapis.com/v2/$case"
|
226
|
-
# ```
|
227
|
-
#
|
228
|
-
# Python:
|
229
|
-
#
|
230
|
-
# ```python
|
231
|
-
# import googleapiclient.discovery
|
232
|
-
#
|
233
|
-
# api_version = "v2"
|
234
|
-
# supportApiService = googleapiclient.discovery.build(
|
235
|
-
# serviceName="cloudsupport",
|
236
|
-
# version=api_version,
|
237
|
-
# discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version=\\{api_version}",
|
238
|
-
# )
|
239
|
-
#
|
240
|
-
# request = supportApiService.cases().get(
|
241
|
-
# name="projects/some-project/cases/43595344",
|
242
|
-
# )
|
243
|
-
# print(request.execute())
|
244
|
-
# ```
|
245
|
-
#
|
246
217
|
# @overload get_case(request, options = nil)
|
247
218
|
# Pass arguments to `get_case` via a request object, either of type
|
248
219
|
# {::Google::Cloud::Support::V2::GetCaseRequest} or an equivalent Hash.
|
@@ -332,34 +303,6 @@ module Google
|
|
332
303
|
# that are directly parented by that organization. To retrieve cases
|
333
304
|
# under an organization and its projects, use `cases.search`.
|
334
305
|
#
|
335
|
-
# EXAMPLES:
|
336
|
-
#
|
337
|
-
# cURL:
|
338
|
-
#
|
339
|
-
# ```shell
|
340
|
-
# parent="projects/some-project"
|
341
|
-
# curl \
|
342
|
-
# --header "Authorization: Bearer $(gcloud auth print-access-token)" \
|
343
|
-
# "https://cloudsupport.googleapis.com/v2/$parent/cases"
|
344
|
-
# ```
|
345
|
-
#
|
346
|
-
# Python:
|
347
|
-
#
|
348
|
-
# ```python
|
349
|
-
# import googleapiclient.discovery
|
350
|
-
#
|
351
|
-
# api_version = "v2"
|
352
|
-
# supportApiService = googleapiclient.discovery.build(
|
353
|
-
# serviceName="cloudsupport",
|
354
|
-
# version=api_version,
|
355
|
-
# discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version=\\{api_version}",
|
356
|
-
# )
|
357
|
-
#
|
358
|
-
# request =
|
359
|
-
# supportApiService.cases().list(parent="projects/some-project")
|
360
|
-
# print(request.execute())
|
361
|
-
# ```
|
362
|
-
#
|
363
306
|
# @overload list_cases(request, options = nil)
|
364
307
|
# Pass arguments to `list_cases` via a request object, either of type
|
365
308
|
# {::Google::Cloud::Support::V2::ListCasesRequest} or an equivalent Hash.
|
@@ -476,34 +419,6 @@ module Google
|
|
476
419
|
##
|
477
420
|
# Search for cases using a query.
|
478
421
|
#
|
479
|
-
# EXAMPLES:
|
480
|
-
#
|
481
|
-
# cURL:
|
482
|
-
#
|
483
|
-
# ```shell
|
484
|
-
# parent="projects/some-project"
|
485
|
-
# curl \
|
486
|
-
# --header "Authorization: Bearer $(gcloud auth print-access-token)" \
|
487
|
-
# "https://cloudsupport.googleapis.com/v2/$parent/cases:search"
|
488
|
-
# ```
|
489
|
-
#
|
490
|
-
# Python:
|
491
|
-
#
|
492
|
-
# ```python
|
493
|
-
# import googleapiclient.discovery
|
494
|
-
#
|
495
|
-
# api_version = "v2"
|
496
|
-
# supportApiService = googleapiclient.discovery.build(
|
497
|
-
# serviceName="cloudsupport",
|
498
|
-
# version=api_version,
|
499
|
-
# discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version=\\{api_version}",
|
500
|
-
# )
|
501
|
-
# request = supportApiService.cases().search(
|
502
|
-
# parent="projects/some-project", query="state=OPEN"
|
503
|
-
# )
|
504
|
-
# print(request.execute())
|
505
|
-
# ```
|
506
|
-
#
|
507
422
|
# @overload search_cases(request, options = nil)
|
508
423
|
# Pass arguments to `search_cases` via a request object, either of type
|
509
424
|
# {::Google::Cloud::Support::V2::SearchCasesRequest} or an equivalent Hash.
|
@@ -638,61 +553,6 @@ module Google
|
|
638
553
|
# `classification`, and `priority`. If you're just testing the API and don't
|
639
554
|
# want to route your case to an agent, set `testCase=true`.
|
640
555
|
#
|
641
|
-
# EXAMPLES:
|
642
|
-
#
|
643
|
-
# cURL:
|
644
|
-
#
|
645
|
-
# ```shell
|
646
|
-
# parent="projects/some-project"
|
647
|
-
# curl \
|
648
|
-
# --request POST \
|
649
|
-
# --header "Authorization: Bearer $(gcloud auth print-access-token)" \
|
650
|
-
# --header 'Content-Type: application/json' \
|
651
|
-
# --data '{
|
652
|
-
# "display_name": "Test case created by me.",
|
653
|
-
# "description": "a random test case, feel free to close",
|
654
|
-
# "classification": {
|
655
|
-
# "id":
|
656
|
-
# "100IK2AKCLHMGRJ9CDGMOCGP8DM6UTB4BT262T31BT1M2T31DHNMENPO6KS36CPJ786L2TBFEHGN6NPI64R3CDHN8880G08I1H3MURR7DHII0GRCDTQM8"
|
657
|
-
# },
|
658
|
-
# "time_zone": "-07:00",
|
659
|
-
# "subscriber_email_addresses": [
|
660
|
-
# "foo@domain.com",
|
661
|
-
# "bar@domain.com"
|
662
|
-
# ],
|
663
|
-
# "testCase": true,
|
664
|
-
# "priority": "P3"
|
665
|
-
# }' \
|
666
|
-
# "https://cloudsupport.googleapis.com/v2/$parent/cases"
|
667
|
-
# ```
|
668
|
-
#
|
669
|
-
# Python:
|
670
|
-
#
|
671
|
-
# ```python
|
672
|
-
# import googleapiclient.discovery
|
673
|
-
#
|
674
|
-
# api_version = "v2"
|
675
|
-
# supportApiService = googleapiclient.discovery.build(
|
676
|
-
# serviceName="cloudsupport",
|
677
|
-
# version=api_version,
|
678
|
-
# discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version=\\{api_version}",
|
679
|
-
# )
|
680
|
-
# request = supportApiService.cases().create(
|
681
|
-
# parent="projects/some-project",
|
682
|
-
# body={
|
683
|
-
# "displayName": "A Test Case",
|
684
|
-
# "description": "This is a test case.",
|
685
|
-
# "testCase": True,
|
686
|
-
# "priority": "P2",
|
687
|
-
# "classification": {
|
688
|
-
# "id":
|
689
|
-
# "100IK2AKCLHMGRJ9CDGMOCGP8DM6UTB4BT262T31BT1M2T31DHNMENPO6KS36CPJ786L2TBFEHGN6NPI64R3CDHN8880G08I1H3MURR7DHII0GRCDTQM8"
|
690
|
-
# },
|
691
|
-
# },
|
692
|
-
# )
|
693
|
-
# print(request.execute())
|
694
|
-
# ```
|
695
|
-
#
|
696
556
|
# @overload create_case(request, options = nil)
|
697
557
|
# Pass arguments to `create_case` via a request object, either of type
|
698
558
|
# {::Google::Cloud::Support::V2::CreateCaseRequest} or an equivalent Hash.
|
@@ -780,43 +640,6 @@ module Google
|
|
780
640
|
##
|
781
641
|
# Update a case. Only some fields can be updated.
|
782
642
|
#
|
783
|
-
# EXAMPLES:
|
784
|
-
#
|
785
|
-
# cURL:
|
786
|
-
#
|
787
|
-
# ```shell
|
788
|
-
# case="projects/some-project/cases/43595344"
|
789
|
-
# curl \
|
790
|
-
# --request PATCH \
|
791
|
-
# --header "Authorization: Bearer $(gcloud auth print-access-token)" \
|
792
|
-
# --header "Content-Type: application/json" \
|
793
|
-
# --data '{
|
794
|
-
# "priority": "P1"
|
795
|
-
# }' \
|
796
|
-
# "https://cloudsupport.googleapis.com/v2/$case?updateMask=priority"
|
797
|
-
# ```
|
798
|
-
#
|
799
|
-
# Python:
|
800
|
-
#
|
801
|
-
# ```python
|
802
|
-
# import googleapiclient.discovery
|
803
|
-
#
|
804
|
-
# api_version = "v2"
|
805
|
-
# supportApiService = googleapiclient.discovery.build(
|
806
|
-
# serviceName="cloudsupport",
|
807
|
-
# version=api_version,
|
808
|
-
# discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version=\\{api_version}",
|
809
|
-
# )
|
810
|
-
# request = supportApiService.cases().patch(
|
811
|
-
# name="projects/some-project/cases/43112854",
|
812
|
-
# body={
|
813
|
-
# "displayName": "This is Now a New Title",
|
814
|
-
# "priority": "P2",
|
815
|
-
# },
|
816
|
-
# )
|
817
|
-
# print(request.execute())
|
818
|
-
# ```
|
819
|
-
#
|
820
643
|
# @overload update_case(request, options = nil)
|
821
644
|
# Pass arguments to `update_case` via a request object, either of type
|
822
645
|
# {::Google::Cloud::Support::V2::UpdateCaseRequest} or an equivalent Hash.
|
@@ -917,48 +740,6 @@ module Google
|
|
917
740
|
# escalations' in the feature list to find out which ones let you
|
918
741
|
# do that.
|
919
742
|
#
|
920
|
-
# EXAMPLES:
|
921
|
-
#
|
922
|
-
# cURL:
|
923
|
-
#
|
924
|
-
# ```shell
|
925
|
-
# case="projects/some-project/cases/43595344"
|
926
|
-
# curl \
|
927
|
-
# --request POST \
|
928
|
-
# --header "Authorization: Bearer $(gcloud auth print-access-token)" \
|
929
|
-
# --header "Content-Type: application/json" \
|
930
|
-
# --data '{
|
931
|
-
# "escalation": {
|
932
|
-
# "reason": "BUSINESS_IMPACT",
|
933
|
-
# "justification": "This is a test escalation."
|
934
|
-
# }
|
935
|
-
# }' \
|
936
|
-
# "https://cloudsupport.googleapis.com/v2/$case:escalate"
|
937
|
-
# ```
|
938
|
-
#
|
939
|
-
# Python:
|
940
|
-
#
|
941
|
-
# ```python
|
942
|
-
# import googleapiclient.discovery
|
943
|
-
#
|
944
|
-
# api_version = "v2"
|
945
|
-
# supportApiService = googleapiclient.discovery.build(
|
946
|
-
# serviceName="cloudsupport",
|
947
|
-
# version=api_version,
|
948
|
-
# discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version=\\{api_version}",
|
949
|
-
# )
|
950
|
-
# request = supportApiService.cases().escalate(
|
951
|
-
# name="projects/some-project/cases/43595344",
|
952
|
-
# body={
|
953
|
-
# "escalation": {
|
954
|
-
# "reason": "BUSINESS_IMPACT",
|
955
|
-
# "justification": "This is a test escalation.",
|
956
|
-
# },
|
957
|
-
# },
|
958
|
-
# )
|
959
|
-
# print(request.execute())
|
960
|
-
# ```
|
961
|
-
#
|
962
743
|
# @overload escalate_case(request, options = nil)
|
963
744
|
# Pass arguments to `escalate_case` via a request object, either of type
|
964
745
|
# {::Google::Cloud::Support::V2::EscalateCaseRequest} or an equivalent Hash.
|
@@ -1046,35 +827,6 @@ module Google
|
|
1046
827
|
##
|
1047
828
|
# Close a case.
|
1048
829
|
#
|
1049
|
-
# EXAMPLES:
|
1050
|
-
#
|
1051
|
-
# cURL:
|
1052
|
-
#
|
1053
|
-
# ```shell
|
1054
|
-
# case="projects/some-project/cases/43595344"
|
1055
|
-
# curl \
|
1056
|
-
# --request POST \
|
1057
|
-
# --header "Authorization: Bearer $(gcloud auth print-access-token)" \
|
1058
|
-
# "https://cloudsupport.googleapis.com/v2/$case:close"
|
1059
|
-
# ```
|
1060
|
-
#
|
1061
|
-
# Python:
|
1062
|
-
#
|
1063
|
-
# ```python
|
1064
|
-
# import googleapiclient.discovery
|
1065
|
-
#
|
1066
|
-
# api_version = "v2"
|
1067
|
-
# supportApiService = googleapiclient.discovery.build(
|
1068
|
-
# serviceName="cloudsupport",
|
1069
|
-
# version=api_version,
|
1070
|
-
# discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version=\\{api_version}",
|
1071
|
-
# )
|
1072
|
-
# request = supportApiService.cases().close(
|
1073
|
-
# name="projects/some-project/cases/43595344"
|
1074
|
-
# )
|
1075
|
-
# print(request.execute())
|
1076
|
-
# ```
|
1077
|
-
#
|
1078
830
|
# @overload close_case(request, options = nil)
|
1079
831
|
# Pass arguments to `close_case` via a request object, either of type
|
1080
832
|
# {::Google::Cloud::Support::V2::CloseCaseRequest} or an equivalent Hash.
|
@@ -1169,32 +921,6 @@ module Google
|
|
1169
921
|
# stops returning it. After six months, `case.create` requests using the
|
1170
922
|
# classification will fail.
|
1171
923
|
#
|
1172
|
-
# EXAMPLES:
|
1173
|
-
#
|
1174
|
-
# cURL:
|
1175
|
-
#
|
1176
|
-
# ```shell
|
1177
|
-
# curl \
|
1178
|
-
# --header "Authorization: Bearer $(gcloud auth print-access-token)" \
|
1179
|
-
# 'https://cloudsupport.googleapis.com/v2/caseClassifications:search?query=display_name:"*Compute%20Engine*"'
|
1180
|
-
# ```
|
1181
|
-
#
|
1182
|
-
# Python:
|
1183
|
-
#
|
1184
|
-
# ```python
|
1185
|
-
# import googleapiclient.discovery
|
1186
|
-
#
|
1187
|
-
# supportApiService = googleapiclient.discovery.build(
|
1188
|
-
# serviceName="cloudsupport",
|
1189
|
-
# version="v2",
|
1190
|
-
# discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version=v2",
|
1191
|
-
# )
|
1192
|
-
# request = supportApiService.caseClassifications().search(
|
1193
|
-
# query='display_name:"*Compute Engine*"'
|
1194
|
-
# )
|
1195
|
-
# print(request.execute())
|
1196
|
-
# ```
|
1197
|
-
#
|
1198
924
|
# @overload search_case_classifications(request, options = nil)
|
1199
925
|
# Pass arguments to `search_case_classifications` via a request object, either of type
|
1200
926
|
# {::Google::Cloud::Support::V2::SearchCaseClassificationsRequest} or an equivalent Hash.
|
@@ -34,199 +34,22 @@ module Google
|
|
34
34
|
self.service_name = 'google.cloud.support.v2.CaseService'
|
35
35
|
|
36
36
|
# Retrieve a case.
|
37
|
-
#
|
38
|
-
# EXAMPLES:
|
39
|
-
#
|
40
|
-
# cURL:
|
41
|
-
#
|
42
|
-
# ```shell
|
43
|
-
# case="projects/some-project/cases/16033687"
|
44
|
-
# curl \
|
45
|
-
# --header "Authorization: Bearer $(gcloud auth print-access-token)" \
|
46
|
-
# "https://cloudsupport.googleapis.com/v2/$case"
|
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
|
-
#
|
61
|
-
# request = supportApiService.cases().get(
|
62
|
-
# name="projects/some-project/cases/43595344",
|
63
|
-
# )
|
64
|
-
# print(request.execute())
|
65
|
-
# ```
|
66
37
|
rpc :GetCase, ::Google::Cloud::Support::V2::GetCaseRequest, ::Google::Cloud::Support::V2::Case
|
67
38
|
# Retrieve all cases under a parent, but not its children.
|
68
39
|
#
|
69
40
|
# For example, listing cases under an organization only returns the cases
|
70
41
|
# that are directly parented by that organization. To retrieve cases
|
71
42
|
# under an organization and its projects, use `cases.search`.
|
72
|
-
#
|
73
|
-
# EXAMPLES:
|
74
|
-
#
|
75
|
-
# cURL:
|
76
|
-
#
|
77
|
-
# ```shell
|
78
|
-
# parent="projects/some-project"
|
79
|
-
# curl \
|
80
|
-
# --header "Authorization: Bearer $(gcloud auth print-access-token)" \
|
81
|
-
# "https://cloudsupport.googleapis.com/v2/$parent/cases"
|
82
|
-
# ```
|
83
|
-
#
|
84
|
-
# Python:
|
85
|
-
#
|
86
|
-
# ```python
|
87
|
-
# import googleapiclient.discovery
|
88
|
-
#
|
89
|
-
# api_version = "v2"
|
90
|
-
# supportApiService = googleapiclient.discovery.build(
|
91
|
-
# serviceName="cloudsupport",
|
92
|
-
# version=api_version,
|
93
|
-
# discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}",
|
94
|
-
# )
|
95
|
-
#
|
96
|
-
# request =
|
97
|
-
# supportApiService.cases().list(parent="projects/some-project")
|
98
|
-
# print(request.execute())
|
99
|
-
# ```
|
100
43
|
rpc :ListCases, ::Google::Cloud::Support::V2::ListCasesRequest, ::Google::Cloud::Support::V2::ListCasesResponse
|
101
44
|
# Search for cases using a query.
|
102
|
-
#
|
103
|
-
# EXAMPLES:
|
104
|
-
#
|
105
|
-
# cURL:
|
106
|
-
#
|
107
|
-
# ```shell
|
108
|
-
# parent="projects/some-project"
|
109
|
-
# curl \
|
110
|
-
# --header "Authorization: Bearer $(gcloud auth print-access-token)" \
|
111
|
-
# "https://cloudsupport.googleapis.com/v2/$parent/cases:search"
|
112
|
-
# ```
|
113
|
-
#
|
114
|
-
# Python:
|
115
|
-
#
|
116
|
-
# ```python
|
117
|
-
# import googleapiclient.discovery
|
118
|
-
#
|
119
|
-
# api_version = "v2"
|
120
|
-
# supportApiService = googleapiclient.discovery.build(
|
121
|
-
# serviceName="cloudsupport",
|
122
|
-
# version=api_version,
|
123
|
-
# discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}",
|
124
|
-
# )
|
125
|
-
# request = supportApiService.cases().search(
|
126
|
-
# parent="projects/some-project", query="state=OPEN"
|
127
|
-
# )
|
128
|
-
# print(request.execute())
|
129
|
-
# ```
|
130
45
|
rpc :SearchCases, ::Google::Cloud::Support::V2::SearchCasesRequest, ::Google::Cloud::Support::V2::SearchCasesResponse
|
131
46
|
# Create a new case and associate it with a parent.
|
132
47
|
#
|
133
48
|
# It must have the following fields set: `display_name`, `description`,
|
134
49
|
# `classification`, and `priority`. If you're just testing the API and don't
|
135
50
|
# want to route your case to an agent, set `testCase=true`.
|
136
|
-
#
|
137
|
-
# EXAMPLES:
|
138
|
-
#
|
139
|
-
# cURL:
|
140
|
-
#
|
141
|
-
# ```shell
|
142
|
-
# parent="projects/some-project"
|
143
|
-
# curl \
|
144
|
-
# --request POST \
|
145
|
-
# --header "Authorization: Bearer $(gcloud auth print-access-token)" \
|
146
|
-
# --header 'Content-Type: application/json' \
|
147
|
-
# --data '{
|
148
|
-
# "display_name": "Test case created by me.",
|
149
|
-
# "description": "a random test case, feel free to close",
|
150
|
-
# "classification": {
|
151
|
-
# "id":
|
152
|
-
# "100IK2AKCLHMGRJ9CDGMOCGP8DM6UTB4BT262T31BT1M2T31DHNMENPO6KS36CPJ786L2TBFEHGN6NPI64R3CDHN8880G08I1H3MURR7DHII0GRCDTQM8"
|
153
|
-
# },
|
154
|
-
# "time_zone": "-07:00",
|
155
|
-
# "subscriber_email_addresses": [
|
156
|
-
# "foo@domain.com",
|
157
|
-
# "bar@domain.com"
|
158
|
-
# ],
|
159
|
-
# "testCase": true,
|
160
|
-
# "priority": "P3"
|
161
|
-
# }' \
|
162
|
-
# "https://cloudsupport.googleapis.com/v2/$parent/cases"
|
163
|
-
# ```
|
164
|
-
#
|
165
|
-
# Python:
|
166
|
-
#
|
167
|
-
# ```python
|
168
|
-
# import googleapiclient.discovery
|
169
|
-
#
|
170
|
-
# api_version = "v2"
|
171
|
-
# supportApiService = googleapiclient.discovery.build(
|
172
|
-
# serviceName="cloudsupport",
|
173
|
-
# version=api_version,
|
174
|
-
# discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}",
|
175
|
-
# )
|
176
|
-
# request = supportApiService.cases().create(
|
177
|
-
# parent="projects/some-project",
|
178
|
-
# body={
|
179
|
-
# "displayName": "A Test Case",
|
180
|
-
# "description": "This is a test case.",
|
181
|
-
# "testCase": True,
|
182
|
-
# "priority": "P2",
|
183
|
-
# "classification": {
|
184
|
-
# "id":
|
185
|
-
# "100IK2AKCLHMGRJ9CDGMOCGP8DM6UTB4BT262T31BT1M2T31DHNMENPO6KS36CPJ786L2TBFEHGN6NPI64R3CDHN8880G08I1H3MURR7DHII0GRCDTQM8"
|
186
|
-
# },
|
187
|
-
# },
|
188
|
-
# )
|
189
|
-
# print(request.execute())
|
190
|
-
# ```
|
191
51
|
rpc :CreateCase, ::Google::Cloud::Support::V2::CreateCaseRequest, ::Google::Cloud::Support::V2::Case
|
192
52
|
# Update a case. Only some fields can be updated.
|
193
|
-
#
|
194
|
-
# EXAMPLES:
|
195
|
-
#
|
196
|
-
# cURL:
|
197
|
-
#
|
198
|
-
# ```shell
|
199
|
-
# case="projects/some-project/cases/43595344"
|
200
|
-
# curl \
|
201
|
-
# --request PATCH \
|
202
|
-
# --header "Authorization: Bearer $(gcloud auth print-access-token)" \
|
203
|
-
# --header "Content-Type: application/json" \
|
204
|
-
# --data '{
|
205
|
-
# "priority": "P1"
|
206
|
-
# }' \
|
207
|
-
# "https://cloudsupport.googleapis.com/v2/$case?updateMask=priority"
|
208
|
-
# ```
|
209
|
-
#
|
210
|
-
# Python:
|
211
|
-
#
|
212
|
-
# ```python
|
213
|
-
# import googleapiclient.discovery
|
214
|
-
#
|
215
|
-
# api_version = "v2"
|
216
|
-
# supportApiService = googleapiclient.discovery.build(
|
217
|
-
# serviceName="cloudsupport",
|
218
|
-
# version=api_version,
|
219
|
-
# discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}",
|
220
|
-
# )
|
221
|
-
# request = supportApiService.cases().patch(
|
222
|
-
# name="projects/some-project/cases/43112854",
|
223
|
-
# body={
|
224
|
-
# "displayName": "This is Now a New Title",
|
225
|
-
# "priority": "P2",
|
226
|
-
# },
|
227
|
-
# )
|
228
|
-
# print(request.execute())
|
229
|
-
# ```
|
230
53
|
rpc :UpdateCase, ::Google::Cloud::Support::V2::UpdateCaseRequest, ::Google::Cloud::Support::V2::Case
|
231
54
|
# Escalate a case, starting the Google Cloud Support escalation management
|
232
55
|
# process.
|
@@ -235,79 +58,8 @@ module Google
|
|
235
58
|
# https://cloud.google.com/support and look for 'Technical support
|
236
59
|
# escalations' in the feature list to find out which ones let you
|
237
60
|
# do that.
|
238
|
-
#
|
239
|
-
# EXAMPLES:
|
240
|
-
#
|
241
|
-
# cURL:
|
242
|
-
#
|
243
|
-
# ```shell
|
244
|
-
# case="projects/some-project/cases/43595344"
|
245
|
-
# curl \
|
246
|
-
# --request POST \
|
247
|
-
# --header "Authorization: Bearer $(gcloud auth print-access-token)" \
|
248
|
-
# --header "Content-Type: application/json" \
|
249
|
-
# --data '{
|
250
|
-
# "escalation": {
|
251
|
-
# "reason": "BUSINESS_IMPACT",
|
252
|
-
# "justification": "This is a test escalation."
|
253
|
-
# }
|
254
|
-
# }' \
|
255
|
-
# "https://cloudsupport.googleapis.com/v2/$case:escalate"
|
256
|
-
# ```
|
257
|
-
#
|
258
|
-
# Python:
|
259
|
-
#
|
260
|
-
# ```python
|
261
|
-
# import googleapiclient.discovery
|
262
|
-
#
|
263
|
-
# api_version = "v2"
|
264
|
-
# supportApiService = googleapiclient.discovery.build(
|
265
|
-
# serviceName="cloudsupport",
|
266
|
-
# version=api_version,
|
267
|
-
# discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}",
|
268
|
-
# )
|
269
|
-
# request = supportApiService.cases().escalate(
|
270
|
-
# name="projects/some-project/cases/43595344",
|
271
|
-
# body={
|
272
|
-
# "escalation": {
|
273
|
-
# "reason": "BUSINESS_IMPACT",
|
274
|
-
# "justification": "This is a test escalation.",
|
275
|
-
# },
|
276
|
-
# },
|
277
|
-
# )
|
278
|
-
# print(request.execute())
|
279
|
-
# ```
|
280
61
|
rpc :EscalateCase, ::Google::Cloud::Support::V2::EscalateCaseRequest, ::Google::Cloud::Support::V2::Case
|
281
62
|
# Close a case.
|
282
|
-
#
|
283
|
-
# EXAMPLES:
|
284
|
-
#
|
285
|
-
# cURL:
|
286
|
-
#
|
287
|
-
# ```shell
|
288
|
-
# case="projects/some-project/cases/43595344"
|
289
|
-
# curl \
|
290
|
-
# --request POST \
|
291
|
-
# --header "Authorization: Bearer $(gcloud auth print-access-token)" \
|
292
|
-
# "https://cloudsupport.googleapis.com/v2/$case:close"
|
293
|
-
# ```
|
294
|
-
#
|
295
|
-
# Python:
|
296
|
-
#
|
297
|
-
# ```python
|
298
|
-
# import googleapiclient.discovery
|
299
|
-
#
|
300
|
-
# api_version = "v2"
|
301
|
-
# supportApiService = googleapiclient.discovery.build(
|
302
|
-
# serviceName="cloudsupport",
|
303
|
-
# version=api_version,
|
304
|
-
# discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}",
|
305
|
-
# )
|
306
|
-
# request = supportApiService.cases().close(
|
307
|
-
# name="projects/some-project/cases/43595344"
|
308
|
-
# )
|
309
|
-
# print(request.execute())
|
310
|
-
# ```
|
311
63
|
rpc :CloseCase, ::Google::Cloud::Support::V2::CloseCaseRequest, ::Google::Cloud::Support::V2::Case
|
312
64
|
# Retrieve valid classifications to use when creating a support case.
|
313
65
|
#
|
@@ -319,32 +71,6 @@ module Google
|
|
319
71
|
# months. When a classification is deactivated, this endpoint immediately
|
320
72
|
# stops returning it. After six months, `case.create` requests using the
|
321
73
|
# classification will fail.
|
322
|
-
#
|
323
|
-
# EXAMPLES:
|
324
|
-
#
|
325
|
-
# cURL:
|
326
|
-
#
|
327
|
-
# ```shell
|
328
|
-
# curl \
|
329
|
-
# --header "Authorization: Bearer $(gcloud auth print-access-token)" \
|
330
|
-
# 'https://cloudsupport.googleapis.com/v2/caseClassifications:search?query=display_name:"*Compute%20Engine*"'
|
331
|
-
# ```
|
332
|
-
#
|
333
|
-
# Python:
|
334
|
-
#
|
335
|
-
# ```python
|
336
|
-
# import googleapiclient.discovery
|
337
|
-
#
|
338
|
-
# supportApiService = googleapiclient.discovery.build(
|
339
|
-
# serviceName="cloudsupport",
|
340
|
-
# version="v2",
|
341
|
-
# discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version=v2",
|
342
|
-
# )
|
343
|
-
# request = supportApiService.caseClassifications().search(
|
344
|
-
# query='display_name:"*Compute Engine*"'
|
345
|
-
# )
|
346
|
-
# print(request.execute())
|
347
|
-
# ```
|
348
74
|
rpc :SearchCaseClassifications, ::Google::Cloud::Support::V2::SearchCaseClassificationsRequest, ::Google::Cloud::Support::V2::SearchCaseClassificationsResponse
|
349
75
|
end
|
350
76
|
|
@@ -193,36 +193,6 @@ module Google
|
|
193
193
|
##
|
194
194
|
# List all the comments associated with a case.
|
195
195
|
#
|
196
|
-
# EXAMPLES:
|
197
|
-
#
|
198
|
-
# cURL:
|
199
|
-
#
|
200
|
-
# ```shell
|
201
|
-
# case="projects/some-project/cases/43595344"
|
202
|
-
# curl \
|
203
|
-
# --header "Authorization: Bearer $(gcloud auth print-access-token)" \
|
204
|
-
# "https://cloudsupport.googleapis.com/v2/$case/comments"
|
205
|
-
# ```
|
206
|
-
#
|
207
|
-
# Python:
|
208
|
-
#
|
209
|
-
# ```python
|
210
|
-
# import googleapiclient.discovery
|
211
|
-
#
|
212
|
-
# api_version = "v2"
|
213
|
-
# supportApiService = googleapiclient.discovery.build(
|
214
|
-
# serviceName="cloudsupport",
|
215
|
-
# version=api_version,
|
216
|
-
# discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version=\\{api_version}",
|
217
|
-
# )
|
218
|
-
# request = (
|
219
|
-
# supportApiService.cases()
|
220
|
-
# .comments()
|
221
|
-
# .list(parent="projects/some-project/cases/43595344")
|
222
|
-
# )
|
223
|
-
# print(request.execute())
|
224
|
-
# ```
|
225
|
-
#
|
226
196
|
# @overload list_comments(request, options = nil)
|
227
197
|
# Pass arguments to `list_comments` via a request object, either of type
|
228
198
|
# {::Google::Cloud::Support::V2::ListCommentsRequest} or an equivalent Hash.
|
@@ -321,44 +291,6 @@ module Google
|
|
321
291
|
#
|
322
292
|
# The comment must have the following fields set: `body`.
|
323
293
|
#
|
324
|
-
# EXAMPLES:
|
325
|
-
#
|
326
|
-
# cURL:
|
327
|
-
#
|
328
|
-
# ```shell
|
329
|
-
# case="projects/some-project/cases/43591344"
|
330
|
-
# curl \
|
331
|
-
# --request POST \
|
332
|
-
# --header "Authorization: Bearer $(gcloud auth print-access-token)" \
|
333
|
-
# --header 'Content-Type: application/json' \
|
334
|
-
# --data '{
|
335
|
-
# "body": "This is a test comment."
|
336
|
-
# }' \
|
337
|
-
# "https://cloudsupport.googleapis.com/v2/$case/comments"
|
338
|
-
# ```
|
339
|
-
#
|
340
|
-
# Python:
|
341
|
-
#
|
342
|
-
# ```python
|
343
|
-
# import googleapiclient.discovery
|
344
|
-
#
|
345
|
-
# api_version = "v2"
|
346
|
-
# supportApiService = googleapiclient.discovery.build(
|
347
|
-
# serviceName="cloudsupport",
|
348
|
-
# version=api_version,
|
349
|
-
# discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version=\\{api_version}",
|
350
|
-
# )
|
351
|
-
# request = (
|
352
|
-
# supportApiService.cases()
|
353
|
-
# .comments()
|
354
|
-
# .create(
|
355
|
-
# parent="projects/some-project/cases/43595344",
|
356
|
-
# body=\\{"body": "This is a test comment."},
|
357
|
-
# )
|
358
|
-
# )
|
359
|
-
# print(request.execute())
|
360
|
-
# ```
|
361
|
-
#
|
362
294
|
# @overload create_comment(request, options = nil)
|
363
295
|
# Pass arguments to `create_comment` via a request object, either of type
|
364
296
|
# {::Google::Cloud::Support::V2::CreateCommentRequest} or an equivalent Hash.
|
@@ -34,78 +34,10 @@ module Google
|
|
34
34
|
self.service_name = 'google.cloud.support.v2.CommentService'
|
35
35
|
|
36
36
|
# List all the comments associated with a case.
|
37
|
-
#
|
38
|
-
# EXAMPLES:
|
39
|
-
#
|
40
|
-
# cURL:
|
41
|
-
#
|
42
|
-
# ```shell
|
43
|
-
# case="projects/some-project/cases/43595344"
|
44
|
-
# curl \
|
45
|
-
# --header "Authorization: Bearer $(gcloud auth print-access-token)" \
|
46
|
-
# "https://cloudsupport.googleapis.com/v2/$case/comments"
|
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
|
-
# .comments()
|
63
|
-
# .list(parent="projects/some-project/cases/43595344")
|
64
|
-
# )
|
65
|
-
# print(request.execute())
|
66
|
-
# ```
|
67
37
|
rpc :ListComments, ::Google::Cloud::Support::V2::ListCommentsRequest, ::Google::Cloud::Support::V2::ListCommentsResponse
|
68
38
|
# Add a new comment to a case.
|
69
39
|
#
|
70
40
|
# The comment must have the following fields set: `body`.
|
71
|
-
#
|
72
|
-
# EXAMPLES:
|
73
|
-
#
|
74
|
-
# cURL:
|
75
|
-
#
|
76
|
-
# ```shell
|
77
|
-
# case="projects/some-project/cases/43591344"
|
78
|
-
# curl \
|
79
|
-
# --request POST \
|
80
|
-
# --header "Authorization: Bearer $(gcloud auth print-access-token)" \
|
81
|
-
# --header 'Content-Type: application/json' \
|
82
|
-
# --data '{
|
83
|
-
# "body": "This is a test comment."
|
84
|
-
# }' \
|
85
|
-
# "https://cloudsupport.googleapis.com/v2/$case/comments"
|
86
|
-
# ```
|
87
|
-
#
|
88
|
-
# Python:
|
89
|
-
#
|
90
|
-
# ```python
|
91
|
-
# import googleapiclient.discovery
|
92
|
-
#
|
93
|
-
# api_version = "v2"
|
94
|
-
# supportApiService = googleapiclient.discovery.build(
|
95
|
-
# serviceName="cloudsupport",
|
96
|
-
# version=api_version,
|
97
|
-
# discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}",
|
98
|
-
# )
|
99
|
-
# request = (
|
100
|
-
# supportApiService.cases()
|
101
|
-
# .comments()
|
102
|
-
# .create(
|
103
|
-
# parent="projects/some-project/cases/43595344",
|
104
|
-
# body={"body": "This is a test comment."},
|
105
|
-
# )
|
106
|
-
# )
|
107
|
-
# print(request.execute())
|
108
|
-
# ```
|
109
41
|
rpc :CreateComment, ::Google::Cloud::Support::V2::CreateCommentRequest, ::Google::Cloud::Support::V2::Comment
|
110
42
|
end
|
111
43
|
|
@@ -38,7 +38,7 @@ module Google
|
|
38
38
|
# email must also be provided. If the user is a Google Support agent, this is
|
39
39
|
# obfuscated.
|
40
40
|
#
|
41
|
-
# This field is deprecated. Use
|
41
|
+
# This field is deprecated. Use `username` instead.
|
42
42
|
# @!attribute [r] google_support
|
43
43
|
# @return [::Boolean]
|
44
44
|
# Output only. Whether the actor is a Google support actor.
|
@@ -31,7 +31,7 @@ module Google
|
|
31
31
|
# "comment" level.
|
32
32
|
# @!attribute [r] name
|
33
33
|
# @return [::String]
|
34
|
-
# Output only. The resource name of the attachment.
|
34
|
+
# Output only. Identifier. The resource name of the attachment.
|
35
35
|
# @!attribute [r] create_time
|
36
36
|
# @return [::Google::Protobuf::Timestamp]
|
37
37
|
# Output only. The time at which the attachment was created.
|
@@ -50,7 +50,7 @@ module Google
|
|
50
50
|
# about project identifiers, see [AIP-2510](https://google.aip.dev/cloud/2510).
|
51
51
|
# @!attribute [rw] name
|
52
52
|
# @return [::String]
|
53
|
-
# The resource name for the case.
|
53
|
+
# Identifier. The resource name for the case.
|
54
54
|
# @!attribute [rw] display_name
|
55
55
|
# @return [::String]
|
56
56
|
# The short summary of the issue reported in this case.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-support-v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
@@ -110,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
110
110
|
- !ruby/object:Gem::Version
|
111
111
|
version: '0'
|
112
112
|
requirements: []
|
113
|
-
rubygems_version: 3.6.
|
113
|
+
rubygems_version: 3.6.9
|
114
114
|
specification_version: 4
|
115
115
|
summary: Manages Google Cloud technical support cases for Customer Care support offerings.
|
116
116
|
test_files: []
|