# Cloud Debugger V2 API - Class Google::Cloud::Debugger::V2::Controller::Rest::ServiceStub (v0.6.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.6.0 (latest)](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-debugger-v2/latest/Google-Cloud-Debugger-V2-Controller-Rest-ServiceStub)
- [0.5.0](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-debugger-v2/0.5.0/Google-Cloud-Debugger-V2-Controller-Rest-ServiceStub)
- [0.4.0](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-debugger-v2/0.4.0/Google-Cloud-Debugger-V2-Controller-Rest-ServiceStub)
- [0.3.5](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-debugger-v2/0.3.5/Google-Cloud-Debugger-V2-Controller-Rest-ServiceStub)
Reference documentation and code samples for the Cloud Debugger V2 API class Google::Cloud::Debugger::V2::Controller::Rest::ServiceStub.

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

## Inherits

- Object

## Methods

### #initialize

    def initialize(endpoint:, credentials:) -> ServiceStub

**Returns**

- ([ServiceStub](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-debugger-v2/latest/Google-Cloud-Debugger-V2-Controller-Rest-ServiceStub)) --- a new instance of ServiceStub

### #list_active_breakpoints

    def list_active_breakpoints(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Debugger::V2::ListActiveBreakpointsResponse

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

- **request_pb** ([::Google::Cloud::Debugger::V2::ListActiveBreakpointsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-debugger-v2/latest/Google-Cloud-Debugger-V2-ListActiveBreakpointsRequest)) --- 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::Debugger::V2::ListActiveBreakpointsResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-debugger-v2/latest/Google-Cloud-Debugger-V2-ListActiveBreakpointsResponse))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::Debugger::V2::ListActiveBreakpointsResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-debugger-v2/latest/Google-Cloud-Debugger-V2-ListActiveBreakpointsResponse)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #register_debuggee

    def register_debuggee(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Debugger::V2::RegisterDebuggeeResponse

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

- **request_pb** ([::Google::Cloud::Debugger::V2::RegisterDebuggeeRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-debugger-v2/latest/Google-Cloud-Debugger-V2-RegisterDebuggeeRequest)) --- 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::Debugger::V2::RegisterDebuggeeResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-debugger-v2/latest/Google-Cloud-Debugger-V2-RegisterDebuggeeResponse))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::Debugger::V2::RegisterDebuggeeResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-debugger-v2/latest/Google-Cloud-Debugger-V2-RegisterDebuggeeResponse)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #update_active_breakpoint

    def update_active_breakpoint(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Debugger::V2::UpdateActiveBreakpointResponse

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

- **request_pb** ([::Google::Cloud::Debugger::V2::UpdateActiveBreakpointRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-debugger-v2/latest/Google-Cloud-Debugger-V2-UpdateActiveBreakpointRequest)) --- 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::Debugger::V2::UpdateActiveBreakpointResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-debugger-v2/latest/Google-Cloud-Debugger-V2-UpdateActiveBreakpointResponse))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::Debugger::V2::UpdateActiveBreakpointResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-debugger-v2/latest/Google-Cloud-Debugger-V2-UpdateActiveBreakpointResponse)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)