Skip to content

Commit

Permalink
feat: A new resource pattern value `projects/{project}/locations/{loc…
Browse files Browse the repository at this point in the history
…ation}/authorizedViewSets/{authorized_view_set}/authorizedViews/{authorized_view}/conversations/{conversation}` added to the resource definition `contactcenter... (#7952)

* feat: A new resource pattern value `projects/{project}/locations/{location}/authorizedViewSets/{authorized_view_set}/authorizedViews/{authorized_view}/conversations/{conversation}` added to the resource definition `contactcenterinsights.googleapis.com/Conversation`
feat: A new field `agent_type` is added to message `.google.cloud.contactcenterinsights.v1.Conversation`
feat: A new resource pattern value `projects/{project}/locations/{location}/authorizedViewSets/{authorized_view_set}/authorizedViews/{authorized_view}/conversations/{conversation}/analyses/{analysis}` added to the resource definition `contactcenterinsights.googleapis.com/Analysis`
feat: A new resource pattern value `projects/{project}/locations/{location}/authorizedViewSets/{authorized_view_set}/authorizedViews/{authorized_view}/conversations/{conversation}/feedbackLabels/{feedback_label}` added to the resource definition `contactcenterinsights.googleapis.com/FeedbackLabel`
PiperOrigin-RevId: 707203752
Source-Link: googleapis/googleapis@5546362
Source-Link: googleapis/googleapis-gen@f7186d1
Copy-Tag: eyJwIjoiQ29udGFjdENlbnRlckluc2lnaHRzLy5Pd2xCb3QueWFtbCIsImgiOiJmNzE4NmQxNGI0M2Q3ZmE5MDVjN2Y2NGI0YTI4ODZiNjk1NjY3ZjAzIn0=
  • Loading branch information
gcf-owl-bot[bot] authored Dec 18, 2024
1 parent fd71e0f commit 8996bbe
Show file tree
Hide file tree
Showing 6 changed files with 225 additions and 0 deletions.
Binary file modified ContactCenterInsights/metadata/V1/ContactCenterInsights.php
Binary file not shown.
Binary file modified ContactCenterInsights/metadata/V1/Resources.php
Binary file not shown.
172 changes: 172 additions & 0 deletions ContactCenterInsights/src/V1/Client/ContactCenterInsightsClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,172 @@ public static function projectConversationParticipantName(
]);
}

/**
* Formats a string containing the fully-qualified path to represent a
* project_location_authorized_view_set_authorized_view_conversation resource.
*
* @param string $project
* @param string $location
* @param string $authorizedViewSet
* @param string $authorizedView
* @param string $conversation
*
* @return string The formatted project_location_authorized_view_set_authorized_view_conversation resource.
*/
public static function projectLocationAuthorizedViewSetAuthorizedViewConversationName(
string $project,
string $location,
string $authorizedViewSet,
string $authorizedView,
string $conversation
): string {
return self::getPathTemplate('projectLocationAuthorizedViewSetAuthorizedViewConversation')->render([
'project' => $project,
'location' => $location,
'authorized_view_set' => $authorizedViewSet,
'authorized_view' => $authorizedView,
'conversation' => $conversation,
]);
}

/**
* Formats a string containing the fully-qualified path to represent a
* project_location_authorized_view_set_authorized_view_conversation_analysis
* resource.
*
* @param string $project
* @param string $location
* @param string $authorizedViewSet
* @param string $authorizedView
* @param string $conversation
* @param string $analysis
*
* @return string The formatted project_location_authorized_view_set_authorized_view_conversation_analysis resource.
*/
public static function projectLocationAuthorizedViewSetAuthorizedViewConversationAnalysisName(
string $project,
string $location,
string $authorizedViewSet,
string $authorizedView,
string $conversation,
string $analysis
): string {
return self::getPathTemplate('projectLocationAuthorizedViewSetAuthorizedViewConversationAnalysis')->render([
'project' => $project,
'location' => $location,
'authorized_view_set' => $authorizedViewSet,
'authorized_view' => $authorizedView,
'conversation' => $conversation,
'analysis' => $analysis,
]);
}

/**
* Formats a string containing the fully-qualified path to represent a
* project_location_authorized_view_set_authorized_view_conversation_feedback_label
* resource.
*
* @param string $project
* @param string $location
* @param string $authorizedViewSet
* @param string $authorizedView
* @param string $conversation
* @param string $feedbackLabel
*
* @return string The formatted project_location_authorized_view_set_authorized_view_conversation_feedback_label resource.
*/
public static function projectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabelName(
string $project,
string $location,
string $authorizedViewSet,
string $authorizedView,
string $conversation,
string $feedbackLabel
): string {
return self::getPathTemplate('projectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabel')->render(
[
'project' => $project,
'location' => $location,
'authorized_view_set' => $authorizedViewSet,
'authorized_view' => $authorizedView,
'conversation' => $conversation,
'feedback_label' => $feedbackLabel,
]
);
}

/**
* Formats a string containing the fully-qualified path to represent a
* project_location_conversation resource.
*
* @param string $project
* @param string $location
* @param string $conversation
*
* @return string The formatted project_location_conversation resource.
*/
public static function projectLocationConversationName(
string $project,
string $location,
string $conversation
): string {
return self::getPathTemplate('projectLocationConversation')->render([
'project' => $project,
'location' => $location,
'conversation' => $conversation,
]);
}

/**
* Formats a string containing the fully-qualified path to represent a
* project_location_conversation_analysis resource.
*
* @param string $project
* @param string $location
* @param string $conversation
* @param string $analysis
*
* @return string The formatted project_location_conversation_analysis resource.
*/
public static function projectLocationConversationAnalysisName(
string $project,
string $location,
string $conversation,
string $analysis
): string {
return self::getPathTemplate('projectLocationConversationAnalysis')->render([
'project' => $project,
'location' => $location,
'conversation' => $conversation,
'analysis' => $analysis,
]);
}

/**
* Formats a string containing the fully-qualified path to represent a
* project_location_conversation_feedback_label resource.
*
* @param string $project
* @param string $location
* @param string $conversation
* @param string $feedbackLabel
*
* @return string The formatted project_location_conversation_feedback_label resource.
*/
public static function projectLocationConversationFeedbackLabelName(
string $project,
string $location,
string $conversation,
string $feedbackLabel
): string {
return self::getPathTemplate('projectLocationConversationFeedbackLabel')->render([
'project' => $project,
'location' => $location,
'conversation' => $conversation,
'feedback_label' => $feedbackLabel,
]);
}

/**
* Formats a string containing the fully-qualified path to represent a
* project_location_conversation_participant resource.
Expand Down Expand Up @@ -745,6 +911,12 @@ public static function viewName(string $project, string $location, string $view)
* - participant: projects/{project}/conversations/{conversation}/participants/{participant}
* - phraseMatcher: projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher}
* - projectConversationParticipant: projects/{project}/conversations/{conversation}/participants/{participant}
* - projectLocationAuthorizedViewSetAuthorizedViewConversation: projects/{project}/locations/{location}/authorizedViewSets/{authorized_view_set}/authorizedViews/{authorized_view}/conversations/{conversation}
* - projectLocationAuthorizedViewSetAuthorizedViewConversationAnalysis: projects/{project}/locations/{location}/authorizedViewSets/{authorized_view_set}/authorizedViews/{authorized_view}/conversations/{conversation}/analyses/{analysis}
* - projectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabel: projects/{project}/locations/{location}/authorizedViewSets/{authorized_view_set}/authorizedViews/{authorized_view}/conversations/{conversation}/feedbackLabels/{feedback_label}
* - projectLocationConversation: projects/{project}/locations/{location}/conversations/{conversation}
* - projectLocationConversationAnalysis: projects/{project}/locations/{location}/conversations/{conversation}/analyses/{analysis}
* - projectLocationConversationFeedbackLabel: projects/{project}/locations/{location}/conversations/{conversation}/feedbackLabels/{feedback_label}
* - projectLocationConversationParticipant: projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant}
* - qaQuestion: projects/{project}/locations/{location}/qaScorecards/{qa_scorecard}/revisions/{revision}/qaQuestions/{qa_question}
* - qaScorecard: projects/{project}/locations/{location}/qaScorecards/{qa_scorecard}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -1134,6 +1134,12 @@
'participant' => 'projects/{project}/conversations/{conversation}/participants/{participant}',
'phraseMatcher' => 'projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher}',
'projectConversationParticipant' => 'projects/{project}/conversations/{conversation}/participants/{participant}',
'projectLocationAuthorizedViewSetAuthorizedViewConversation' => 'projects/{project}/locations/{location}/authorizedViewSets/{authorized_view_set}/authorizedViews/{authorized_view}/conversations/{conversation}',
'projectLocationAuthorizedViewSetAuthorizedViewConversationAnalysis' => 'projects/{project}/locations/{location}/authorizedViewSets/{authorized_view_set}/authorizedViews/{authorized_view}/conversations/{conversation}/analyses/{analysis}',
'projectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabel' => 'projects/{project}/locations/{location}/authorizedViewSets/{authorized_view_set}/authorizedViews/{authorized_view}/conversations/{conversation}/feedbackLabels/{feedback_label}',
'projectLocationConversation' => 'projects/{project}/locations/{location}/conversations/{conversation}',
'projectLocationConversationAnalysis' => 'projects/{project}/locations/{location}/conversations/{conversation}/analyses/{analysis}',
'projectLocationConversationFeedbackLabel' => 'projects/{project}/locations/{location}/conversations/{conversation}/feedbackLabels/{feedback_label}',
'projectLocationConversationParticipant' => 'projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant}',
'qaQuestion' => 'projects/{project}/locations/{location}/qaScorecards/{qa_scorecard}/revisions/{revision}/qaQuestions/{qa_question}',
'qaScorecard' => 'projects/{project}/locations/{location}/qaScorecards/{qa_scorecard}',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@
'CalculateStats' => [
'method' => 'get',
'uriTemplate' => '/v1/{location=projects/*/locations/*}/conversations:calculateStats',
'additionalBindings' => [
[
'method' => 'get',
'uriTemplate' => '/v1/{location=projects/*/locations/*/authorizedViewSet/*/authorizedView/*}:calculateStats',
],
],
'placeholders' => [
'location' => [
'getters' => [
Expand Down Expand Up @@ -698,6 +704,13 @@
'method' => 'post',
'uriTemplate' => '/v1/{location=projects/*/locations/*}:queryMetrics',
'body' => '*',
'additionalBindings' => [
[
'method' => 'post',
'uriTemplate' => '/v1/{location=projects/*/locations/*/authorizedViewSet/*/authorizedView/*}:queryMetrics',
'body' => '*',
],
],
'placeholders' => [
'location' => [
'getters' => [
Expand Down

0 comments on commit 8996bbe

Please sign in to comment.