# Google Cloud Support V2BETA API - Class Google::Cloud::Support::V2beta::CommentService::Rest::ServiceStub (v0.6.0)

0.6.0 (latest) 0.5.1 0.4.0 0.3.1 0.2.0 0.1.1 Reference documentation and code samples for the Google Cloud Support V2BETA API class Google::Cloud::Support::V2beta::CommentService::Rest::ServiceStub.

REST service stub for the CommentService service.
Service stub contains baseline method implementations
including transcoding, making the REST call, and deserialing the response.

## Inherits

- Object

## Methods

### #create_comment

    def create_comment(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Support::V2beta::Comment

Baseline implementation for the create_comment REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Support::V2beta::CreateCommentRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-support-v2beta/latest/Google-Cloud-Support-V2beta-CreateCommentRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::Support::V2beta::Comment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-support-v2beta/latest/Google-Cloud-Support-V2beta-Comment))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::Support::V2beta::Comment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-support-v2beta/latest/Google-Cloud-Support-V2beta-Comment)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #endpoint

    def endpoint() -> String

The effective endpoint
**Returns**

- (String)

### #get_comment

    def get_comment(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Support::V2beta::Comment

Baseline implementation for the get_comment REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Support::V2beta::GetCommentRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-support-v2beta/latest/Google-Cloud-Support-V2beta-GetCommentRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::Support::V2beta::Comment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-support-v2beta/latest/Google-Cloud-Support-V2beta-Comment))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::Support::V2beta::Comment](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-support-v2beta/latest/Google-Cloud-Support-V2beta-Comment)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #list_comments

    def list_comments(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Support::V2beta::ListCommentsResponse

Baseline implementation for the list_comments REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Support::V2beta::ListCommentsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-support-v2beta/latest/Google-Cloud-Support-V2beta-ListCommentsRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::Support::V2beta::ListCommentsResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-support-v2beta/latest/Google-Cloud-Support-V2beta-ListCommentsResponse))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::Support::V2beta::ListCommentsResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-support-v2beta/latest/Google-Cloud-Support-V2beta-ListCommentsResponse)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #logger

    def logger(stub: false) -> Logger

The logger used for request/response debug logging.
**Returns**

- (Logger)

### #universe_domain

    def universe_domain() -> String

The effective universe domain
**Returns**

- (String)