google-apis-cloudsupport_v2 0.3.0 → 0.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8bbab504a04182a6c87e5315364ecf6f13d79cfcae1dbab879534b9d0b9ebdab
|
4
|
+
data.tar.gz: bce1cbfe2888087c93c7db291fff27889522fc981df9287a1c4630862829a5f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2d1cc602f6525de8817f762930f409ba83045a8eaf78d5d62440211b37b7cf895eeb20b1b72b76eccb72a84225a9b02e86a9526cf93f4c28046d0c851cb3c2d
|
7
|
+
data.tar.gz: 9efb0f6d28602ca91d88732a433f74cad30acfe8b4b3e8be07a95edf4e49811ba1151eed63ab234788f773575b125fa103ff6775958ab7798efbf74ddfff77d4
|
data/CHANGELOG.md
CHANGED
@@ -730,14 +730,14 @@ module Google
|
|
730
730
|
class ListAttachmentsResponse
|
731
731
|
include Google::Apis::Core::Hashable
|
732
732
|
|
733
|
-
# The list of attachments associated with
|
733
|
+
# The list of attachments associated with a case.
|
734
734
|
# Corresponds to the JSON property `attachments`
|
735
735
|
# @return [Array<Google::Apis::CloudsupportV2::Attachment>]
|
736
736
|
attr_accessor :attachments
|
737
737
|
|
738
|
-
# A token to retrieve the next page of results.
|
739
|
-
#
|
740
|
-
#
|
738
|
+
# A token to retrieve the next page of results. Set this in the `page_token`
|
739
|
+
# field of subsequent `cases.attachments.list` requests. If unspecified, there
|
740
|
+
# are no more results to retrieve.
|
741
741
|
# Corresponds to the JSON property `nextPageToken`
|
742
742
|
# @return [String]
|
743
743
|
attr_accessor :next_page_token
|
@@ -785,14 +785,14 @@ module Google
|
|
785
785
|
class ListCommentsResponse
|
786
786
|
include Google::Apis::Core::Hashable
|
787
787
|
|
788
|
-
#
|
788
|
+
# List of the comments associated with the case.
|
789
789
|
# Corresponds to the JSON property `comments`
|
790
790
|
# @return [Array<Google::Apis::CloudsupportV2::Comment>]
|
791
791
|
attr_accessor :comments
|
792
792
|
|
793
|
-
# A token to retrieve the next page of results.
|
794
|
-
#
|
795
|
-
#
|
793
|
+
# A token to retrieve the next page of results. Set this in the `page_token`
|
794
|
+
# field of subsequent `cases.comments.list` requests. If unspecified, there are
|
795
|
+
# no more results to retrieve.
|
796
796
|
# Corresponds to the JSON property `nextPageToken`
|
797
797
|
# @return [String]
|
798
798
|
attr_accessor :next_page_token
|
@@ -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.4.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
|
@@ -420,13 +420,18 @@ module Google
|
|
420
420
|
execute_or_queue_command(command, &block)
|
421
421
|
end
|
422
422
|
|
423
|
-
#
|
424
|
-
#
|
425
|
-
#
|
426
|
-
#
|
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()) ```
|
427
433
|
# @param [String] parent
|
428
|
-
# Required. The
|
429
|
-
# listed.
|
434
|
+
# Required. The name of the case for which attachments should be listed.
|
430
435
|
# @param [Fixnum] page_size
|
431
436
|
# The maximum number of attachments fetched with each request. If not provided,
|
432
437
|
# the default is 10. The maximum page size that will be returned is 100.
|
@@ -462,14 +467,20 @@ module Google
|
|
462
467
|
execute_or_queue_command(command, &block)
|
463
468
|
end
|
464
469
|
|
465
|
-
# Add a new comment to
|
466
|
-
#
|
467
|
-
#
|
468
|
-
#
|
469
|
-
#
|
470
|
-
#
|
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()) ```
|
471
482
|
# @param [String] parent
|
472
|
-
# Required. The
|
483
|
+
# Required. The name of the case to which the comment should be added.
|
473
484
|
# @param [Google::Apis::CloudsupportV2::Comment] comment_object
|
474
485
|
# @param [String] fields
|
475
486
|
# Selector specifying which fields to include in a partial response.
|
@@ -500,18 +511,22 @@ module Google
|
|
500
511
|
execute_or_queue_command(command, &block)
|
501
512
|
end
|
502
513
|
|
503
|
-
#
|
504
|
-
#
|
505
|
-
#
|
506
|
-
#
|
507
|
-
#
|
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()) ```
|
508
523
|
# @param [String] parent
|
509
|
-
# Required. The
|
524
|
+
# Required. The name of the case for which to list comments.
|
510
525
|
# @param [Fixnum] page_size
|
511
|
-
# The maximum number of comments
|
526
|
+
# The maximum number of comments to fetch. Defaults to 10.
|
512
527
|
# @param [String] page_token
|
513
528
|
# A token identifying the page of results to return. If unspecified, the first
|
514
|
-
# page is
|
529
|
+
# page is returned.
|
515
530
|
# @param [String] fields
|
516
531
|
# Selector specifying which fields to include in a partial response.
|
517
532
|
# @param [String] quota_user
|
@@ -541,14 +556,19 @@ module Google
|
|
541
556
|
execute_or_queue_command(command, &block)
|
542
557
|
end
|
543
558
|
|
544
|
-
# Download a file
|
545
|
-
# media" to the URL.
|
546
|
-
#
|
547
|
-
#
|
548
|
-
#
|
549
|
-
#
|
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()) ```
|
550
570
|
# @param [String] name
|
551
|
-
# The
|
571
|
+
# The name of the file attachment to download.
|
552
572
|
# @param [String] fields
|
553
573
|
# Selector specifying which fields to include in a partial response.
|
554
574
|
# @param [String] quota_user
|
@@ -583,17 +603,24 @@ module Google
|
|
583
603
|
execute_or_queue_command(command, &block)
|
584
604
|
end
|
585
605
|
|
586
|
-
# Create a file attachment on a case or Cloud resource. The attachment
|
587
|
-
#
|
588
|
-
#
|
589
|
-
#
|
590
|
-
#
|
591
|
-
#
|
592
|
-
#
|
593
|
-
#
|
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()) ```
|
594
621
|
# @param [String] parent
|
595
|
-
# Required. The
|
596
|
-
#
|
622
|
+
# Required. The name of the case or Cloud resource to which the attachment
|
623
|
+
# should be attached.
|
597
624
|
# @param [Google::Apis::CloudsupportV2::CreateAttachmentRequest] create_attachment_request_object
|
598
625
|
# @param [String] fields
|
599
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_v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.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_v2/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudsupport_v2/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudsupport_v2/v0.4.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudsupport_v2
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|