google-apis-cloudsupport_v2beta 0.26.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
@@ -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
|
@@ -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::CloudsupportV2beta::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::CloudsupportV2beta::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_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: []
|