ContactCenterInsights¶
- class google.cloud.contact_center_insights_v1.services.contact_center_insights.ContactCenterInsightsAsyncClient(*, credentials: typing.Optional[google.auth.credentials.Credentials] = None, transport: typing.Optional[typing.Union[str, google.cloud.contact_center_insights_v1.services.contact_center_insights.transports.base.ContactCenterInsightsTransport, typing.Callable[[...], google.cloud.contact_center_insights_v1.services.contact_center_insights.transports.base.ContactCenterInsightsTransport]]] = 'grpc_asyncio', client_options: typing.Optional[google.api_core.client_options.ClientOptions] = None, client_info: google.api_core.gapic_v1.client_info.ClientInfo = <google.api_core.gapic_v1.client_info.ClientInfo object>)[source]¶
An API that lets users analyze and explore their business conversation data.
Instantiates the contact center insights async client.
- Parameters
credentials (Optional[google.auth.credentials.Credentials]) – The authorization credentials to attach to requests. These credentials identify the application to the service; if none are specified, the client will attempt to ascertain the credentials from the environment.
transport (Optional[Union[str,ContactCenterInsightsTransport,Callable[..., ContactCenterInsightsTransport]]]) – The transport to use, or a Callable that constructs and returns a new transport to use. If a Callable is given, it will be called with the same set of initialization arguments as used in the ContactCenterInsightsTransport constructor. If set to None, a transport is chosen automatically.
client_options (Optional[Union[google.api_core.client_options.ClientOptions, dict]]) –
Custom options for the client.
1. The
api_endpoint
property can be used to override the default endpoint provided by the client whentransport
is not explicitly provided. Only if this property is not set andtransport
was not explicitly provided, the endpoint is determined by the GOOGLE_API_USE_MTLS_ENDPOINT environment variable, which have one of the following values: “always” (always use the default mTLS endpoint), “never” (always use the default regular endpoint) and “auto” (auto-switch to the default mTLS endpoint if client certificate is present; this is the default value).2. If the GOOGLE_API_USE_CLIENT_CERTIFICATE environment variable is “true”, then the
client_cert_source
property can be used to provide a client certificate for mTLS transport. If not provided, the default SSL client certificate will be used if present. If GOOGLE_API_USE_CLIENT_CERTIFICATE is “false” or not set, no client certificate will be used.3. The
universe_domain
property can be used to override the default “googleapis.com” universe. Note thatapi_endpoint
property still takes precedence; anduniverse_domain
is currently not supported for mTLS.client_info (google.api_core.gapic_v1.client_info.ClientInfo) – The client info used to send a user-agent string along with API requests. If
None
, then default info will be used. Generally, you only need to set this if you’re developing your own client library.
- Raises
google.auth.exceptions.MutualTlsChannelError – If mutual TLS transport creation failed for any reason.
- static analysis_path(project: str, location: str, conversation: str, analysis: str) str ¶
Returns a fully-qualified analysis string.
- static analysis_rule_path(project: str, location: str, analysis_rule: str) str ¶
Returns a fully-qualified analysis_rule string.
- property api_endpoint¶
Return the API endpoint used by the client instance.
- Returns
The API endpoint used by the client instance.
- Return type
- async bulk_analyze_conversations(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.BulkAnalyzeConversationsRequest, dict]] = None, *, parent: Optional[str] = None, filter: Optional[str] = None, analysis_percentage: Optional[float] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.api_core.operation_async.AsyncOperation [source]¶
Analyzes multiple conversations in a single request.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_bulk_analyze_conversations(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.BulkAnalyzeConversationsRequest( parent="parent_value", filter="filter_value", analysis_percentage=0.20170000000000002, ) # Make the request operation = client.bulk_analyze_conversations(request=request) print("Waiting for operation to complete...") response = (await operation).result() # Handle the response print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.BulkAnalyzeConversationsRequest, dict]]) – The request object. The request to analyze conversations in bulk.
parent (
str
) –Required. The parent resource to create analyses in.
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.filter (
str
) –Required. Filter used to select the subset of conversations to analyze.
This corresponds to the
filter
field on therequest
instance; ifrequest
is provided, this should not be set.analysis_percentage (
float
) –Required. Percentage of selected conversation to analyze, between [0, 100].
This corresponds to the
analysis_percentage
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
An object representing a long-running operation.
The result type for the operation will be
google.cloud.contact_center_insights_v1.types.BulkAnalyzeConversationsResponse
The response for a bulk analyze conversations operation.- Return type
- async bulk_delete_conversations(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.BulkDeleteConversationsRequest, dict]] = None, *, parent: Optional[str] = None, filter: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.api_core.operation_async.AsyncOperation [source]¶
Deletes multiple conversations in a single request.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_bulk_delete_conversations(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.BulkDeleteConversationsRequest( parent="parent_value", ) # Make the request operation = client.bulk_delete_conversations(request=request) print("Waiting for operation to complete...") response = (await operation).result() # Handle the response print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.BulkDeleteConversationsRequest, dict]]) – The request object. The request to delete conversations in bulk.
parent (
str
) –Required. The parent resource to delete conversations from. Format:
projects/{project}/locations/{location}
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.filter (
str
) –Filter used to select the subset of conversations to delete.
This corresponds to the
filter
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
An object representing a long-running operation.
The result type for the operation will be
google.cloud.contact_center_insights_v1.types.BulkDeleteConversationsResponse
The response for a bulk delete conversations operation.- Return type
- async bulk_download_feedback_labels(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.BulkDownloadFeedbackLabelsRequest, dict]] = None, *, parent: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.api_core.operation_async.AsyncOperation [source]¶
Download feedback labels in bulk.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_bulk_download_feedback_labels(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) gcs_destination = contact_center_insights_v1.GcsDestination() gcs_destination.format_ = "JSON" gcs_destination.object_uri = "object_uri_value" request = contact_center_insights_v1.BulkDownloadFeedbackLabelsRequest( gcs_destination=gcs_destination, parent="parent_value", ) # Make the request operation = client.bulk_download_feedback_labels(request=request) print("Waiting for operation to complete...") response = (await operation).result() # Handle the response print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.BulkDownloadFeedbackLabelsRequest, dict]]) – The request object. Request for the BulkDownloadFeedbackLabel endpoint.
parent (
str
) –Required. The parent resource for new feedback labels.
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
An object representing a long-running operation.
The result type for the operation will be
google.cloud.contact_center_insights_v1.types.BulkDownloadFeedbackLabelsResponse
Response for the BulkDownloadFeedbackLabel endpoint.- Return type
- async bulk_upload_feedback_labels(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.BulkUploadFeedbackLabelsRequest, dict]] = None, *, parent: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.api_core.operation_async.AsyncOperation [source]¶
Upload feedback labels in bulk.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_bulk_upload_feedback_labels(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) gcs_source = contact_center_insights_v1.GcsSource() gcs_source.format_ = "JSON" gcs_source.object_uri = "object_uri_value" request = contact_center_insights_v1.BulkUploadFeedbackLabelsRequest( gcs_source=gcs_source, parent="parent_value", ) # Make the request operation = client.bulk_upload_feedback_labels(request=request) print("Waiting for operation to complete...") response = (await operation).result() # Handle the response print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.BulkUploadFeedbackLabelsRequest, dict]]) – The request object. The request for bulk uploading feedback labels.
parent (
str
) –Required. The parent resource for new feedback labels.
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
An object representing a long-running operation.
The result type for the operation will be
google.cloud.contact_center_insights_v1.types.BulkUploadFeedbackLabelsResponse
Response for the Bulk Upload Feedback Labels API.- Return type
- async calculate_issue_model_stats(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.CalculateIssueModelStatsRequest, dict]] = None, *, issue_model: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.contact_center_insights.CalculateIssueModelStatsResponse [source]¶
Gets an issue model’s statistics.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_calculate_issue_model_stats(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.CalculateIssueModelStatsRequest( issue_model="issue_model_value", ) # Make the request response = await client.calculate_issue_model_stats(request=request) # Handle the response print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.CalculateIssueModelStatsRequest, dict]]) – The request object. Request to get statistics of an issue model.
issue_model (
str
) –Required. The resource name of the issue model to query against.
This corresponds to the
issue_model
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
Response of querying an issue model’s statistics.
- Return type
google.cloud.contact_center_insights_v1.types.CalculateIssueModelStatsResponse
- async calculate_stats(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.CalculateStatsRequest, dict]] = None, *, location: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.contact_center_insights.CalculateStatsResponse [source]¶
Gets conversation statistics.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_calculate_stats(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.CalculateStatsRequest( location="location_value", ) # Make the request response = await client.calculate_stats(request=request) # Handle the response print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.CalculateStatsRequest, dict]]) – The request object. The request for calculating conversation statistics.
location (
str
) –Required. The location of the conversations.
This corresponds to the
location
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
The response for calculating conversation statistics.
- Return type
google.cloud.contact_center_insights_v1.types.CalculateStatsResponse
- async cancel_operation(request: Optional[google.longrunning.operations_pb2.CancelOperationRequest] = None, *, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) None [source]¶
Starts asynchronous cancellation on a long-running operation.
The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn’t support this method, it returns google.rpc.Code.UNIMPLEMENTED.
- Parameters
request (
CancelOperationRequest
) – The request object. Request message for CancelOperation method.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
None
- static common_billing_account_path(billing_account: str) str ¶
Returns a fully-qualified billing_account string.
- static common_location_path(project: str, location: str) str ¶
Returns a fully-qualified location string.
- static common_organization_path(organization: str) str ¶
Returns a fully-qualified organization string.
- static conversation_path(project: str, location: str, conversation: str) str ¶
Returns a fully-qualified conversation string.
- static conversation_profile_path(project: str, location: str, conversation_profile: str) str ¶
Returns a fully-qualified conversation_profile string.
- async create_analysis(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.CreateAnalysisRequest, dict]] = None, *, parent: Optional[str] = None, analysis: Optional[google.cloud.contact_center_insights_v1.types.resources.Analysis] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.api_core.operation_async.AsyncOperation [source]¶
Creates an analysis. The long running operation is done when the analysis has completed.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_create_analysis(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.CreateAnalysisRequest( parent="parent_value", ) # Make the request operation = client.create_analysis(request=request) print("Waiting for operation to complete...") response = (await operation).result() # Handle the response print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.CreateAnalysisRequest, dict]]) – The request object. The request to create an analysis.
parent (
str
) –Required. The parent resource of the analysis.
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.analysis (
google.cloud.contact_center_insights_v1.types.Analysis
) – Required. The analysis to create. This corresponds to theanalysis
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
An object representing a long-running operation.
The result type for the operation will be
google.cloud.contact_center_insights_v1.types.Analysis
The analysis resource.- Return type
- async create_analysis_rule(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.CreateAnalysisRuleRequest, dict]] = None, *, parent: Optional[str] = None, analysis_rule: Optional[google.cloud.contact_center_insights_v1.types.resources.AnalysisRule] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.AnalysisRule [source]¶
Creates a analysis rule.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_create_analysis_rule(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.CreateAnalysisRuleRequest( parent="parent_value", ) # Make the request response = await client.create_analysis_rule(request=request) # Handle the response print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.CreateAnalysisRuleRequest, dict]]) – The request object. The request to create a analysis rule. analysis_rule_id will be generated by the server.
parent (
str
) –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>
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.analysis_rule (
google.cloud.contact_center_insights_v1.types.AnalysisRule
) –Required. The analysis rule resource to create.
This corresponds to the
analysis_rule
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
The CCAI Insights project wide analysis rule. This rule will be applied to all conversations that match the filter defined in the rule. For a conversation matches the filter, the annotators specified in the rule will be run. If a conversation matches multiple rules, a union of all the annotators will be run. One project can have multiple analysis rules.
- Return type
- async create_conversation(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.CreateConversationRequest, dict]] = None, *, parent: Optional[str] = None, conversation: Optional[google.cloud.contact_center_insights_v1.types.resources.Conversation] = None, conversation_id: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.Conversation [source]¶
Creates a conversation. Note that this method does not support audio transcription or redaction. Use
conversations.upload
instead.# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_create_conversation(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.CreateConversationRequest( parent="parent_value", ) # Make the request response = await client.create_conversation(request=request) # Handle the response print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.CreateConversationRequest, dict]]) – The request object. Request to create a conversation.
parent (
str
) –Required. The parent resource of the conversation.
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.conversation (
google.cloud.contact_center_insights_v1.types.Conversation
) –Required. The conversation resource to create.
This corresponds to the
conversation
field on therequest
instance; ifrequest
is provided, this should not be set.conversation_id (
str
) –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]-
This corresponds to the
conversation_id
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
The conversation resource.
- Return type
- async create_feedback_label(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.CreateFeedbackLabelRequest, dict]] = None, *, parent: Optional[str] = None, feedback_label: Optional[google.cloud.contact_center_insights_v1.types.resources.FeedbackLabel] = None, feedback_label_id: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.FeedbackLabel [source]¶
Create feedback label.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_create_feedback_label(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) feedback_label = contact_center_insights_v1.FeedbackLabel() feedback_label.label = "label_value" request = contact_center_insights_v1.CreateFeedbackLabelRequest( parent="parent_value", feedback_label=feedback_label, ) # Make the request response = await client.create_feedback_label(request=request) # Handle the response print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.CreateFeedbackLabelRequest, dict]]) – The request object. The request for creating a feedback label.
parent (
str
) –Required. The parent resource of the feedback label.
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.feedback_label (
google.cloud.contact_center_insights_v1.types.FeedbackLabel
) –Required. The feedback label to create.
This corresponds to the
feedback_label
field on therequest
instance; ifrequest
is provided, this should not be set.feedback_label_id (
str
) –Optional. The ID of the feedback label to create. If one is not specified it will be generated by the server.
This corresponds to the
feedback_label_id
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
Represents a conversation, resource, and label provided by the user.
- Return type
- async create_issue_model(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.CreateIssueModelRequest, dict]] = None, *, parent: Optional[str] = None, issue_model: Optional[google.cloud.contact_center_insights_v1.types.resources.IssueModel] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.api_core.operation_async.AsyncOperation [source]¶
Creates an issue model.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_create_issue_model(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.CreateIssueModelRequest( parent="parent_value", ) # Make the request operation = client.create_issue_model(request=request) print("Waiting for operation to complete...") response = (await operation).result() # Handle the response print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.CreateIssueModelRequest, dict]]) – The request object. The request to create an issue model.
parent (
str
) –Required. The parent resource of the issue model.
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.issue_model (
google.cloud.contact_center_insights_v1.types.IssueModel
) – Required. The issue model to create. This corresponds to theissue_model
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
An object representing a long-running operation.
The result type for the operation will be
google.cloud.contact_center_insights_v1.types.IssueModel
The issue model resource.- Return type
- async create_phrase_matcher(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.CreatePhraseMatcherRequest, dict]] = None, *, parent: Optional[str] = None, phrase_matcher: Optional[google.cloud.contact_center_insights_v1.types.resources.PhraseMatcher] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.PhraseMatcher [source]¶
Creates a phrase matcher.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_create_phrase_matcher(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) phrase_matcher = contact_center_insights_v1.PhraseMatcher() phrase_matcher.type_ = "ANY_OF" request = contact_center_insights_v1.CreatePhraseMatcherRequest( parent="parent_value", phrase_matcher=phrase_matcher, ) # Make the request response = await client.create_phrase_matcher(request=request) # Handle the response print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.CreatePhraseMatcherRequest, dict]]) – The request object. Request to create a phrase matcher.
parent (
str
) –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>
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.phrase_matcher (
google.cloud.contact_center_insights_v1.types.PhraseMatcher
) –Required. The phrase matcher resource to create.
This corresponds to the
phrase_matcher
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
The phrase matcher resource.
- Return type
- async create_qa_question(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.CreateQaQuestionRequest, dict]] = None, *, parent: Optional[str] = None, qa_question: Optional[google.cloud.contact_center_insights_v1.types.resources.QaQuestion] = None, qa_question_id: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.QaQuestion [source]¶
Create a QaQuestion.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_create_qa_question(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.CreateQaQuestionRequest( parent="parent_value", ) # Make the request response = await client.create_qa_question(request=request) # Handle the response print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.CreateQaQuestionRequest, dict]]) – The request object. The request for creating a QaQuestion.
parent (
str
) –Required. The parent resource of the QaQuestion.
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.qa_question (
google.cloud.contact_center_insights_v1.types.QaQuestion
) – Required. The QaQuestion to create. This corresponds to theqa_question
field on therequest
instance; ifrequest
is provided, this should not be set.qa_question_id (
str
) –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]-
.This corresponds to the
qa_question_id
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
A single question to be scored by the Insights QA feature.
- Return type
- async create_qa_scorecard(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.CreateQaScorecardRequest, dict]] = None, *, parent: Optional[str] = None, qa_scorecard: Optional[google.cloud.contact_center_insights_v1.types.resources.QaScorecard] = None, qa_scorecard_id: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.QaScorecard [source]¶
Create a QaScorecard.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_create_qa_scorecard(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.CreateQaScorecardRequest( parent="parent_value", ) # Make the request response = await client.create_qa_scorecard(request=request) # Handle the response print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.CreateQaScorecardRequest, dict]]) – The request object. The request for creating a QaScorecard.
parent (
str
) –Required. The parent resource of the QaScorecard.
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.qa_scorecard (
google.cloud.contact_center_insights_v1.types.QaScorecard
) – Required. The QaScorecard to create. This corresponds to theqa_scorecard
field on therequest
instance; ifrequest
is provided, this should not be set.qa_scorecard_id (
str
) –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]-
.This corresponds to the
qa_scorecard_id
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
A QaScorecard represents a collection of questions to be scored during analysis.
- Return type
- async create_qa_scorecard_revision(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.CreateQaScorecardRevisionRequest, dict]] = None, *, parent: Optional[str] = None, qa_scorecard_revision: Optional[google.cloud.contact_center_insights_v1.types.resources.QaScorecardRevision] = None, qa_scorecard_revision_id: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.QaScorecardRevision [source]¶
Creates a QaScorecardRevision.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_create_qa_scorecard_revision(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.CreateQaScorecardRevisionRequest( parent="parent_value", ) # Make the request response = await client.create_qa_scorecard_revision(request=request) # Handle the response print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.CreateQaScorecardRevisionRequest, dict]]) – The request object. The request for creating a QaScorecardRevision.
parent (
str
) –Required. The parent resource of the QaScorecardRevision.
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.qa_scorecard_revision (
google.cloud.contact_center_insights_v1.types.QaScorecardRevision
) –Required. The QaScorecardRevision to create.
This corresponds to the
qa_scorecard_revision
field on therequest
instance; ifrequest
is provided, this should not be set.qa_scorecard_revision_id (
str
) –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]-
.This corresponds to the
qa_scorecard_revision_id
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
A revision of a QaScorecard.
Modifying published scorecard fields would invalidate existing scorecard results — the questions may have changed, or the score weighting will make existing scores impossible to understand. So changes must create a new revision, rather than modifying the existing resource.
- Return type
google.cloud.contact_center_insights_v1.types.QaScorecardRevision
- async create_view(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.CreateViewRequest, dict]] = None, *, parent: Optional[str] = None, view: Optional[google.cloud.contact_center_insights_v1.types.resources.View] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.View [source]¶
Creates a view.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_create_view(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.CreateViewRequest( parent="parent_value", ) # Make the request response = await client.create_view(request=request) # Handle the response print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.CreateViewRequest, dict]]) – The request object. The request to create a view.
parent (
str
) –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>
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.view (
google.cloud.contact_center_insights_v1.types.View
) –Required. The view resource to create.
This corresponds to the
view
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
The View resource.
- Return type
- async delete_analysis(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.DeleteAnalysisRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) None [source]¶
Deletes an analysis.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_delete_analysis(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.DeleteAnalysisRequest( name="name_value", ) # Make the request await client.delete_analysis(request=request)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.DeleteAnalysisRequest, dict]]) – The request object. The request to delete an analysis.
name (
str
) –Required. The name of the analysis to delete.
This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- async delete_analysis_rule(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.DeleteAnalysisRuleRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) None [source]¶
Deletes a analysis rule.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_delete_analysis_rule(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.DeleteAnalysisRuleRequest( name="name_value", ) # Make the request await client.delete_analysis_rule(request=request)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.DeleteAnalysisRuleRequest, dict]]) – The request object. The request to delete a analysis rule.
name (
str
) –Required. The name of the analysis rule to delete.
This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- async delete_conversation(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.DeleteConversationRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) None [source]¶
Deletes a conversation.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_delete_conversation(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.DeleteConversationRequest( name="name_value", ) # Make the request await client.delete_conversation(request=request)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.DeleteConversationRequest, dict]]) – The request object. The request to delete a conversation.
name (
str
) –Required. The name of the conversation to delete.
This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- async delete_feedback_label(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.DeleteFeedbackLabelRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) None [source]¶
Delete feedback label.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_delete_feedback_label(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.DeleteFeedbackLabelRequest( name="name_value", ) # Make the request await client.delete_feedback_label(request=request)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.DeleteFeedbackLabelRequest, dict]]) – The request object. The request for deleting a feedback label.
name (
str
) –Required. The name of the feedback label to delete.
This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- async delete_issue(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.DeleteIssueRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) None [source]¶
Deletes an issue.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_delete_issue(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.DeleteIssueRequest( name="name_value", ) # Make the request await client.delete_issue(request=request)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.DeleteIssueRequest, dict]]) – The request object. The request to delete an issue.
name (
str
) –Required. The name of the issue to delete.
This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- async delete_issue_model(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.DeleteIssueModelRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.api_core.operation_async.AsyncOperation [source]¶
Deletes an issue model.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_delete_issue_model(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.DeleteIssueModelRequest( name="name_value", ) # Make the request operation = client.delete_issue_model(request=request) print("Waiting for operation to complete...") response = (await operation).result() # Handle the response print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.DeleteIssueModelRequest, dict]]) – The request object. The request to delete an issue model.
name (
str
) –Required. The name of the issue model to delete.
This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
An object representing a long-running operation.
- The result type for the operation will be
google.protobuf.empty_pb2.Empty
A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance:
- service Foo {
rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
}
- The result type for the operation will be
- Return type
- async delete_phrase_matcher(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.DeletePhraseMatcherRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) None [source]¶
Deletes a phrase matcher.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_delete_phrase_matcher(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.DeletePhraseMatcherRequest( name="name_value", ) # Make the request await client.delete_phrase_matcher(request=request)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.DeletePhraseMatcherRequest, dict]]) – The request object. The request to delete a phrase matcher.
name (
str
) –Required. The name of the phrase matcher to delete.
This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- async delete_qa_question(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.DeleteQaQuestionRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) None [source]¶
Deletes a QaQuestion.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_delete_qa_question(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.DeleteQaQuestionRequest( name="name_value", ) # Make the request await client.delete_qa_question(request=request)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.DeleteQaQuestionRequest, dict]]) – The request object. The request for deleting a QaQuestion.
name (
str
) –Required. The name of the QaQuestion to delete.
This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- async delete_qa_scorecard(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.DeleteQaScorecardRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) None [source]¶
Deletes a QaScorecard.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_delete_qa_scorecard(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.DeleteQaScorecardRequest( name="name_value", ) # Make the request await client.delete_qa_scorecard(request=request)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.DeleteQaScorecardRequest, dict]]) – The request object. The request for deleting a QaScorecard.
name (
str
) –Required. The name of the QaScorecard to delete.
This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- async delete_qa_scorecard_revision(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.DeleteQaScorecardRevisionRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) None [source]¶
Deletes a QaScorecardRevision.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_delete_qa_scorecard_revision(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.DeleteQaScorecardRevisionRequest( name="name_value", ) # Make the request await client.delete_qa_scorecard_revision(request=request)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.DeleteQaScorecardRevisionRequest, dict]]) – The request object. The request to delete a QaScorecardRevision.
name (
str
) –Required. The name of the QaScorecardRevision to delete.
This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- async delete_view(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.DeleteViewRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) None [source]¶
Deletes a view.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_delete_view(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.DeleteViewRequest( name="name_value", ) # Make the request await client.delete_view(request=request)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.DeleteViewRequest, dict]]) – The request object. The request to delete a view.
name (
str
) –Required. The name of the view to delete.
This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- async deploy_issue_model(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.DeployIssueModelRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.api_core.operation_async.AsyncOperation [source]¶
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.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_deploy_issue_model(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.DeployIssueModelRequest( name="name_value", ) # Make the request operation = client.deploy_issue_model(request=request) print("Waiting for operation to complete...") response = (await operation).result() # Handle the response print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.DeployIssueModelRequest, dict]]) – The request object. The request to deploy an issue model.
name (
str
) – Required. The issue model to deploy. This corresponds to thename
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
An object representing a long-running operation.
The result type for the operation will be
google.cloud.contact_center_insights_v1.types.DeployIssueModelResponse
The response to deploy an issue model.- Return type
- async deploy_qa_scorecard_revision(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.DeployQaScorecardRevisionRequest, dict]] = None, *, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.QaScorecardRevision [source]¶
Deploy a QaScorecardRevision.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_deploy_qa_scorecard_revision(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.DeployQaScorecardRevisionRequest( name="name_value", ) # Make the request response = await client.deploy_qa_scorecard_revision(request=request) # Handle the response print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.DeployQaScorecardRevisionRequest, dict]]) – The request object. The request to deploy a QaScorecardRevision
retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
A revision of a QaScorecard.
Modifying published scorecard fields would invalidate existing scorecard results — the questions may have changed, or the score weighting will make existing scores impossible to understand. So changes must create a new revision, rather than modifying the existing resource.
- Return type
google.cloud.contact_center_insights_v1.types.QaScorecardRevision
- static encryption_spec_path(project: str, location: str) str ¶
Returns a fully-qualified encryption_spec string.
- async export_insights_data(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.ExportInsightsDataRequest, dict]] = None, *, parent: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.api_core.operation_async.AsyncOperation [source]¶
Export insights data to a destination defined in the request body.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_export_insights_data(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) big_query_destination = contact_center_insights_v1.BigQueryDestination() big_query_destination.dataset = "dataset_value" request = contact_center_insights_v1.ExportInsightsDataRequest( big_query_destination=big_query_destination, parent="parent_value", ) # Make the request operation = client.export_insights_data(request=request) print("Waiting for operation to complete...") response = (await operation).result() # Handle the response print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.ExportInsightsDataRequest, dict]]) – The request object. The request to export insights.
parent (
str
) –Required. The parent resource to export data from.
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
An object representing a long-running operation.
The result type for the operation will be
google.cloud.contact_center_insights_v1.types.ExportInsightsDataResponse
Response for an export insights operation.- Return type
- async export_issue_model(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.ExportIssueModelRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.api_core.operation_async.AsyncOperation [source]¶
Exports an issue model to the provided destination.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_export_issue_model(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) gcs_destination = contact_center_insights_v1.GcsDestination() gcs_destination.object_uri = "object_uri_value" request = contact_center_insights_v1.ExportIssueModelRequest( gcs_destination=gcs_destination, name="name_value", ) # Make the request operation = client.export_issue_model(request=request) print("Waiting for operation to complete...") response = (await operation).result() # Handle the response print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.ExportIssueModelRequest, dict]]) – The request object. Request to export an issue model.
name (
str
) – Required. The issue model to export. This corresponds to thename
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
An object representing a long-running operation.
The result type for the operation will be
google.cloud.contact_center_insights_v1.types.ExportIssueModelResponse
Response from export issue model- Return type
- static feedback_label_path(project: str, location: str, conversation: str, feedback_label: str) str ¶
Returns a fully-qualified feedback_label string.
- classmethod from_service_account_file(filename: str, *args, **kwargs)[source]¶
- Creates an instance of this client using the provided credentials
file.
- Parameters
filename (str) – The path to the service account private key json file.
args – Additional arguments to pass to the constructor.
kwargs – Additional arguments to pass to the constructor.
- Returns
The constructed client.
- Return type
- classmethod from_service_account_info(info: dict, *args, **kwargs)[source]¶
- Creates an instance of this client using the provided credentials
info.
- Parameters
info (dict) – The service account private key info.
args – Additional arguments to pass to the constructor.
kwargs – Additional arguments to pass to the constructor.
- Returns
The constructed client.
- Return type
- classmethod from_service_account_json(filename: str, *args, **kwargs)¶
- Creates an instance of this client using the provided credentials
file.
- Parameters
filename (str) – The path to the service account private key json file.
args – Additional arguments to pass to the constructor.
kwargs – Additional arguments to pass to the constructor.
- Returns
The constructed client.
- Return type
- async get_analysis(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.GetAnalysisRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.Analysis [source]¶
Gets an analysis.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_get_analysis(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.GetAnalysisRequest( name="name_value", ) # Make the request response = await client.get_analysis(request=request) # Handle the response print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.GetAnalysisRequest, dict]]) – The request object. The request to get an analysis.
name (
str
) –Required. The name of the analysis to get.
This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
The analysis resource.
- Return type
- async get_analysis_rule(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.GetAnalysisRuleRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.AnalysisRule [source]¶
Get a analysis rule.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_get_analysis_rule(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.GetAnalysisRuleRequest( name="name_value", ) # Make the request response = await client.get_analysis_rule(request=request) # Handle the response print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.GetAnalysisRuleRequest, dict]]) – The request object. The request for getting a analysis rule.
name (
str
) –Required. The name of the AnalysisRule to get.
This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
The CCAI Insights project wide analysis rule. This rule will be applied to all conversations that match the filter defined in the rule. For a conversation matches the filter, the annotators specified in the rule will be run. If a conversation matches multiple rules, a union of all the annotators will be run. One project can have multiple analysis rules.
- Return type
- async get_conversation(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.GetConversationRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.Conversation [source]¶
Gets a conversation.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_get_conversation(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.GetConversationRequest( name="name_value", ) # Make the request response = await client.get_conversation(request=request) # Handle the response print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.GetConversationRequest, dict]]) – The request object. The request to get a conversation.
name (
str
) –Required. The name of the conversation to get.
This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
The conversation resource.
- Return type
- async get_encryption_spec(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.GetEncryptionSpecRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.EncryptionSpec [source]¶
Gets location-level encryption key specification.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_get_encryption_spec(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.GetEncryptionSpecRequest( name="name_value", ) # Make the request response = await client.get_encryption_spec(request=request) # Handle the response print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.GetEncryptionSpecRequest, dict]]) – The request object. The request to get location-level encryption specification.
name (
str
) –Required. The name of the encryption spec resource to get.
This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
- A customer-managed encryption key specification that can be applied to all
created resources (e.g. Conversation).
- Return type
google.cloud.contact_center_insights_v1.types.EncryptionSpec
- async get_feedback_label(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.GetFeedbackLabelRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.FeedbackLabel [source]¶
Get feedback label.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_get_feedback_label(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.GetFeedbackLabelRequest( name="name_value", ) # Make the request response = await client.get_feedback_label(request=request) # Handle the response print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.GetFeedbackLabelRequest, dict]]) – The request object. The request for getting a feedback label.
name (
str
) –Required. The name of the feedback label to get.
This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
Represents a conversation, resource, and label provided by the user.
- Return type
- async get_issue(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.GetIssueRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.Issue [source]¶
Gets an issue.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_get_issue(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.GetIssueRequest( name="name_value", ) # Make the request response = await client.get_issue(request=request) # Handle the response print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.GetIssueRequest, dict]]) – The request object. The request to get an issue.
name (
str
) –Required. The name of the issue to get.
This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
The issue resource.
- Return type
- async get_issue_model(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.GetIssueModelRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.IssueModel [source]¶
Gets an issue model.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_get_issue_model(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.GetIssueModelRequest( name="name_value", ) # Make the request response = await client.get_issue_model(request=request) # Handle the response print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.GetIssueModelRequest, dict]]) – The request object. The request to get an issue model.
name (
str
) –Required. The name of the issue model to get.
This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
The issue model resource.
- Return type
- classmethod get_mtls_endpoint_and_cert_source(client_options: Optional[google.api_core.client_options.ClientOptions] = None)[source]¶
Return the API endpoint and client cert source for mutual TLS.
The client cert source is determined in the following order: (1) if GOOGLE_API_USE_CLIENT_CERTIFICATE environment variable is not “true”, the client cert source is None. (2) if client_options.client_cert_source is provided, use the provided one; if the default client cert source exists, use the default one; otherwise the client cert source is None.
The API endpoint is determined in the following order: (1) if client_options.api_endpoint if provided, use the provided one. (2) if GOOGLE_API_USE_CLIENT_CERTIFICATE environment variable is “always”, use the default mTLS endpoint; if the environment variable is “never”, use the default API endpoint; otherwise if client cert source exists, use the default mTLS endpoint, otherwise use the default API endpoint.
More details can be found at https://google.aip.dev/auth/4114.
- Parameters
client_options (google.api_core.client_options.ClientOptions) – Custom options for the client. Only the api_endpoint and client_cert_source properties may be used in this method.
- Returns
- returns the API endpoint and the
client cert source to use.
- Return type
- Raises
google.auth.exceptions.MutualTLSChannelError – If any errors happen.
- async get_operation(request: Optional[google.longrunning.operations_pb2.GetOperationRequest] = None, *, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.longrunning.operations_pb2.Operation [source]¶
Gets the latest state of a long-running operation.
- Parameters
request (
GetOperationRequest
) – The request object. Request message for GetOperation method.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
An
Operation
object.- Return type
Operation
- async get_phrase_matcher(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.GetPhraseMatcherRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.PhraseMatcher [source]¶
Gets a phrase matcher.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_get_phrase_matcher(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.GetPhraseMatcherRequest( name="name_value", ) # Make the request response = await client.get_phrase_matcher(request=request) # Handle the response print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.GetPhraseMatcherRequest, dict]]) – The request object. The request to get a a phrase matcher.
name (
str
) –Required. The name of the phrase matcher to get.
This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
The phrase matcher resource.
- Return type
- async get_qa_question(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.GetQaQuestionRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.QaQuestion [source]¶
Gets a QaQuestion.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_get_qa_question(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.GetQaQuestionRequest( name="name_value", ) # Make the request response = await client.get_qa_question(request=request) # Handle the response print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.GetQaQuestionRequest, dict]]) – The request object. The request for a QaQuestion.
name (
str
) –Required. The name of the QaQuestion to get.
This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
A single question to be scored by the Insights QA feature.
- Return type
- async get_qa_scorecard(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.GetQaScorecardRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.QaScorecard [source]¶
Gets a QaScorecard.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_get_qa_scorecard(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.GetQaScorecardRequest( name="name_value", ) # Make the request response = await client.get_qa_scorecard(request=request) # Handle the response print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.GetQaScorecardRequest, dict]]) – The request object. The request for a QaScorecard. By default, returns the latest revision.
name (
str
) –Required. The name of the QaScorecard to get.
This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
A QaScorecard represents a collection of questions to be scored during analysis.
- Return type
- async get_qa_scorecard_revision(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.GetQaScorecardRevisionRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.QaScorecardRevision [source]¶
Gets a QaScorecardRevision.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_get_qa_scorecard_revision(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.GetQaScorecardRevisionRequest( name="name_value", ) # Make the request response = await client.get_qa_scorecard_revision(request=request) # Handle the response print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.GetQaScorecardRevisionRequest, dict]]) – The request object. The request for a QaScorecardRevision.
name (
str
) –Required. The name of the QaScorecardRevision to get.
This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
A revision of a QaScorecard.
Modifying published scorecard fields would invalidate existing scorecard results — the questions may have changed, or the score weighting will make existing scores impossible to understand. So changes must create a new revision, rather than modifying the existing resource.
- Return type
google.cloud.contact_center_insights_v1.types.QaScorecardRevision
- async get_settings(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.GetSettingsRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.Settings [source]¶
Gets project-level settings.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_get_settings(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.GetSettingsRequest( name="name_value", ) # Make the request response = await client.get_settings(request=request) # Handle the response print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.GetSettingsRequest, dict]]) – The request object. The request to get project-level settings.
name (
str
) –Required. The name of the settings resource to get.
This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
- The CCAI Insights project wide settings.
Use these settings to configure the behavior of Insights. View these settings with [getsettings](https://cloud.google.com/contact-center/insights/docs/reference/rest/v1/projects.locations/getSettings) and change the settings with [updateSettings](https://cloud.google.com/contact-center/insights/docs/reference/rest/v1/projects.locations/updateSettings).
- Return type
- classmethod get_transport_class(label: Optional[str] = None) Type[google.cloud.contact_center_insights_v1.services.contact_center_insights.transports.base.ContactCenterInsightsTransport] ¶
Returns an appropriate transport class.
- Parameters
label – The name of the desired transport. If none is provided, then the first transport in the registry is used.
- Returns
The transport class to use.
- async get_view(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.GetViewRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.View [source]¶
Gets a view.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_get_view(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.GetViewRequest( name="name_value", ) # Make the request response = await client.get_view(request=request) # Handle the response print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.GetViewRequest, dict]]) – The request object. The request to get a view.
name (
str
) –Required. The name of the view to get.
This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
The View resource.
- Return type
- async import_issue_model(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.ImportIssueModelRequest, dict]] = None, *, parent: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.api_core.operation_async.AsyncOperation [source]¶
Imports an issue model from a Cloud Storage bucket.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_import_issue_model(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) gcs_source = contact_center_insights_v1.GcsSource() gcs_source.object_uri = "object_uri_value" request = contact_center_insights_v1.ImportIssueModelRequest( gcs_source=gcs_source, parent="parent_value", ) # Make the request operation = client.import_issue_model(request=request) print("Waiting for operation to complete...") response = (await operation).result() # Handle the response print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.ImportIssueModelRequest, dict]]) – The request object. Request to import an issue model.
parent (
str
) –Required. The parent resource of the issue model.
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
An object representing a long-running operation.
The result type for the operation will be
google.cloud.contact_center_insights_v1.types.ImportIssueModelResponse
Response from import issue model- Return type
- async ingest_conversations(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.IngestConversationsRequest, dict]] = None, *, parent: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.api_core.operation_async.AsyncOperation [source]¶
Imports conversations and processes them according to the user’s configuration.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_ingest_conversations(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) gcs_source = contact_center_insights_v1.GcsSource() gcs_source.bucket_uri = "bucket_uri_value" transcript_object_config = contact_center_insights_v1.TranscriptObjectConfig() transcript_object_config.medium = "CHAT" request = contact_center_insights_v1.IngestConversationsRequest( gcs_source=gcs_source, transcript_object_config=transcript_object_config, parent="parent_value", ) # Make the request operation = client.ingest_conversations(request=request) print("Waiting for operation to complete...") response = (await operation).result() # Handle the response print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.IngestConversationsRequest, dict]]) – The request object. The request to ingest conversations.
parent (
str
) –Required. The parent resource for new conversations.
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
An object representing a long-running operation.
The result type for the operation will be
google.cloud.contact_center_insights_v1.types.IngestConversationsResponse
The response to an IngestConversations operation.- Return type
- async initialize_encryption_spec(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.InitializeEncryptionSpecRequest, dict]] = None, *, encryption_spec: Optional[google.cloud.contact_center_insights_v1.types.resources.EncryptionSpec] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.api_core.operation_async.AsyncOperation [source]¶
Initializes a location-level encryption key specification. An error will result if the location has resources already created before the initialization. After the encryption specification is initialized at a location, it is immutable and all newly created resources under the location will be encrypted with the existing specification.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_initialize_encryption_spec(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) encryption_spec = contact_center_insights_v1.EncryptionSpec() encryption_spec.kms_key = "kms_key_value" request = contact_center_insights_v1.InitializeEncryptionSpecRequest( encryption_spec=encryption_spec, ) # Make the request operation = client.initialize_encryption_spec(request=request) print("Waiting for operation to complete...") response = (await operation).result() # Handle the response print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.InitializeEncryptionSpecRequest, dict]]) – The request object. The request to initialize a location-level encryption specification.
encryption_spec (
google.cloud.contact_center_insights_v1.types.EncryptionSpec
) –Required. The encryption spec used for CMEK encryption. It is required that the kms key is in the same region as the endpoint. The same key will be used for all provisioned resources, if encryption is available. If the
kms_key_name
field is left empty, no encryption will be enforced.This corresponds to the
encryption_spec
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
An object representing a long-running operation.
The result type for the operation will be
google.cloud.contact_center_insights_v1.types.InitializeEncryptionSpecResponse
The response to initialize a location-level encryption specification.- Return type
- static issue_model_path(project: str, location: str, issue_model: str) str ¶
Returns a fully-qualified issue_model string.
- static issue_path(project: str, location: str, issue_model: str, issue: str) str ¶
Returns a fully-qualified issue string.
- async list_all_feedback_labels(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.ListAllFeedbackLabelsRequest, dict]] = None, *, parent: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.services.contact_center_insights.pagers.ListAllFeedbackLabelsAsyncPager [source]¶
List all feedback labels by project number.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_list_all_feedback_labels(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.ListAllFeedbackLabelsRequest( parent="parent_value", ) # Make the request page_result = client.list_all_feedback_labels(request=request) # Handle the response async for response in page_result: print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.ListAllFeedbackLabelsRequest, dict]]) – The request object. The request for listing all feedback labels.
parent (
str
) –Required. The parent resource of all feedback labels per project.
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
The response for listing all feedback labels. Iterating over this object will yield results and resolve additional pages automatically.
- Return type
- async list_analyses(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.ListAnalysesRequest, dict]] = None, *, parent: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.services.contact_center_insights.pagers.ListAnalysesAsyncPager [source]¶
Lists analyses.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_list_analyses(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.ListAnalysesRequest( parent="parent_value", ) # Make the request page_result = client.list_analyses(request=request) # Handle the response async for response in page_result: print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.ListAnalysesRequest, dict]]) – The request object. The request to list analyses.
parent (
str
) –Required. The parent resource of the analyses.
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
The response to list analyses.
Iterating over this object will yield results and resolve additional pages automatically.
- Return type
- async list_analysis_rules(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.ListAnalysisRulesRequest, dict]] = None, *, parent: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.services.contact_center_insights.pagers.ListAnalysisRulesAsyncPager [source]¶
Lists analysis rules.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_list_analysis_rules(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.ListAnalysisRulesRequest( parent="parent_value", ) # Make the request page_result = client.list_analysis_rules(request=request) # Handle the response async for response in page_result: print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.ListAnalysisRulesRequest, dict]]) – The request object. The request to list analysis rules.
parent (
str
) –Required. The parent resource of the analysis rules.
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
The response of listing views.
Iterating over this object will yield results and resolve additional pages automatically.
- Return type
- async list_conversations(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.ListConversationsRequest, dict]] = None, *, parent: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.services.contact_center_insights.pagers.ListConversationsAsyncPager [source]¶
Lists conversations.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_list_conversations(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.ListConversationsRequest( parent="parent_value", ) # Make the request page_result = client.list_conversations(request=request) # Handle the response async for response in page_result: print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.ListConversationsRequest, dict]]) – The request object. Request to list conversations.
parent (
str
) –Required. The parent resource of the conversation.
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
The response of listing conversations. Iterating over this object will yield results and resolve additional pages automatically.
- Return type
- async list_feedback_labels(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.ListFeedbackLabelsRequest, dict]] = None, *, parent: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.services.contact_center_insights.pagers.ListFeedbackLabelsAsyncPager [source]¶
List feedback labels.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_list_feedback_labels(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.ListFeedbackLabelsRequest( parent="parent_value", ) # Make the request page_result = client.list_feedback_labels(request=request) # Handle the response async for response in page_result: print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.ListFeedbackLabelsRequest, dict]]) – The request object. The request for listing feedback labels.
parent (
str
) –Required. The parent resource of the feedback labels.
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
The response for listing feedback labels. Iterating over this object will yield results and resolve additional pages automatically.
- Return type
- async list_issue_models(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.ListIssueModelsRequest, dict]] = None, *, parent: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.contact_center_insights.ListIssueModelsResponse [source]¶
Lists issue models.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_list_issue_models(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.ListIssueModelsRequest( parent="parent_value", ) # Make the request response = await client.list_issue_models(request=request) # Handle the response print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.ListIssueModelsRequest, dict]]) – The request object. Request to list issue models.
parent (
str
) –Required. The parent resource of the issue model.
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
The response of listing issue models.
- Return type
google.cloud.contact_center_insights_v1.types.ListIssueModelsResponse
- async list_issues(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.ListIssuesRequest, dict]] = None, *, parent: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.contact_center_insights.ListIssuesResponse [source]¶
Lists issues.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_list_issues(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.ListIssuesRequest( parent="parent_value", ) # Make the request response = await client.list_issues(request=request) # Handle the response print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.ListIssuesRequest, dict]]) – The request object. Request to list issues.
parent (
str
) –Required. The parent resource of the issue.
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
The response of listing issues.
- Return type
google.cloud.contact_center_insights_v1.types.ListIssuesResponse
- async list_operations(request: Optional[google.longrunning.operations_pb2.ListOperationsRequest] = None, *, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.longrunning.operations_pb2.ListOperationsResponse [source]¶
Lists operations that match the specified filter in the request.
- Parameters
request (
ListOperationsRequest
) – The request object. Request message for ListOperations method.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
Response message for
ListOperations
method.- Return type
ListOperationsResponse
- async list_phrase_matchers(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.ListPhraseMatchersRequest, dict]] = None, *, parent: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.services.contact_center_insights.pagers.ListPhraseMatchersAsyncPager [source]¶
Lists phrase matchers.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_list_phrase_matchers(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.ListPhraseMatchersRequest( parent="parent_value", ) # Make the request page_result = client.list_phrase_matchers(request=request) # Handle the response async for response in page_result: print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.ListPhraseMatchersRequest, dict]]) – The request object. Request to list phrase matchers.
parent (
str
) –Required. The parent resource of the phrase matcher.
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
The response of listing phrase matchers. Iterating over this object will yield results and resolve additional pages automatically.
- Return type
- async list_qa_questions(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.ListQaQuestionsRequest, dict]] = None, *, parent: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.services.contact_center_insights.pagers.ListQaQuestionsAsyncPager [source]¶
Lists QaQuestions.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_list_qa_questions(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.ListQaQuestionsRequest( parent="parent_value", ) # Make the request page_result = client.list_qa_questions(request=request) # Handle the response async for response in page_result: print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.ListQaQuestionsRequest, dict]]) – The request object. Request to list QaQuestions.
parent (
str
) –Required. The parent resource of the questions.
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
The response from a ListQaQuestions request. Iterating over this object will yield results and resolve additional pages automatically.
- Return type
- async list_qa_scorecard_revisions(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.ListQaScorecardRevisionsRequest, dict]] = None, *, parent: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.services.contact_center_insights.pagers.ListQaScorecardRevisionsAsyncPager [source]¶
Lists all revisions under the parent QaScorecard.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_list_qa_scorecard_revisions(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.ListQaScorecardRevisionsRequest( parent="parent_value", ) # Make the request page_result = client.list_qa_scorecard_revisions(request=request) # Handle the response async for response in page_result: print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.ListQaScorecardRevisionsRequest, dict]]) – The request object. Request to list QaScorecardRevisions
parent (
str
) –Required. The parent resource of the scorecard revisions. To list all revisions of all scorecards, substitute the QaScorecard ID with a ‘-’ character.
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
The response from a ListQaScorecardRevisions request. Iterating over this object will yield results and resolve additional pages automatically.
- Return type
- async list_qa_scorecards(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.ListQaScorecardsRequest, dict]] = None, *, parent: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.services.contact_center_insights.pagers.ListQaScorecardsAsyncPager [source]¶
Lists QaScorecards.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_list_qa_scorecards(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.ListQaScorecardsRequest( parent="parent_value", ) # Make the request page_result = client.list_qa_scorecards(request=request) # Handle the response async for response in page_result: print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.ListQaScorecardsRequest, dict]]) – The request object. Request to list QaScorecards.
parent (
str
) –Required. The parent resource of the scorecards.
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
The response from a ListQaScorecards request. Iterating over this object will yield results and resolve additional pages automatically.
- Return type
- async list_views(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.ListViewsRequest, dict]] = None, *, parent: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.services.contact_center_insights.pagers.ListViewsAsyncPager [source]¶
Lists views.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_list_views(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.ListViewsRequest( parent="parent_value", ) # Make the request page_result = client.list_views(request=request) # Handle the response async for response in page_result: print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.ListViewsRequest, dict]]) – The request object. The request to list views.
parent (
str
) –Required. The parent resource of the views.
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
The response of listing views.
Iterating over this object will yield results and resolve additional pages automatically.
- Return type
google.cloud.contact_center_insights_v1.services.contact_center_insights.pagers.ListViewsAsyncPager
- static parse_analysis_path(path: str) Dict[str, str] ¶
Parses a analysis path into its component segments.
- static parse_analysis_rule_path(path: str) Dict[str, str] ¶
Parses a analysis_rule path into its component segments.
- static parse_common_billing_account_path(path: str) Dict[str, str] ¶
Parse a billing_account path into its component segments.
- static parse_common_folder_path(path: str) Dict[str, str] ¶
Parse a folder path into its component segments.
- static parse_common_location_path(path: str) Dict[str, str] ¶
Parse a location path into its component segments.
- static parse_common_organization_path(path: str) Dict[str, str] ¶
Parse a organization path into its component segments.
- static parse_common_project_path(path: str) Dict[str, str] ¶
Parse a project path into its component segments.
- static parse_conversation_path(path: str) Dict[str, str] ¶
Parses a conversation path into its component segments.
- static parse_conversation_profile_path(path: str) Dict[str, str] ¶
Parses a conversation_profile path into its component segments.
- static parse_encryption_spec_path(path: str) Dict[str, str] ¶
Parses a encryption_spec path into its component segments.
- static parse_feedback_label_path(path: str) Dict[str, str] ¶
Parses a feedback_label path into its component segments.
- static parse_issue_model_path(path: str) Dict[str, str] ¶
Parses a issue_model path into its component segments.
- static parse_issue_path(path: str) Dict[str, str] ¶
Parses a issue path into its component segments.
- static parse_participant_path(path: str) Dict[str, str] ¶
Parses a participant path into its component segments.
- static parse_phrase_matcher_path(path: str) Dict[str, str] ¶
Parses a phrase_matcher path into its component segments.
- static parse_qa_question_path(path: str) Dict[str, str] ¶
Parses a qa_question path into its component segments.
- static parse_qa_scorecard_path(path: str) Dict[str, str] ¶
Parses a qa_scorecard path into its component segments.
- static parse_qa_scorecard_result_path(path: str) Dict[str, str] ¶
Parses a qa_scorecard_result path into its component segments.
- static parse_qa_scorecard_revision_path(path: str) Dict[str, str] ¶
Parses a qa_scorecard_revision path into its component segments.
- static parse_recognizer_path(path: str) Dict[str, str] ¶
Parses a recognizer path into its component segments.
- static parse_settings_path(path: str) Dict[str, str] ¶
Parses a settings path into its component segments.
- static participant_path(project: str, conversation: str, participant: str) str ¶
Returns a fully-qualified participant string.
- static phrase_matcher_path(project: str, location: str, phrase_matcher: str) str ¶
Returns a fully-qualified phrase_matcher string.
- static qa_question_path(project: str, location: str, qa_scorecard: str, revision: str, qa_question: str) str ¶
Returns a fully-qualified qa_question string.
- static qa_scorecard_path(project: str, location: str, qa_scorecard: str) str ¶
Returns a fully-qualified qa_scorecard string.
- static qa_scorecard_result_path(project: str, location: str, qa_scorecard_result: str) str ¶
Returns a fully-qualified qa_scorecard_result string.
- static qa_scorecard_revision_path(project: str, location: str, qa_scorecard: str, revision: str) str ¶
Returns a fully-qualified qa_scorecard_revision string.
- async query_metrics(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.QueryMetricsRequest, dict]] = None, *, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.api_core.operation_async.AsyncOperation [source]¶
Query metrics.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_query_metrics(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.QueryMetricsRequest( location="location_value", filter="filter_value", ) # Make the request operation = client.query_metrics(request=request) print("Waiting for operation to complete...") response = (await operation).result() # Handle the response print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.QueryMetricsRequest, dict]]) – The request object. The request for querying metrics.
retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
An object representing a long-running operation.
The result type for the operation will be
google.cloud.contact_center_insights_v1.types.QueryMetricsResponse
The response for querying metrics.- Return type
- static recognizer_path(project: str, location: str, recognizer: str) str ¶
Returns a fully-qualified recognizer string.
- property transport: google.cloud.contact_center_insights_v1.services.contact_center_insights.transports.base.ContactCenterInsightsTransport¶
Returns the transport used by the client instance.
- Returns
The transport used by the client instance.
- Return type
ContactCenterInsightsTransport
- async tune_qa_scorecard_revision(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.TuneQaScorecardRevisionRequest, dict]] = None, *, parent: Optional[str] = None, filter: Optional[str] = None, validate_only: Optional[bool] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.api_core.operation_async.AsyncOperation [source]¶
Fine tune one or more QaModels.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_tune_qa_scorecard_revision(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.TuneQaScorecardRevisionRequest( parent="parent_value", filter="filter_value", ) # Make the request operation = client.tune_qa_scorecard_revision(request=request) print("Waiting for operation to complete...") response = (await operation).result() # Handle the response print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.TuneQaScorecardRevisionRequest, dict]]) – The request object. Request for TuneQaScorecardRevision endpoint.
parent (
str
) –Required. The parent resource for new fine tuning job instance.
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.filter (
str
) –Required. Filter for selecting the feedback labels that needs to be used for training. This filter can be used to limit the feedback labels used for tuning to a feedback labels created or updated for a specific time-window etc.
This corresponds to the
filter
field on therequest
instance; ifrequest
is provided, this should not be set.validate_only (
bool
) –Optional. Run in validate only mode, no fine tuning will actually run. Data quality validations like training data distributions will run. Even when set to false, the data quality validations will still run but once the validations complete we will proceed with the fine tune, if applicable.
This corresponds to the
validate_only
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
An object representing a long-running operation.
The result type for the operation will be
google.cloud.contact_center_insights_v1.types.TuneQaScorecardRevisionResponse
Response for TuneQaScorecardRevision endpoint.- Return type
- async undeploy_issue_model(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.UndeployIssueModelRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.api_core.operation_async.AsyncOperation [source]¶
Undeploys an issue model. An issue model can not be used in analysis after it has been undeployed.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_undeploy_issue_model(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.UndeployIssueModelRequest( name="name_value", ) # Make the request operation = client.undeploy_issue_model(request=request) print("Waiting for operation to complete...") response = (await operation).result() # Handle the response print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.UndeployIssueModelRequest, dict]]) – The request object. The request to undeploy an issue model.
name (
str
) –Required. The issue model to undeploy.
This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
An object representing a long-running operation.
The result type for the operation will be
google.cloud.contact_center_insights_v1.types.UndeployIssueModelResponse
The response to undeploy an issue model.- Return type
- async undeploy_qa_scorecard_revision(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.UndeployQaScorecardRevisionRequest, dict]] = None, *, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.QaScorecardRevision [source]¶
Undeploy a QaScorecardRevision.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_undeploy_qa_scorecard_revision(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.UndeployQaScorecardRevisionRequest( name="name_value", ) # Make the request response = await client.undeploy_qa_scorecard_revision(request=request) # Handle the response print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.UndeployQaScorecardRevisionRequest, dict]]) – The request object. The request to undeploy a QaScorecardRevision
retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
A revision of a QaScorecard.
Modifying published scorecard fields would invalidate existing scorecard results — the questions may have changed, or the score weighting will make existing scores impossible to understand. So changes must create a new revision, rather than modifying the existing resource.
- Return type
google.cloud.contact_center_insights_v1.types.QaScorecardRevision
- property universe_domain: str¶
Return the universe domain used by the client instance.
- Returns
- The universe domain used
by the client instance.
- Return type
- async update_analysis_rule(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.UpdateAnalysisRuleRequest, dict]] = None, *, analysis_rule: Optional[google.cloud.contact_center_insights_v1.types.resources.AnalysisRule] = None, update_mask: Optional[google.protobuf.field_mask_pb2.FieldMask] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.AnalysisRule [source]¶
Updates a analysis rule.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_update_analysis_rule(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.UpdateAnalysisRuleRequest( ) # Make the request response = await client.update_analysis_rule(request=request) # Handle the response print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.UpdateAnalysisRuleRequest, dict]]) – The request object. The request to update a analysis rule.
analysis_rule (
google.cloud.contact_center_insights_v1.types.AnalysisRule
) – Required. The new analysis rule. This corresponds to theanalysis_rule
field on therequest
instance; ifrequest
is provided, this should not be set.update_mask (
google.protobuf.field_mask_pb2.FieldMask
) –Optional. The list of fields to be updated. If the update_mask is not provided, the update will be applied to all fields.
This corresponds to the
update_mask
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
The CCAI Insights project wide analysis rule. This rule will be applied to all conversations that match the filter defined in the rule. For a conversation matches the filter, the annotators specified in the rule will be run. If a conversation matches multiple rules, a union of all the annotators will be run. One project can have multiple analysis rules.
- Return type
- async update_conversation(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.UpdateConversationRequest, dict]] = None, *, conversation: Optional[google.cloud.contact_center_insights_v1.types.resources.Conversation] = None, update_mask: Optional[google.protobuf.field_mask_pb2.FieldMask] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.Conversation [source]¶
Updates a conversation.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_update_conversation(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.UpdateConversationRequest( ) # Make the request response = await client.update_conversation(request=request) # Handle the response print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.UpdateConversationRequest, dict]]) – The request object. The request to update a conversation.
conversation (
google.cloud.contact_center_insights_v1.types.Conversation
) –Required. The new values for the conversation.
This corresponds to the
conversation
field on therequest
instance; ifrequest
is provided, this should not be set.update_mask (
google.protobuf.field_mask_pb2.FieldMask
) –The list of fields to be updated. All possible fields can be updated by passing
*
, or a subset of the following updateable fields can be provided:agent_id
language_code
labels
metadata
quality_metadata
call_metadata
start_time
expire_time
orttl
data_source.gcs_source.audio_uri
ordata_source.dialogflow_source.audio_uri
This corresponds to the
update_mask
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
The conversation resource.
- Return type
- async update_feedback_label(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.UpdateFeedbackLabelRequest, dict]] = None, *, feedback_label: Optional[google.cloud.contact_center_insights_v1.types.resources.FeedbackLabel] = None, update_mask: Optional[google.protobuf.field_mask_pb2.FieldMask] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.FeedbackLabel [source]¶
Update feedback label.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_update_feedback_label(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) feedback_label = contact_center_insights_v1.FeedbackLabel() feedback_label.label = "label_value" request = contact_center_insights_v1.UpdateFeedbackLabelRequest( feedback_label=feedback_label, ) # Make the request response = await client.update_feedback_label(request=request) # Handle the response print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.UpdateFeedbackLabelRequest, dict]]) – The request object. The request for updating a feedback label.
feedback_label (
google.cloud.contact_center_insights_v1.types.FeedbackLabel
) –Required. The feedback label to update.
This corresponds to the
feedback_label
field on therequest
instance; ifrequest
is provided, this should not be set.update_mask (
google.protobuf.field_mask_pb2.FieldMask
) –Required. The list of fields to be updated.
This corresponds to the
update_mask
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
Represents a conversation, resource, and label provided by the user.
- Return type
- async update_issue(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.UpdateIssueRequest, dict]] = None, *, issue: Optional[google.cloud.contact_center_insights_v1.types.resources.Issue] = None, update_mask: Optional[google.protobuf.field_mask_pb2.FieldMask] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.Issue [source]¶
Updates an issue.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_update_issue(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.UpdateIssueRequest( ) # Make the request response = await client.update_issue(request=request) # Handle the response print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.UpdateIssueRequest, dict]]) – The request object. The request to update an issue.
issue (
google.cloud.contact_center_insights_v1.types.Issue
) –Required. The new values for the issue.
This corresponds to the
issue
field on therequest
instance; ifrequest
is provided, this should not be set.update_mask (
google.protobuf.field_mask_pb2.FieldMask
) – The list of fields to be updated. This corresponds to theupdate_mask
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
The issue resource.
- Return type
- async update_issue_model(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.UpdateIssueModelRequest, dict]] = None, *, issue_model: Optional[google.cloud.contact_center_insights_v1.types.resources.IssueModel] = None, update_mask: Optional[google.protobuf.field_mask_pb2.FieldMask] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.IssueModel [source]¶
Updates an issue model.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_update_issue_model(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.UpdateIssueModelRequest( ) # Make the request response = await client.update_issue_model(request=request) # Handle the response print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.UpdateIssueModelRequest, dict]]) – The request object. The request to update an issue model.
issue_model (
google.cloud.contact_center_insights_v1.types.IssueModel
) –Required. The new values for the issue model.
This corresponds to the
issue_model
field on therequest
instance; ifrequest
is provided, this should not be set.update_mask (
google.protobuf.field_mask_pb2.FieldMask
) – The list of fields to be updated. This corresponds to theupdate_mask
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
The issue model resource.
- Return type
- async update_phrase_matcher(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.UpdatePhraseMatcherRequest, dict]] = None, *, phrase_matcher: Optional[google.cloud.contact_center_insights_v1.types.resources.PhraseMatcher] = None, update_mask: Optional[google.protobuf.field_mask_pb2.FieldMask] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.PhraseMatcher [source]¶
Updates a phrase matcher.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_update_phrase_matcher(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) phrase_matcher = contact_center_insights_v1.PhraseMatcher() phrase_matcher.type_ = "ANY_OF" request = contact_center_insights_v1.UpdatePhraseMatcherRequest( phrase_matcher=phrase_matcher, ) # Make the request response = await client.update_phrase_matcher(request=request) # Handle the response print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.UpdatePhraseMatcherRequest, dict]]) – The request object. The request to update a phrase matcher.
phrase_matcher (
google.cloud.contact_center_insights_v1.types.PhraseMatcher
) –Required. The new values for the phrase matcher.
This corresponds to the
phrase_matcher
field on therequest
instance; ifrequest
is provided, this should not be set.update_mask (
google.protobuf.field_mask_pb2.FieldMask
) – The list of fields to be updated. This corresponds to theupdate_mask
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
The phrase matcher resource.
- Return type
- async update_qa_question(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.UpdateQaQuestionRequest, dict]] = None, *, qa_question: Optional[google.cloud.contact_center_insights_v1.types.resources.QaQuestion] = None, update_mask: Optional[google.protobuf.field_mask_pb2.FieldMask] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.QaQuestion [source]¶
Updates a QaQuestion.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_update_qa_question(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.UpdateQaQuestionRequest( ) # Make the request response = await client.update_qa_question(request=request) # Handle the response print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.UpdateQaQuestionRequest, dict]]) – The request object. The request for updating a QaQuestion.
qa_question (
google.cloud.contact_center_insights_v1.types.QaQuestion
) – Required. The QaQuestion to update. This corresponds to theqa_question
field on therequest
instance; ifrequest
is provided, this should not be set.update_mask (
google.protobuf.field_mask_pb2.FieldMask
) –Required. The list of fields to be updated. All possible fields can be updated by passing
*
, or a subset of the following updateable fields can be provided:abbreviation
answer_choices
answer_instructions
order
question_body
tags
This corresponds to the
update_mask
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
A single question to be scored by the Insights QA feature.
- Return type
- async update_qa_scorecard(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.UpdateQaScorecardRequest, dict]] = None, *, qa_scorecard: Optional[google.cloud.contact_center_insights_v1.types.resources.QaScorecard] = None, update_mask: Optional[google.protobuf.field_mask_pb2.FieldMask] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.QaScorecard [source]¶
Updates a QaScorecard.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_update_qa_scorecard(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.UpdateQaScorecardRequest( ) # Make the request response = await client.update_qa_scorecard(request=request) # Handle the response print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.UpdateQaScorecardRequest, dict]]) – The request object. The request for updating a QaScorecard.
qa_scorecard (
google.cloud.contact_center_insights_v1.types.QaScorecard
) – Required. The QaScorecard to update. This corresponds to theqa_scorecard
field on therequest
instance; ifrequest
is provided, this should not be set.update_mask (
google.protobuf.field_mask_pb2.FieldMask
) –Required. The list of fields to be updated. All possible fields can be updated by passing
*
, or a subset of the following updateable fields can be provided:description
display_name
This corresponds to the
update_mask
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
A QaScorecard represents a collection of questions to be scored during analysis.
- Return type
- async update_settings(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.UpdateSettingsRequest, dict]] = None, *, settings: Optional[google.cloud.contact_center_insights_v1.types.resources.Settings] = None, update_mask: Optional[google.protobuf.field_mask_pb2.FieldMask] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.Settings [source]¶
Updates project-level settings.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_update_settings(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.UpdateSettingsRequest( ) # Make the request response = await client.update_settings(request=request) # Handle the response print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.UpdateSettingsRequest, dict]]) – The request object. The request to update project-level settings.
settings (
google.cloud.contact_center_insights_v1.types.Settings
) – Required. The new settings values. This corresponds to thesettings
field on therequest
instance; ifrequest
is provided, this should not be set.update_mask (
google.protobuf.field_mask_pb2.FieldMask
) –Required. The list of fields to be updated.
This corresponds to the
update_mask
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
- The CCAI Insights project wide settings.
Use these settings to configure the behavior of Insights. View these settings with [getsettings](https://cloud.google.com/contact-center/insights/docs/reference/rest/v1/projects.locations/getSettings) and change the settings with [updateSettings](https://cloud.google.com/contact-center/insights/docs/reference/rest/v1/projects.locations/updateSettings).
- Return type
- async update_view(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.UpdateViewRequest, dict]] = None, *, view: Optional[google.cloud.contact_center_insights_v1.types.resources.View] = None, update_mask: Optional[google.protobuf.field_mask_pb2.FieldMask] = None, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.View [source]¶
Updates a view.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_update_view(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.UpdateViewRequest( ) # Make the request response = await client.update_view(request=request) # Handle the response print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.UpdateViewRequest, dict]]) – The request object. The request to update a view.
view (
google.cloud.contact_center_insights_v1.types.View
) – Required. The new view. This corresponds to theview
field on therequest
instance; ifrequest
is provided, this should not be set.update_mask (
google.protobuf.field_mask_pb2.FieldMask
) – The list of fields to be updated. This corresponds to theupdate_mask
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
The View resource.
- Return type
- async upload_conversation(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.UploadConversationRequest, dict]] = None, *, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.api_core.operation_async.AsyncOperation [source]¶
Create a long-running conversation upload operation. This method differs from
CreateConversation
by allowing audio transcription and optional DLP redaction.# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 async def sample_upload_conversation(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsAsyncClient() # Initialize request argument(s) request = contact_center_insights_v1.UploadConversationRequest( parent="parent_value", ) # Make the request operation = client.upload_conversation(request=request) print("Waiting for operation to complete...") response = (await operation).result() # Handle the response print(response)
- Parameters
request (Optional[Union[google.cloud.contact_center_insights_v1.types.UploadConversationRequest, dict]]) – The request object. Request to upload a conversation.
retry (google.api_core.retry_async.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
An object representing a long-running operation.
The result type for the operation will be
google.cloud.contact_center_insights_v1.types.Conversation
The conversation resource.- Return type
- class google.cloud.contact_center_insights_v1.services.contact_center_insights.ContactCenterInsightsClient(*, credentials: typing.Optional[google.auth.credentials.Credentials] = None, transport: typing.Optional[typing.Union[str, google.cloud.contact_center_insights_v1.services.contact_center_insights.transports.base.ContactCenterInsightsTransport, typing.Callable[[...], google.cloud.contact_center_insights_v1.services.contact_center_insights.transports.base.ContactCenterInsightsTransport]]] = None, client_options: typing.Optional[typing.Union[google.api_core.client_options.ClientOptions, dict]] = None, client_info: google.api_core.gapic_v1.client_info.ClientInfo = <google.api_core.gapic_v1.client_info.ClientInfo object>)[source]¶
An API that lets users analyze and explore their business conversation data.
Instantiates the contact center insights client.
- Parameters
credentials (Optional[google.auth.credentials.Credentials]) – The authorization credentials to attach to requests. These credentials identify the application to the service; if none are specified, the client will attempt to ascertain the credentials from the environment.
transport (Optional[Union[str,ContactCenterInsightsTransport,Callable[..., ContactCenterInsightsTransport]]]) – The transport to use, or a Callable that constructs and returns a new transport. If a Callable is given, it will be called with the same set of initialization arguments as used in the ContactCenterInsightsTransport constructor. If set to None, a transport is chosen automatically.
client_options (Optional[Union[google.api_core.client_options.ClientOptions, dict]]) –
Custom options for the client.
1. The
api_endpoint
property can be used to override the default endpoint provided by the client whentransport
is not explicitly provided. Only if this property is not set andtransport
was not explicitly provided, the endpoint is determined by the GOOGLE_API_USE_MTLS_ENDPOINT environment variable, which have one of the following values: “always” (always use the default mTLS endpoint), “never” (always use the default regular endpoint) and “auto” (auto-switch to the default mTLS endpoint if client certificate is present; this is the default value).2. If the GOOGLE_API_USE_CLIENT_CERTIFICATE environment variable is “true”, then the
client_cert_source
property can be used to provide a client certificate for mTLS transport. If not provided, the default SSL client certificate will be used if present. If GOOGLE_API_USE_CLIENT_CERTIFICATE is “false” or not set, no client certificate will be used.3. The
universe_domain
property can be used to override the default “googleapis.com” universe. Note that theapi_endpoint
property still takes precedence; anduniverse_domain
is currently not supported for mTLS.client_info (google.api_core.gapic_v1.client_info.ClientInfo) – The client info used to send a user-agent string along with API requests. If
None
, then default info will be used. Generally, you only need to set this if you’re developing your own client library.
- Raises
google.auth.exceptions.MutualTLSChannelError – If mutual TLS transport creation failed for any reason.
- __exit__(type, value, traceback)[source]¶
Releases underlying transport’s resources.
Warning
ONLY use as a context manager if the transport is NOT shared with other clients! Exiting the with block will CLOSE the transport and may cause errors in other clients!
- static analysis_path(project: str, location: str, conversation: str, analysis: str) str [source]¶
Returns a fully-qualified analysis string.
- static analysis_rule_path(project: str, location: str, analysis_rule: str) str [source]¶
Returns a fully-qualified analysis_rule string.
- property api_endpoint¶
Return the API endpoint used by the client instance.
- Returns
The API endpoint used by the client instance.
- Return type
- bulk_analyze_conversations(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.BulkAnalyzeConversationsRequest, dict]] = None, *, parent: Optional[str] = None, filter: Optional[str] = None, analysis_percentage: Optional[float] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.api_core.operation.Operation [source]¶
Analyzes multiple conversations in a single request.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_bulk_analyze_conversations(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.BulkAnalyzeConversationsRequest( parent="parent_value", filter="filter_value", analysis_percentage=0.20170000000000002, ) # Make the request operation = client.bulk_analyze_conversations(request=request) print("Waiting for operation to complete...") response = operation.result() # Handle the response print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.BulkAnalyzeConversationsRequest, dict]) – The request object. The request to analyze conversations in bulk.
parent (str) –
Required. The parent resource to create analyses in.
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.filter (str) –
Required. Filter used to select the subset of conversations to analyze.
This corresponds to the
filter
field on therequest
instance; ifrequest
is provided, this should not be set.analysis_percentage (float) –
Required. Percentage of selected conversation to analyze, between [0, 100].
This corresponds to the
analysis_percentage
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
An object representing a long-running operation.
The result type for the operation will be
google.cloud.contact_center_insights_v1.types.BulkAnalyzeConversationsResponse
The response for a bulk analyze conversations operation.- Return type
- bulk_delete_conversations(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.BulkDeleteConversationsRequest, dict]] = None, *, parent: Optional[str] = None, filter: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.api_core.operation.Operation [source]¶
Deletes multiple conversations in a single request.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_bulk_delete_conversations(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.BulkDeleteConversationsRequest( parent="parent_value", ) # Make the request operation = client.bulk_delete_conversations(request=request) print("Waiting for operation to complete...") response = operation.result() # Handle the response print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.BulkDeleteConversationsRequest, dict]) – The request object. The request to delete conversations in bulk.
parent (str) –
Required. The parent resource to delete conversations from. Format:
projects/{project}/locations/{location}
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.filter (str) –
Filter used to select the subset of conversations to delete.
This corresponds to the
filter
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
An object representing a long-running operation.
The result type for the operation will be
google.cloud.contact_center_insights_v1.types.BulkDeleteConversationsResponse
The response for a bulk delete conversations operation.- Return type
- bulk_download_feedback_labels(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.BulkDownloadFeedbackLabelsRequest, dict]] = None, *, parent: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.api_core.operation.Operation [source]¶
Download feedback labels in bulk.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_bulk_download_feedback_labels(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) gcs_destination = contact_center_insights_v1.GcsDestination() gcs_destination.format_ = "JSON" gcs_destination.object_uri = "object_uri_value" request = contact_center_insights_v1.BulkDownloadFeedbackLabelsRequest( gcs_destination=gcs_destination, parent="parent_value", ) # Make the request operation = client.bulk_download_feedback_labels(request=request) print("Waiting for operation to complete...") response = operation.result() # Handle the response print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.BulkDownloadFeedbackLabelsRequest, dict]) – The request object. Request for the BulkDownloadFeedbackLabel endpoint.
parent (str) –
Required. The parent resource for new feedback labels.
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
An object representing a long-running operation.
The result type for the operation will be
google.cloud.contact_center_insights_v1.types.BulkDownloadFeedbackLabelsResponse
Response for the BulkDownloadFeedbackLabel endpoint.- Return type
- bulk_upload_feedback_labels(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.BulkUploadFeedbackLabelsRequest, dict]] = None, *, parent: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.api_core.operation.Operation [source]¶
Upload feedback labels in bulk.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_bulk_upload_feedback_labels(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) gcs_source = contact_center_insights_v1.GcsSource() gcs_source.format_ = "JSON" gcs_source.object_uri = "object_uri_value" request = contact_center_insights_v1.BulkUploadFeedbackLabelsRequest( gcs_source=gcs_source, parent="parent_value", ) # Make the request operation = client.bulk_upload_feedback_labels(request=request) print("Waiting for operation to complete...") response = operation.result() # Handle the response print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.BulkUploadFeedbackLabelsRequest, dict]) – The request object. The request for bulk uploading feedback labels.
parent (str) –
Required. The parent resource for new feedback labels.
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
An object representing a long-running operation.
The result type for the operation will be
google.cloud.contact_center_insights_v1.types.BulkUploadFeedbackLabelsResponse
Response for the Bulk Upload Feedback Labels API.- Return type
- calculate_issue_model_stats(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.CalculateIssueModelStatsRequest, dict]] = None, *, issue_model: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.contact_center_insights.CalculateIssueModelStatsResponse [source]¶
Gets an issue model’s statistics.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_calculate_issue_model_stats(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.CalculateIssueModelStatsRequest( issue_model="issue_model_value", ) # Make the request response = client.calculate_issue_model_stats(request=request) # Handle the response print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.CalculateIssueModelStatsRequest, dict]) – The request object. Request to get statistics of an issue model.
issue_model (str) –
Required. The resource name of the issue model to query against.
This corresponds to the
issue_model
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
Response of querying an issue model’s statistics.
- Return type
google.cloud.contact_center_insights_v1.types.CalculateIssueModelStatsResponse
- calculate_stats(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.CalculateStatsRequest, dict]] = None, *, location: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.contact_center_insights.CalculateStatsResponse [source]¶
Gets conversation statistics.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_calculate_stats(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.CalculateStatsRequest( location="location_value", ) # Make the request response = client.calculate_stats(request=request) # Handle the response print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.CalculateStatsRequest, dict]) – The request object. The request for calculating conversation statistics.
location (str) –
Required. The location of the conversations.
This corresponds to the
location
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
The response for calculating conversation statistics.
- Return type
google.cloud.contact_center_insights_v1.types.CalculateStatsResponse
- cancel_operation(request: Optional[google.longrunning.operations_pb2.CancelOperationRequest] = None, *, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) None [source]¶
Starts asynchronous cancellation on a long-running operation.
The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn’t support this method, it returns google.rpc.Code.UNIMPLEMENTED.
- Parameters
request (
CancelOperationRequest
) – The request object. Request message for CancelOperation method.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
None
- static common_billing_account_path(billing_account: str) str [source]¶
Returns a fully-qualified billing_account string.
- static common_location_path(project: str, location: str) str [source]¶
Returns a fully-qualified location string.
- static common_organization_path(organization: str) str [source]¶
Returns a fully-qualified organization string.
- static conversation_path(project: str, location: str, conversation: str) str [source]¶
Returns a fully-qualified conversation string.
- static conversation_profile_path(project: str, location: str, conversation_profile: str) str [source]¶
Returns a fully-qualified conversation_profile string.
- create_analysis(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.CreateAnalysisRequest, dict]] = None, *, parent: Optional[str] = None, analysis: Optional[google.cloud.contact_center_insights_v1.types.resources.Analysis] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.api_core.operation.Operation [source]¶
Creates an analysis. The long running operation is done when the analysis has completed.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_create_analysis(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.CreateAnalysisRequest( parent="parent_value", ) # Make the request operation = client.create_analysis(request=request) print("Waiting for operation to complete...") response = operation.result() # Handle the response print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.CreateAnalysisRequest, dict]) – The request object. The request to create an analysis.
parent (str) –
Required. The parent resource of the analysis.
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.analysis (google.cloud.contact_center_insights_v1.types.Analysis) – Required. The analysis to create. This corresponds to the
analysis
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
An object representing a long-running operation.
The result type for the operation will be
google.cloud.contact_center_insights_v1.types.Analysis
The analysis resource.- Return type
- create_analysis_rule(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.CreateAnalysisRuleRequest, dict]] = None, *, parent: Optional[str] = None, analysis_rule: Optional[google.cloud.contact_center_insights_v1.types.resources.AnalysisRule] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.AnalysisRule [source]¶
Creates a analysis rule.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_create_analysis_rule(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.CreateAnalysisRuleRequest( parent="parent_value", ) # Make the request response = client.create_analysis_rule(request=request) # Handle the response print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.CreateAnalysisRuleRequest, dict]) – The request object. The request to create a analysis rule. analysis_rule_id will be generated by the server.
parent (str) –
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>
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.analysis_rule (google.cloud.contact_center_insights_v1.types.AnalysisRule) –
Required. The analysis rule resource to create.
This corresponds to the
analysis_rule
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
The CCAI Insights project wide analysis rule. This rule will be applied to all conversations that match the filter defined in the rule. For a conversation matches the filter, the annotators specified in the rule will be run. If a conversation matches multiple rules, a union of all the annotators will be run. One project can have multiple analysis rules.
- Return type
- create_conversation(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.CreateConversationRequest, dict]] = None, *, parent: Optional[str] = None, conversation: Optional[google.cloud.contact_center_insights_v1.types.resources.Conversation] = None, conversation_id: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.Conversation [source]¶
Creates a conversation. Note that this method does not support audio transcription or redaction. Use
conversations.upload
instead.# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_create_conversation(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.CreateConversationRequest( parent="parent_value", ) # Make the request response = client.create_conversation(request=request) # Handle the response print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.CreateConversationRequest, dict]) – The request object. Request to create a conversation.
parent (str) –
Required. The parent resource of the conversation.
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.conversation (google.cloud.contact_center_insights_v1.types.Conversation) –
Required. The conversation resource to create.
This corresponds to the
conversation
field on therequest
instance; ifrequest
is provided, this should not be set.conversation_id (str) –
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]-
This corresponds to the
conversation_id
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
The conversation resource.
- Return type
- create_feedback_label(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.CreateFeedbackLabelRequest, dict]] = None, *, parent: Optional[str] = None, feedback_label: Optional[google.cloud.contact_center_insights_v1.types.resources.FeedbackLabel] = None, feedback_label_id: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.FeedbackLabel [source]¶
Create feedback label.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_create_feedback_label(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) feedback_label = contact_center_insights_v1.FeedbackLabel() feedback_label.label = "label_value" request = contact_center_insights_v1.CreateFeedbackLabelRequest( parent="parent_value", feedback_label=feedback_label, ) # Make the request response = client.create_feedback_label(request=request) # Handle the response print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.CreateFeedbackLabelRequest, dict]) – The request object. The request for creating a feedback label.
parent (str) –
Required. The parent resource of the feedback label.
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.feedback_label (google.cloud.contact_center_insights_v1.types.FeedbackLabel) –
Required. The feedback label to create.
This corresponds to the
feedback_label
field on therequest
instance; ifrequest
is provided, this should not be set.feedback_label_id (str) –
Optional. The ID of the feedback label to create. If one is not specified it will be generated by the server.
This corresponds to the
feedback_label_id
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
Represents a conversation, resource, and label provided by the user.
- Return type
- create_issue_model(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.CreateIssueModelRequest, dict]] = None, *, parent: Optional[str] = None, issue_model: Optional[google.cloud.contact_center_insights_v1.types.resources.IssueModel] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.api_core.operation.Operation [source]¶
Creates an issue model.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_create_issue_model(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.CreateIssueModelRequest( parent="parent_value", ) # Make the request operation = client.create_issue_model(request=request) print("Waiting for operation to complete...") response = operation.result() # Handle the response print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.CreateIssueModelRequest, dict]) – The request object. The request to create an issue model.
parent (str) –
Required. The parent resource of the issue model.
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.issue_model (google.cloud.contact_center_insights_v1.types.IssueModel) – Required. The issue model to create. This corresponds to the
issue_model
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
An object representing a long-running operation.
The result type for the operation will be
google.cloud.contact_center_insights_v1.types.IssueModel
The issue model resource.- Return type
- create_phrase_matcher(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.CreatePhraseMatcherRequest, dict]] = None, *, parent: Optional[str] = None, phrase_matcher: Optional[google.cloud.contact_center_insights_v1.types.resources.PhraseMatcher] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.PhraseMatcher [source]¶
Creates a phrase matcher.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_create_phrase_matcher(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) phrase_matcher = contact_center_insights_v1.PhraseMatcher() phrase_matcher.type_ = "ANY_OF" request = contact_center_insights_v1.CreatePhraseMatcherRequest( parent="parent_value", phrase_matcher=phrase_matcher, ) # Make the request response = client.create_phrase_matcher(request=request) # Handle the response print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.CreatePhraseMatcherRequest, dict]) – The request object. Request to create a phrase matcher.
parent (str) –
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>
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.phrase_matcher (google.cloud.contact_center_insights_v1.types.PhraseMatcher) –
Required. The phrase matcher resource to create.
This corresponds to the
phrase_matcher
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
The phrase matcher resource.
- Return type
- create_qa_question(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.CreateQaQuestionRequest, dict]] = None, *, parent: Optional[str] = None, qa_question: Optional[google.cloud.contact_center_insights_v1.types.resources.QaQuestion] = None, qa_question_id: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.QaQuestion [source]¶
Create a QaQuestion.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_create_qa_question(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.CreateQaQuestionRequest( parent="parent_value", ) # Make the request response = client.create_qa_question(request=request) # Handle the response print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.CreateQaQuestionRequest, dict]) – The request object. The request for creating a QaQuestion.
parent (str) –
Required. The parent resource of the QaQuestion.
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.qa_question (google.cloud.contact_center_insights_v1.types.QaQuestion) – Required. The QaQuestion to create. This corresponds to the
qa_question
field on therequest
instance; ifrequest
is provided, this should not be set.qa_question_id (str) –
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]-
.This corresponds to the
qa_question_id
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
A single question to be scored by the Insights QA feature.
- Return type
- create_qa_scorecard(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.CreateQaScorecardRequest, dict]] = None, *, parent: Optional[str] = None, qa_scorecard: Optional[google.cloud.contact_center_insights_v1.types.resources.QaScorecard] = None, qa_scorecard_id: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.QaScorecard [source]¶
Create a QaScorecard.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_create_qa_scorecard(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.CreateQaScorecardRequest( parent="parent_value", ) # Make the request response = client.create_qa_scorecard(request=request) # Handle the response print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.CreateQaScorecardRequest, dict]) – The request object. The request for creating a QaScorecard.
parent (str) –
Required. The parent resource of the QaScorecard.
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.qa_scorecard (google.cloud.contact_center_insights_v1.types.QaScorecard) – Required. The QaScorecard to create. This corresponds to the
qa_scorecard
field on therequest
instance; ifrequest
is provided, this should not be set.qa_scorecard_id (str) –
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]-
.This corresponds to the
qa_scorecard_id
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
A QaScorecard represents a collection of questions to be scored during analysis.
- Return type
- create_qa_scorecard_revision(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.CreateQaScorecardRevisionRequest, dict]] = None, *, parent: Optional[str] = None, qa_scorecard_revision: Optional[google.cloud.contact_center_insights_v1.types.resources.QaScorecardRevision] = None, qa_scorecard_revision_id: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.QaScorecardRevision [source]¶
Creates a QaScorecardRevision.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_create_qa_scorecard_revision(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.CreateQaScorecardRevisionRequest( parent="parent_value", ) # Make the request response = client.create_qa_scorecard_revision(request=request) # Handle the response print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.CreateQaScorecardRevisionRequest, dict]) – The request object. The request for creating a QaScorecardRevision.
parent (str) –
Required. The parent resource of the QaScorecardRevision.
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.qa_scorecard_revision (google.cloud.contact_center_insights_v1.types.QaScorecardRevision) –
Required. The QaScorecardRevision to create.
This corresponds to the
qa_scorecard_revision
field on therequest
instance; ifrequest
is provided, this should not be set.qa_scorecard_revision_id (str) –
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]-
.This corresponds to the
qa_scorecard_revision_id
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
A revision of a QaScorecard.
Modifying published scorecard fields would invalidate existing scorecard results — the questions may have changed, or the score weighting will make existing scores impossible to understand. So changes must create a new revision, rather than modifying the existing resource.
- Return type
google.cloud.contact_center_insights_v1.types.QaScorecardRevision
- create_view(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.CreateViewRequest, dict]] = None, *, parent: Optional[str] = None, view: Optional[google.cloud.contact_center_insights_v1.types.resources.View] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.View [source]¶
Creates a view.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_create_view(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.CreateViewRequest( parent="parent_value", ) # Make the request response = client.create_view(request=request) # Handle the response print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.CreateViewRequest, dict]) – The request object. The request to create a view.
parent (str) –
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>
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.view (google.cloud.contact_center_insights_v1.types.View) –
Required. The view resource to create.
This corresponds to the
view
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
The View resource.
- Return type
- delete_analysis(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.DeleteAnalysisRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) None [source]¶
Deletes an analysis.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_delete_analysis(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.DeleteAnalysisRequest( name="name_value", ) # Make the request client.delete_analysis(request=request)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.DeleteAnalysisRequest, dict]) – The request object. The request to delete an analysis.
name (str) –
Required. The name of the analysis to delete.
This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- delete_analysis_rule(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.DeleteAnalysisRuleRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) None [source]¶
Deletes a analysis rule.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_delete_analysis_rule(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.DeleteAnalysisRuleRequest( name="name_value", ) # Make the request client.delete_analysis_rule(request=request)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.DeleteAnalysisRuleRequest, dict]) – The request object. The request to delete a analysis rule.
name (str) –
Required. The name of the analysis rule to delete.
This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- delete_conversation(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.DeleteConversationRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) None [source]¶
Deletes a conversation.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_delete_conversation(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.DeleteConversationRequest( name="name_value", ) # Make the request client.delete_conversation(request=request)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.DeleteConversationRequest, dict]) – The request object. The request to delete a conversation.
name (str) –
Required. The name of the conversation to delete.
This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- delete_feedback_label(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.DeleteFeedbackLabelRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) None [source]¶
Delete feedback label.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_delete_feedback_label(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.DeleteFeedbackLabelRequest( name="name_value", ) # Make the request client.delete_feedback_label(request=request)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.DeleteFeedbackLabelRequest, dict]) – The request object. The request for deleting a feedback label.
name (str) –
Required. The name of the feedback label to delete.
This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- delete_issue(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.DeleteIssueRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) None [source]¶
Deletes an issue.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_delete_issue(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.DeleteIssueRequest( name="name_value", ) # Make the request client.delete_issue(request=request)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.DeleteIssueRequest, dict]) – The request object. The request to delete an issue.
name (str) –
Required. The name of the issue to delete.
This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- delete_issue_model(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.DeleteIssueModelRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.api_core.operation.Operation [source]¶
Deletes an issue model.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_delete_issue_model(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.DeleteIssueModelRequest( name="name_value", ) # Make the request operation = client.delete_issue_model(request=request) print("Waiting for operation to complete...") response = operation.result() # Handle the response print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.DeleteIssueModelRequest, dict]) – The request object. The request to delete an issue model.
name (str) –
Required. The name of the issue model to delete.
This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
An object representing a long-running operation.
- The result type for the operation will be
google.protobuf.empty_pb2.Empty
A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance:
- service Foo {
rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
}
- The result type for the operation will be
- Return type
- delete_phrase_matcher(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.DeletePhraseMatcherRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) None [source]¶
Deletes a phrase matcher.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_delete_phrase_matcher(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.DeletePhraseMatcherRequest( name="name_value", ) # Make the request client.delete_phrase_matcher(request=request)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.DeletePhraseMatcherRequest, dict]) – The request object. The request to delete a phrase matcher.
name (str) –
Required. The name of the phrase matcher to delete.
This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- delete_qa_question(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.DeleteQaQuestionRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) None [source]¶
Deletes a QaQuestion.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_delete_qa_question(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.DeleteQaQuestionRequest( name="name_value", ) # Make the request client.delete_qa_question(request=request)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.DeleteQaQuestionRequest, dict]) – The request object. The request for deleting a QaQuestion.
name (str) –
Required. The name of the QaQuestion to delete.
This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- delete_qa_scorecard(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.DeleteQaScorecardRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) None [source]¶
Deletes a QaScorecard.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_delete_qa_scorecard(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.DeleteQaScorecardRequest( name="name_value", ) # Make the request client.delete_qa_scorecard(request=request)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.DeleteQaScorecardRequest, dict]) – The request object. The request for deleting a QaScorecard.
name (str) –
Required. The name of the QaScorecard to delete.
This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- delete_qa_scorecard_revision(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.DeleteQaScorecardRevisionRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) None [source]¶
Deletes a QaScorecardRevision.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_delete_qa_scorecard_revision(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.DeleteQaScorecardRevisionRequest( name="name_value", ) # Make the request client.delete_qa_scorecard_revision(request=request)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.DeleteQaScorecardRevisionRequest, dict]) – The request object. The request to delete a QaScorecardRevision.
name (str) –
Required. The name of the QaScorecardRevision to delete.
This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- delete_view(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.DeleteViewRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) None [source]¶
Deletes a view.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_delete_view(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.DeleteViewRequest( name="name_value", ) # Make the request client.delete_view(request=request)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.DeleteViewRequest, dict]) – The request object. The request to delete a view.
name (str) –
Required. The name of the view to delete.
This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- deploy_issue_model(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.DeployIssueModelRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.api_core.operation.Operation [source]¶
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.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_deploy_issue_model(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.DeployIssueModelRequest( name="name_value", ) # Make the request operation = client.deploy_issue_model(request=request) print("Waiting for operation to complete...") response = operation.result() # Handle the response print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.DeployIssueModelRequest, dict]) – The request object. The request to deploy an issue model.
name (str) – Required. The issue model to deploy. This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
An object representing a long-running operation.
The result type for the operation will be
google.cloud.contact_center_insights_v1.types.DeployIssueModelResponse
The response to deploy an issue model.- Return type
- deploy_qa_scorecard_revision(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.DeployQaScorecardRevisionRequest, dict]] = None, *, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.QaScorecardRevision [source]¶
Deploy a QaScorecardRevision.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_deploy_qa_scorecard_revision(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.DeployQaScorecardRevisionRequest( name="name_value", ) # Make the request response = client.deploy_qa_scorecard_revision(request=request) # Handle the response print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.DeployQaScorecardRevisionRequest, dict]) – The request object. The request to deploy a QaScorecardRevision
retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
A revision of a QaScorecard.
Modifying published scorecard fields would invalidate existing scorecard results — the questions may have changed, or the score weighting will make existing scores impossible to understand. So changes must create a new revision, rather than modifying the existing resource.
- Return type
google.cloud.contact_center_insights_v1.types.QaScorecardRevision
- static encryption_spec_path(project: str, location: str) str [source]¶
Returns a fully-qualified encryption_spec string.
- export_insights_data(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.ExportInsightsDataRequest, dict]] = None, *, parent: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.api_core.operation.Operation [source]¶
Export insights data to a destination defined in the request body.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_export_insights_data(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) big_query_destination = contact_center_insights_v1.BigQueryDestination() big_query_destination.dataset = "dataset_value" request = contact_center_insights_v1.ExportInsightsDataRequest( big_query_destination=big_query_destination, parent="parent_value", ) # Make the request operation = client.export_insights_data(request=request) print("Waiting for operation to complete...") response = operation.result() # Handle the response print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.ExportInsightsDataRequest, dict]) – The request object. The request to export insights.
parent (str) –
Required. The parent resource to export data from.
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
An object representing a long-running operation.
The result type for the operation will be
google.cloud.contact_center_insights_v1.types.ExportInsightsDataResponse
Response for an export insights operation.- Return type
- export_issue_model(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.ExportIssueModelRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.api_core.operation.Operation [source]¶
Exports an issue model to the provided destination.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_export_issue_model(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) gcs_destination = contact_center_insights_v1.GcsDestination() gcs_destination.object_uri = "object_uri_value" request = contact_center_insights_v1.ExportIssueModelRequest( gcs_destination=gcs_destination, name="name_value", ) # Make the request operation = client.export_issue_model(request=request) print("Waiting for operation to complete...") response = operation.result() # Handle the response print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.ExportIssueModelRequest, dict]) – The request object. Request to export an issue model.
name (str) – Required. The issue model to export. This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
An object representing a long-running operation.
The result type for the operation will be
google.cloud.contact_center_insights_v1.types.ExportIssueModelResponse
Response from export issue model- Return type
- static feedback_label_path(project: str, location: str, conversation: str, feedback_label: str) str [source]¶
Returns a fully-qualified feedback_label string.
- classmethod from_service_account_file(filename: str, *args, **kwargs)[source]¶
- Creates an instance of this client using the provided credentials
file.
- Parameters
filename (str) – The path to the service account private key json file.
args – Additional arguments to pass to the constructor.
kwargs – Additional arguments to pass to the constructor.
- Returns
The constructed client.
- Return type
- classmethod from_service_account_info(info: dict, *args, **kwargs)[source]¶
- Creates an instance of this client using the provided credentials
info.
- Parameters
info (dict) – The service account private key info.
args – Additional arguments to pass to the constructor.
kwargs – Additional arguments to pass to the constructor.
- Returns
The constructed client.
- Return type
- classmethod from_service_account_json(filename: str, *args, **kwargs)¶
- Creates an instance of this client using the provided credentials
file.
- Parameters
filename (str) – The path to the service account private key json file.
args – Additional arguments to pass to the constructor.
kwargs – Additional arguments to pass to the constructor.
- Returns
The constructed client.
- Return type
- get_analysis(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.GetAnalysisRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.Analysis [source]¶
Gets an analysis.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_get_analysis(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.GetAnalysisRequest( name="name_value", ) # Make the request response = client.get_analysis(request=request) # Handle the response print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.GetAnalysisRequest, dict]) – The request object. The request to get an analysis.
name (str) –
Required. The name of the analysis to get.
This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
The analysis resource.
- Return type
- get_analysis_rule(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.GetAnalysisRuleRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.AnalysisRule [source]¶
Get a analysis rule.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_get_analysis_rule(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.GetAnalysisRuleRequest( name="name_value", ) # Make the request response = client.get_analysis_rule(request=request) # Handle the response print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.GetAnalysisRuleRequest, dict]) – The request object. The request for getting a analysis rule.
name (str) –
Required. The name of the AnalysisRule to get.
This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
The CCAI Insights project wide analysis rule. This rule will be applied to all conversations that match the filter defined in the rule. For a conversation matches the filter, the annotators specified in the rule will be run. If a conversation matches multiple rules, a union of all the annotators will be run. One project can have multiple analysis rules.
- Return type
- get_conversation(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.GetConversationRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.Conversation [source]¶
Gets a conversation.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_get_conversation(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.GetConversationRequest( name="name_value", ) # Make the request response = client.get_conversation(request=request) # Handle the response print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.GetConversationRequest, dict]) – The request object. The request to get a conversation.
name (str) –
Required. The name of the conversation to get.
This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
The conversation resource.
- Return type
- get_encryption_spec(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.GetEncryptionSpecRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.EncryptionSpec [source]¶
Gets location-level encryption key specification.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_get_encryption_spec(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.GetEncryptionSpecRequest( name="name_value", ) # Make the request response = client.get_encryption_spec(request=request) # Handle the response print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.GetEncryptionSpecRequest, dict]) – The request object. The request to get location-level encryption specification.
name (str) –
Required. The name of the encryption spec resource to get.
This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
- A customer-managed encryption key specification that can be applied to all
created resources (e.g. Conversation).
- Return type
google.cloud.contact_center_insights_v1.types.EncryptionSpec
- get_feedback_label(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.GetFeedbackLabelRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.FeedbackLabel [source]¶
Get feedback label.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_get_feedback_label(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.GetFeedbackLabelRequest( name="name_value", ) # Make the request response = client.get_feedback_label(request=request) # Handle the response print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.GetFeedbackLabelRequest, dict]) – The request object. The request for getting a feedback label.
name (str) –
Required. The name of the feedback label to get.
This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
Represents a conversation, resource, and label provided by the user.
- Return type
- get_issue(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.GetIssueRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.Issue [source]¶
Gets an issue.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_get_issue(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.GetIssueRequest( name="name_value", ) # Make the request response = client.get_issue(request=request) # Handle the response print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.GetIssueRequest, dict]) – The request object. The request to get an issue.
name (str) –
Required. The name of the issue to get.
This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
The issue resource.
- Return type
- get_issue_model(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.GetIssueModelRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.IssueModel [source]¶
Gets an issue model.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_get_issue_model(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.GetIssueModelRequest( name="name_value", ) # Make the request response = client.get_issue_model(request=request) # Handle the response print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.GetIssueModelRequest, dict]) – The request object. The request to get an issue model.
name (str) –
Required. The name of the issue model to get.
This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
The issue model resource.
- Return type
- classmethod get_mtls_endpoint_and_cert_source(client_options: Optional[google.api_core.client_options.ClientOptions] = None)[source]¶
Deprecated. Return the API endpoint and client cert source for mutual TLS.
The client cert source is determined in the following order: (1) if GOOGLE_API_USE_CLIENT_CERTIFICATE environment variable is not “true”, the client cert source is None. (2) if client_options.client_cert_source is provided, use the provided one; if the default client cert source exists, use the default one; otherwise the client cert source is None.
The API endpoint is determined in the following order: (1) if client_options.api_endpoint if provided, use the provided one. (2) if GOOGLE_API_USE_CLIENT_CERTIFICATE environment variable is “always”, use the default mTLS endpoint; if the environment variable is “never”, use the default API endpoint; otherwise if client cert source exists, use the default mTLS endpoint, otherwise use the default API endpoint.
More details can be found at https://google.aip.dev/auth/4114.
- Parameters
client_options (google.api_core.client_options.ClientOptions) – Custom options for the client. Only the api_endpoint and client_cert_source properties may be used in this method.
- Returns
- returns the API endpoint and the
client cert source to use.
- Return type
- Raises
google.auth.exceptions.MutualTLSChannelError – If any errors happen.
- get_operation(request: Optional[google.longrunning.operations_pb2.GetOperationRequest] = None, *, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.longrunning.operations_pb2.Operation [source]¶
Gets the latest state of a long-running operation.
- Parameters
request (
GetOperationRequest
) – The request object. Request message for GetOperation method.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
An
Operation
object.- Return type
Operation
- get_phrase_matcher(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.GetPhraseMatcherRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.PhraseMatcher [source]¶
Gets a phrase matcher.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_get_phrase_matcher(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.GetPhraseMatcherRequest( name="name_value", ) # Make the request response = client.get_phrase_matcher(request=request) # Handle the response print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.GetPhraseMatcherRequest, dict]) – The request object. The request to get a a phrase matcher.
name (str) –
Required. The name of the phrase matcher to get.
This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
The phrase matcher resource.
- Return type
- get_qa_question(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.GetQaQuestionRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.QaQuestion [source]¶
Gets a QaQuestion.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_get_qa_question(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.GetQaQuestionRequest( name="name_value", ) # Make the request response = client.get_qa_question(request=request) # Handle the response print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.GetQaQuestionRequest, dict]) – The request object. The request for a QaQuestion.
name (str) –
Required. The name of the QaQuestion to get.
This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
A single question to be scored by the Insights QA feature.
- Return type
- get_qa_scorecard(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.GetQaScorecardRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.QaScorecard [source]¶
Gets a QaScorecard.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_get_qa_scorecard(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.GetQaScorecardRequest( name="name_value", ) # Make the request response = client.get_qa_scorecard(request=request) # Handle the response print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.GetQaScorecardRequest, dict]) – The request object. The request for a QaScorecard. By default, returns the latest revision.
name (str) –
Required. The name of the QaScorecard to get.
This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
A QaScorecard represents a collection of questions to be scored during analysis.
- Return type
- get_qa_scorecard_revision(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.GetQaScorecardRevisionRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.QaScorecardRevision [source]¶
Gets a QaScorecardRevision.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_get_qa_scorecard_revision(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.GetQaScorecardRevisionRequest( name="name_value", ) # Make the request response = client.get_qa_scorecard_revision(request=request) # Handle the response print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.GetQaScorecardRevisionRequest, dict]) – The request object. The request for a QaScorecardRevision.
name (str) –
Required. The name of the QaScorecardRevision to get.
This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
A revision of a QaScorecard.
Modifying published scorecard fields would invalidate existing scorecard results — the questions may have changed, or the score weighting will make existing scores impossible to understand. So changes must create a new revision, rather than modifying the existing resource.
- Return type
google.cloud.contact_center_insights_v1.types.QaScorecardRevision
- get_settings(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.GetSettingsRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.Settings [source]¶
Gets project-level settings.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_get_settings(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.GetSettingsRequest( name="name_value", ) # Make the request response = client.get_settings(request=request) # Handle the response print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.GetSettingsRequest, dict]) – The request object. The request to get project-level settings.
name (str) –
Required. The name of the settings resource to get.
This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
- The CCAI Insights project wide settings.
Use these settings to configure the behavior of Insights. View these settings with [getsettings](https://cloud.google.com/contact-center/insights/docs/reference/rest/v1/projects.locations/getSettings) and change the settings with [updateSettings](https://cloud.google.com/contact-center/insights/docs/reference/rest/v1/projects.locations/updateSettings).
- Return type
- get_view(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.GetViewRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.View [source]¶
Gets a view.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_get_view(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.GetViewRequest( name="name_value", ) # Make the request response = client.get_view(request=request) # Handle the response print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.GetViewRequest, dict]) – The request object. The request to get a view.
name (str) –
Required. The name of the view to get.
This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
The View resource.
- Return type
- import_issue_model(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.ImportIssueModelRequest, dict]] = None, *, parent: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.api_core.operation.Operation [source]¶
Imports an issue model from a Cloud Storage bucket.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_import_issue_model(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) gcs_source = contact_center_insights_v1.GcsSource() gcs_source.object_uri = "object_uri_value" request = contact_center_insights_v1.ImportIssueModelRequest( gcs_source=gcs_source, parent="parent_value", ) # Make the request operation = client.import_issue_model(request=request) print("Waiting for operation to complete...") response = operation.result() # Handle the response print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.ImportIssueModelRequest, dict]) – The request object. Request to import an issue model.
parent (str) –
Required. The parent resource of the issue model.
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
An object representing a long-running operation.
The result type for the operation will be
google.cloud.contact_center_insights_v1.types.ImportIssueModelResponse
Response from import issue model- Return type
- ingest_conversations(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.IngestConversationsRequest, dict]] = None, *, parent: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.api_core.operation.Operation [source]¶
Imports conversations and processes them according to the user’s configuration.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_ingest_conversations(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) gcs_source = contact_center_insights_v1.GcsSource() gcs_source.bucket_uri = "bucket_uri_value" transcript_object_config = contact_center_insights_v1.TranscriptObjectConfig() transcript_object_config.medium = "CHAT" request = contact_center_insights_v1.IngestConversationsRequest( gcs_source=gcs_source, transcript_object_config=transcript_object_config, parent="parent_value", ) # Make the request operation = client.ingest_conversations(request=request) print("Waiting for operation to complete...") response = operation.result() # Handle the response print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.IngestConversationsRequest, dict]) – The request object. The request to ingest conversations.
parent (str) –
Required. The parent resource for new conversations.
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
An object representing a long-running operation.
The result type for the operation will be
google.cloud.contact_center_insights_v1.types.IngestConversationsResponse
The response to an IngestConversations operation.- Return type
- initialize_encryption_spec(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.InitializeEncryptionSpecRequest, dict]] = None, *, encryption_spec: Optional[google.cloud.contact_center_insights_v1.types.resources.EncryptionSpec] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.api_core.operation.Operation [source]¶
Initializes a location-level encryption key specification. An error will result if the location has resources already created before the initialization. After the encryption specification is initialized at a location, it is immutable and all newly created resources under the location will be encrypted with the existing specification.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_initialize_encryption_spec(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) encryption_spec = contact_center_insights_v1.EncryptionSpec() encryption_spec.kms_key = "kms_key_value" request = contact_center_insights_v1.InitializeEncryptionSpecRequest( encryption_spec=encryption_spec, ) # Make the request operation = client.initialize_encryption_spec(request=request) print("Waiting for operation to complete...") response = operation.result() # Handle the response print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.InitializeEncryptionSpecRequest, dict]) – The request object. The request to initialize a location-level encryption specification.
encryption_spec (google.cloud.contact_center_insights_v1.types.EncryptionSpec) –
Required. The encryption spec used for CMEK encryption. It is required that the kms key is in the same region as the endpoint. The same key will be used for all provisioned resources, if encryption is available. If the
kms_key_name
field is left empty, no encryption will be enforced.This corresponds to the
encryption_spec
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
An object representing a long-running operation.
The result type for the operation will be
google.cloud.contact_center_insights_v1.types.InitializeEncryptionSpecResponse
The response to initialize a location-level encryption specification.- Return type
- static issue_model_path(project: str, location: str, issue_model: str) str [source]¶
Returns a fully-qualified issue_model string.
- static issue_path(project: str, location: str, issue_model: str, issue: str) str [source]¶
Returns a fully-qualified issue string.
- list_all_feedback_labels(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.ListAllFeedbackLabelsRequest, dict]] = None, *, parent: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.services.contact_center_insights.pagers.ListAllFeedbackLabelsPager [source]¶
List all feedback labels by project number.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_list_all_feedback_labels(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.ListAllFeedbackLabelsRequest( parent="parent_value", ) # Make the request page_result = client.list_all_feedback_labels(request=request) # Handle the response for response in page_result: print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.ListAllFeedbackLabelsRequest, dict]) – The request object. The request for listing all feedback labels.
parent (str) –
Required. The parent resource of all feedback labels per project.
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
The response for listing all feedback labels. Iterating over this object will yield results and resolve additional pages automatically.
- Return type
- list_analyses(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.ListAnalysesRequest, dict]] = None, *, parent: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.services.contact_center_insights.pagers.ListAnalysesPager [source]¶
Lists analyses.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_list_analyses(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.ListAnalysesRequest( parent="parent_value", ) # Make the request page_result = client.list_analyses(request=request) # Handle the response for response in page_result: print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.ListAnalysesRequest, dict]) – The request object. The request to list analyses.
parent (str) –
Required. The parent resource of the analyses.
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
The response to list analyses.
Iterating over this object will yield results and resolve additional pages automatically.
- Return type
google.cloud.contact_center_insights_v1.services.contact_center_insights.pagers.ListAnalysesPager
- list_analysis_rules(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.ListAnalysisRulesRequest, dict]] = None, *, parent: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.services.contact_center_insights.pagers.ListAnalysisRulesPager [source]¶
Lists analysis rules.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_list_analysis_rules(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.ListAnalysisRulesRequest( parent="parent_value", ) # Make the request page_result = client.list_analysis_rules(request=request) # Handle the response for response in page_result: print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.ListAnalysisRulesRequest, dict]) – The request object. The request to list analysis rules.
parent (str) –
Required. The parent resource of the analysis rules.
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
The response of listing views.
Iterating over this object will yield results and resolve additional pages automatically.
- Return type
- list_conversations(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.ListConversationsRequest, dict]] = None, *, parent: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.services.contact_center_insights.pagers.ListConversationsPager [source]¶
Lists conversations.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_list_conversations(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.ListConversationsRequest( parent="parent_value", ) # Make the request page_result = client.list_conversations(request=request) # Handle the response for response in page_result: print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.ListConversationsRequest, dict]) – The request object. Request to list conversations.
parent (str) –
Required. The parent resource of the conversation.
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
The response of listing conversations. Iterating over this object will yield results and resolve additional pages automatically.
- Return type
- list_feedback_labels(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.ListFeedbackLabelsRequest, dict]] = None, *, parent: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.services.contact_center_insights.pagers.ListFeedbackLabelsPager [source]¶
List feedback labels.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_list_feedback_labels(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.ListFeedbackLabelsRequest( parent="parent_value", ) # Make the request page_result = client.list_feedback_labels(request=request) # Handle the response for response in page_result: print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.ListFeedbackLabelsRequest, dict]) – The request object. The request for listing feedback labels.
parent (str) –
Required. The parent resource of the feedback labels.
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
The response for listing feedback labels. Iterating over this object will yield results and resolve additional pages automatically.
- Return type
- list_issue_models(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.ListIssueModelsRequest, dict]] = None, *, parent: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.contact_center_insights.ListIssueModelsResponse [source]¶
Lists issue models.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_list_issue_models(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.ListIssueModelsRequest( parent="parent_value", ) # Make the request response = client.list_issue_models(request=request) # Handle the response print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.ListIssueModelsRequest, dict]) – The request object. Request to list issue models.
parent (str) –
Required. The parent resource of the issue model.
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
The response of listing issue models.
- Return type
google.cloud.contact_center_insights_v1.types.ListIssueModelsResponse
- list_issues(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.ListIssuesRequest, dict]] = None, *, parent: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.contact_center_insights.ListIssuesResponse [source]¶
Lists issues.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_list_issues(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.ListIssuesRequest( parent="parent_value", ) # Make the request response = client.list_issues(request=request) # Handle the response print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.ListIssuesRequest, dict]) – The request object. Request to list issues.
parent (str) –
Required. The parent resource of the issue.
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
The response of listing issues.
- Return type
google.cloud.contact_center_insights_v1.types.ListIssuesResponse
- list_operations(request: Optional[google.longrunning.operations_pb2.ListOperationsRequest] = None, *, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.longrunning.operations_pb2.ListOperationsResponse [source]¶
Lists operations that match the specified filter in the request.
- Parameters
request (
ListOperationsRequest
) – The request object. Request message for ListOperations method.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
Response message for
ListOperations
method.- Return type
ListOperationsResponse
- list_phrase_matchers(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.ListPhraseMatchersRequest, dict]] = None, *, parent: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.services.contact_center_insights.pagers.ListPhraseMatchersPager [source]¶
Lists phrase matchers.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_list_phrase_matchers(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.ListPhraseMatchersRequest( parent="parent_value", ) # Make the request page_result = client.list_phrase_matchers(request=request) # Handle the response for response in page_result: print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.ListPhraseMatchersRequest, dict]) – The request object. Request to list phrase matchers.
parent (str) –
Required. The parent resource of the phrase matcher.
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
The response of listing phrase matchers. Iterating over this object will yield results and resolve additional pages automatically.
- Return type
- list_qa_questions(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.ListQaQuestionsRequest, dict]] = None, *, parent: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.services.contact_center_insights.pagers.ListQaQuestionsPager [source]¶
Lists QaQuestions.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_list_qa_questions(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.ListQaQuestionsRequest( parent="parent_value", ) # Make the request page_result = client.list_qa_questions(request=request) # Handle the response for response in page_result: print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.ListQaQuestionsRequest, dict]) – The request object. Request to list QaQuestions.
parent (str) –
Required. The parent resource of the questions.
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
The response from a ListQaQuestions request. Iterating over this object will yield results and resolve additional pages automatically.
- Return type
google.cloud.contact_center_insights_v1.services.contact_center_insights.pagers.ListQaQuestionsPager
- list_qa_scorecard_revisions(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.ListQaScorecardRevisionsRequest, dict]] = None, *, parent: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.services.contact_center_insights.pagers.ListQaScorecardRevisionsPager [source]¶
Lists all revisions under the parent QaScorecard.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_list_qa_scorecard_revisions(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.ListQaScorecardRevisionsRequest( parent="parent_value", ) # Make the request page_result = client.list_qa_scorecard_revisions(request=request) # Handle the response for response in page_result: print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.ListQaScorecardRevisionsRequest, dict]) – The request object. Request to list QaScorecardRevisions
parent (str) –
Required. The parent resource of the scorecard revisions. To list all revisions of all scorecards, substitute the QaScorecard ID with a ‘-’ character.
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
The response from a ListQaScorecardRevisions request. Iterating over this object will yield results and resolve additional pages automatically.
- Return type
- list_qa_scorecards(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.ListQaScorecardsRequest, dict]] = None, *, parent: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.services.contact_center_insights.pagers.ListQaScorecardsPager [source]¶
Lists QaScorecards.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_list_qa_scorecards(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.ListQaScorecardsRequest( parent="parent_value", ) # Make the request page_result = client.list_qa_scorecards(request=request) # Handle the response for response in page_result: print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.ListQaScorecardsRequest, dict]) – The request object. Request to list QaScorecards.
parent (str) –
Required. The parent resource of the scorecards.
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
The response from a ListQaScorecards request. Iterating over this object will yield results and resolve additional pages automatically.
- Return type
- list_views(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.ListViewsRequest, dict]] = None, *, parent: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.services.contact_center_insights.pagers.ListViewsPager [source]¶
Lists views.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_list_views(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.ListViewsRequest( parent="parent_value", ) # Make the request page_result = client.list_views(request=request) # Handle the response for response in page_result: print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.ListViewsRequest, dict]) – The request object. The request to list views.
parent (str) –
Required. The parent resource of the views.
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
The response of listing views.
Iterating over this object will yield results and resolve additional pages automatically.
- Return type
google.cloud.contact_center_insights_v1.services.contact_center_insights.pagers.ListViewsPager
- static parse_analysis_path(path: str) Dict[str, str] [source]¶
Parses a analysis path into its component segments.
- static parse_analysis_rule_path(path: str) Dict[str, str] [source]¶
Parses a analysis_rule path into its component segments.
- static parse_common_billing_account_path(path: str) Dict[str, str] [source]¶
Parse a billing_account path into its component segments.
- static parse_common_folder_path(path: str) Dict[str, str] [source]¶
Parse a folder path into its component segments.
- static parse_common_location_path(path: str) Dict[str, str] [source]¶
Parse a location path into its component segments.
- static parse_common_organization_path(path: str) Dict[str, str] [source]¶
Parse a organization path into its component segments.
- static parse_common_project_path(path: str) Dict[str, str] [source]¶
Parse a project path into its component segments.
- static parse_conversation_path(path: str) Dict[str, str] [source]¶
Parses a conversation path into its component segments.
- static parse_conversation_profile_path(path: str) Dict[str, str] [source]¶
Parses a conversation_profile path into its component segments.
- static parse_encryption_spec_path(path: str) Dict[str, str] [source]¶
Parses a encryption_spec path into its component segments.
- static parse_feedback_label_path(path: str) Dict[str, str] [source]¶
Parses a feedback_label path into its component segments.
- static parse_issue_model_path(path: str) Dict[str, str] [source]¶
Parses a issue_model path into its component segments.
- static parse_issue_path(path: str) Dict[str, str] [source]¶
Parses a issue path into its component segments.
- static parse_participant_path(path: str) Dict[str, str] [source]¶
Parses a participant path into its component segments.
- static parse_phrase_matcher_path(path: str) Dict[str, str] [source]¶
Parses a phrase_matcher path into its component segments.
- static parse_qa_question_path(path: str) Dict[str, str] [source]¶
Parses a qa_question path into its component segments.
- static parse_qa_scorecard_path(path: str) Dict[str, str] [source]¶
Parses a qa_scorecard path into its component segments.
- static parse_qa_scorecard_result_path(path: str) Dict[str, str] [source]¶
Parses a qa_scorecard_result path into its component segments.
- static parse_qa_scorecard_revision_path(path: str) Dict[str, str] [source]¶
Parses a qa_scorecard_revision path into its component segments.
- static parse_recognizer_path(path: str) Dict[str, str] [source]¶
Parses a recognizer path into its component segments.
- static parse_settings_path(path: str) Dict[str, str] [source]¶
Parses a settings path into its component segments.
- static parse_view_path(path: str) Dict[str, str] [source]¶
Parses a view path into its component segments.
- static participant_path(project: str, conversation: str, participant: str) str [source]¶
Returns a fully-qualified participant string.
- static phrase_matcher_path(project: str, location: str, phrase_matcher: str) str [source]¶
Returns a fully-qualified phrase_matcher string.
- static qa_question_path(project: str, location: str, qa_scorecard: str, revision: str, qa_question: str) str [source]¶
Returns a fully-qualified qa_question string.
- static qa_scorecard_path(project: str, location: str, qa_scorecard: str) str [source]¶
Returns a fully-qualified qa_scorecard string.
- static qa_scorecard_result_path(project: str, location: str, qa_scorecard_result: str) str [source]¶
Returns a fully-qualified qa_scorecard_result string.
- static qa_scorecard_revision_path(project: str, location: str, qa_scorecard: str, revision: str) str [source]¶
Returns a fully-qualified qa_scorecard_revision string.
- query_metrics(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.QueryMetricsRequest, dict]] = None, *, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.api_core.operation.Operation [source]¶
Query metrics.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_query_metrics(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.QueryMetricsRequest( location="location_value", filter="filter_value", ) # Make the request operation = client.query_metrics(request=request) print("Waiting for operation to complete...") response = operation.result() # Handle the response print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.QueryMetricsRequest, dict]) – The request object. The request for querying metrics.
retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
An object representing a long-running operation.
The result type for the operation will be
google.cloud.contact_center_insights_v1.types.QueryMetricsResponse
The response for querying metrics.- Return type
- static recognizer_path(project: str, location: str, recognizer: str) str [source]¶
Returns a fully-qualified recognizer string.
- static settings_path(project: str, location: str) str [source]¶
Returns a fully-qualified settings string.
- property transport: google.cloud.contact_center_insights_v1.services.contact_center_insights.transports.base.ContactCenterInsightsTransport¶
Returns the transport used by the client instance.
- Returns
- The transport used by the client
instance.
- Return type
ContactCenterInsightsTransport
- tune_qa_scorecard_revision(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.TuneQaScorecardRevisionRequest, dict]] = None, *, parent: Optional[str] = None, filter: Optional[str] = None, validate_only: Optional[bool] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.api_core.operation.Operation [source]¶
Fine tune one or more QaModels.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_tune_qa_scorecard_revision(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.TuneQaScorecardRevisionRequest( parent="parent_value", filter="filter_value", ) # Make the request operation = client.tune_qa_scorecard_revision(request=request) print("Waiting for operation to complete...") response = operation.result() # Handle the response print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.TuneQaScorecardRevisionRequest, dict]) – The request object. Request for TuneQaScorecardRevision endpoint.
parent (str) –
Required. The parent resource for new fine tuning job instance.
This corresponds to the
parent
field on therequest
instance; ifrequest
is provided, this should not be set.filter (str) –
Required. Filter for selecting the feedback labels that needs to be used for training. This filter can be used to limit the feedback labels used for tuning to a feedback labels created or updated for a specific time-window etc.
This corresponds to the
filter
field on therequest
instance; ifrequest
is provided, this should not be set.validate_only (bool) –
Optional. Run in validate only mode, no fine tuning will actually run. Data quality validations like training data distributions will run. Even when set to false, the data quality validations will still run but once the validations complete we will proceed with the fine tune, if applicable.
This corresponds to the
validate_only
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
An object representing a long-running operation.
The result type for the operation will be
google.cloud.contact_center_insights_v1.types.TuneQaScorecardRevisionResponse
Response for TuneQaScorecardRevision endpoint.- Return type
- undeploy_issue_model(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.UndeployIssueModelRequest, dict]] = None, *, name: Optional[str] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.api_core.operation.Operation [source]¶
Undeploys an issue model. An issue model can not be used in analysis after it has been undeployed.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_undeploy_issue_model(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.UndeployIssueModelRequest( name="name_value", ) # Make the request operation = client.undeploy_issue_model(request=request) print("Waiting for operation to complete...") response = operation.result() # Handle the response print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.UndeployIssueModelRequest, dict]) – The request object. The request to undeploy an issue model.
name (str) –
Required. The issue model to undeploy.
This corresponds to the
name
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
An object representing a long-running operation.
The result type for the operation will be
google.cloud.contact_center_insights_v1.types.UndeployIssueModelResponse
The response to undeploy an issue model.- Return type
- undeploy_qa_scorecard_revision(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.UndeployQaScorecardRevisionRequest, dict]] = None, *, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.QaScorecardRevision [source]¶
Undeploy a QaScorecardRevision.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_undeploy_qa_scorecard_revision(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.UndeployQaScorecardRevisionRequest( name="name_value", ) # Make the request response = client.undeploy_qa_scorecard_revision(request=request) # Handle the response print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.UndeployQaScorecardRevisionRequest, dict]) – The request object. The request to undeploy a QaScorecardRevision
retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
A revision of a QaScorecard.
Modifying published scorecard fields would invalidate existing scorecard results — the questions may have changed, or the score weighting will make existing scores impossible to understand. So changes must create a new revision, rather than modifying the existing resource.
- Return type
google.cloud.contact_center_insights_v1.types.QaScorecardRevision
- property universe_domain: str¶
Return the universe domain used by the client instance.
- Returns
The universe domain used by the client instance.
- Return type
- update_analysis_rule(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.UpdateAnalysisRuleRequest, dict]] = None, *, analysis_rule: Optional[google.cloud.contact_center_insights_v1.types.resources.AnalysisRule] = None, update_mask: Optional[google.protobuf.field_mask_pb2.FieldMask] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.AnalysisRule [source]¶
Updates a analysis rule.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_update_analysis_rule(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.UpdateAnalysisRuleRequest( ) # Make the request response = client.update_analysis_rule(request=request) # Handle the response print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.UpdateAnalysisRuleRequest, dict]) – The request object. The request to update a analysis rule.
analysis_rule (google.cloud.contact_center_insights_v1.types.AnalysisRule) – Required. The new analysis rule. This corresponds to the
analysis_rule
field on therequest
instance; ifrequest
is provided, this should not be set.update_mask (google.protobuf.field_mask_pb2.FieldMask) –
Optional. The list of fields to be updated. If the update_mask is not provided, the update will be applied to all fields.
This corresponds to the
update_mask
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
The CCAI Insights project wide analysis rule. This rule will be applied to all conversations that match the filter defined in the rule. For a conversation matches the filter, the annotators specified in the rule will be run. If a conversation matches multiple rules, a union of all the annotators will be run. One project can have multiple analysis rules.
- Return type
- update_conversation(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.UpdateConversationRequest, dict]] = None, *, conversation: Optional[google.cloud.contact_center_insights_v1.types.resources.Conversation] = None, update_mask: Optional[google.protobuf.field_mask_pb2.FieldMask] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.Conversation [source]¶
Updates a conversation.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_update_conversation(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.UpdateConversationRequest( ) # Make the request response = client.update_conversation(request=request) # Handle the response print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.UpdateConversationRequest, dict]) – The request object. The request to update a conversation.
conversation (google.cloud.contact_center_insights_v1.types.Conversation) –
Required. The new values for the conversation.
This corresponds to the
conversation
field on therequest
instance; ifrequest
is provided, this should not be set.update_mask (google.protobuf.field_mask_pb2.FieldMask) –
The list of fields to be updated. All possible fields can be updated by passing
*
, or a subset of the following updateable fields can be provided:agent_id
language_code
labels
metadata
quality_metadata
call_metadata
start_time
expire_time
orttl
data_source.gcs_source.audio_uri
ordata_source.dialogflow_source.audio_uri
This corresponds to the
update_mask
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
The conversation resource.
- Return type
- update_feedback_label(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.UpdateFeedbackLabelRequest, dict]] = None, *, feedback_label: Optional[google.cloud.contact_center_insights_v1.types.resources.FeedbackLabel] = None, update_mask: Optional[google.protobuf.field_mask_pb2.FieldMask] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.FeedbackLabel [source]¶
Update feedback label.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_update_feedback_label(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) feedback_label = contact_center_insights_v1.FeedbackLabel() feedback_label.label = "label_value" request = contact_center_insights_v1.UpdateFeedbackLabelRequest( feedback_label=feedback_label, ) # Make the request response = client.update_feedback_label(request=request) # Handle the response print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.UpdateFeedbackLabelRequest, dict]) – The request object. The request for updating a feedback label.
feedback_label (google.cloud.contact_center_insights_v1.types.FeedbackLabel) –
Required. The feedback label to update.
This corresponds to the
feedback_label
field on therequest
instance; ifrequest
is provided, this should not be set.update_mask (google.protobuf.field_mask_pb2.FieldMask) –
Required. The list of fields to be updated.
This corresponds to the
update_mask
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
Represents a conversation, resource, and label provided by the user.
- Return type
- update_issue(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.UpdateIssueRequest, dict]] = None, *, issue: Optional[google.cloud.contact_center_insights_v1.types.resources.Issue] = None, update_mask: Optional[google.protobuf.field_mask_pb2.FieldMask] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.Issue [source]¶
Updates an issue.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_update_issue(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.UpdateIssueRequest( ) # Make the request response = client.update_issue(request=request) # Handle the response print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.UpdateIssueRequest, dict]) – The request object. The request to update an issue.
issue (google.cloud.contact_center_insights_v1.types.Issue) –
Required. The new values for the issue.
This corresponds to the
issue
field on therequest
instance; ifrequest
is provided, this should not be set.update_mask (google.protobuf.field_mask_pb2.FieldMask) – The list of fields to be updated. This corresponds to the
update_mask
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
The issue resource.
- Return type
- update_issue_model(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.UpdateIssueModelRequest, dict]] = None, *, issue_model: Optional[google.cloud.contact_center_insights_v1.types.resources.IssueModel] = None, update_mask: Optional[google.protobuf.field_mask_pb2.FieldMask] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.IssueModel [source]¶
Updates an issue model.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_update_issue_model(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.UpdateIssueModelRequest( ) # Make the request response = client.update_issue_model(request=request) # Handle the response print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.UpdateIssueModelRequest, dict]) – The request object. The request to update an issue model.
issue_model (google.cloud.contact_center_insights_v1.types.IssueModel) –
Required. The new values for the issue model.
This corresponds to the
issue_model
field on therequest
instance; ifrequest
is provided, this should not be set.update_mask (google.protobuf.field_mask_pb2.FieldMask) – The list of fields to be updated. This corresponds to the
update_mask
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
The issue model resource.
- Return type
- update_phrase_matcher(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.UpdatePhraseMatcherRequest, dict]] = None, *, phrase_matcher: Optional[google.cloud.contact_center_insights_v1.types.resources.PhraseMatcher] = None, update_mask: Optional[google.protobuf.field_mask_pb2.FieldMask] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.PhraseMatcher [source]¶
Updates a phrase matcher.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_update_phrase_matcher(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) phrase_matcher = contact_center_insights_v1.PhraseMatcher() phrase_matcher.type_ = "ANY_OF" request = contact_center_insights_v1.UpdatePhraseMatcherRequest( phrase_matcher=phrase_matcher, ) # Make the request response = client.update_phrase_matcher(request=request) # Handle the response print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.UpdatePhraseMatcherRequest, dict]) – The request object. The request to update a phrase matcher.
phrase_matcher (google.cloud.contact_center_insights_v1.types.PhraseMatcher) –
Required. The new values for the phrase matcher.
This corresponds to the
phrase_matcher
field on therequest
instance; ifrequest
is provided, this should not be set.update_mask (google.protobuf.field_mask_pb2.FieldMask) – The list of fields to be updated. This corresponds to the
update_mask
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
The phrase matcher resource.
- Return type
- update_qa_question(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.UpdateQaQuestionRequest, dict]] = None, *, qa_question: Optional[google.cloud.contact_center_insights_v1.types.resources.QaQuestion] = None, update_mask: Optional[google.protobuf.field_mask_pb2.FieldMask] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.QaQuestion [source]¶
Updates a QaQuestion.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_update_qa_question(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.UpdateQaQuestionRequest( ) # Make the request response = client.update_qa_question(request=request) # Handle the response print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.UpdateQaQuestionRequest, dict]) – The request object. The request for updating a QaQuestion.
qa_question (google.cloud.contact_center_insights_v1.types.QaQuestion) – Required. The QaQuestion to update. This corresponds to the
qa_question
field on therequest
instance; ifrequest
is provided, this should not be set.update_mask (google.protobuf.field_mask_pb2.FieldMask) –
Required. The list of fields to be updated. All possible fields can be updated by passing
*
, or a subset of the following updateable fields can be provided:abbreviation
answer_choices
answer_instructions
order
question_body
tags
This corresponds to the
update_mask
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
A single question to be scored by the Insights QA feature.
- Return type
- update_qa_scorecard(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.UpdateQaScorecardRequest, dict]] = None, *, qa_scorecard: Optional[google.cloud.contact_center_insights_v1.types.resources.QaScorecard] = None, update_mask: Optional[google.protobuf.field_mask_pb2.FieldMask] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.QaScorecard [source]¶
Updates a QaScorecard.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_update_qa_scorecard(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.UpdateQaScorecardRequest( ) # Make the request response = client.update_qa_scorecard(request=request) # Handle the response print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.UpdateQaScorecardRequest, dict]) – The request object. The request for updating a QaScorecard.
qa_scorecard (google.cloud.contact_center_insights_v1.types.QaScorecard) – Required. The QaScorecard to update. This corresponds to the
qa_scorecard
field on therequest
instance; ifrequest
is provided, this should not be set.update_mask (google.protobuf.field_mask_pb2.FieldMask) –
Required. The list of fields to be updated. All possible fields can be updated by passing
*
, or a subset of the following updateable fields can be provided:description
display_name
This corresponds to the
update_mask
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
A QaScorecard represents a collection of questions to be scored during analysis.
- Return type
- update_settings(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.UpdateSettingsRequest, dict]] = None, *, settings: Optional[google.cloud.contact_center_insights_v1.types.resources.Settings] = None, update_mask: Optional[google.protobuf.field_mask_pb2.FieldMask] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.Settings [source]¶
Updates project-level settings.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_update_settings(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.UpdateSettingsRequest( ) # Make the request response = client.update_settings(request=request) # Handle the response print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.UpdateSettingsRequest, dict]) – The request object. The request to update project-level settings.
settings (google.cloud.contact_center_insights_v1.types.Settings) – Required. The new settings values. This corresponds to the
settings
field on therequest
instance; ifrequest
is provided, this should not be set.update_mask (google.protobuf.field_mask_pb2.FieldMask) –
Required. The list of fields to be updated.
This corresponds to the
update_mask
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
- The CCAI Insights project wide settings.
Use these settings to configure the behavior of Insights. View these settings with [getsettings](https://cloud.google.com/contact-center/insights/docs/reference/rest/v1/projects.locations/getSettings) and change the settings with [updateSettings](https://cloud.google.com/contact-center/insights/docs/reference/rest/v1/projects.locations/updateSettings).
- Return type
- update_view(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.UpdateViewRequest, dict]] = None, *, view: Optional[google.cloud.contact_center_insights_v1.types.resources.View] = None, update_mask: Optional[google.protobuf.field_mask_pb2.FieldMask] = None, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.cloud.contact_center_insights_v1.types.resources.View [source]¶
Updates a view.
# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_update_view(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.UpdateViewRequest( ) # Make the request response = client.update_view(request=request) # Handle the response print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.UpdateViewRequest, dict]) – The request object. The request to update a view.
view (google.cloud.contact_center_insights_v1.types.View) – Required. The new view. This corresponds to the
view
field on therequest
instance; ifrequest
is provided, this should not be set.update_mask (google.protobuf.field_mask_pb2.FieldMask) – The list of fields to be updated. This corresponds to the
update_mask
field on therequest
instance; ifrequest
is provided, this should not be set.retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
The View resource.
- Return type
- upload_conversation(request: Optional[Union[google.cloud.contact_center_insights_v1.types.contact_center_insights.UploadConversationRequest, dict]] = None, *, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ()) google.api_core.operation.Operation [source]¶
Create a long-running conversation upload operation. This method differs from
CreateConversation
by allowing audio transcription and optional DLP redaction.# This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: # - It may require correct/in-range values for request initialization. # - It may require specifying regional endpoints when creating the service # client as shown in: # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import contact_center_insights_v1 def sample_upload_conversation(): # Create a client client = contact_center_insights_v1.ContactCenterInsightsClient() # Initialize request argument(s) request = contact_center_insights_v1.UploadConversationRequest( parent="parent_value", ) # Make the request operation = client.upload_conversation(request=request) print("Waiting for operation to complete...") response = operation.result() # Handle the response print(response)
- Parameters
request (Union[google.cloud.contact_center_insights_v1.types.UploadConversationRequest, dict]) – The request object. Request to upload a conversation.
retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- Returns
An object representing a long-running operation.
The result type for the operation will be
google.cloud.contact_center_insights_v1.types.Conversation
The conversation resource.- Return type
- class google.cloud.contact_center_insights_v1.services.contact_center_insights.pagers.ListAllFeedbackLabelsAsyncPager(method: Callable[[...], Awaitable[google.cloud.contact_center_insights_v1.types.contact_center_insights.ListAllFeedbackLabelsResponse]], request: google.cloud.contact_center_insights_v1.types.contact_center_insights.ListAllFeedbackLabelsRequest, response: google.cloud.contact_center_insights_v1.types.contact_center_insights.ListAllFeedbackLabelsResponse, *, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ())[source]¶
A pager for iterating through
list_all_feedback_labels
requests.This class thinly wraps an initial
google.cloud.contact_center_insights_v1.types.ListAllFeedbackLabelsResponse
object, and provides an__aiter__
method to iterate through itsfeedback_labels
field.If there are more pages, the
__aiter__
method will make additionalListAllFeedbackLabels
requests and continue to iterate through thefeedback_labels
field on the corresponding responses.All the usual
google.cloud.contact_center_insights_v1.types.ListAllFeedbackLabelsResponse
attributes are available on the pager. If multiple requests are made, only the most recent response is retained, and thus used for attribute lookup.Instantiates the pager.
- Parameters
method (Callable) – The method that was originally called, and which instantiated this pager.
request (google.cloud.contact_center_insights_v1.types.ListAllFeedbackLabelsRequest) – The initial request object.
response (google.cloud.contact_center_insights_v1.types.ListAllFeedbackLabelsResponse) – The initial response object.
retry (google.api_core.retry.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- class google.cloud.contact_center_insights_v1.services.contact_center_insights.pagers.ListAllFeedbackLabelsPager(method: Callable[[...], google.cloud.contact_center_insights_v1.types.contact_center_insights.ListAllFeedbackLabelsResponse], request: google.cloud.contact_center_insights_v1.types.contact_center_insights.ListAllFeedbackLabelsRequest, response: google.cloud.contact_center_insights_v1.types.contact_center_insights.ListAllFeedbackLabelsResponse, *, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ())[source]¶
A pager for iterating through
list_all_feedback_labels
requests.This class thinly wraps an initial
google.cloud.contact_center_insights_v1.types.ListAllFeedbackLabelsResponse
object, and provides an__iter__
method to iterate through itsfeedback_labels
field.If there are more pages, the
__iter__
method will make additionalListAllFeedbackLabels
requests and continue to iterate through thefeedback_labels
field on the corresponding responses.All the usual
google.cloud.contact_center_insights_v1.types.ListAllFeedbackLabelsResponse
attributes are available on the pager. If multiple requests are made, only the most recent response is retained, and thus used for attribute lookup.Instantiate the pager.
- Parameters
method (Callable) – The method that was originally called, and which instantiated this pager.
request (google.cloud.contact_center_insights_v1.types.ListAllFeedbackLabelsRequest) – The initial request object.
response (google.cloud.contact_center_insights_v1.types.ListAllFeedbackLabelsResponse) – The initial response object.
retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- class google.cloud.contact_center_insights_v1.services.contact_center_insights.pagers.ListAnalysesAsyncPager(method: Callable[[...], Awaitable[google.cloud.contact_center_insights_v1.types.contact_center_insights.ListAnalysesResponse]], request: google.cloud.contact_center_insights_v1.types.contact_center_insights.ListAnalysesRequest, response: google.cloud.contact_center_insights_v1.types.contact_center_insights.ListAnalysesResponse, *, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ())[source]¶
A pager for iterating through
list_analyses
requests.This class thinly wraps an initial
google.cloud.contact_center_insights_v1.types.ListAnalysesResponse
object, and provides an__aiter__
method to iterate through itsanalyses
field.If there are more pages, the
__aiter__
method will make additionalListAnalyses
requests and continue to iterate through theanalyses
field on the corresponding responses.All the usual
google.cloud.contact_center_insights_v1.types.ListAnalysesResponse
attributes are available on the pager. If multiple requests are made, only the most recent response is retained, and thus used for attribute lookup.Instantiates the pager.
- Parameters
method (Callable) – The method that was originally called, and which instantiated this pager.
request (google.cloud.contact_center_insights_v1.types.ListAnalysesRequest) – The initial request object.
response (google.cloud.contact_center_insights_v1.types.ListAnalysesResponse) – The initial response object.
retry (google.api_core.retry.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- class google.cloud.contact_center_insights_v1.services.contact_center_insights.pagers.ListAnalysesPager(method: Callable[[...], google.cloud.contact_center_insights_v1.types.contact_center_insights.ListAnalysesResponse], request: google.cloud.contact_center_insights_v1.types.contact_center_insights.ListAnalysesRequest, response: google.cloud.contact_center_insights_v1.types.contact_center_insights.ListAnalysesResponse, *, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ())[source]¶
A pager for iterating through
list_analyses
requests.This class thinly wraps an initial
google.cloud.contact_center_insights_v1.types.ListAnalysesResponse
object, and provides an__iter__
method to iterate through itsanalyses
field.If there are more pages, the
__iter__
method will make additionalListAnalyses
requests and continue to iterate through theanalyses
field on the corresponding responses.All the usual
google.cloud.contact_center_insights_v1.types.ListAnalysesResponse
attributes are available on the pager. If multiple requests are made, only the most recent response is retained, and thus used for attribute lookup.Instantiate the pager.
- Parameters
method (Callable) – The method that was originally called, and which instantiated this pager.
request (google.cloud.contact_center_insights_v1.types.ListAnalysesRequest) – The initial request object.
response (google.cloud.contact_center_insights_v1.types.ListAnalysesResponse) – The initial response object.
retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- class google.cloud.contact_center_insights_v1.services.contact_center_insights.pagers.ListAnalysisRulesAsyncPager(method: Callable[[...], Awaitable[google.cloud.contact_center_insights_v1.types.contact_center_insights.ListAnalysisRulesResponse]], request: google.cloud.contact_center_insights_v1.types.contact_center_insights.ListAnalysisRulesRequest, response: google.cloud.contact_center_insights_v1.types.contact_center_insights.ListAnalysisRulesResponse, *, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ())[source]¶
A pager for iterating through
list_analysis_rules
requests.This class thinly wraps an initial
google.cloud.contact_center_insights_v1.types.ListAnalysisRulesResponse
object, and provides an__aiter__
method to iterate through itsanalysis_rules
field.If there are more pages, the
__aiter__
method will make additionalListAnalysisRules
requests and continue to iterate through theanalysis_rules
field on the corresponding responses.All the usual
google.cloud.contact_center_insights_v1.types.ListAnalysisRulesResponse
attributes are available on the pager. If multiple requests are made, only the most recent response is retained, and thus used for attribute lookup.Instantiates the pager.
- Parameters
method (Callable) – The method that was originally called, and which instantiated this pager.
request (google.cloud.contact_center_insights_v1.types.ListAnalysisRulesRequest) – The initial request object.
response (google.cloud.contact_center_insights_v1.types.ListAnalysisRulesResponse) – The initial response object.
retry (google.api_core.retry.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- class google.cloud.contact_center_insights_v1.services.contact_center_insights.pagers.ListAnalysisRulesPager(method: Callable[[...], google.cloud.contact_center_insights_v1.types.contact_center_insights.ListAnalysisRulesResponse], request: google.cloud.contact_center_insights_v1.types.contact_center_insights.ListAnalysisRulesRequest, response: google.cloud.contact_center_insights_v1.types.contact_center_insights.ListAnalysisRulesResponse, *, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ())[source]¶
A pager for iterating through
list_analysis_rules
requests.This class thinly wraps an initial
google.cloud.contact_center_insights_v1.types.ListAnalysisRulesResponse
object, and provides an__iter__
method to iterate through itsanalysis_rules
field.If there are more pages, the
__iter__
method will make additionalListAnalysisRules
requests and continue to iterate through theanalysis_rules
field on the corresponding responses.All the usual
google.cloud.contact_center_insights_v1.types.ListAnalysisRulesResponse
attributes are available on the pager. If multiple requests are made, only the most recent response is retained, and thus used for attribute lookup.Instantiate the pager.
- Parameters
method (Callable) – The method that was originally called, and which instantiated this pager.
request (google.cloud.contact_center_insights_v1.types.ListAnalysisRulesRequest) – The initial request object.
response (google.cloud.contact_center_insights_v1.types.ListAnalysisRulesResponse) – The initial response object.
retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- class google.cloud.contact_center_insights_v1.services.contact_center_insights.pagers.ListConversationsAsyncPager(method: Callable[[...], Awaitable[google.cloud.contact_center_insights_v1.types.contact_center_insights.ListConversationsResponse]], request: google.cloud.contact_center_insights_v1.types.contact_center_insights.ListConversationsRequest, response: google.cloud.contact_center_insights_v1.types.contact_center_insights.ListConversationsResponse, *, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ())[source]¶
A pager for iterating through
list_conversations
requests.This class thinly wraps an initial
google.cloud.contact_center_insights_v1.types.ListConversationsResponse
object, and provides an__aiter__
method to iterate through itsconversations
field.If there are more pages, the
__aiter__
method will make additionalListConversations
requests and continue to iterate through theconversations
field on the corresponding responses.All the usual
google.cloud.contact_center_insights_v1.types.ListConversationsResponse
attributes are available on the pager. If multiple requests are made, only the most recent response is retained, and thus used for attribute lookup.Instantiates the pager.
- Parameters
method (Callable) – The method that was originally called, and which instantiated this pager.
request (google.cloud.contact_center_insights_v1.types.ListConversationsRequest) – The initial request object.
response (google.cloud.contact_center_insights_v1.types.ListConversationsResponse) – The initial response object.
retry (google.api_core.retry.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- class google.cloud.contact_center_insights_v1.services.contact_center_insights.pagers.ListConversationsPager(method: Callable[[...], google.cloud.contact_center_insights_v1.types.contact_center_insights.ListConversationsResponse], request: google.cloud.contact_center_insights_v1.types.contact_center_insights.ListConversationsRequest, response: google.cloud.contact_center_insights_v1.types.contact_center_insights.ListConversationsResponse, *, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ())[source]¶
A pager for iterating through
list_conversations
requests.This class thinly wraps an initial
google.cloud.contact_center_insights_v1.types.ListConversationsResponse
object, and provides an__iter__
method to iterate through itsconversations
field.If there are more pages, the
__iter__
method will make additionalListConversations
requests and continue to iterate through theconversations
field on the corresponding responses.All the usual
google.cloud.contact_center_insights_v1.types.ListConversationsResponse
attributes are available on the pager. If multiple requests are made, only the most recent response is retained, and thus used for attribute lookup.Instantiate the pager.
- Parameters
method (Callable) – The method that was originally called, and which instantiated this pager.
request (google.cloud.contact_center_insights_v1.types.ListConversationsRequest) – The initial request object.
response (google.cloud.contact_center_insights_v1.types.ListConversationsResponse) – The initial response object.
retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- class google.cloud.contact_center_insights_v1.services.contact_center_insights.pagers.ListFeedbackLabelsAsyncPager(method: Callable[[...], Awaitable[google.cloud.contact_center_insights_v1.types.contact_center_insights.ListFeedbackLabelsResponse]], request: google.cloud.contact_center_insights_v1.types.contact_center_insights.ListFeedbackLabelsRequest, response: google.cloud.contact_center_insights_v1.types.contact_center_insights.ListFeedbackLabelsResponse, *, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ())[source]¶
A pager for iterating through
list_feedback_labels
requests.This class thinly wraps an initial
google.cloud.contact_center_insights_v1.types.ListFeedbackLabelsResponse
object, and provides an__aiter__
method to iterate through itsfeedback_labels
field.If there are more pages, the
__aiter__
method will make additionalListFeedbackLabels
requests and continue to iterate through thefeedback_labels
field on the corresponding responses.All the usual
google.cloud.contact_center_insights_v1.types.ListFeedbackLabelsResponse
attributes are available on the pager. If multiple requests are made, only the most recent response is retained, and thus used for attribute lookup.Instantiates the pager.
- Parameters
method (Callable) – The method that was originally called, and which instantiated this pager.
request (google.cloud.contact_center_insights_v1.types.ListFeedbackLabelsRequest) – The initial request object.
response (google.cloud.contact_center_insights_v1.types.ListFeedbackLabelsResponse) – The initial response object.
retry (google.api_core.retry.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- class google.cloud.contact_center_insights_v1.services.contact_center_insights.pagers.ListFeedbackLabelsPager(method: Callable[[...], google.cloud.contact_center_insights_v1.types.contact_center_insights.ListFeedbackLabelsResponse], request: google.cloud.contact_center_insights_v1.types.contact_center_insights.ListFeedbackLabelsRequest, response: google.cloud.contact_center_insights_v1.types.contact_center_insights.ListFeedbackLabelsResponse, *, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ())[source]¶
A pager for iterating through
list_feedback_labels
requests.This class thinly wraps an initial
google.cloud.contact_center_insights_v1.types.ListFeedbackLabelsResponse
object, and provides an__iter__
method to iterate through itsfeedback_labels
field.If there are more pages, the
__iter__
method will make additionalListFeedbackLabels
requests and continue to iterate through thefeedback_labels
field on the corresponding responses.All the usual
google.cloud.contact_center_insights_v1.types.ListFeedbackLabelsResponse
attributes are available on the pager. If multiple requests are made, only the most recent response is retained, and thus used for attribute lookup.Instantiate the pager.
- Parameters
method (Callable) – The method that was originally called, and which instantiated this pager.
request (google.cloud.contact_center_insights_v1.types.ListFeedbackLabelsRequest) – The initial request object.
response (google.cloud.contact_center_insights_v1.types.ListFeedbackLabelsResponse) – The initial response object.
retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- class google.cloud.contact_center_insights_v1.services.contact_center_insights.pagers.ListPhraseMatchersAsyncPager(method: Callable[[...], Awaitable[google.cloud.contact_center_insights_v1.types.contact_center_insights.ListPhraseMatchersResponse]], request: google.cloud.contact_center_insights_v1.types.contact_center_insights.ListPhraseMatchersRequest, response: google.cloud.contact_center_insights_v1.types.contact_center_insights.ListPhraseMatchersResponse, *, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ())[source]¶
A pager for iterating through
list_phrase_matchers
requests.This class thinly wraps an initial
google.cloud.contact_center_insights_v1.types.ListPhraseMatchersResponse
object, and provides an__aiter__
method to iterate through itsphrase_matchers
field.If there are more pages, the
__aiter__
method will make additionalListPhraseMatchers
requests and continue to iterate through thephrase_matchers
field on the corresponding responses.All the usual
google.cloud.contact_center_insights_v1.types.ListPhraseMatchersResponse
attributes are available on the pager. If multiple requests are made, only the most recent response is retained, and thus used for attribute lookup.Instantiates the pager.
- Parameters
method (Callable) – The method that was originally called, and which instantiated this pager.
request (google.cloud.contact_center_insights_v1.types.ListPhraseMatchersRequest) – The initial request object.
response (google.cloud.contact_center_insights_v1.types.ListPhraseMatchersResponse) – The initial response object.
retry (google.api_core.retry.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- class google.cloud.contact_center_insights_v1.services.contact_center_insights.pagers.ListPhraseMatchersPager(method: Callable[[...], google.cloud.contact_center_insights_v1.types.contact_center_insights.ListPhraseMatchersResponse], request: google.cloud.contact_center_insights_v1.types.contact_center_insights.ListPhraseMatchersRequest, response: google.cloud.contact_center_insights_v1.types.contact_center_insights.ListPhraseMatchersResponse, *, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ())[source]¶
A pager for iterating through
list_phrase_matchers
requests.This class thinly wraps an initial
google.cloud.contact_center_insights_v1.types.ListPhraseMatchersResponse
object, and provides an__iter__
method to iterate through itsphrase_matchers
field.If there are more pages, the
__iter__
method will make additionalListPhraseMatchers
requests and continue to iterate through thephrase_matchers
field on the corresponding responses.All the usual
google.cloud.contact_center_insights_v1.types.ListPhraseMatchersResponse
attributes are available on the pager. If multiple requests are made, only the most recent response is retained, and thus used for attribute lookup.Instantiate the pager.
- Parameters
method (Callable) – The method that was originally called, and which instantiated this pager.
request (google.cloud.contact_center_insights_v1.types.ListPhraseMatchersRequest) – The initial request object.
response (google.cloud.contact_center_insights_v1.types.ListPhraseMatchersResponse) – The initial response object.
retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- class google.cloud.contact_center_insights_v1.services.contact_center_insights.pagers.ListQaQuestionsAsyncPager(method: Callable[[...], Awaitable[google.cloud.contact_center_insights_v1.types.contact_center_insights.ListQaQuestionsResponse]], request: google.cloud.contact_center_insights_v1.types.contact_center_insights.ListQaQuestionsRequest, response: google.cloud.contact_center_insights_v1.types.contact_center_insights.ListQaQuestionsResponse, *, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ())[source]¶
A pager for iterating through
list_qa_questions
requests.This class thinly wraps an initial
google.cloud.contact_center_insights_v1.types.ListQaQuestionsResponse
object, and provides an__aiter__
method to iterate through itsqa_questions
field.If there are more pages, the
__aiter__
method will make additionalListQaQuestions
requests and continue to iterate through theqa_questions
field on the corresponding responses.All the usual
google.cloud.contact_center_insights_v1.types.ListQaQuestionsResponse
attributes are available on the pager. If multiple requests are made, only the most recent response is retained, and thus used for attribute lookup.Instantiates the pager.
- Parameters
method (Callable) – The method that was originally called, and which instantiated this pager.
request (google.cloud.contact_center_insights_v1.types.ListQaQuestionsRequest) – The initial request object.
response (google.cloud.contact_center_insights_v1.types.ListQaQuestionsResponse) – The initial response object.
retry (google.api_core.retry.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- class google.cloud.contact_center_insights_v1.services.contact_center_insights.pagers.ListQaQuestionsPager(method: Callable[[...], google.cloud.contact_center_insights_v1.types.contact_center_insights.ListQaQuestionsResponse], request: google.cloud.contact_center_insights_v1.types.contact_center_insights.ListQaQuestionsRequest, response: google.cloud.contact_center_insights_v1.types.contact_center_insights.ListQaQuestionsResponse, *, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ())[source]¶
A pager for iterating through
list_qa_questions
requests.This class thinly wraps an initial
google.cloud.contact_center_insights_v1.types.ListQaQuestionsResponse
object, and provides an__iter__
method to iterate through itsqa_questions
field.If there are more pages, the
__iter__
method will make additionalListQaQuestions
requests and continue to iterate through theqa_questions
field on the corresponding responses.All the usual
google.cloud.contact_center_insights_v1.types.ListQaQuestionsResponse
attributes are available on the pager. If multiple requests are made, only the most recent response is retained, and thus used for attribute lookup.Instantiate the pager.
- Parameters
method (Callable) – The method that was originally called, and which instantiated this pager.
request (google.cloud.contact_center_insights_v1.types.ListQaQuestionsRequest) – The initial request object.
response (google.cloud.contact_center_insights_v1.types.ListQaQuestionsResponse) – The initial response object.
retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- class google.cloud.contact_center_insights_v1.services.contact_center_insights.pagers.ListQaScorecardRevisionsAsyncPager(method: Callable[[...], Awaitable[google.cloud.contact_center_insights_v1.types.contact_center_insights.ListQaScorecardRevisionsResponse]], request: google.cloud.contact_center_insights_v1.types.contact_center_insights.ListQaScorecardRevisionsRequest, response: google.cloud.contact_center_insights_v1.types.contact_center_insights.ListQaScorecardRevisionsResponse, *, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ())[source]¶
A pager for iterating through
list_qa_scorecard_revisions
requests.This class thinly wraps an initial
google.cloud.contact_center_insights_v1.types.ListQaScorecardRevisionsResponse
object, and provides an__aiter__
method to iterate through itsqa_scorecard_revisions
field.If there are more pages, the
__aiter__
method will make additionalListQaScorecardRevisions
requests and continue to iterate through theqa_scorecard_revisions
field on the corresponding responses.All the usual
google.cloud.contact_center_insights_v1.types.ListQaScorecardRevisionsResponse
attributes are available on the pager. If multiple requests are made, only the most recent response is retained, and thus used for attribute lookup.Instantiates the pager.
- Parameters
method (Callable) – The method that was originally called, and which instantiated this pager.
request (google.cloud.contact_center_insights_v1.types.ListQaScorecardRevisionsRequest) – The initial request object.
response (google.cloud.contact_center_insights_v1.types.ListQaScorecardRevisionsResponse) – The initial response object.
retry (google.api_core.retry.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- class google.cloud.contact_center_insights_v1.services.contact_center_insights.pagers.ListQaScorecardRevisionsPager(method: Callable[[...], google.cloud.contact_center_insights_v1.types.contact_center_insights.ListQaScorecardRevisionsResponse], request: google.cloud.contact_center_insights_v1.types.contact_center_insights.ListQaScorecardRevisionsRequest, response: google.cloud.contact_center_insights_v1.types.contact_center_insights.ListQaScorecardRevisionsResponse, *, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ())[source]¶
A pager for iterating through
list_qa_scorecard_revisions
requests.This class thinly wraps an initial
google.cloud.contact_center_insights_v1.types.ListQaScorecardRevisionsResponse
object, and provides an__iter__
method to iterate through itsqa_scorecard_revisions
field.If there are more pages, the
__iter__
method will make additionalListQaScorecardRevisions
requests and continue to iterate through theqa_scorecard_revisions
field on the corresponding responses.All the usual
google.cloud.contact_center_insights_v1.types.ListQaScorecardRevisionsResponse
attributes are available on the pager. If multiple requests are made, only the most recent response is retained, and thus used for attribute lookup.Instantiate the pager.
- Parameters
method (Callable) – The method that was originally called, and which instantiated this pager.
request (google.cloud.contact_center_insights_v1.types.ListQaScorecardRevisionsRequest) – The initial request object.
response (google.cloud.contact_center_insights_v1.types.ListQaScorecardRevisionsResponse) – The initial response object.
retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- class google.cloud.contact_center_insights_v1.services.contact_center_insights.pagers.ListQaScorecardsAsyncPager(method: Callable[[...], Awaitable[google.cloud.contact_center_insights_v1.types.contact_center_insights.ListQaScorecardsResponse]], request: google.cloud.contact_center_insights_v1.types.contact_center_insights.ListQaScorecardsRequest, response: google.cloud.contact_center_insights_v1.types.contact_center_insights.ListQaScorecardsResponse, *, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ())[source]¶
A pager for iterating through
list_qa_scorecards
requests.This class thinly wraps an initial
google.cloud.contact_center_insights_v1.types.ListQaScorecardsResponse
object, and provides an__aiter__
method to iterate through itsqa_scorecards
field.If there are more pages, the
__aiter__
method will make additionalListQaScorecards
requests and continue to iterate through theqa_scorecards
field on the corresponding responses.All the usual
google.cloud.contact_center_insights_v1.types.ListQaScorecardsResponse
attributes are available on the pager. If multiple requests are made, only the most recent response is retained, and thus used for attribute lookup.Instantiates the pager.
- Parameters
method (Callable) – The method that was originally called, and which instantiated this pager.
request (google.cloud.contact_center_insights_v1.types.ListQaScorecardsRequest) – The initial request object.
response (google.cloud.contact_center_insights_v1.types.ListQaScorecardsResponse) – The initial response object.
retry (google.api_core.retry.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- class google.cloud.contact_center_insights_v1.services.contact_center_insights.pagers.ListQaScorecardsPager(method: Callable[[...], google.cloud.contact_center_insights_v1.types.contact_center_insights.ListQaScorecardsResponse], request: google.cloud.contact_center_insights_v1.types.contact_center_insights.ListQaScorecardsRequest, response: google.cloud.contact_center_insights_v1.types.contact_center_insights.ListQaScorecardsResponse, *, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ())[source]¶
A pager for iterating through
list_qa_scorecards
requests.This class thinly wraps an initial
google.cloud.contact_center_insights_v1.types.ListQaScorecardsResponse
object, and provides an__iter__
method to iterate through itsqa_scorecards
field.If there are more pages, the
__iter__
method will make additionalListQaScorecards
requests and continue to iterate through theqa_scorecards
field on the corresponding responses.All the usual
google.cloud.contact_center_insights_v1.types.ListQaScorecardsResponse
attributes are available on the pager. If multiple requests are made, only the most recent response is retained, and thus used for attribute lookup.Instantiate the pager.
- Parameters
method (Callable) – The method that was originally called, and which instantiated this pager.
request (google.cloud.contact_center_insights_v1.types.ListQaScorecardsRequest) – The initial request object.
response (google.cloud.contact_center_insights_v1.types.ListQaScorecardsResponse) – The initial response object.
retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- class google.cloud.contact_center_insights_v1.services.contact_center_insights.pagers.ListViewsAsyncPager(method: Callable[[...], Awaitable[google.cloud.contact_center_insights_v1.types.contact_center_insights.ListViewsResponse]], request: google.cloud.contact_center_insights_v1.types.contact_center_insights.ListViewsRequest, response: google.cloud.contact_center_insights_v1.types.contact_center_insights.ListViewsResponse, *, retry: Optional[Union[google.api_core.retry.retry_unary_async.AsyncRetry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ())[source]¶
A pager for iterating through
list_views
requests.This class thinly wraps an initial
google.cloud.contact_center_insights_v1.types.ListViewsResponse
object, and provides an__aiter__
method to iterate through itsviews
field.If there are more pages, the
__aiter__
method will make additionalListViews
requests and continue to iterate through theviews
field on the corresponding responses.All the usual
google.cloud.contact_center_insights_v1.types.ListViewsResponse
attributes are available on the pager. If multiple requests are made, only the most recent response is retained, and thus used for attribute lookup.Instantiates the pager.
- Parameters
method (Callable) – The method that was originally called, and which instantiated this pager.
request (google.cloud.contact_center_insights_v1.types.ListViewsRequest) – The initial request object.
response (google.cloud.contact_center_insights_v1.types.ListViewsResponse) – The initial response object.
retry (google.api_core.retry.AsyncRetry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.
- class google.cloud.contact_center_insights_v1.services.contact_center_insights.pagers.ListViewsPager(method: Callable[[...], google.cloud.contact_center_insights_v1.types.contact_center_insights.ListViewsResponse], request: google.cloud.contact_center_insights_v1.types.contact_center_insights.ListViewsRequest, response: google.cloud.contact_center_insights_v1.types.contact_center_insights.ListViewsResponse, *, retry: Optional[Union[google.api_core.retry.retry_unary.Retry, google.api_core.gapic_v1.method._MethodDefault]] = _MethodDefault._DEFAULT_VALUE, timeout: Union[float, object] = _MethodDefault._DEFAULT_VALUE, metadata: Sequence[Tuple[str, str]] = ())[source]¶
A pager for iterating through
list_views
requests.This class thinly wraps an initial
google.cloud.contact_center_insights_v1.types.ListViewsResponse
object, and provides an__iter__
method to iterate through itsviews
field.If there are more pages, the
__iter__
method will make additionalListViews
requests and continue to iterate through theviews
field on the corresponding responses.All the usual
google.cloud.contact_center_insights_v1.types.ListViewsResponse
attributes are available on the pager. If multiple requests are made, only the most recent response is retained, and thus used for attribute lookup.Instantiate the pager.
- Parameters
method (Callable) – The method that was originally called, and which instantiated this pager.
request (google.cloud.contact_center_insights_v1.types.ListViewsRequest) – The initial request object.
response (google.cloud.contact_center_insights_v1.types.ListViewsResponse) – The initial response object.
retry (google.api_core.retry.Retry) – Designation of what errors, if any, should be retried.
timeout (float) – The timeout for this request.
metadata (Sequence[Tuple[str, str]]) – Strings which should be sent along with the request as metadata.