google-cloud-support-v2beta 0.1.0 → 0.2.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/v2beta/attachment_pb.rb +1 -1
- data/lib/google/cloud/support/v2beta/attachment_service_pb.rb +2 -1
- data/lib/google/cloud/support/v2beta/attachment_service_services_pb.rb +2 -30
- data/lib/google/cloud/support/v2beta/case_attachment_service/client.rb +92 -30
- data/lib/google/cloud/support/v2beta/case_attachment_service/paths.rb +43 -0
- data/lib/google/cloud/support/v2beta/case_attachment_service/rest/client.rb +85 -30
- data/lib/google/cloud/support/v2beta/case_attachment_service/rest/service_stub.rb +61 -0
- data/lib/google/cloud/support/v2beta/case_pb.rb +1 -1
- data/lib/google/cloud/support/v2beta/case_service/client.rb +0 -274
- data/lib/google/cloud/support/v2beta/case_service/rest/client.rb +0 -274
- data/lib/google/cloud/support/v2beta/case_service_services_pb.rb +0 -274
- data/lib/google/cloud/support/v2beta/comment_service/client.rb +92 -68
- data/lib/google/cloud/support/v2beta/comment_service/rest/client.rb +85 -68
- data/lib/google/cloud/support/v2beta/comment_service/rest/service_stub.rb +61 -0
- data/lib/google/cloud/support/v2beta/comment_service_pb.rb +2 -1
- data/lib/google/cloud/support/v2beta/comment_service_services_pb.rb +2 -68
- data/lib/google/cloud/support/v2beta/version.rb +1 -1
- data/proto_docs/google/cloud/support/v2beta/actor.rb +1 -1
- data/proto_docs/google/cloud/support/v2beta/attachment.rb +1 -1
- data/proto_docs/google/cloud/support/v2beta/attachment_service.rb +9 -0
- data/proto_docs/google/cloud/support/v2beta/case.rb +1 -1
- data/proto_docs/google/cloud/support/v2beta/comment_service.rb +9 -0
- metadata +2 -2
@@ -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::V2beta::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::V2beta::ListCasesRequest} or an equivalent Hash.
|
@@ -479,34 +422,6 @@ module Google
|
|
479
422
|
##
|
480
423
|
# Search for cases using a query.
|
481
424
|
#
|
482
|
-
# EXAMPLES:
|
483
|
-
#
|
484
|
-
# cURL:
|
485
|
-
#
|
486
|
-
# ```shell
|
487
|
-
# parent="projects/some-project"
|
488
|
-
# curl \
|
489
|
-
# --header "Authorization: Bearer $(gcloud auth print-access-token)" \
|
490
|
-
# "https://cloudsupport.googleapis.com/v2/$parent/cases:search"
|
491
|
-
# ```
|
492
|
-
#
|
493
|
-
# Python:
|
494
|
-
#
|
495
|
-
# ```python
|
496
|
-
# import googleapiclient.discovery
|
497
|
-
#
|
498
|
-
# api_version = "v2"
|
499
|
-
# supportApiService = googleapiclient.discovery.build(
|
500
|
-
# serviceName="cloudsupport",
|
501
|
-
# version=api_version,
|
502
|
-
# discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version=\\{api_version}",
|
503
|
-
# )
|
504
|
-
# request = supportApiService.cases().search(
|
505
|
-
# parent="projects/some-project", query="state=OPEN"
|
506
|
-
# )
|
507
|
-
# print(request.execute())
|
508
|
-
# ```
|
509
|
-
#
|
510
425
|
# @overload search_cases(request, options = nil)
|
511
426
|
# Pass arguments to `search_cases` via a request object, either of type
|
512
427
|
# {::Google::Cloud::Support::V2beta::SearchCasesRequest} or an equivalent Hash.
|
@@ -641,61 +556,6 @@ module Google
|
|
641
556
|
# `classification`, and `priority`. If you're just testing the API and don't
|
642
557
|
# want to route your case to an agent, set `testCase=true`.
|
643
558
|
#
|
644
|
-
# EXAMPLES:
|
645
|
-
#
|
646
|
-
# cURL:
|
647
|
-
#
|
648
|
-
# ```shell
|
649
|
-
# parent="projects/some-project"
|
650
|
-
# curl \
|
651
|
-
# --request POST \
|
652
|
-
# --header "Authorization: Bearer $(gcloud auth print-access-token)" \
|
653
|
-
# --header 'Content-Type: application/json' \
|
654
|
-
# --data '{
|
655
|
-
# "display_name": "Test case created by me.",
|
656
|
-
# "description": "a random test case, feel free to close",
|
657
|
-
# "classification": {
|
658
|
-
# "id":
|
659
|
-
# "100IK2AKCLHMGRJ9CDGMOCGP8DM6UTB4BT262T31BT1M2T31DHNMENPO6KS36CPJ786L2TBFEHGN6NPI64R3CDHN8880G08I1H3MURR7DHII0GRCDTQM8"
|
660
|
-
# },
|
661
|
-
# "time_zone": "-07:00",
|
662
|
-
# "subscriber_email_addresses": [
|
663
|
-
# "foo@domain.com",
|
664
|
-
# "bar@domain.com"
|
665
|
-
# ],
|
666
|
-
# "testCase": true,
|
667
|
-
# "priority": "P3"
|
668
|
-
# }' \
|
669
|
-
# "https://cloudsupport.googleapis.com/v2/$parent/cases"
|
670
|
-
# ```
|
671
|
-
#
|
672
|
-
# Python:
|
673
|
-
#
|
674
|
-
# ```python
|
675
|
-
# import googleapiclient.discovery
|
676
|
-
#
|
677
|
-
# api_version = "v2"
|
678
|
-
# supportApiService = googleapiclient.discovery.build(
|
679
|
-
# serviceName="cloudsupport",
|
680
|
-
# version=api_version,
|
681
|
-
# discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version=\\{api_version}",
|
682
|
-
# )
|
683
|
-
# request = supportApiService.cases().create(
|
684
|
-
# parent="projects/some-project",
|
685
|
-
# body={
|
686
|
-
# "displayName": "A Test Case",
|
687
|
-
# "description": "This is a test case.",
|
688
|
-
# "testCase": True,
|
689
|
-
# "priority": "P2",
|
690
|
-
# "classification": {
|
691
|
-
# "id":
|
692
|
-
# "100IK2AKCLHMGRJ9CDGMOCGP8DM6UTB4BT262T31BT1M2T31DHNMENPO6KS36CPJ786L2TBFEHGN6NPI64R3CDHN8880G08I1H3MURR7DHII0GRCDTQM8"
|
693
|
-
# },
|
694
|
-
# },
|
695
|
-
# )
|
696
|
-
# print(request.execute())
|
697
|
-
# ```
|
698
|
-
#
|
699
559
|
# @overload create_case(request, options = nil)
|
700
560
|
# Pass arguments to `create_case` via a request object, either of type
|
701
561
|
# {::Google::Cloud::Support::V2beta::CreateCaseRequest} or an equivalent Hash.
|
@@ -783,43 +643,6 @@ module Google
|
|
783
643
|
##
|
784
644
|
# Update a case. Only some fields can be updated.
|
785
645
|
#
|
786
|
-
# EXAMPLES:
|
787
|
-
#
|
788
|
-
# cURL:
|
789
|
-
#
|
790
|
-
# ```shell
|
791
|
-
# case="projects/some-project/cases/43595344"
|
792
|
-
# curl \
|
793
|
-
# --request PATCH \
|
794
|
-
# --header "Authorization: Bearer $(gcloud auth print-access-token)" \
|
795
|
-
# --header "Content-Type: application/json" \
|
796
|
-
# --data '{
|
797
|
-
# "priority": "P1"
|
798
|
-
# }' \
|
799
|
-
# "https://cloudsupport.googleapis.com/v2/$case?updateMask=priority"
|
800
|
-
# ```
|
801
|
-
#
|
802
|
-
# Python:
|
803
|
-
#
|
804
|
-
# ```python
|
805
|
-
# import googleapiclient.discovery
|
806
|
-
#
|
807
|
-
# api_version = "v2"
|
808
|
-
# supportApiService = googleapiclient.discovery.build(
|
809
|
-
# serviceName="cloudsupport",
|
810
|
-
# version=api_version,
|
811
|
-
# discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version=\\{api_version}",
|
812
|
-
# )
|
813
|
-
# request = supportApiService.cases().patch(
|
814
|
-
# name="projects/some-project/cases/43112854",
|
815
|
-
# body={
|
816
|
-
# "displayName": "This is Now a New Title",
|
817
|
-
# "priority": "P2",
|
818
|
-
# },
|
819
|
-
# )
|
820
|
-
# print(request.execute())
|
821
|
-
# ```
|
822
|
-
#
|
823
646
|
# @overload update_case(request, options = nil)
|
824
647
|
# Pass arguments to `update_case` via a request object, either of type
|
825
648
|
# {::Google::Cloud::Support::V2beta::UpdateCaseRequest} or an equivalent Hash.
|
@@ -920,48 +743,6 @@ module Google
|
|
920
743
|
# escalations' in the feature list to find out which ones let you
|
921
744
|
# do that.
|
922
745
|
#
|
923
|
-
# EXAMPLES:
|
924
|
-
#
|
925
|
-
# cURL:
|
926
|
-
#
|
927
|
-
# ```shell
|
928
|
-
# case="projects/some-project/cases/43595344"
|
929
|
-
# curl \
|
930
|
-
# --request POST \
|
931
|
-
# --header "Authorization: Bearer $(gcloud auth print-access-token)" \
|
932
|
-
# --header "Content-Type: application/json" \
|
933
|
-
# --data '{
|
934
|
-
# "escalation": {
|
935
|
-
# "reason": "BUSINESS_IMPACT",
|
936
|
-
# "justification": "This is a test escalation."
|
937
|
-
# }
|
938
|
-
# }' \
|
939
|
-
# "https://cloudsupport.googleapis.com/v2/$case:escalate"
|
940
|
-
# ```
|
941
|
-
#
|
942
|
-
# Python:
|
943
|
-
#
|
944
|
-
# ```python
|
945
|
-
# import googleapiclient.discovery
|
946
|
-
#
|
947
|
-
# api_version = "v2"
|
948
|
-
# supportApiService = googleapiclient.discovery.build(
|
949
|
-
# serviceName="cloudsupport",
|
950
|
-
# version=api_version,
|
951
|
-
# discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version=\\{api_version}",
|
952
|
-
# )
|
953
|
-
# request = supportApiService.cases().escalate(
|
954
|
-
# name="projects/some-project/cases/43595344",
|
955
|
-
# body={
|
956
|
-
# "escalation": {
|
957
|
-
# "reason": "BUSINESS_IMPACT",
|
958
|
-
# "justification": "This is a test escalation.",
|
959
|
-
# },
|
960
|
-
# },
|
961
|
-
# )
|
962
|
-
# print(request.execute())
|
963
|
-
# ```
|
964
|
-
#
|
965
746
|
# @overload escalate_case(request, options = nil)
|
966
747
|
# Pass arguments to `escalate_case` via a request object, either of type
|
967
748
|
# {::Google::Cloud::Support::V2beta::EscalateCaseRequest} or an equivalent Hash.
|
@@ -1049,35 +830,6 @@ module Google
|
|
1049
830
|
##
|
1050
831
|
# Close a case.
|
1051
832
|
#
|
1052
|
-
# EXAMPLES:
|
1053
|
-
#
|
1054
|
-
# cURL:
|
1055
|
-
#
|
1056
|
-
# ```shell
|
1057
|
-
# case="projects/some-project/cases/43595344"
|
1058
|
-
# curl \
|
1059
|
-
# --request POST \
|
1060
|
-
# --header "Authorization: Bearer $(gcloud auth print-access-token)" \
|
1061
|
-
# "https://cloudsupport.googleapis.com/v2/$case:close"
|
1062
|
-
# ```
|
1063
|
-
#
|
1064
|
-
# Python:
|
1065
|
-
#
|
1066
|
-
# ```python
|
1067
|
-
# import googleapiclient.discovery
|
1068
|
-
#
|
1069
|
-
# api_version = "v2"
|
1070
|
-
# supportApiService = googleapiclient.discovery.build(
|
1071
|
-
# serviceName="cloudsupport",
|
1072
|
-
# version=api_version,
|
1073
|
-
# discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version=\\{api_version}",
|
1074
|
-
# )
|
1075
|
-
# request = supportApiService.cases().close(
|
1076
|
-
# name="projects/some-project/cases/43595344"
|
1077
|
-
# )
|
1078
|
-
# print(request.execute())
|
1079
|
-
# ```
|
1080
|
-
#
|
1081
833
|
# @overload close_case(request, options = nil)
|
1082
834
|
# Pass arguments to `close_case` via a request object, either of type
|
1083
835
|
# {::Google::Cloud::Support::V2beta::CloseCaseRequest} or an equivalent Hash.
|
@@ -1172,32 +924,6 @@ module Google
|
|
1172
924
|
# stops returning it. After six months, `case.create` requests using the
|
1173
925
|
# classification will fail.
|
1174
926
|
#
|
1175
|
-
# EXAMPLES:
|
1176
|
-
#
|
1177
|
-
# cURL:
|
1178
|
-
#
|
1179
|
-
# ```shell
|
1180
|
-
# curl \
|
1181
|
-
# --header "Authorization: Bearer $(gcloud auth print-access-token)" \
|
1182
|
-
# 'https://cloudsupport.googleapis.com/v2/caseClassifications:search?query=display_name:"*Compute%20Engine*"'
|
1183
|
-
# ```
|
1184
|
-
#
|
1185
|
-
# Python:
|
1186
|
-
#
|
1187
|
-
# ```python
|
1188
|
-
# import googleapiclient.discovery
|
1189
|
-
#
|
1190
|
-
# supportApiService = googleapiclient.discovery.build(
|
1191
|
-
# serviceName="cloudsupport",
|
1192
|
-
# version="v2",
|
1193
|
-
# discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version=v2",
|
1194
|
-
# )
|
1195
|
-
# request = supportApiService.caseClassifications().search(
|
1196
|
-
# query='display_name:"*Compute Engine*"'
|
1197
|
-
# )
|
1198
|
-
# print(request.execute())
|
1199
|
-
# ```
|
1200
|
-
#
|
1201
927
|
# @overload search_case_classifications(request, options = nil)
|
1202
928
|
# Pass arguments to `search_case_classifications` via a request object, either of type
|
1203
929
|
# {::Google::Cloud::Support::V2beta::SearchCaseClassificationsRequest} or an equivalent Hash.
|
@@ -207,35 +207,6 @@ module Google
|
|
207
207
|
##
|
208
208
|
# Retrieve a case.
|
209
209
|
#
|
210
|
-
# EXAMPLES:
|
211
|
-
#
|
212
|
-
# cURL:
|
213
|
-
#
|
214
|
-
# ```shell
|
215
|
-
# case="projects/some-project/cases/16033687"
|
216
|
-
# curl \
|
217
|
-
# --header "Authorization: Bearer $(gcloud auth print-access-token)" \
|
218
|
-
# "https://cloudsupport.googleapis.com/v2/$case"
|
219
|
-
# ```
|
220
|
-
#
|
221
|
-
# Python:
|
222
|
-
#
|
223
|
-
# ```python
|
224
|
-
# import googleapiclient.discovery
|
225
|
-
#
|
226
|
-
# api_version = "v2"
|
227
|
-
# supportApiService = googleapiclient.discovery.build(
|
228
|
-
# serviceName="cloudsupport",
|
229
|
-
# version=api_version,
|
230
|
-
# discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version=\\{api_version}",
|
231
|
-
# )
|
232
|
-
#
|
233
|
-
# request = supportApiService.cases().get(
|
234
|
-
# name="projects/some-project/cases/43595344",
|
235
|
-
# )
|
236
|
-
# print(request.execute())
|
237
|
-
# ```
|
238
|
-
#
|
239
210
|
# @overload get_case(request, options = nil)
|
240
211
|
# Pass arguments to `get_case` via a request object, either of type
|
241
212
|
# {::Google::Cloud::Support::V2beta::GetCaseRequest} or an equivalent Hash.
|
@@ -318,34 +289,6 @@ module Google
|
|
318
289
|
# that are directly parented by that organization. To retrieve cases
|
319
290
|
# under an organization and its projects, use `cases.search`.
|
320
291
|
#
|
321
|
-
# EXAMPLES:
|
322
|
-
#
|
323
|
-
# cURL:
|
324
|
-
#
|
325
|
-
# ```shell
|
326
|
-
# parent="projects/some-project"
|
327
|
-
# curl \
|
328
|
-
# --header "Authorization: Bearer $(gcloud auth print-access-token)" \
|
329
|
-
# "https://cloudsupport.googleapis.com/v2/$parent/cases"
|
330
|
-
# ```
|
331
|
-
#
|
332
|
-
# Python:
|
333
|
-
#
|
334
|
-
# ```python
|
335
|
-
# import googleapiclient.discovery
|
336
|
-
#
|
337
|
-
# api_version = "v2"
|
338
|
-
# supportApiService = googleapiclient.discovery.build(
|
339
|
-
# serviceName="cloudsupport",
|
340
|
-
# version=api_version,
|
341
|
-
# discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version=\\{api_version}",
|
342
|
-
# )
|
343
|
-
#
|
344
|
-
# request =
|
345
|
-
# supportApiService.cases().list(parent="projects/some-project")
|
346
|
-
# print(request.execute())
|
347
|
-
# ```
|
348
|
-
#
|
349
292
|
# @overload list_cases(request, options = nil)
|
350
293
|
# Pass arguments to `list_cases` via a request object, either of type
|
351
294
|
# {::Google::Cloud::Support::V2beta::ListCasesRequest} or an equivalent Hash.
|
@@ -458,34 +401,6 @@ module Google
|
|
458
401
|
##
|
459
402
|
# Search for cases using a query.
|
460
403
|
#
|
461
|
-
# EXAMPLES:
|
462
|
-
#
|
463
|
-
# cURL:
|
464
|
-
#
|
465
|
-
# ```shell
|
466
|
-
# parent="projects/some-project"
|
467
|
-
# curl \
|
468
|
-
# --header "Authorization: Bearer $(gcloud auth print-access-token)" \
|
469
|
-
# "https://cloudsupport.googleapis.com/v2/$parent/cases:search"
|
470
|
-
# ```
|
471
|
-
#
|
472
|
-
# Python:
|
473
|
-
#
|
474
|
-
# ```python
|
475
|
-
# import googleapiclient.discovery
|
476
|
-
#
|
477
|
-
# api_version = "v2"
|
478
|
-
# supportApiService = googleapiclient.discovery.build(
|
479
|
-
# serviceName="cloudsupport",
|
480
|
-
# version=api_version,
|
481
|
-
# discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version=\\{api_version}",
|
482
|
-
# )
|
483
|
-
# request = supportApiService.cases().search(
|
484
|
-
# parent="projects/some-project", query="state=OPEN"
|
485
|
-
# )
|
486
|
-
# print(request.execute())
|
487
|
-
# ```
|
488
|
-
#
|
489
404
|
# @overload search_cases(request, options = nil)
|
490
405
|
# Pass arguments to `search_cases` via a request object, either of type
|
491
406
|
# {::Google::Cloud::Support::V2beta::SearchCasesRequest} or an equivalent Hash.
|
@@ -613,61 +528,6 @@ module Google
|
|
613
528
|
# `classification`, and `priority`. If you're just testing the API and don't
|
614
529
|
# want to route your case to an agent, set `testCase=true`.
|
615
530
|
#
|
616
|
-
# EXAMPLES:
|
617
|
-
#
|
618
|
-
# cURL:
|
619
|
-
#
|
620
|
-
# ```shell
|
621
|
-
# parent="projects/some-project"
|
622
|
-
# curl \
|
623
|
-
# --request POST \
|
624
|
-
# --header "Authorization: Bearer $(gcloud auth print-access-token)" \
|
625
|
-
# --header 'Content-Type: application/json' \
|
626
|
-
# --data '{
|
627
|
-
# "display_name": "Test case created by me.",
|
628
|
-
# "description": "a random test case, feel free to close",
|
629
|
-
# "classification": {
|
630
|
-
# "id":
|
631
|
-
# "100IK2AKCLHMGRJ9CDGMOCGP8DM6UTB4BT262T31BT1M2T31DHNMENPO6KS36CPJ786L2TBFEHGN6NPI64R3CDHN8880G08I1H3MURR7DHII0GRCDTQM8"
|
632
|
-
# },
|
633
|
-
# "time_zone": "-07:00",
|
634
|
-
# "subscriber_email_addresses": [
|
635
|
-
# "foo@domain.com",
|
636
|
-
# "bar@domain.com"
|
637
|
-
# ],
|
638
|
-
# "testCase": true,
|
639
|
-
# "priority": "P3"
|
640
|
-
# }' \
|
641
|
-
# "https://cloudsupport.googleapis.com/v2/$parent/cases"
|
642
|
-
# ```
|
643
|
-
#
|
644
|
-
# Python:
|
645
|
-
#
|
646
|
-
# ```python
|
647
|
-
# import googleapiclient.discovery
|
648
|
-
#
|
649
|
-
# api_version = "v2"
|
650
|
-
# supportApiService = googleapiclient.discovery.build(
|
651
|
-
# serviceName="cloudsupport",
|
652
|
-
# version=api_version,
|
653
|
-
# discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version=\\{api_version}",
|
654
|
-
# )
|
655
|
-
# request = supportApiService.cases().create(
|
656
|
-
# parent="projects/some-project",
|
657
|
-
# body={
|
658
|
-
# "displayName": "A Test Case",
|
659
|
-
# "description": "This is a test case.",
|
660
|
-
# "testCase": True,
|
661
|
-
# "priority": "P2",
|
662
|
-
# "classification": {
|
663
|
-
# "id":
|
664
|
-
# "100IK2AKCLHMGRJ9CDGMOCGP8DM6UTB4BT262T31BT1M2T31DHNMENPO6KS36CPJ786L2TBFEHGN6NPI64R3CDHN8880G08I1H3MURR7DHII0GRCDTQM8"
|
665
|
-
# },
|
666
|
-
# },
|
667
|
-
# )
|
668
|
-
# print(request.execute())
|
669
|
-
# ```
|
670
|
-
#
|
671
531
|
# @overload create_case(request, options = nil)
|
672
532
|
# Pass arguments to `create_case` via a request object, either of type
|
673
533
|
# {::Google::Cloud::Support::V2beta::CreateCaseRequest} or an equivalent Hash.
|
@@ -748,43 +608,6 @@ module Google
|
|
748
608
|
##
|
749
609
|
# Update a case. Only some fields can be updated.
|
750
610
|
#
|
751
|
-
# EXAMPLES:
|
752
|
-
#
|
753
|
-
# cURL:
|
754
|
-
#
|
755
|
-
# ```shell
|
756
|
-
# case="projects/some-project/cases/43595344"
|
757
|
-
# curl \
|
758
|
-
# --request PATCH \
|
759
|
-
# --header "Authorization: Bearer $(gcloud auth print-access-token)" \
|
760
|
-
# --header "Content-Type: application/json" \
|
761
|
-
# --data '{
|
762
|
-
# "priority": "P1"
|
763
|
-
# }' \
|
764
|
-
# "https://cloudsupport.googleapis.com/v2/$case?updateMask=priority"
|
765
|
-
# ```
|
766
|
-
#
|
767
|
-
# Python:
|
768
|
-
#
|
769
|
-
# ```python
|
770
|
-
# import googleapiclient.discovery
|
771
|
-
#
|
772
|
-
# api_version = "v2"
|
773
|
-
# supportApiService = googleapiclient.discovery.build(
|
774
|
-
# serviceName="cloudsupport",
|
775
|
-
# version=api_version,
|
776
|
-
# discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version=\\{api_version}",
|
777
|
-
# )
|
778
|
-
# request = supportApiService.cases().patch(
|
779
|
-
# name="projects/some-project/cases/43112854",
|
780
|
-
# body={
|
781
|
-
# "displayName": "This is Now a New Title",
|
782
|
-
# "priority": "P2",
|
783
|
-
# },
|
784
|
-
# )
|
785
|
-
# print(request.execute())
|
786
|
-
# ```
|
787
|
-
#
|
788
611
|
# @overload update_case(request, options = nil)
|
789
612
|
# Pass arguments to `update_case` via a request object, either of type
|
790
613
|
# {::Google::Cloud::Support::V2beta::UpdateCaseRequest} or an equivalent Hash.
|
@@ -878,48 +701,6 @@ module Google
|
|
878
701
|
# escalations' in the feature list to find out which ones let you
|
879
702
|
# do that.
|
880
703
|
#
|
881
|
-
# EXAMPLES:
|
882
|
-
#
|
883
|
-
# cURL:
|
884
|
-
#
|
885
|
-
# ```shell
|
886
|
-
# case="projects/some-project/cases/43595344"
|
887
|
-
# curl \
|
888
|
-
# --request POST \
|
889
|
-
# --header "Authorization: Bearer $(gcloud auth print-access-token)" \
|
890
|
-
# --header "Content-Type: application/json" \
|
891
|
-
# --data '{
|
892
|
-
# "escalation": {
|
893
|
-
# "reason": "BUSINESS_IMPACT",
|
894
|
-
# "justification": "This is a test escalation."
|
895
|
-
# }
|
896
|
-
# }' \
|
897
|
-
# "https://cloudsupport.googleapis.com/v2/$case:escalate"
|
898
|
-
# ```
|
899
|
-
#
|
900
|
-
# Python:
|
901
|
-
#
|
902
|
-
# ```python
|
903
|
-
# import googleapiclient.discovery
|
904
|
-
#
|
905
|
-
# api_version = "v2"
|
906
|
-
# supportApiService = googleapiclient.discovery.build(
|
907
|
-
# serviceName="cloudsupport",
|
908
|
-
# version=api_version,
|
909
|
-
# discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version=\\{api_version}",
|
910
|
-
# )
|
911
|
-
# request = supportApiService.cases().escalate(
|
912
|
-
# name="projects/some-project/cases/43595344",
|
913
|
-
# body={
|
914
|
-
# "escalation": {
|
915
|
-
# "reason": "BUSINESS_IMPACT",
|
916
|
-
# "justification": "This is a test escalation.",
|
917
|
-
# },
|
918
|
-
# },
|
919
|
-
# )
|
920
|
-
# print(request.execute())
|
921
|
-
# ```
|
922
|
-
#
|
923
704
|
# @overload escalate_case(request, options = nil)
|
924
705
|
# Pass arguments to `escalate_case` via a request object, either of type
|
925
706
|
# {::Google::Cloud::Support::V2beta::EscalateCaseRequest} or an equivalent Hash.
|
@@ -1000,35 +781,6 @@ module Google
|
|
1000
781
|
##
|
1001
782
|
# Close a case.
|
1002
783
|
#
|
1003
|
-
# EXAMPLES:
|
1004
|
-
#
|
1005
|
-
# cURL:
|
1006
|
-
#
|
1007
|
-
# ```shell
|
1008
|
-
# case="projects/some-project/cases/43595344"
|
1009
|
-
# curl \
|
1010
|
-
# --request POST \
|
1011
|
-
# --header "Authorization: Bearer $(gcloud auth print-access-token)" \
|
1012
|
-
# "https://cloudsupport.googleapis.com/v2/$case:close"
|
1013
|
-
# ```
|
1014
|
-
#
|
1015
|
-
# Python:
|
1016
|
-
#
|
1017
|
-
# ```python
|
1018
|
-
# import googleapiclient.discovery
|
1019
|
-
#
|
1020
|
-
# api_version = "v2"
|
1021
|
-
# supportApiService = googleapiclient.discovery.build(
|
1022
|
-
# serviceName="cloudsupport",
|
1023
|
-
# version=api_version,
|
1024
|
-
# discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version=\\{api_version}",
|
1025
|
-
# )
|
1026
|
-
# request = supportApiService.cases().close(
|
1027
|
-
# name="projects/some-project/cases/43595344"
|
1028
|
-
# )
|
1029
|
-
# print(request.execute())
|
1030
|
-
# ```
|
1031
|
-
#
|
1032
784
|
# @overload close_case(request, options = nil)
|
1033
785
|
# Pass arguments to `close_case` via a request object, either of type
|
1034
786
|
# {::Google::Cloud::Support::V2beta::CloseCaseRequest} or an equivalent Hash.
|
@@ -1116,32 +868,6 @@ module Google
|
|
1116
868
|
# stops returning it. After six months, `case.create` requests using the
|
1117
869
|
# classification will fail.
|
1118
870
|
#
|
1119
|
-
# EXAMPLES:
|
1120
|
-
#
|
1121
|
-
# cURL:
|
1122
|
-
#
|
1123
|
-
# ```shell
|
1124
|
-
# curl \
|
1125
|
-
# --header "Authorization: Bearer $(gcloud auth print-access-token)" \
|
1126
|
-
# 'https://cloudsupport.googleapis.com/v2/caseClassifications:search?query=display_name:"*Compute%20Engine*"'
|
1127
|
-
# ```
|
1128
|
-
#
|
1129
|
-
# Python:
|
1130
|
-
#
|
1131
|
-
# ```python
|
1132
|
-
# import googleapiclient.discovery
|
1133
|
-
#
|
1134
|
-
# supportApiService = googleapiclient.discovery.build(
|
1135
|
-
# serviceName="cloudsupport",
|
1136
|
-
# version="v2",
|
1137
|
-
# discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version=v2",
|
1138
|
-
# )
|
1139
|
-
# request = supportApiService.caseClassifications().search(
|
1140
|
-
# query='display_name:"*Compute Engine*"'
|
1141
|
-
# )
|
1142
|
-
# print(request.execute())
|
1143
|
-
# ```
|
1144
|
-
#
|
1145
871
|
# @overload search_case_classifications(request, options = nil)
|
1146
872
|
# Pass arguments to `search_case_classifications` via a request object, either of type
|
1147
873
|
# {::Google::Cloud::Support::V2beta::SearchCaseClassificationsRequest} or an equivalent Hash.
|