@@ -511,6 +511,45 @@ def show_case_feed(parent, order_by: nil, page_size: nil, page_token: nil, field
511
511
execute_or_queue_command ( command , &block )
512
512
end
513
513
514
+ # Retrieve an attachment associated with a support case. EXAMPLES: cURL: ```
515
+ # shell attachment="projects/some-project/cases/23598314/attachments/
516
+ # 0684M00000P3h1fQAB" curl \ --header "Authorization: Bearer $(gcloud auth print-
517
+ # access-token)" \ "https://cloudsupport.googleapis.com/v2/$attachment" ```
518
+ # Python: ```python import googleapiclient.discovery api_version = "v2beta"
519
+ # supportApiService = googleapiclient.discovery.build( serviceName="cloudsupport"
520
+ # , version=api_version, discoveryServiceUrl=f"https://cloudsupport.googleapis.
521
+ # com/$discovery/rest?version=`api_version`", ) request = ( supportApiService.
522
+ # cases() .attachments() .get(name="projects/some-project/cases/43595344/
523
+ # attachments/0684M00000P3h1fQAB") ) print(request.execute()) ```
524
+ # @param [String] name
525
+ # Required. The name of the attachment to get.
526
+ # @param [String] fields
527
+ # Selector specifying which fields to include in a partial response.
528
+ # @param [String] quota_user
529
+ # Available to use for quota purposes for server-side applications. Can be any
530
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
531
+ # @param [Google::Apis::RequestOptions] options
532
+ # Request-specific options
533
+ #
534
+ # @yield [result, err] Result & error if block supplied
535
+ # @yieldparam result [Google::Apis::CloudsupportV2beta::Attachment] parsed result object
536
+ # @yieldparam err [StandardError] error object if request failed
537
+ #
538
+ # @return [Google::Apis::CloudsupportV2beta::Attachment]
539
+ #
540
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
541
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
542
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
543
+ def get_case_attachment ( name , fields : nil , quota_user : nil , options : nil , &block )
544
+ command = make_simple_command ( :get , 'v2beta/{+name}' , options )
545
+ command . response_representation = Google ::Apis ::CloudsupportV2beta ::Attachment ::Representation
546
+ command . response_class = Google ::Apis ::CloudsupportV2beta ::Attachment
547
+ command . params [ 'name' ] = name unless name . nil?
548
+ command . query [ 'fields' ] = fields unless fields . nil?
549
+ command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
550
+ execute_or_queue_command ( command , &block )
551
+ end
552
+
514
553
# List all the attachments associated with a support case. EXAMPLES: cURL: ```
515
554
# shell case="projects/some-project/cases/23598314" curl \ --header "
516
555
# Authorization: Bearer $(gcloud auth print-access-token)" \ "https://
@@ -605,6 +644,44 @@ def create_case_comment(parent, comment_object = nil, fields: nil, quota_user: n
605
644
execute_or_queue_command ( command , &block )
606
645
end
607
646
647
+ # Retrieve a comment. EXAMPLES: cURL: ```shell comment="projects/some-project/
648
+ # cases/43595344/comments/234567890" curl \ --header "Authorization: Bearer $(
649
+ # gcloud auth print-access-token)" \ "https://cloudsupport.googleapis.com/v2/$
650
+ # comment" ``` Python: ```python import googleapiclient.discovery api_version = "
651
+ # v2beta" supportApiService = googleapiclient.discovery.build( serviceName="
652
+ # cloudsupport", version=api_version, discoveryServiceUrl=f"https://cloudsupport.
653
+ # googleapis.com/$discovery/rest?version=`api_version`", ) request =
654
+ # supportApiService.cases().comments().get( name="projects/some-project/cases/
655
+ # 43595344/comments/234567890", ) print(request.execute()) ```
656
+ # @param [String] name
657
+ # Required. The name of the comment to retrieve.
658
+ # @param [String] fields
659
+ # Selector specifying which fields to include in a partial response.
660
+ # @param [String] quota_user
661
+ # Available to use for quota purposes for server-side applications. Can be any
662
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
663
+ # @param [Google::Apis::RequestOptions] options
664
+ # Request-specific options
665
+ #
666
+ # @yield [result, err] Result & error if block supplied
667
+ # @yieldparam result [Google::Apis::CloudsupportV2beta::Comment] parsed result object
668
+ # @yieldparam err [StandardError] error object if request failed
669
+ #
670
+ # @return [Google::Apis::CloudsupportV2beta::Comment]
671
+ #
672
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
673
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
674
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
675
+ def get_case_comment ( name , fields : nil , quota_user : nil , options : nil , &block )
676
+ command = make_simple_command ( :get , 'v2beta/{+name}' , options )
677
+ command . response_representation = Google ::Apis ::CloudsupportV2beta ::Comment ::Representation
678
+ command . response_class = Google ::Apis ::CloudsupportV2beta ::Comment
679
+ command . params [ 'name' ] = name unless name . nil?
680
+ command . query [ 'fields' ] = fields unless fields . nil?
681
+ command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
682
+ execute_or_queue_command ( command , &block )
683
+ end
684
+
608
685
# List all the comments associated with a case. EXAMPLES: cURL: ```shell case="
609
686
# projects/some-project/cases/43595344" curl \ --header "Authorization: Bearer $(
610
687
# gcloud auth print-access-token)" \ "https://cloudsupport.googleapis.com/v2/$
0 commit comments