Reference documentation and code samples for the Contact Center AI Insights V1 API class Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.
Client for the ContactCenterInsights service.
An API that lets users analyze and explore their business conversation data.
Inherits
- Object
Methods
.configure
def self.configure() { |config| ... } -> Client::Configuration
Configure the ContactCenterInsights Client class.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
# Modify the configuration for all ContactCenterInsights clients ::Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.configure do |config| config.timeout = 10.0 end
#bulk_analyze_conversations
def bulk_analyze_conversations(request, options = nil) -> ::Gapic::Operation
def bulk_analyze_conversations(parent: nil, filter: nil, analysis_percentage: nil, annotator_selector: nil) -> ::Gapic::Operation
Analyzes multiple conversations in a single request.
def bulk_analyze_conversations(request, options = nil) -> ::Gapic::Operation
bulk_analyze_conversations
via a request object, either of type
BulkAnalyzeConversationsRequest or an equivalent Hash.
- request (::Google::Cloud::ContactCenterInsights::V1::BulkAnalyzeConversationsRequest, ::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 bulk_analyze_conversations(parent: nil, filter: nil, analysis_percentage: nil, annotator_selector: nil) -> ::Gapic::Operation
bulk_analyze_conversations
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 to create analyses in.
- filter (::String) — Required. Filter used to select the subset of conversations to analyze.
- analysis_percentage (::Float) — Required. Percentage of selected conversation to analyze, between [0, 100].
- annotator_selector (::Google::Cloud::ContactCenterInsights::V1::AnnotatorSelector, ::Hash) — To select the annotators to run and the phrase matchers to use (if any). If not specified, all annotators will be run.
- (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/contact_center_insights/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::ContactCenterInsights::V1::BulkAnalyzeConversationsRequest.new # Call the bulk_analyze_conversations method. result = client.bulk_analyze_conversations 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
#bulk_delete_conversations
def bulk_delete_conversations(request, options = nil) -> ::Gapic::Operation
def bulk_delete_conversations(parent: nil, filter: nil, max_delete_count: nil, force: nil) -> ::Gapic::Operation
Deletes multiple conversations in a single request.
def bulk_delete_conversations(request, options = nil) -> ::Gapic::Operation
bulk_delete_conversations
via a request object, either of type
BulkDeleteConversationsRequest or an equivalent Hash.
- request (::Google::Cloud::ContactCenterInsights::V1::BulkDeleteConversationsRequest, ::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 bulk_delete_conversations(parent: nil, filter: nil, max_delete_count: nil, force: nil) -> ::Gapic::Operation
bulk_delete_conversations
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 to delete conversations from. Format: projects/{project}/locations/{location}
- filter (::String) — Filter used to select the subset of conversations to delete.
- max_delete_count (::Integer) — Maximum number of conversations to delete.
- force (::Boolean) — If set to true, all of this conversation's analyses will also be deleted. Otherwise, the request will only succeed if the conversation has no analyses.
- (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/contact_center_insights/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::ContactCenterInsights::V1::BulkDeleteConversationsRequest.new # Call the bulk_delete_conversations method. result = client.bulk_delete_conversations 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
#bulk_download_feedback_labels
def bulk_download_feedback_labels(request, options = nil) -> ::Gapic::Operation
def bulk_download_feedback_labels(gcs_destination: nil, parent: nil, filter: nil, max_download_count: nil, feedback_label_type: nil, conversation_filter: nil, template_qa_scorecard_id: nil) -> ::Gapic::Operation
Download feedback labels in bulk.
def bulk_download_feedback_labels(request, options = nil) -> ::Gapic::Operation
bulk_download_feedback_labels
via a request object, either of type
BulkDownloadFeedbackLabelsRequest or an equivalent Hash.
- request (::Google::Cloud::ContactCenterInsights::V1::BulkDownloadFeedbackLabelsRequest, ::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 bulk_download_feedback_labels(gcs_destination: nil, parent: nil, filter: nil, max_download_count: nil, feedback_label_type: nil, conversation_filter: nil, template_qa_scorecard_id: nil) -> ::Gapic::Operation
bulk_download_feedback_labels
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).
- gcs_destination (::Google::Cloud::ContactCenterInsights::V1::BulkDownloadFeedbackLabelsRequest::GcsDestination, ::Hash) — A cloud storage bucket destination.
- parent (::String) — Required. The parent resource for new feedback labels.
-
filter (::String) —
Optional. A filter to reduce results to a specific subset. Supports disjunctions (OR) and conjunctions (AND).
Supported fields:
issue_model_id
qa_question_id
qa_scorecard_id
min_create_time
max_create_time
min_update_time
max_update_time
feedback_label_type
: QUALITY_AI, TOPIC_MODELING
-
max_download_count (::Integer) — Optional. Limits the maximum number of feedback labels that will be
downloaded. The first
N
feedback labels will be downloaded. - feedback_label_type (::Google::Cloud::ContactCenterInsights::V1::BulkDownloadFeedbackLabelsRequest::FeedbackLabelType) — Optional. The type of feedback labels that will be downloaded.
-
conversation_filter (::String) — Optional. Filter parent conversations to download feedback labels for.
When specified, the feedback labels will be downloaded for the
conversations that match the filter.
If
template_qa_scorecard_id
is set, all the conversations that match the filter will be paired with the questions under the scorecard for labeling. -
template_qa_scorecard_id (::Array<::String>) — Optional. If set, a template for labeling conversations and scorecard
questions will be created from the conversation_filter and the questions
under the scorecard(s). The feedback label
filter
will be ignored.
- (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/contact_center_insights/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::ContactCenterInsights::V1::BulkDownloadFeedbackLabelsRequest.new # Call the bulk_download_feedback_labels method. result = client.bulk_download_feedback_labels 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
#bulk_upload_feedback_labels
def bulk_upload_feedback_labels(request, options = nil) -> ::Gapic::Operation
def bulk_upload_feedback_labels(gcs_source: nil, parent: nil, validate_only: nil) -> ::Gapic::Operation
Upload feedback labels in bulk.
def bulk_upload_feedback_labels(request, options = nil) -> ::Gapic::Operation
bulk_upload_feedback_labels
via a request object, either of type
BulkUploadFeedbackLabelsRequest or an equivalent Hash.
- request (::Google::Cloud::ContactCenterInsights::V1::BulkUploadFeedbackLabelsRequest, ::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 bulk_upload_feedback_labels(gcs_source: nil, parent: nil, validate_only: nil) -> ::Gapic::Operation
bulk_upload_feedback_labels
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).
- gcs_source (::Google::Cloud::ContactCenterInsights::V1::BulkUploadFeedbackLabelsRequest::GcsSource, ::Hash) — A cloud storage bucket source.
- parent (::String) — Required. The parent resource for new feedback labels.
- validate_only (::Boolean) — Optional. If set, upload will not happen and the labels will be validated. If not set, then default behavior will be to upload the labels after validation is complete.
- (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/contact_center_insights/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::ContactCenterInsights::V1::BulkUploadFeedbackLabelsRequest.new # Call the bulk_upload_feedback_labels method. result = client.bulk_upload_feedback_labels 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
#calculate_issue_model_stats
def calculate_issue_model_stats(request, options = nil) -> ::Google::Cloud::ContactCenterInsights::V1::CalculateIssueModelStatsResponse
def calculate_issue_model_stats(issue_model: nil) -> ::Google::Cloud::ContactCenterInsights::V1::CalculateIssueModelStatsResponse
Gets an issue model's statistics.
def calculate_issue_model_stats(request, options = nil) -> ::Google::Cloud::ContactCenterInsights::V1::CalculateIssueModelStatsResponse
calculate_issue_model_stats
via a request object, either of type
Google::Cloud::ContactCenterInsights::V1::CalculateIssueModelStatsRequest or an equivalent Hash.
- request (::Google::Cloud::ContactCenterInsights::V1::CalculateIssueModelStatsRequest, ::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 calculate_issue_model_stats(issue_model: nil) -> ::Google::Cloud::ContactCenterInsights::V1::CalculateIssueModelStatsResponse
calculate_issue_model_stats
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).
- issue_model (::String) — Required. The resource name of the issue model to query against.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::ContactCenterInsights::V1::CalculateIssueModelStatsResponse)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/contact_center_insights/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::ContactCenterInsights::V1::CalculateIssueModelStatsRequest.new # Call the calculate_issue_model_stats method. result = client.calculate_issue_model_stats request # The returned object is of type Google::Cloud::ContactCenterInsights::V1::CalculateIssueModelStatsResponse. p result
#calculate_stats
def calculate_stats(request, options = nil) -> ::Google::Cloud::ContactCenterInsights::V1::CalculateStatsResponse
def calculate_stats(location: nil, filter: nil) -> ::Google::Cloud::ContactCenterInsights::V1::CalculateStatsResponse
Gets conversation statistics.
def calculate_stats(request, options = nil) -> ::Google::Cloud::ContactCenterInsights::V1::CalculateStatsResponse
calculate_stats
via a request object, either of type
Google::Cloud::ContactCenterInsights::V1::CalculateStatsRequest or an equivalent Hash.
- request (::Google::Cloud::ContactCenterInsights::V1::CalculateStatsRequest, ::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 calculate_stats(location: nil, filter: nil) -> ::Google::Cloud::ContactCenterInsights::V1::CalculateStatsResponse
calculate_stats
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).
- location (::String) — Required. The location of the conversations.
- filter (::String) — A filter to reduce results to a specific subset. This field is useful for getting statistics about conversations with specific properties.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::ContactCenterInsights::V1::CalculateStatsResponse)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/contact_center_insights/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::ContactCenterInsights::V1::CalculateStatsRequest.new # Call the calculate_stats method. result = client.calculate_stats request # The returned object is of type Google::Cloud::ContactCenterInsights::V1::CalculateStatsResponse. p result
#configure
def configure() { |config| ... } -> Client::Configuration
Configure the ContactCenterInsights 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_analysis
def create_analysis(request, options = nil) -> ::Gapic::Operation
def create_analysis(parent: nil, analysis: nil) -> ::Gapic::Operation
Creates an analysis. The long running operation is done when the analysis has completed.
def create_analysis(request, options = nil) -> ::Gapic::Operation
create_analysis
via a request object, either of type
Google::Cloud::ContactCenterInsights::V1::CreateAnalysisRequest or an equivalent Hash.
- request (::Google::Cloud::ContactCenterInsights::V1::CreateAnalysisRequest, ::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_analysis(parent: nil, analysis: nil) -> ::Gapic::Operation
create_analysis
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 of the analysis.
- analysis (::Google::Cloud::ContactCenterInsights::V1::Analysis, ::Hash) — Required. The analysis 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/contact_center_insights/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::ContactCenterInsights::V1::CreateAnalysisRequest.new # Call the create_analysis method. result = client.create_analysis 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
#create_analysis_rule
def create_analysis_rule(request, options = nil) -> ::Google::Cloud::ContactCenterInsights::V1::AnalysisRule
def create_analysis_rule(parent: nil, analysis_rule: nil) -> ::Google::Cloud::ContactCenterInsights::V1::AnalysisRule
Creates a analysis rule.
def create_analysis_rule(request, options = nil) -> ::Google::Cloud::ContactCenterInsights::V1::AnalysisRule
create_analysis_rule
via a request object, either of type
Google::Cloud::ContactCenterInsights::V1::CreateAnalysisRuleRequest or an equivalent Hash.
- request (::Google::Cloud::ContactCenterInsights::V1::CreateAnalysisRuleRequest, ::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_analysis_rule(parent: nil, analysis_rule: nil) -> ::Google::Cloud::ContactCenterInsights::V1::AnalysisRule
create_analysis_rule
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 of the analysis rule. Required. The location
to create a analysis rule for. Format:
projects/<Project ID>/locations/<Location ID>
orprojects/<Project Number>/locations/<Location ID>
- analysis_rule (::Google::Cloud::ContactCenterInsights::V1::AnalysisRule, ::Hash) — Required. The analysis rule resource to create.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::ContactCenterInsights::V1::AnalysisRule)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/contact_center_insights/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::ContactCenterInsights::V1::CreateAnalysisRuleRequest.new # Call the create_analysis_rule method. result = client.create_analysis_rule request # The returned object is of type Google::Cloud::ContactCenterInsights::V1::AnalysisRule. p result
#create_conversation
def create_conversation(request, options = nil) -> ::Google::Cloud::ContactCenterInsights::V1::Conversation
def create_conversation(parent: nil, conversation: nil, conversation_id: nil) -> ::Google::Cloud::ContactCenterInsights::V1::Conversation
Creates a conversation.
Note that this method does not support audio transcription or redaction.
Use conversations.upload
instead.
def create_conversation(request, options = nil) -> ::Google::Cloud::ContactCenterInsights::V1::Conversation
create_conversation
via a request object, either of type
Google::Cloud::ContactCenterInsights::V1::CreateConversationRequest or an equivalent Hash.
- request (::Google::Cloud::ContactCenterInsights::V1::CreateConversationRequest, ::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_conversation(parent: nil, conversation: nil, conversation_id: nil) -> ::Google::Cloud::ContactCenterInsights::V1::Conversation
create_conversation
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 of the conversation.
- conversation (::Google::Cloud::ContactCenterInsights::V1::Conversation, ::Hash) — Required. The conversation resource to create.
-
conversation_id (::String) — A unique ID for the new conversation. This ID will become the final
component of the conversation's resource name. If no ID is specified, a
server-generated ID will be used.
This value should be 4-64 characters and must match the regular expression
^[a-z0-9-]{4,64}$
. Valid characters are[a-z][0-9]-
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::ContactCenterInsights::V1::Conversation)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/contact_center_insights/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::ContactCenterInsights::V1::CreateConversationRequest.new # Call the create_conversation method. result = client.create_conversation request # The returned object is of type Google::Cloud::ContactCenterInsights::V1::Conversation. p result
#create_feedback_label
def create_feedback_label(request, options = nil) -> ::Google::Cloud::ContactCenterInsights::V1::FeedbackLabel
def create_feedback_label(parent: nil, feedback_label_id: nil, feedback_label: nil) -> ::Google::Cloud::ContactCenterInsights::V1::FeedbackLabel
Create feedback label.
def create_feedback_label(request, options = nil) -> ::Google::Cloud::ContactCenterInsights::V1::FeedbackLabel
create_feedback_label
via a request object, either of type
Google::Cloud::ContactCenterInsights::V1::CreateFeedbackLabelRequest or an equivalent Hash.
- request (::Google::Cloud::ContactCenterInsights::V1::CreateFeedbackLabelRequest, ::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_feedback_label(parent: nil, feedback_label_id: nil, feedback_label: nil) -> ::Google::Cloud::ContactCenterInsights::V1::FeedbackLabel
create_feedback_label
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 of the feedback label.
- feedback_label_id (::String) — Optional. The ID of the feedback label to create. If one is not specified it will be generated by the server.
- feedback_label (::Google::Cloud::ContactCenterInsights::V1::FeedbackLabel, ::Hash) — Required. The feedback label to create.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::ContactCenterInsights::V1::FeedbackLabel)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/contact_center_insights/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::ContactCenterInsights::V1::CreateFeedbackLabelRequest.new # Call the create_feedback_label method. result = client.create_feedback_label request # The returned object is of type Google::Cloud::ContactCenterInsights::V1::FeedbackLabel. p result
#create_issue_model
def create_issue_model(request, options = nil) -> ::Gapic::Operation
def create_issue_model(parent: nil, issue_model: nil) -> ::Gapic::Operation
Creates an issue model.
def create_issue_model(request, options = nil) -> ::Gapic::Operation
create_issue_model
via a request object, either of type
Google::Cloud::ContactCenterInsights::V1::CreateIssueModelRequest or an equivalent Hash.
- request (::Google::Cloud::ContactCenterInsights::V1::CreateIssueModelRequest, ::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_issue_model(parent: nil, issue_model: nil) -> ::Gapic::Operation
create_issue_model
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 of the issue model.
- issue_model (::Google::Cloud::ContactCenterInsights::V1::IssueModel, ::Hash) — Required. The issue model 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/contact_center_insights/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::ContactCenterInsights::V1::CreateIssueModelRequest.new # Call the create_issue_model method. result = client.create_issue_model 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
#create_phrase_matcher
def create_phrase_matcher(request, options = nil) -> ::Google::Cloud::ContactCenterInsights::V1::PhraseMatcher
def create_phrase_matcher(parent: nil, phrase_matcher: nil) -> ::Google::Cloud::ContactCenterInsights::V1::PhraseMatcher
Creates a phrase matcher.
def create_phrase_matcher(request, options = nil) -> ::Google::Cloud::ContactCenterInsights::V1::PhraseMatcher
create_phrase_matcher
via a request object, either of type
Google::Cloud::ContactCenterInsights::V1::CreatePhraseMatcherRequest or an equivalent Hash.
- request (::Google::Cloud::ContactCenterInsights::V1::CreatePhraseMatcherRequest, ::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_phrase_matcher(parent: nil, phrase_matcher: nil) -> ::Google::Cloud::ContactCenterInsights::V1::PhraseMatcher
create_phrase_matcher
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 of the phrase matcher. Required. The location
to create a phrase matcher for. Format:
projects/<Project ID>/locations/<Location ID>
orprojects/<Project Number>/locations/<Location ID>
- phrase_matcher (::Google::Cloud::ContactCenterInsights::V1::PhraseMatcher, ::Hash) — Required. The phrase matcher resource to create.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::ContactCenterInsights::V1::PhraseMatcher)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/contact_center_insights/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::ContactCenterInsights::V1::CreatePhraseMatcherRequest.new # Call the create_phrase_matcher method. result = client.create_phrase_matcher request # The returned object is of type Google::Cloud::ContactCenterInsights::V1::PhraseMatcher. p result
#create_qa_question
def create_qa_question(request, options = nil) -> ::Google::Cloud::ContactCenterInsights::V1::QaQuestion
def create_qa_question(parent: nil, qa_question: nil, qa_question_id: nil) -> ::Google::Cloud::ContactCenterInsights::V1::QaQuestion
Create a QaQuestion.
def create_qa_question(request, options = nil) -> ::Google::Cloud::ContactCenterInsights::V1::QaQuestion
create_qa_question
via a request object, either of type
Google::Cloud::ContactCenterInsights::V1::CreateQaQuestionRequest or an equivalent Hash.
- request (::Google::Cloud::ContactCenterInsights::V1::CreateQaQuestionRequest, ::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_qa_question(parent: nil, qa_question: nil, qa_question_id: nil) -> ::Google::Cloud::ContactCenterInsights::V1::QaQuestion
create_qa_question
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 of the QaQuestion.
- qa_question (::Google::Cloud::ContactCenterInsights::V1::QaQuestion, ::Hash) — Required. The QaQuestion to create.
-
qa_question_id (::String) — Optional. A unique ID for the new question. This ID will become the final
component of the question's resource name. If no ID is specified, a
server-generated ID will be used.
This value should be 4-64 characters and must match the regular expression
^[a-z0-9-]{4,64}$
. Valid characters are[a-z][0-9]-
.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::ContactCenterInsights::V1::QaQuestion)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/contact_center_insights/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::ContactCenterInsights::V1::CreateQaQuestionRequest.new # Call the create_qa_question method. result = client.create_qa_question request # The returned object is of type Google::Cloud::ContactCenterInsights::V1::QaQuestion. p result
#create_qa_scorecard
def create_qa_scorecard(request, options = nil) -> ::Google::Cloud::ContactCenterInsights::V1::QaScorecard
def create_qa_scorecard(parent: nil, qa_scorecard: nil, qa_scorecard_id: nil) -> ::Google::Cloud::ContactCenterInsights::V1::QaScorecard
Create a QaScorecard.
def create_qa_scorecard(request, options = nil) -> ::Google::Cloud::ContactCenterInsights::V1::QaScorecard
create_qa_scorecard
via a request object, either of type
Google::Cloud::ContactCenterInsights::V1::CreateQaScorecardRequest or an equivalent Hash.
- request (::Google::Cloud::ContactCenterInsights::V1::CreateQaScorecardRequest, ::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_qa_scorecard(parent: nil, qa_scorecard: nil, qa_scorecard_id: nil) -> ::Google::Cloud::ContactCenterInsights::V1::QaScorecard
create_qa_scorecard
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 of the QaScorecard.
- qa_scorecard (::Google::Cloud::ContactCenterInsights::V1::QaScorecard, ::Hash) — Required. The QaScorecard to create.
-
qa_scorecard_id (::String) — Optional. A unique ID for the new QaScorecard. This ID will become the
final component of the QaScorecard's resource name. If no ID is specified,
a server-generated ID will be used.
This value should be 4-64 characters and must match the regular expression
^[a-z0-9-]{4,64}$
. Valid characters are[a-z][0-9]-
.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::ContactCenterInsights::V1::QaScorecard)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/contact_center_insights/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::ContactCenterInsights::V1::CreateQaScorecardRequest.new # Call the create_qa_scorecard method. result = client.create_qa_scorecard request # The returned object is of type Google::Cloud::ContactCenterInsights::V1::QaScorecard. p result
#create_qa_scorecard_revision
def create_qa_scorecard_revision(request, options = nil) -> ::Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision
def create_qa_scorecard_revision(parent: nil, qa_scorecard_revision: nil, qa_scorecard_revision_id: nil) -> ::Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision
Creates a QaScorecardRevision.
def create_qa_scorecard_revision(request, options = nil) -> ::Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision
create_qa_scorecard_revision
via a request object, either of type
Google::Cloud::ContactCenterInsights::V1::CreateQaScorecardRevisionRequest or an equivalent Hash.
- request (::Google::Cloud::ContactCenterInsights::V1::CreateQaScorecardRevisionRequest, ::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_qa_scorecard_revision(parent: nil, qa_scorecard_revision: nil, qa_scorecard_revision_id: nil) -> ::Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision
create_qa_scorecard_revision
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 of the QaScorecardRevision.
- qa_scorecard_revision (::Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision, ::Hash) — Required. The QaScorecardRevision to create.
-
qa_scorecard_revision_id (::String) — Optional. A unique ID for the new QaScorecardRevision. This ID will become
the final component of the QaScorecardRevision's resource name. If no ID is
specified, a server-generated ID will be used.
This value should be 4-64 characters and must match the regular expression
^[a-z0-9-]{4,64}$
. Valid characters are[a-z][0-9]-
.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/contact_center_insights/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::ContactCenterInsights::V1::CreateQaScorecardRevisionRequest.new # Call the create_qa_scorecard_revision method. result = client.create_qa_scorecard_revision request # The returned object is of type Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision. p result
#create_view
def create_view(request, options = nil) -> ::Google::Cloud::ContactCenterInsights::V1::View
def create_view(parent: nil, view: nil) -> ::Google::Cloud::ContactCenterInsights::V1::View
Creates a view.
def create_view(request, options = nil) -> ::Google::Cloud::ContactCenterInsights::V1::View
create_view
via a request object, either of type
Google::Cloud::ContactCenterInsights::V1::CreateViewRequest or an equivalent Hash.
- request (::Google::Cloud::ContactCenterInsights::V1::CreateViewRequest, ::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_view(parent: nil, view: nil) -> ::Google::Cloud::ContactCenterInsights::V1::View
create_view
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 of the view. Required. The location to create
a view for.
Format:
projects/<Project ID>/locations/<Location ID>
orprojects/<Project Number>/locations/<Location ID>
- view (::Google::Cloud::ContactCenterInsights::V1::View, ::Hash) — Required. The view resource to create.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::ContactCenterInsights::V1::View)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/contact_center_insights/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::ContactCenterInsights::V1::CreateViewRequest.new # Call the create_view method. result = client.create_view request # The returned object is of type Google::Cloud::ContactCenterInsights::V1::View. p result
#delete_analysis
def delete_analysis(request, options = nil) -> ::Google::Protobuf::Empty
def delete_analysis(name: nil) -> ::Google::Protobuf::Empty
Deletes an analysis.
def delete_analysis(request, options = nil) -> ::Google::Protobuf::Empty
delete_analysis
via a request object, either of type
DeleteAnalysisRequest or an equivalent Hash.
- request (::Google::Cloud::ContactCenterInsights::V1::DeleteAnalysisRequest, ::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_analysis(name: nil) -> ::Google::Protobuf::Empty
delete_analysis
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. The name of the analysis to delete.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Protobuf::Empty)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/contact_center_insights/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::ContactCenterInsights::V1::DeleteAnalysisRequest.new # Call the delete_analysis method. result = client.delete_analysis request # The returned object is of type Google::Protobuf::Empty. p result
#delete_analysis_rule
def delete_analysis_rule(request, options = nil) -> ::Google::Protobuf::Empty
def delete_analysis_rule(name: nil) -> ::Google::Protobuf::Empty
Deletes a analysis rule.
def delete_analysis_rule(request, options = nil) -> ::Google::Protobuf::Empty
delete_analysis_rule
via a request object, either of type
DeleteAnalysisRuleRequest or an equivalent Hash.
- request (::Google::Cloud::ContactCenterInsights::V1::DeleteAnalysisRuleRequest, ::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_analysis_rule(name: nil) -> ::Google::Protobuf::Empty
delete_analysis_rule
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. The name of the analysis rule to delete.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Protobuf::Empty)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/contact_center_insights/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::ContactCenterInsights::V1::DeleteAnalysisRuleRequest.new # Call the delete_analysis_rule method. result = client.delete_analysis_rule request # The returned object is of type Google::Protobuf::Empty. p result
#delete_conversation
def delete_conversation(request, options = nil) -> ::Google::Protobuf::Empty
def delete_conversation(name: nil, force: nil) -> ::Google::Protobuf::Empty
Deletes a conversation.
def delete_conversation(request, options = nil) -> ::Google::Protobuf::Empty
delete_conversation
via a request object, either of type
DeleteConversationRequest or an equivalent Hash.
- request (::Google::Cloud::ContactCenterInsights::V1::DeleteConversationRequest, ::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_conversation(name: nil, force: nil) -> ::Google::Protobuf::Empty
delete_conversation
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. The name of the conversation to delete.
- force (::Boolean) — If set to true, all of this conversation's analyses will also be deleted. Otherwise, the request will only succeed if the conversation has no analyses.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Protobuf::Empty)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/contact_center_insights/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::ContactCenterInsights::V1::DeleteConversationRequest.new # Call the delete_conversation method. result = client.delete_conversation request # The returned object is of type Google::Protobuf::Empty. p result
#delete_feedback_label
def delete_feedback_label(request, options = nil) -> ::Google::Protobuf::Empty
def delete_feedback_label(name: nil) -> ::Google::Protobuf::Empty
Delete feedback label.
def delete_feedback_label(request, options = nil) -> ::Google::Protobuf::Empty
delete_feedback_label
via a request object, either of type
DeleteFeedbackLabelRequest or an equivalent Hash.
- request (::Google::Cloud::ContactCenterInsights::V1::DeleteFeedbackLabelRequest, ::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_feedback_label(name: nil) -> ::Google::Protobuf::Empty
delete_feedback_label
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. The name of the feedback label to delete.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Protobuf::Empty)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/contact_center_insights/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::ContactCenterInsights::V1::DeleteFeedbackLabelRequest.new # Call the delete_feedback_label method. result = client.delete_feedback_label request # The returned object is of type Google::Protobuf::Empty. p result
#delete_issue
def delete_issue(request, options = nil) -> ::Google::Protobuf::Empty
def delete_issue(name: nil) -> ::Google::Protobuf::Empty
Deletes an issue.
def delete_issue(request, options = nil) -> ::Google::Protobuf::Empty
delete_issue
via a request object, either of type
DeleteIssueRequest or an equivalent Hash.
- request (::Google::Cloud::ContactCenterInsights::V1::DeleteIssueRequest, ::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_issue(name: nil) -> ::Google::Protobuf::Empty
delete_issue
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. The name of the issue to delete.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Protobuf::Empty)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/contact_center_insights/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::ContactCenterInsights::V1::DeleteIssueRequest.new # Call the delete_issue method. result = client.delete_issue request # The returned object is of type Google::Protobuf::Empty. p result
#delete_issue_model
def delete_issue_model(request, options = nil) -> ::Gapic::Operation
def delete_issue_model(name: nil) -> ::Gapic::Operation
Deletes an issue model.
def delete_issue_model(request, options = nil) -> ::Gapic::Operation
delete_issue_model
via a request object, either of type
DeleteIssueModelRequest or an equivalent Hash.
- request (::Google::Cloud::ContactCenterInsights::V1::DeleteIssueModelRequest, ::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_issue_model(name: nil) -> ::Gapic::Operation
delete_issue_model
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. The name of the issue model to delete.
- (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/contact_center_insights/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::ContactCenterInsights::V1::DeleteIssueModelRequest.new # Call the delete_issue_model method. result = client.delete_issue_model 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
#delete_phrase_matcher
def delete_phrase_matcher(request, options = nil) -> ::Google::Protobuf::Empty
def delete_phrase_matcher(name: nil) -> ::Google::Protobuf::Empty
Deletes a phrase matcher.
def delete_phrase_matcher(request, options = nil) -> ::Google::Protobuf::Empty
delete_phrase_matcher
via a request object, either of type
DeletePhraseMatcherRequest or an equivalent Hash.
- request (::Google::Cloud::ContactCenterInsights::V1::DeletePhraseMatcherRequest, ::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_phrase_matcher(name: nil) -> ::Google::Protobuf::Empty
delete_phrase_matcher
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. The name of the phrase matcher to delete.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Protobuf::Empty)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/contact_center_insights/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::ContactCenterInsights::V1::DeletePhraseMatcherRequest.new # Call the delete_phrase_matcher method. result = client.delete_phrase_matcher request # The returned object is of type Google::Protobuf::Empty. p result
#delete_qa_question
def delete_qa_question(request, options = nil) -> ::Google::Protobuf::Empty
def delete_qa_question(name: nil) -> ::Google::Protobuf::Empty
Deletes a QaQuestion.
def delete_qa_question(request, options = nil) -> ::Google::Protobuf::Empty
delete_qa_question
via a request object, either of type
DeleteQaQuestionRequest or an equivalent Hash.
- request (::Google::Cloud::ContactCenterInsights::V1::DeleteQaQuestionRequest, ::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_qa_question(name: nil) -> ::Google::Protobuf::Empty
delete_qa_question
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. The name of the QaQuestion to delete.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Protobuf::Empty)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/contact_center_insights/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::ContactCenterInsights::V1::DeleteQaQuestionRequest.new # Call the delete_qa_question method. result = client.delete_qa_question request # The returned object is of type Google::Protobuf::Empty. p result
#delete_qa_scorecard
def delete_qa_scorecard(request, options = nil) -> ::Google::Protobuf::Empty
def delete_qa_scorecard(name: nil, force: nil) -> ::Google::Protobuf::Empty
Deletes a QaScorecard.
def delete_qa_scorecard(request, options = nil) -> ::Google::Protobuf::Empty
delete_qa_scorecard
via a request object, either of type
DeleteQaScorecardRequest or an equivalent Hash.
- request (::Google::Cloud::ContactCenterInsights::V1::DeleteQaScorecardRequest, ::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_qa_scorecard(name: nil, force: nil) -> ::Google::Protobuf::Empty
delete_qa_scorecard
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. The name of the QaScorecard to delete.
- force (::Boolean) — Optional. If set to true, all of this QaScorecard's child resources will also be deleted. Otherwise, the request will only succeed if it has none.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Protobuf::Empty)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/contact_center_insights/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::ContactCenterInsights::V1::DeleteQaScorecardRequest.new # Call the delete_qa_scorecard method. result = client.delete_qa_scorecard request # The returned object is of type Google::Protobuf::Empty. p result
#delete_qa_scorecard_revision
def delete_qa_scorecard_revision(request, options = nil) -> ::Google::Protobuf::Empty
def delete_qa_scorecard_revision(name: nil, force: nil) -> ::Google::Protobuf::Empty
Deletes a QaScorecardRevision.
def delete_qa_scorecard_revision(request, options = nil) -> ::Google::Protobuf::Empty
delete_qa_scorecard_revision
via a request object, either of type
DeleteQaScorecardRevisionRequest or an equivalent Hash.
- request (::Google::Cloud::ContactCenterInsights::V1::DeleteQaScorecardRevisionRequest, ::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_qa_scorecard_revision(name: nil, force: nil) -> ::Google::Protobuf::Empty
delete_qa_scorecard_revision
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. The name of the QaScorecardRevision to delete.
- force (::Boolean) — Optional. If set to true, all of this QaScorecardRevision's child resources will also be deleted. Otherwise, the request will only succeed if it has none.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Protobuf::Empty)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/contact_center_insights/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::ContactCenterInsights::V1::DeleteQaScorecardRevisionRequest.new # Call the delete_qa_scorecard_revision method. result = client.delete_qa_scorecard_revision request # The returned object is of type Google::Protobuf::Empty. p result
#delete_view
def delete_view(request, options = nil) -> ::Google::Protobuf::Empty
def delete_view(name: nil) -> ::Google::Protobuf::Empty
Deletes a view.
def delete_view(request, options = nil) -> ::Google::Protobuf::Empty
delete_view
via a request object, either of type
DeleteViewRequest or an equivalent Hash.
- request (::Google::Cloud::ContactCenterInsights::V1::DeleteViewRequest, ::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_view(name: nil) -> ::Google::Protobuf::Empty
delete_view
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. The name of the view to delete.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Protobuf::Empty)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/contact_center_insights/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::ContactCenterInsights::V1::DeleteViewRequest.new # Call the delete_view method. result = client.delete_view request # The returned object is of type Google::Protobuf::Empty. p result
#deploy_issue_model
def deploy_issue_model(request, options = nil) -> ::Gapic::Operation
def deploy_issue_model(name: nil) -> ::Gapic::Operation
Deploys an issue model. Returns an error if a model is already deployed. An issue model can only be used in analysis after it has been deployed.
def deploy_issue_model(request, options = nil) -> ::Gapic::Operation
deploy_issue_model
via a request object, either of type
DeployIssueModelRequest or an equivalent Hash.
- request (::Google::Cloud::ContactCenterInsights::V1::DeployIssueModelRequest, ::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 deploy_issue_model(name: nil) -> ::Gapic::Operation
deploy_issue_model
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. The issue model to deploy.
- (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/contact_center_insights/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::ContactCenterInsights::V1::DeployIssueModelRequest.new # Call the deploy_issue_model method. result = client.deploy_issue_model 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
#deploy_qa_scorecard_revision
def deploy_qa_scorecard_revision(request, options = nil) -> ::Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision
def deploy_qa_scorecard_revision(name: nil) -> ::Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision
Deploy a QaScorecardRevision.
def deploy_qa_scorecard_revision(request, options = nil) -> ::Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision
deploy_qa_scorecard_revision
via a request object, either of type
DeployQaScorecardRevisionRequest or an equivalent Hash.
- request (::Google::Cloud::ContactCenterInsights::V1::DeployQaScorecardRevisionRequest, ::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 deploy_qa_scorecard_revision(name: nil) -> ::Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision
deploy_qa_scorecard_revision
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. The name of the QaScorecardRevision to deploy.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/contact_center_insights/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::ContactCenterInsights::V1::DeployQaScorecardRevisionRequest.new # Call the deploy_qa_scorecard_revision method. result = client.deploy_qa_scorecard_revision request # The returned object is of type Google::Cloud::ContactCenterInsights::V1::QaScorecardRevision. p result
#export_insights_data
def export_insights_data(request, options = nil) -> ::Gapic::Operation
def export_insights_data(big_query_destination: nil, parent: nil, filter: nil, kms_key: nil, write_disposition: nil) -> ::Gapic::Operation
Export insights data to a destination defined in the request body.
def export_insights_data(request, options = nil) -> ::Gapic::Operation
export_insights_data
via a request object, either of type
ExportInsightsDataRequest or an equivalent Hash.
- request (::Google::Cloud::ContactCenterInsights::V1::ExportInsightsDataRequest, ::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 export_insights_data(big_query_destination: nil, parent: nil, filter: nil, kms_key: nil, write_disposition: nil) -> ::Gapic::Operation
export_insights_data
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).
- big_query_destination (::Google::Cloud::ContactCenterInsights::V1::ExportInsightsDataRequest::BigQueryDestination, ::Hash) — Specified if sink is a BigQuery table.
- parent (::String) — Required. The parent resource to export data from.
- filter (::String) — A filter to reduce results to a specific subset. Useful for exporting conversations with specific properties.
- kms_key (::String) — A fully qualified KMS key name for BigQuery tables protected by CMEK. Format: projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}/cryptoKeyVersions/{version}
- write_disposition (::Google::Cloud::ContactCenterInsights::V1::ExportInsightsDataRequest::WriteDisposition) — Options for what to do if the destination table already exists.
- (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/contact_center_insights/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::ContactCenterInsights::V1::ExportInsightsDataRequest.new # Call the export_insights_data method. result = client.export_insights_data 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
#export_issue_model
def export_issue_model(request, options = nil) -> ::Gapic::Operation
def export_issue_model(gcs_destination: nil, name: nil) -> ::Gapic::Operation
Exports an issue model to the provided destination.
def export_issue_model(request, options = nil) -> ::Gapic::Operation
export_issue_model
via a request object, either of type
ExportIssueModelRequest or an equivalent Hash.
- request (::Google::Cloud::ContactCenterInsights::V1::ExportIssueModelRequest, ::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 export_issue_model(gcs_destination: nil, name: nil) -> ::Gapic::Operation
export_issue_model
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).
- gcs_destination (::Google::Cloud::ContactCenterInsights::V1::ExportIssueModelRequest::GcsDestination, ::Hash) — Google Cloud Storage URI to export the issue model to.
- name (::String) — Required. The issue model to export.
- (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/contact_center_insights/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::ContactCenterInsights::V1::ExportIssueModelRequest.new # Call the export_issue_model method. result = client.export_issue_model 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_analysis
def get_analysis(request, options = nil) -> ::Google::Cloud::ContactCenterInsights::V1::Analysis
def get_analysis(name: nil) -> ::Google::Cloud::ContactCenterInsights::V1::Analysis
Gets an analysis.
def get_analysis(request, options = nil) -> ::Google::Cloud::ContactCenterInsights::V1::Analysis
get_analysis
via a request object, either of type
GetAnalysisRequest or an equivalent Hash.
- request (::Google::Cloud::ContactCenterInsights::V1::GetAnalysisRequest, ::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_analysis(name: nil) -> ::Google::Cloud::ContactCenterInsights::V1::Analysis
get_analysis
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. The name of the analysis to get.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::ContactCenterInsights::V1::Analysis)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/contact_center_insights/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::ContactCenterInsights::V1::GetAnalysisRequest.new # Call the get_analysis method. result = client.get_analysis request # The returned object is of type Google::Cloud::ContactCenterInsights::V1::Analysis. p result
#get_analysis_rule
def get_analysis_rule(request, options = nil) -> ::Google::Cloud::ContactCenterInsights::V1::AnalysisRule
def get_analysis_rule(name: nil) -> ::Google::Cloud::ContactCenterInsights::V1::AnalysisRule
Get a analysis rule.
def get_analysis_rule(request, options = nil) -> ::Google::Cloud::ContactCenterInsights::V1::AnalysisRule
get_analysis_rule
via a request object, either of type
GetAnalysisRuleRequest or an equivalent Hash.
- request (::Google::Cloud::ContactCenterInsights::V1::GetAnalysisRuleRequest, ::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_analysis_rule(name: nil) -> ::Google::Cloud::ContactCenterInsights::V1::AnalysisRule
get_analysis_rule
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. The name of the AnalysisRule to get.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::ContactCenterInsights::V1::AnalysisRule)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/contact_center_insights/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::ContactCenterInsights::V1::GetAnalysisRuleRequest.new # Call the get_analysis_rule method. result = client.get_analysis_rule request # The returned object is of type Google::Cloud::ContactCenterInsights::V1::AnalysisRule. p result
#get_conversation
def get_conversation(request, options = nil) -> ::Google::Cloud::ContactCenterInsights::V1::Conversation
def get_conversation(name: nil, view: nil) -> ::Google::Cloud::ContactCenterInsights::V1::Conversation
Gets a conversation.
def get_conversation(request, options = nil) -> ::Google::Cloud::ContactCenterInsights::V1::Conversation
get_conversation
via a request object, either of type
GetConversationRequest or an equivalent Hash.
- request (::Google::Cloud::ContactCenterInsights::V1::GetConversationRequest, ::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_conversation(name: nil, view: nil) -> ::Google::Cloud::ContactCenterInsights::V1::Conversation
get_conversation
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. The name of the conversation to get.
-
view (::Google::Cloud::ContactCenterInsights::V1::ConversationView) — The level of details of the conversation. Default is
FULL
.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::ContactCenterInsights::V1::Conversation)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/contact_center_insights/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::ContactCenterInsights::V1::GetConversationRequest.new # Call the get_conversation method. result = client.get_conversation request # The returned object is of type Google::Cloud::ContactCenterInsights::V1::Conversation. p result
#get_encryption_spec
def get_encryption_spec(request, options = nil) -> ::Google::Cloud::ContactCenterInsights::V1::EncryptionSpec
def get_encryption_spec(name: nil) -> ::Google::Cloud::ContactCenterInsights::V1::EncryptionSpec
Gets location-level encryption key specification.
def get_encryption_spec(request, options = nil) -> ::Google::Cloud::ContactCenterInsights::V1::EncryptionSpec
get_encryption_spec
via a request object, either of type
GetEncryptionSpecRequest or an equivalent Hash.
- request (::Google::Cloud::ContactCenterInsights::V1::GetEncryptionSpecRequest, ::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_encryption_spec(name: nil) -> ::Google::Cloud::ContactCenterInsights::V1::EncryptionSpec
get_encryption_spec
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. The name of the encryption spec resource to get.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::ContactCenterInsights::V1::EncryptionSpec)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/contact_center_insights/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::ContactCenterInsights::V1::GetEncryptionSpecRequest.new # Call the get_encryption_spec method. result = client.get_encryption_spec request # The returned object is of type Google::Cloud::ContactCenterInsights::V1::EncryptionSpec. p result
#get_feedback_label
def get_feedback_label(request, options = nil) -> ::Google::Cloud::ContactCenterInsights::V1::FeedbackLabel
def get_feedback_label(name: nil) -> ::Google::Cloud::ContactCenterInsights::V1::FeedbackLabel
Get feedback label.
def get_feedback_label(request, options = nil) -> ::Google::Cloud::ContactCenterInsights::V1::FeedbackLabel
get_feedback_label
via a request object, either of type
GetFeedbackLabelRequest or an equivalent Hash.
- request (::Google::Cloud::ContactCenterInsights::V1::GetFeedbackLabelRequest, ::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_feedback_label(name: nil) -> ::Google::Cloud::ContactCenterInsights::V1::FeedbackLabel
get_feedback_label
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. The name of the feedback label to get.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::ContactCenterInsights::V1::FeedbackLabel)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/contact_center_insights/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::ContactCenterInsights::V1::GetFeedbackLabelRequest.new # Call the get_feedback_label method. result = client.get_feedback_label request # The returned object is of type Google::Cloud::ContactCenterInsights::V1::FeedbackLabel. p result
#get_issue
def get_issue(request, options = nil) -> ::Google::Cloud::ContactCenterInsights::V1::Issue
def get_issue(name: nil) -> ::Google::Cloud::ContactCenterInsights::V1::Issue
Gets an issue.
def get_issue(request, options = nil) -> ::Google::Cloud::ContactCenterInsights::V1::Issue
get_issue
via a request object, either of type
GetIssueRequest or an equivalent Hash.
- request (::Google::Cloud::ContactCenterInsights::V1::GetIssueRequest, ::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_issue(name: nil) -> ::Google::Cloud::ContactCenterInsights::V1::Issue
get_issue
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. The name of the issue to get.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::ContactCenterInsights::V1::Issue)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/contact_center_insights/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::ContactCenterInsights::V1::GetIssueRequest.new # Call the get_issue method. result = client.get_issue request # The returned object is of type Google::Cloud::ContactCenterInsights::V1::Issue. p result
#get_issue_model
def get_issue_model(request, options = nil) -> ::Google::Cloud::ContactCenterInsights::V1::IssueModel
def get_issue_model(name: nil) -> ::Google::Cloud::ContactCenterInsights::V1::IssueModel
Gets an issue model.
def get_issue_model(request, options = nil) -> ::Google::Cloud::ContactCenterInsights::V1::IssueModel
get_issue_model
via a request object, either of type
GetIssueModelRequest or an equivalent Hash.
- request (::Google::Cloud::ContactCenterInsights::V1::GetIssueModelRequest, ::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_issue_model(name: nil) -> ::Google::Cloud::ContactCenterInsights::V1::IssueModel
get_issue_model
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. The name of the issue model to get.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::ContactCenterInsights::V1::IssueModel)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/contact_center_insights/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::ContactCenterInsights::V1::GetIssueModelRequest.new # Call the get_issue_model method. result = client.get_issue_model request # The returned object is of type Google::Cloud::ContactCenterInsights::V1::IssueModel. p result
#get_phrase_matcher
def get_phrase_matcher(request, options = nil) -> ::Google::Cloud::ContactCenterInsights::V1::PhraseMatcher
def get_phrase_matcher(name: nil) -> ::Google::Cloud::ContactCenterInsights::V1::PhraseMatcher
Gets a phrase matcher.
def get_phrase_matcher(request, options = nil) -> ::Google::Cloud::ContactCenterInsights::V1::PhraseMatcher
get_phrase_matcher
via a request object, either of type
GetPhraseMatcherRequest or an equivalent Hash.
- request (::Google::Cloud::ContactCenterInsights::V1::GetPhraseMatcherRequest, ::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_phrase_matcher(name: nil) -> ::Google::Cloud::ContactCenterInsights::V1::PhraseMatcher
get_phrase_matcher
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. The name of the phrase matcher to get.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::ContactCenterInsights::V1::PhraseMatcher)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/contact_center_insights/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::ContactCenterInsights::V1::GetPhraseMatcherRequest.new # Call the get_phrase_matcher method. result = client.get_phrase_matcher request # The returned object is of type Google::Cloud::ContactCenterInsights::V1::PhraseMatcher. p result
#get_qa_question
def get_qa_question(request, options = nil) -> ::Google::Cloud