Reference documentation and code samples for the Cloud Debugger V2 API class Google::Cloud::Debugger::V2::Debugger::Rest::Client.
REST client for the Debugger service.
The Debugger service provides the API that allows users to collect run-time information from a running application, without stopping or slowing it down and without modifying its state. An application may include one or more replicated processes performing the same work.
A debugged application is represented using the Debuggee concept. The Debugger service provides a way to query for available debuggees, but does not provide a way to create one. A debuggee is created using the Controller service, usually by running a debugger agent with the application.
The Debugger service enables the client to set one or more Breakpoints on a Debuggee and collect the results of the set Breakpoints.
Inherits
- Object
Methods
.configure
def self.configure() { |config| ... } -> Client::ConfigurationConfigure the Debugger Client class.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
# Modify the configuration for all Debugger clients ::Google::Cloud::Debugger::V2::Debugger::Rest::Client.configure do |config| config.timeout = 10.0 end
#configure
def configure() { |config| ... } -> Client::ConfigurationConfigure the Debugger Client instance.
The configuration is set to the derived mode, meaning that values can be changed, but structural changes (adding new fields, etc.) are not allowed. Structural changes should be made on Client.configure.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
#delete_breakpoint
def delete_breakpoint(request, options = nil) -> ::Google::Protobuf::Empty
def delete_breakpoint(debuggee_id: nil, breakpoint_id: nil, client_version: nil) -> ::Google::Protobuf::EmptyDeletes the breakpoint from the debuggee.
def delete_breakpoint(request, options = nil) -> ::Google::Protobuf::Emptydelete_breakpoint via a request object, either of type
Google::Cloud::Debugger::V2::DeleteBreakpointRequest or an equivalent Hash.
- request (::Google::Cloud::Debugger::V2::DeleteBreakpointRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def delete_breakpoint(debuggee_id: nil, breakpoint_id: nil, client_version: nil) -> ::Google::Protobuf::Emptydelete_breakpoint via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- debuggee_id (::String) — Required. ID of the debuggee whose breakpoint to delete.
- breakpoint_id (::String) — Required. ID of the breakpoint to delete.
-
client_version (::String) — Required. The client version making the call.
Schema:
domain/type/version(e.g.,google.com/intellij/v1).
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Protobuf::Empty)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#get_breakpoint
def get_breakpoint(request, options = nil) -> ::Google::Cloud::Debugger::V2::GetBreakpointResponse
def get_breakpoint(debuggee_id: nil, breakpoint_id: nil, client_version: nil) -> ::Google::Cloud::Debugger::V2::GetBreakpointResponseGets breakpoint information.
def get_breakpoint(request, options = nil) -> ::Google::Cloud::Debugger::V2::GetBreakpointResponseget_breakpoint via a request object, either of type
GetBreakpointRequest or an equivalent Hash.
- request (::Google::Cloud::Debugger::V2::GetBreakpointRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def get_breakpoint(debuggee_id: nil, breakpoint_id: nil, client_version: nil) -> ::Google::Cloud::Debugger::V2::GetBreakpointResponseget_breakpoint via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- debuggee_id (::String) — Required. ID of the debuggee whose breakpoint to get.
- breakpoint_id (::String) — Required. ID of the breakpoint to get.
-
client_version (::String) — Required. The client version making the call.
Schema:
domain/type/version(e.g.,google.com/intellij/v1).
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Debugger::V2::GetBreakpointResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#initialize
def initialize() { |config| ... } -> ClientCreate a new Debugger REST client object.
- (config) — Configure the Debugger client.
- config (Client::Configuration)
- (Client) — a new instance of Client
# Create a client using the default configuration client = ::Google::Cloud::Debugger::V2::Debugger::Rest::Client.new # Create a client using a custom configuration client = ::Google::Cloud::Debugger::V2::Debugger::Rest::Client.new do |config| config.timeout = 10.0 end
#list_breakpoints
def list_breakpoints(request, options = nil) -> ::Google::Cloud::Debugger::V2::ListBreakpointsResponse
def list_breakpoints(debuggee_id: nil, include_all_users: nil, include_inactive: nil, action: nil, strip_results: nil, wait_token: nil, client_version: nil) -> ::Google::Cloud::Debugger::V2::ListBreakpointsResponseLists all breakpoints for the debuggee.
def list_breakpoints(request, options = nil) -> ::Google::Cloud::Debugger::V2::ListBreakpointsResponselist_breakpoints via a request object, either of type
ListBreakpointsRequest or an equivalent Hash.
- request (::Google::Cloud::Debugger::V2::ListBreakpointsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def list_breakpoints(debuggee_id: nil, include_all_users: nil, include_inactive: nil, action: nil, strip_results: nil, wait_token: nil, client_version: nil) -> ::Google::Cloud::Debugger::V2::ListBreakpointsResponselist_breakpoints via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- debuggee_id (::String) — Required. ID of the debuggee whose breakpoints to list.
-
include_all_users (::Boolean) — When set to
true, the response includes the list of breakpoints set by any user. Otherwise, it includes only breakpoints set by the caller. -
include_inactive (::Boolean) — When set to
true, the response includes active and inactive breakpoints. Otherwise, it includes only active breakpoints. - action (::Google::Cloud::Debugger::V2::ListBreakpointsRequest::BreakpointActionValue, ::Hash) — When set, the response includes only breakpoints with the specified action.
-
strip_results (::Boolean) — This field is deprecated. The following fields are always stripped out of
the result:
stack_frames,evaluated_expressionsandvariable_table. -
wait_token (::String) — A wait token that, if specified, blocks the call until the breakpoints
list has changed, or a server selected timeout has expired. The value
should be set from the last response. The error code
google.rpc.Code.ABORTED(RPC) is returned on wait timeout, which should be called again with the samewait_token. -
client_version (::String) — Required. The client version making the call.
Schema:
domain/type/version(e.g.,google.com/intellij/v1).
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Debugger::V2::ListBreakpointsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#list_debuggees
def list_debuggees(request, options = nil) -> ::Google::Cloud::Debugger::V2::ListDebuggeesResponse
def list_debuggees(project: nil, include_inactive: nil, client_version: nil) -> ::Google::Cloud::Debugger::V2::ListDebuggeesResponseLists all the debuggees that the user has access to.
def list_debuggees(request, options = nil) -> ::Google::Cloud::Debugger::V2::ListDebuggeesResponselist_debuggees via a request object, either of type
ListDebuggeesRequest or an equivalent Hash.
- request (::Google::Cloud::Debugger::V2::ListDebuggeesRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def list_debuggees(project: nil, include_inactive: nil, client_version: nil) -> ::Google::Cloud::Debugger::V2::ListDebuggeesResponselist_debuggees via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- project (::String) — Required. Project number of a Google Cloud project whose debuggees to list.
-
include_inactive (::Boolean) — When set to
true, the result includes all debuggees. Otherwise, the result includes only debuggees that are active. -
client_version (::String) — Required. The client version making the call.
Schema:
domain/type/version(e.g.,google.com/intellij/v1).
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Debugger::V2::ListDebuggeesResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#set_breakpoint
def set_breakpoint(request, options = nil) -> ::Google::Cloud::Debugger::V2::SetBreakpointResponse
def set_breakpoint(debuggee_id: nil, breakpoint: nil, client_version: nil) -> ::Google::Cloud::Debugger::V2::SetBreakpointResponseSets the breakpoint to the debuggee.
def set_breakpoint(request, options = nil) -> ::Google::Cloud::Debugger::V2::SetBreakpointResponseset_breakpoint via a request object, either of type
SetBreakpointRequest or an equivalent Hash.
- request (::Google::Cloud::Debugger::V2::SetBreakpointRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def set_breakpoint(debuggee_id: nil, breakpoint: nil, client_version: nil) -> ::Google::Cloud::Debugger::V2::SetBreakpointResponseset_breakpoint via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- debuggee_id (::String) — Required. ID of the debuggee where the breakpoint is to be set.
-
breakpoint (::Google::Cloud::Debugger::V2::Breakpoint, ::Hash) — Required. Breakpoint specification to set.
The field
locationof the breakpoint must be set. -
client_version (::String) — Required. The client version making the call.
Schema:
domain/type/version(e.g.,google.com/intellij/v1).
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Debugger::V2::SetBreakpointResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.