google-apis-cloudsupport_v2 0.3.0 → 0.4.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: 9e71bf8078540186c463d7806e543dc506dec619582dd2dffeef5ad3ba1568b8
4
- data.tar.gz: e49e75175d1e926e2f91e9c6a295a6a7cdce8270c0c80bd1545992cc53ab4ab8
3
+ metadata.gz: 8bbab504a04182a6c87e5315364ecf6f13d79cfcae1dbab879534b9d0b9ebdab
4
+ data.tar.gz: bce1cbfe2888087c93c7db291fff27889522fc981df9287a1c4630862829a5f4
5
5
  SHA512:
6
- metadata.gz: 1c08c3bde964244b221e8f68863bd7146454c4571281e7f4f6f59fe4b4bf77fa0e2ee09de8018eb627fc5a39999f968bfb039bc67336add106f196782e4626e7
7
- data.tar.gz: db504c2fde0cf65eca87bdd05160ce5c5efff0955b5f07443cfc35b91cc60a6cb74156875fd92b990811ea09a52963baeab01c99a1502d02c2123dd96cc0db61
6
+ metadata.gz: b2d1cc602f6525de8817f762930f409ba83045a8eaf78d5d62440211b37b7cf895eeb20b1b72b76eccb72a84225a9b02e86a9526cf93f4c28046d0c851cb3c2d
7
+ data.tar.gz: 9efb0f6d28602ca91d88732a433f74cad30acfe8b4b3e8be07a95edf4e49811ba1151eed63ab234788f773575b125fa103ff6775958ab7798efbf74ddfff77d4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-cloudsupport_v2
2
2
 
3
+ ### v0.4.0 (2023-09-10)
4
+
5
+ * Regenerated from discovery document revision 20230904
6
+
3
7
  ### v0.3.0 (2023-08-27)
4
8
 
5
9
  * Regenerated from discovery document revision 20230818
@@ -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 the given case.
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. This should be set in the `
739
- # page_token` field of subsequent `cases.attachments.list` requests. If
740
- # unspecified, there are no more results to retrieve.
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
- # The list of Comments associated with the given Case.
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. This should be set in the `
794
- # page_token` field of subsequent `ListCommentsRequest` message that is issued.
795
- # If unspecified, there are no more results to retrieve.
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.3.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 = "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::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
- # 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::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.3.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-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_v2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-cloudsupport_v2/v0.3.0
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: []