google-apis-cloudsupport_v2beta 0.25.0 → 0.27.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d37245884663234301c05439dff26b923b8b4bdb11e3a4fe5c3b16ed45c92c2e
|
4
|
+
data.tar.gz: ff29a7456ff6fabcdd395665f213dcef28998b4fc399ffdc87c97095c577fc99
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 516f298dd70a8ebdfe045a34f94548412ea539e650ee4aa8972e8dd98963307ca767e078924eccad5c83fa071d87c35217d566a2dc30100efbc2f5654669cc75
|
7
|
+
data.tar.gz: efec61d5e3834f99a3c980d841a42793c70c88814221041a47eff0065a14a3b17338e692876814c74a7ac738fc87372b496a690e1f2ad1c811d3d913ccc4677f
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-cloudsupport_v2beta
|
2
2
|
|
3
|
+
### v0.27.0 (2023-09-10)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20230904
|
6
|
+
|
7
|
+
### v0.26.0 (2023-08-27)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20230818
|
10
|
+
|
3
11
|
### v0.25.0 (2023-08-03)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20230725
|
@@ -736,14 +736,14 @@ module Google
|
|
736
736
|
class ListAttachmentsResponse
|
737
737
|
include Google::Apis::Core::Hashable
|
738
738
|
|
739
|
-
# The list of attachments associated with
|
739
|
+
# The list of attachments associated with a case.
|
740
740
|
# Corresponds to the JSON property `attachments`
|
741
741
|
# @return [Array<Google::Apis::CloudsupportV2beta::Attachment>]
|
742
742
|
attr_accessor :attachments
|
743
743
|
|
744
|
-
# A token to retrieve the next page of results.
|
745
|
-
#
|
746
|
-
#
|
744
|
+
# A token to retrieve the next page of results. Set this in the `page_token`
|
745
|
+
# field of subsequent `cases.attachments.list` requests. If unspecified, there
|
746
|
+
# are no more results to retrieve.
|
747
747
|
# Corresponds to the JSON property `nextPageToken`
|
748
748
|
# @return [String]
|
749
749
|
attr_accessor :next_page_token
|
@@ -791,14 +791,14 @@ module Google
|
|
791
791
|
class ListCommentsResponse
|
792
792
|
include Google::Apis::Core::Hashable
|
793
793
|
|
794
|
-
#
|
794
|
+
# List of the comments associated with the case.
|
795
795
|
# Corresponds to the JSON property `comments`
|
796
796
|
# @return [Array<Google::Apis::CloudsupportV2beta::Comment>]
|
797
797
|
attr_accessor :comments
|
798
798
|
|
799
|
-
# A token to retrieve the next page of results.
|
800
|
-
#
|
801
|
-
#
|
799
|
+
# A token to retrieve the next page of results. Set this in the `page_token`
|
800
|
+
# field of subsequent `cases.comments.list` requests. If unspecified, there are
|
801
|
+
# no more results to retrieve.
|
802
802
|
# Corresponds to the JSON property `nextPageToken`
|
803
803
|
# @return [String]
|
804
804
|
attr_accessor :next_page_token
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module CloudsupportV2beta
|
18
18
|
# Version of the google-apis-cloudsupport_v2beta gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.27.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230904"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -135,14 +135,15 @@ module Google
|
|
135
135
|
execute_or_queue_command(command, &block)
|
136
136
|
end
|
137
137
|
|
138
|
-
# Create a new case and associate it with
|
139
|
-
#
|
140
|
-
#
|
141
|
-
#
|
142
|
-
#
|
143
|
-
#
|
144
|
-
#
|
145
|
-
#
|
138
|
+
# Create a new case and associate it with a Google Cloud Resource. The case
|
139
|
+
# object must have the following fields set: `display_name`, `description`, `
|
140
|
+
# classification`, and `priority`. If you're just testing the API and don't want
|
141
|
+
# to route your case to an agent, set `testCase=true`. Here is an example of
|
142
|
+
# calling this endpoint using cURL: ```shell parent="projects/some-project" curl
|
143
|
+
# \ --request POST \ --header "Authorization: Bearer $(gcloud auth print-access-
|
144
|
+
# token)" \ --header 'Content-Type: application/json' \ --data '` "display_name":
|
145
|
+
# "Test case created by me.", "description": "a random test case, feel free to
|
146
|
+
# close", "classification": ` "id": "
|
146
147
|
# 1BT1M2T31DHNMENPO6KS36CPJ786L2TBFEHGN6NPI64R3CDHN8880G08I1H3MURR7DHII0GRCDTQM8"
|
147
148
|
# `, "time_zone": "-07:00", "subscriber_email_addresses": [ "foo@domain.com", "
|
148
149
|
# bar@domain.com" ], "testCase": true, "priority": "P3" `' \ "https://
|
@@ -419,13 +420,18 @@ module Google
|
|
419
420
|
execute_or_queue_command(command, &block)
|
420
421
|
end
|
421
422
|
|
422
|
-
#
|
423
|
-
#
|
424
|
-
#
|
425
|
-
#
|
423
|
+
# List all the attachments associated with a support case. EXAMPLES: cURL: ```
|
424
|
+
# shell case="projects/some-project/cases/23598314" curl \ --header "
|
425
|
+
# Authorization: Bearer $(gcloud auth print-access-token)" \ "https://
|
426
|
+
# cloudsupport.googleapis.com/v2/$case/attachments" ``` Python: ```python import
|
427
|
+
# googleapiclient.discovery api_version = "v2" supportApiService =
|
428
|
+
# googleapiclient.discovery.build( serviceName="cloudsupport", version=
|
429
|
+
# api_version, discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$
|
430
|
+
# discovery/rest?version=`api_version`", ) request = ( supportApiService.cases()
|
431
|
+
# .attachments() .list(parent="projects/some-project/cases/43595344") ) print(
|
432
|
+
# request.execute()) ```
|
426
433
|
# @param [String] parent
|
427
|
-
# Required. The
|
428
|
-
# listed.
|
434
|
+
# Required. The name of the case for which attachments should be listed.
|
429
435
|
# @param [Fixnum] page_size
|
430
436
|
# The maximum number of attachments fetched with each request. If not provided,
|
431
437
|
# the default is 10. The maximum page size that will be returned is 100.
|
@@ -461,14 +467,20 @@ module Google
|
|
461
467
|
execute_or_queue_command(command, &block)
|
462
468
|
end
|
463
469
|
|
464
|
-
# Add a new comment to
|
465
|
-
#
|
466
|
-
#
|
467
|
-
#
|
468
|
-
#
|
469
|
-
#
|
470
|
+
# Add a new comment to a case. The comment must have the following fields set: `
|
471
|
+
# body`. EXAMPLES: cURL: ```shell case="projects/some-project/cases/43591344"
|
472
|
+
# curl \ --request POST \ --header "Authorization: Bearer $(gcloud auth print-
|
473
|
+
# access-token)" \ --header 'Content-Type: application/json' \ --data '` "body":
|
474
|
+
# "This is a test comment." `' \ "https://cloudsupport.googleapis.com/v2/$case/
|
475
|
+
# comments" ``` Python: ```python import googleapiclient.discovery api_version =
|
476
|
+
# "v2" supportApiService = googleapiclient.discovery.build( serviceName="
|
477
|
+
# cloudsupport", version=api_version, discoveryServiceUrl=f"https://cloudsupport.
|
478
|
+
# googleapis.com/$discovery/rest?version=`api_version`", ) request = (
|
479
|
+
# supportApiService.cases() .comments() .create( parent="projects/some-project/
|
480
|
+
# cases/43595344", body=`"body": "This is a test comment."`, ) ) print(request.
|
481
|
+
# execute()) ```
|
470
482
|
# @param [String] parent
|
471
|
-
# Required. The
|
483
|
+
# Required. The name of the case to which the comment should be added.
|
472
484
|
# @param [Google::Apis::CloudsupportV2beta::Comment] comment_object
|
473
485
|
# @param [String] fields
|
474
486
|
# Selector specifying which fields to include in a partial response.
|
@@ -499,18 +511,22 @@ module Google
|
|
499
511
|
execute_or_queue_command(command, &block)
|
500
512
|
end
|
501
513
|
|
502
|
-
#
|
503
|
-
#
|
504
|
-
#
|
505
|
-
#
|
506
|
-
#
|
514
|
+
# List all the comments associated with a case. EXAMPLES: cURL: ```shell case="
|
515
|
+
# projects/some-project/cases/43595344" curl \ --header "Authorization: Bearer $(
|
516
|
+
# gcloud auth print-access-token)" \ "https://cloudsupport.googleapis.com/v2/$
|
517
|
+
# case/comments" ``` Python: ```python import googleapiclient.discovery
|
518
|
+
# api_version = "v2" supportApiService = googleapiclient.discovery.build(
|
519
|
+
# serviceName="cloudsupport", version=api_version, discoveryServiceUrl=f"https://
|
520
|
+
# cloudsupport.googleapis.com/$discovery/rest?version=`api_version`", ) request =
|
521
|
+
# ( supportApiService.cases() .comments() .list(parent="projects/some-project/
|
522
|
+
# cases/43595344") ) print(request.execute()) ```
|
507
523
|
# @param [String] parent
|
508
|
-
# Required. The
|
524
|
+
# Required. The name of the case for which to list comments.
|
509
525
|
# @param [Fixnum] page_size
|
510
|
-
# The maximum number of comments
|
526
|
+
# The maximum number of comments to fetch. Defaults to 10.
|
511
527
|
# @param [String] page_token
|
512
528
|
# A token identifying the page of results to return. If unspecified, the first
|
513
|
-
# page is
|
529
|
+
# page is returned.
|
514
530
|
# @param [String] fields
|
515
531
|
# Selector specifying which fields to include in a partial response.
|
516
532
|
# @param [String] quota_user
|
@@ -540,14 +556,19 @@ module Google
|
|
540
556
|
execute_or_queue_command(command, &block)
|
541
557
|
end
|
542
558
|
|
543
|
-
# Download a file
|
544
|
-
# media" to the URL.
|
545
|
-
#
|
546
|
-
#
|
547
|
-
#
|
548
|
-
#
|
559
|
+
# Download a file attached to a case. Note: HTTP requests must append "?alt=
|
560
|
+
# media" to the URL. EXAMPLES: cURL: ```shell name="projects/some-project/cases/
|
561
|
+
# 43594844/attachments/0674M00000WijAnZAJ" curl \ --header "Authorization:
|
562
|
+
# Bearer $(gcloud auth print-access-token)" \ "https://cloudsupport.googleapis.
|
563
|
+
# com/v2/$name:download?alt=media" ``` Python: ```python import googleapiclient.
|
564
|
+
# discovery api_version = "v2" supportApiService = googleapiclient.discovery.
|
565
|
+
# build( serviceName="cloudsupport", version=api_version, discoveryServiceUrl=f"
|
566
|
+
# https://cloudsupport.googleapis.com/$discovery/rest?version=`api_version`", )
|
567
|
+
# request = supportApiService.media().download( name="projects/some-project/
|
568
|
+
# cases/43595344/attachments/0684M00000Pw6pHQAR" ) request.uri = request.uri.
|
569
|
+
# split("?")[0] + "?alt=media" print(request.execute()) ```
|
549
570
|
# @param [String] name
|
550
|
-
# The
|
571
|
+
# The name of the file attachment to download.
|
551
572
|
# @param [String] fields
|
552
573
|
# Selector specifying which fields to include in a partial response.
|
553
574
|
# @param [String] quota_user
|
@@ -582,17 +603,24 @@ module Google
|
|
582
603
|
execute_or_queue_command(command, &block)
|
583
604
|
end
|
584
605
|
|
585
|
-
# Create a file attachment on a case or Cloud resource. The attachment
|
586
|
-
#
|
587
|
-
#
|
588
|
-
#
|
589
|
-
#
|
590
|
-
#
|
591
|
-
#
|
592
|
-
#
|
606
|
+
# Create a file attachment on a case or Cloud resource. The attachment must have
|
607
|
+
# the following fields set: `filename`. EXAMPLES: cURL: ```shell echo "This text
|
608
|
+
# is in a file I'm uploading using CSAPI." \ > "./example_file.txt" case="
|
609
|
+
# projects/some-project/cases/43594844" curl \ --header "Authorization: Bearer $(
|
610
|
+
# gcloud auth print-access-token)" \ --data-binary @"./example_file.txt" \ "
|
611
|
+
# https://cloudsupport.googleapis.com/upload/v2beta/$case/attachments?attachment.
|
612
|
+
# filename=uploaded_via_curl.txt" ``` Python: ```python import googleapiclient.
|
613
|
+
# discovery api_version = "v2" supportApiService = googleapiclient.discovery.
|
614
|
+
# build( serviceName="cloudsupport", version=api_version, discoveryServiceUrl=f"
|
615
|
+
# https://cloudsupport.googleapis.com/$discovery/rest?version=`api_version`", )
|
616
|
+
# file_path = "./example_file.txt" with open(file_path, "w") as file: file.write(
|
617
|
+
# "This text is inside a file I'm going to upload using the Cloud Support API.",
|
618
|
+
# ) request = supportApiService.media().upload( parent="projects/some-project/
|
619
|
+
# cases/43595344", media_body=file_path ) request.uri = request.uri.split("?")[0]
|
620
|
+
# + "?attachment.filename=uploaded_via_python.txt" print(request.execute()) ```
|
593
621
|
# @param [String] parent
|
594
|
-
# Required. The
|
595
|
-
#
|
622
|
+
# Required. The name of the case or Cloud resource to which the attachment
|
623
|
+
# should be attached.
|
596
624
|
# @param [Google::Apis::CloudsupportV2beta::CreateAttachmentRequest] create_attachment_request_object
|
597
625
|
# @param [String] fields
|
598
626
|
# Selector specifying which fields to include in a partial response.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-cloudsupport_v2beta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.27.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudsupport_v2beta/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudsupport_v2beta/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudsupport_v2beta/v0.27.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudsupport_v2beta
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.4.
|
78
|
+
rubygems_version: 3.4.19
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Google Cloud Support API V2beta
|