Reference documentation and code samples for the Discovery Engine V1BETA API class Google::Cloud::DiscoveryEngine::V1beta::EvaluationService::Client.
Client for the EvaluationService service.
Service for managing {::Google::Cloud::DiscoveryEngine::V1beta::Evaluation Evaluation}s,
Inherits
- Object
Methods
.configure
def self.configure() { |config| ... } -> Client::Configuration
Configure the EvaluationService Client class.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
# Modify the configuration for all EvaluationService clients ::Google::Cloud::DiscoveryEngine::V1beta::EvaluationService::Client.configure do |config| config.timeout = 10.0 end
#configure
def configure() { |config| ... } -> Client::Configuration
Configure the EvaluationService 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)
#create_evaluation
def create_evaluation(request, options = nil) -> ::Gapic::Operation
def create_evaluation(parent: nil, evaluation: nil) -> ::Gapic::Operation
Creates a Evaluation.
Upon creation, the evaluation will be automatically triggered and begin execution.
def create_evaluation(request, options = nil) -> ::Gapic::Operation
create_evaluation
via a request object, either of type
CreateEvaluationRequest or an equivalent Hash.
- request (::Google::Cloud::DiscoveryEngine::V1beta::CreateEvaluationRequest, ::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 create_evaluation(parent: nil, evaluation: nil) -> ::Gapic::Operation
create_evaluation
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).
-
parent (::String) — Required. The parent resource name, such as
projects/{project}/locations/{location}
. - evaluation (::Google::Cloud::DiscoveryEngine::V1beta::Evaluation, ::Hash) — Required. The Evaluation to create.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::Operation)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/discovery_engine/v1beta" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DiscoveryEngine::V1beta::EvaluationService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DiscoveryEngine::V1beta::CreateEvaluationRequest.new # Call the create_evaluation method. result = client.create_evaluation request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end
#get_evaluation
def get_evaluation(request, options = nil) -> ::Google::Cloud::DiscoveryEngine::V1beta::Evaluation
def get_evaluation(name: nil) -> ::Google::Cloud::DiscoveryEngine::V1beta::Evaluation
Gets a Evaluation.
def get_evaluation(request, options = nil) -> ::Google::Cloud::DiscoveryEngine::V1beta::Evaluation
get_evaluation
via a request object, either of type
GetEvaluationRequest or an equivalent Hash.
- request (::Google::Cloud::DiscoveryEngine::V1beta::GetEvaluationRequest, ::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_evaluation(name: nil) -> ::Google::Cloud::DiscoveryEngine::V1beta::Evaluation
get_evaluation
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).
-
name (::String) — Required. Full resource name of
Evaluation, such as
projects/{project}/locations/{location}/evaluations/{evaluation}
.If the caller does not have permission to access the Evaluation, regardless of whether or not it exists, a PERMISSION_DENIED error is returned.
If the requested Evaluation does not exist, a NOT_FOUND error is returned.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::DiscoveryEngine::V1beta::Evaluation)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/discovery_engine/v1beta" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DiscoveryEngine::V1beta::EvaluationService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DiscoveryEngine::V1beta::GetEvaluationRequest.new # Call the get_evaluation method. result = client.get_evaluation request # The returned object is of type Google::Cloud::DiscoveryEngine::V1beta::Evaluation. p result
#initialize
def initialize() { |config| ... } -> Client
Create a new EvaluationService client object.
- (config) — Configure the EvaluationService client.
- config (Client::Configuration)
- (Client) — a new instance of Client
# Create a client using the default configuration client = ::Google::Cloud::DiscoveryEngine::V1beta::EvaluationService::Client.new # Create a client using a custom configuration client = ::Google::Cloud::DiscoveryEngine::V1beta::EvaluationService::Client.new do |config| config.timeout = 10.0 end
#list_evaluation_results
def list_evaluation_results(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DiscoveryEngine::V1beta::ListEvaluationResultsResponse::EvaluationResult>
def list_evaluation_results(evaluation: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DiscoveryEngine::V1beta::ListEvaluationResultsResponse::EvaluationResult>
Gets a list of results for a given a Evaluation.
def list_evaluation_results(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DiscoveryEngine::V1beta::ListEvaluationResultsResponse::EvaluationResult>
list_evaluation_results
via a request object, either of type
ListEvaluationResultsRequest or an equivalent Hash.
- request (::Google::Cloud::DiscoveryEngine::V1beta::ListEvaluationResultsRequest, ::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_evaluation_results(evaluation: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DiscoveryEngine::V1beta::ListEvaluationResultsResponse::EvaluationResult>
list_evaluation_results
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).
-
evaluation (::String) — Required. The evaluation resource name, such as
projects/{project}/locations/{location}/evaluations/{evaluation}
.If the caller does not have permission to list [EvaluationResult][] under this evaluation, regardless of whether or not this evaluation set exists, a
PERMISSION_DENIED
error is returned. -
page_size (::Integer) — Maximum number of [EvaluationResult][] to return. If unspecified,
defaults to 100. The maximum allowed value is 1000. Values above 1000 will
be coerced to 1000.
If this field is negative, an
INVALID_ARGUMENT
error is returned. -
page_token (::String) — A page token
ListEvaluationResultsResponse.next_page_token,
received from a previous
EvaluationService.ListEvaluationResults
call. Provide this to retrieve the subsequent page.
When paginating, all other parameters provided to EvaluationService.ListEvaluationResults must match the call that provided the page token. Otherwise, an
INVALID_ARGUMENT
error is returned.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::DiscoveryEngine::V1beta::ListEvaluationResultsResponse::EvaluationResult>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::DiscoveryEngine::V1beta::ListEvaluationResultsResponse::EvaluationResult>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/discovery_engine/v1beta" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DiscoveryEngine::V1beta::EvaluationService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DiscoveryEngine::V1beta::ListEvaluationResultsRequest.new # Call the list_evaluation_results method. result = client.list_evaluation_results request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::DiscoveryEngine::V1beta::ListEvaluationResultsResponse::EvaluationResult. p item end
#list_evaluations
def list_evaluations(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DiscoveryEngine::V1beta::Evaluation>
def list_evaluations(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DiscoveryEngine::V1beta::Evaluation>
Gets a list of {::Google::Cloud::DiscoveryEngine::V1beta::Evaluation Evaluation}s.
def list_evaluations(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DiscoveryEngine::V1beta::Evaluation>
list_evaluations
via a request object, either of type
ListEvaluationsRequest or an equivalent Hash.
- request (::Google::Cloud::DiscoveryEngine::V1beta::ListEvaluationsRequest, ::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_evaluations(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::DiscoveryEngine::V1beta::Evaluation>
list_evaluations
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).
-
parent (::String) — Required. The parent location resource name, such as
projects/{project}/locations/{location}
.If the caller does not have permission to list Evaluations under this location, regardless of whether or not this location exists, a
PERMISSION_DENIED
error is returned. -
page_size (::Integer) — Maximum number of
Evaluations to return. If
unspecified, defaults to 100. The maximum allowed value is 1000. Values
above 1000 will be coerced to 1000.
If this field is negative, an
INVALID_ARGUMENT
error is returned. -
page_token (::String) — A page token
ListEvaluationsResponse.next_page_token,
received from a previous
EvaluationService.ListEvaluations
call. Provide this to retrieve the subsequent page.
When paginating, all other parameters provided to EvaluationService.ListEvaluations must match the call that provided the page token. Otherwise, an
INVALID_ARGUMENT
error is returned.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::DiscoveryEngine::V1beta::Evaluation>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::DiscoveryEngine::V1beta::Evaluation>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/discovery_engine/v1beta" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::DiscoveryEngine::V1beta::EvaluationService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::DiscoveryEngine::V1beta::ListEvaluationsRequest.new # Call the list_evaluations method. result = client.list_evaluations request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::DiscoveryEngine::V1beta::Evaluation. p item end
#location_client
def location_client() -> Google::Cloud::Location::Locations::Client
Get the associated client for mix-in of the Locations.
- (Google::Cloud::Location::Locations::Client)
#operations_client
def operations_client() -> ::Google::Cloud::DiscoveryEngine::V1beta::EvaluationService::Operations
Get the associated client for long-running operations.
#universe_domain
def universe_domain() -> String
The effective universe domain
- (String)