Reference documentation and code samples for the Error Reporting V1beta1 API class Google::Cloud::ErrorReporting::V1beta1::ErrorGroupService::Client.
Client for the ErrorGroupService service.
Service for retrieving and updating individual error groups.
Inherits
- Object
Methods
.configure
def self.configure() { |config| ... } -> Client::ConfigurationConfigure the ErrorGroupService Client class.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
# Modify the configuration for all ErrorGroupService clients ::Google::Cloud::ErrorReporting::V1beta1::ErrorGroupService::Client.configure do |config| config.timeout = 10.0 end
#configure
def configure() { |config| ... } -> Client::ConfigurationConfigure the ErrorGroupService 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)
#get_group
def get_group(request, options = nil) -> ::Google::Cloud::ErrorReporting::V1beta1::ErrorGroup
def get_group(group_name: nil) -> ::Google::Cloud::ErrorReporting::V1beta1::ErrorGroupGet the specified group.
def get_group(request, options = nil) -> ::Google::Cloud::ErrorReporting::V1beta1::ErrorGroupget_group via a request object, either of type
GetGroupRequest or an equivalent Hash.
- request (::Google::Cloud::ErrorReporting::V1beta1::GetGroupRequest, ::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_group(group_name: nil) -> ::Google::Cloud::ErrorReporting::V1beta1::ErrorGroupget_group 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).
-
group_name (::String) — Required. The group resource name. Written as
projects/{projectID}/groups/{group_name}. CallgroupStats.listto return a list of groups belonging to this project.Example:
projects/my-project-123/groups/my-group
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::ErrorReporting::V1beta1::ErrorGroup)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/error_reporting/v1beta1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::ErrorReporting::V1beta1::ErrorGroupService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::ErrorReporting::V1beta1::GetGroupRequest.new # Call the get_group method. result = client.get_group request # The returned object is of type Google::Cloud::ErrorReporting::V1beta1::ErrorGroup. p result
#initialize
def initialize() { |config| ... } -> ClientCreate a new ErrorGroupService client object.
- (config) — Configure the ErrorGroupService client.
- config (Client::Configuration)
- (Client) — a new instance of Client
# Create a client using the default configuration client = ::Google::Cloud::ErrorReporting::V1beta1::ErrorGroupService::Client.new # Create a client using a custom configuration client = ::Google::Cloud::ErrorReporting::V1beta1::ErrorGroupService::Client.new do |config| config.timeout = 10.0 end
#update_group
def update_group(request, options = nil) -> ::Google::Cloud::ErrorReporting::V1beta1::ErrorGroup
def update_group(group: nil) -> ::Google::Cloud::ErrorReporting::V1beta1::ErrorGroupReplace the data for the specified group. Fails if the group does not exist.
def update_group(request, options = nil) -> ::Google::Cloud::ErrorReporting::V1beta1::ErrorGroupupdate_group via a request object, either of type
UpdateGroupRequest or an equivalent Hash.
- request (::Google::Cloud::ErrorReporting::V1beta1::UpdateGroupRequest, ::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 update_group(group: nil) -> ::Google::Cloud::ErrorReporting::V1beta1::ErrorGroupupdate_group 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).
- group (::Google::Cloud::ErrorReporting::V1beta1::ErrorGroup, ::Hash) — Required. The group which replaces the resource on the server.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::ErrorReporting::V1beta1::ErrorGroup)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/error_reporting/v1beta1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::ErrorReporting::V1beta1::ErrorGroupService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::ErrorReporting::V1beta1::UpdateGroupRequest.new # Call the update_group method. result = client.update_group request # The returned object is of type Google::Cloud::ErrorReporting::V1beta1::ErrorGroup. p result