Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [ContactCenterInsights] A new resource pattern value projects/{project}/locations/{location}/authorizedViewSets/{authorized_view_set}/authorizedViews/{authorized_view}/conversations/{conversation} added to the resource definition `contactcenter... #7952

Merged
merged 2 commits into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading