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: 11b7b98694bd54f24a2b2c16872fba4040bb4c5b44ea3d8234473a6654c39a71
4
- data.tar.gz: 61ae2b86f4186e44342fd6d6cd32f2d152cc3a0dba0357dbb7a87563799dfbc1
3
+ metadata.gz: d37245884663234301c05439dff26b923b8b4bdb11e3a4fe5c3b16ed45c92c2e
4
+ data.tar.gz: ff29a7456ff6fabcdd395665f213dcef28998b4fc399ffdc87c97095c577fc99
5
5
  SHA512:
6
- metadata.gz: f8cb4f4738730baf055acfd335748c50e786db585df330604adc53de55f09039f3ee5304b890d65181818dbf8cbe9fd5025a9e45ab50e9727ee394f839e16f1a
7
- data.tar.gz: 2d02306e5e312cb10645c9ff98ad97219a405a96dd62f06d235ad6b835723958f34f0a0f4a390a865dba0946805ef1d15918ebe0bea274f59ef1b9606706bda4
6
+ metadata.gz: 516f298dd70a8ebdfe045a34f94548412ea539e650ee4aa8972e8dd98963307ca767e078924eccad5c83fa071d87c35217d566a2dc30100efbc2f5654669cc75
7
+ data.tar.gz: efec61d5e3834f99a3c980d841a42793c70c88814221041a47eff0065a14a3b17338e692876814c74a7ac738fc87372b496a690e1f2ad1c811d3d913ccc4677f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
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
+
3
7
  ### v0.26.0 (2023-08-27)
4
8
 
5
9
  * Regenerated from discovery document revision 20230818
@@ -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 the given case.
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. This should be set in the `
745
- # page_token` field of subsequent `cases.attachments.list` requests. If
746
- # unspecified, there are no more results to retrieve.
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
- # The list of Comments associated with the given Case.
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. This should be set in the `
800
- # page_token` field of subsequent `ListCommentsRequest` message that is issued.
801
- # If unspecified, there are no more results to retrieve.
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.26.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 = "20230818"
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
- # Retrieve all attachments associated with a support case. Here is an example of
424
- # calling this endpoint using cURL: ```shell case="projects/some-project/cases/
425
- # 23598314" curl \ --header "Authorization: Bearer $(gcloud auth print-access-
426
- # token)" \ "https://cloudsupport.googleapis.com/v2/$case/attachments" ```
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 resource name of Case object for which attachments should be
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 the specified Case. The comment object must have the
466
- # following fields set: body. Here is an example of calling this endpoint using
467
- # cURL: ```shell case="projects/some-project/cases/43591344" curl \ --request
468
- # POST \ --header "Authorization: Bearer $(gcloud auth print-access-token)" \ --
469
- # header 'Content-Type: application/json' \ --data '` "body": "This is a test
470
- # comment." `' \ "https://cloudsupport.googleapis.com/v2/$case/comments" ```
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 resource name of Case to which this comment should be added.
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
- # Retrieve all comments associated with the Case object. Here is an example of
504
- # calling this endpoint using cURL: ```shell case="projects/cloud-support-qa-
505
- # premium/cases/43595344" curl \ --header "Authorization: Bearer $(gcloud auth
506
- # print-access-token)" \ "https://cloudsupport.googleapis.com/v2/$case/comments"
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 resource name of Case object for which comments should be listed.
524
+ # Required. The name of the case for which to list comments.
510
525
  # @param [Fixnum] page_size
511
- # The maximum number of comments fetched with each request. Defaults to 10.
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 retrieved.
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 attachment on a case. Note: HTTP requests must append "?alt=
545
- # media" to the URL. Here is an example of calling this endpoint using cURL: ```
546
- # shell name="projects/some-project/cases/43594844/attachments/
547
- # 0674M00000WijAnZAJ" curl \ --header "Authorization: Bearer $(gcloud auth print-
548
- # access-token)" \ "https://cloudsupport.googleapis.com/v2/$name:download?alt=
549
- # media" ```
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 resource name of the attachment to be downloaded.
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 object
587
- # must have the following fields set: filename. Here is an example of calling
588
- # this endpoint using cURL: ```shell echo "This text is in a file I'm uploading
589
- # using CSAPI." \ > "./example_file.txt" case="projects/some-project/cases/
590
- # 43594844" curl \ --header "Authorization: Bearer $(gcloud auth print-access-
591
- # token)" \ --data-binary @"./example_file.txt" \ "https://cloudsupport.
592
- # googleapis.com/upload/v2beta/$case/attachments?attachment.filename=
593
- # uploaded_via_curl.txt" ```
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 resource name of the case (or case parent) to which the
596
- # attachment should be attached.
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.26.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-08-27 00:00:00.000000000 Z
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.26.0
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: []