diff --git a/packages/google-cloud-contactcenterinsights/protos/google/cloud/contactcenterinsights/v1/contact_center_insights.proto b/packages/google-cloud-contactcenterinsights/protos/google/cloud/contactcenterinsights/v1/contact_center_insights.proto index 0663e6e7c63..42aa5089dd4 100644 --- a/packages/google-cloud-contactcenterinsights/protos/google/cloud/contactcenterinsights/v1/contact_center_insights.proto +++ b/packages/google-cloud-contactcenterinsights/protos/google/cloud/contactcenterinsights/v1/contact_center_insights.proto @@ -402,6 +402,9 @@ service ContactCenterInsights { rpc CalculateStats(CalculateStatsRequest) returns (CalculateStatsResponse) { option (google.api.http) = { get: "/v1/{location=projects/*/locations/*}/conversations:calculateStats" + additional_bindings { + get: "/v1/{location=projects/*/locations/*/authorizedViewSet/*/authorizedView/*}:calculateStats" + } }; option (google.api.method_signature) = "location"; } @@ -540,6 +543,10 @@ service ContactCenterInsights { option (google.api.http) = { post: "/v1/{location=projects/*/locations/*}:queryMetrics" body: "*" + additional_bindings { + post: "/v1/{location=projects/*/locations/*/authorizedViewSet/*/authorizedView/*}:queryMetrics" + body: "*" + } }; option (google.longrunning.operation_info) = { response_type: "QueryMetricsResponse" diff --git a/packages/google-cloud-contactcenterinsights/protos/google/cloud/contactcenterinsights/v1/resources.proto b/packages/google-cloud-contactcenterinsights/protos/google/cloud/contactcenterinsights/v1/resources.proto index 903f83efa90..212514484a0 100644 --- a/packages/google-cloud-contactcenterinsights/protos/google/cloud/contactcenterinsights/v1/resources.proto +++ b/packages/google-cloud-contactcenterinsights/protos/google/cloud/contactcenterinsights/v1/resources.proto @@ -69,6 +69,7 @@ message Conversation { option (google.api.resource) = { type: "contactcenterinsights.googleapis.com/Conversation" pattern: "projects/{project}/locations/{location}/conversations/{conversation}" + pattern: "projects/{project}/locations/{location}/authorizedViewSets/{authorized_view_set}/authorizedViews/{authorized_view}/conversations/{conversation}" plural: "conversations" singular: "conversation" }; @@ -98,6 +99,9 @@ message Conversation { // A user-provided string indicating the outcome of the agent's segment of // the call. string disposition_code = 4; + + // The agent type, e.g. HUMAN_AGENT. + ConversationParticipant.Role agent_type = 5; } // An arbitrary integer value indicating the customer's satisfaction rating. @@ -292,6 +296,7 @@ message Analysis { option (google.api.resource) = { type: "contactcenterinsights.googleapis.com/Analysis" pattern: "projects/{project}/locations/{location}/conversations/{conversation}/analyses/{analysis}" + pattern: "projects/{project}/locations/{location}/authorizedViewSets/{authorized_view_set}/authorizedViews/{authorized_view}/conversations/{conversation}/analyses/{analysis}" plural: "analyses" singular: "analysis" }; @@ -412,6 +417,7 @@ message FeedbackLabel { option (google.api.resource) = { type: "contactcenterinsights.googleapis.com/FeedbackLabel" pattern: "projects/{project}/locations/{location}/conversations/{conversation}/feedbackLabels/{feedback_label}" + pattern: "projects/{project}/locations/{location}/authorizedViewSets/{authorized_view_set}/authorizedViews/{authorized_view}/conversations/{conversation}/feedbackLabels/{feedback_label}" plural: "feedbackLabels" singular: "feedbackLabel" }; diff --git a/packages/google-cloud-contactcenterinsights/protos/protos.d.ts b/packages/google-cloud-contactcenterinsights/protos/protos.d.ts index c4df76611a8..6d88938d194 100644 --- a/packages/google-cloud-contactcenterinsights/protos/protos.d.ts +++ b/packages/google-cloud-contactcenterinsights/protos/protos.d.ts @@ -17475,6 +17475,9 @@ export namespace google { /** AgentInfo dispositionCode */ dispositionCode?: (string|null); + + /** AgentInfo agentType */ + agentType?: (google.cloud.contactcenterinsights.v1.ConversationParticipant.Role|keyof typeof google.cloud.contactcenterinsights.v1.ConversationParticipant.Role|null); } /** Represents an AgentInfo. */ @@ -17498,6 +17501,9 @@ export namespace google { /** AgentInfo dispositionCode. */ public dispositionCode: string; + /** AgentInfo agentType. */ + public agentType: (google.cloud.contactcenterinsights.v1.ConversationParticipant.Role|keyof typeof google.cloud.contactcenterinsights.v1.ConversationParticipant.Role); + /** * Creates a new AgentInfo instance using the specified properties. * @param [properties] Properties to set diff --git a/packages/google-cloud-contactcenterinsights/protos/protos.js b/packages/google-cloud-contactcenterinsights/protos/protos.js index a8c4bab71b1..8b1de164245 100644 --- a/packages/google-cloud-contactcenterinsights/protos/protos.js +++ b/packages/google-cloud-contactcenterinsights/protos/protos.js @@ -40249,6 +40249,7 @@ * @property {string|null} [displayName] AgentInfo displayName * @property {string|null} [team] AgentInfo team * @property {string|null} [dispositionCode] AgentInfo dispositionCode + * @property {google.cloud.contactcenterinsights.v1.ConversationParticipant.Role|null} [agentType] AgentInfo agentType */ /** @@ -40298,6 +40299,14 @@ */ AgentInfo.prototype.dispositionCode = ""; + /** + * AgentInfo agentType. + * @member {google.cloud.contactcenterinsights.v1.ConversationParticipant.Role} agentType + * @memberof google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo + * @instance + */ + AgentInfo.prototype.agentType = 0; + /** * Creates a new AgentInfo instance using the specified properties. * @function create @@ -40330,6 +40339,8 @@ writer.uint32(/* id 3, wireType 2 =*/26).string(message.team); if (message.dispositionCode != null && Object.hasOwnProperty.call(message, "dispositionCode")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.dispositionCode); + if (message.agentType != null && Object.hasOwnProperty.call(message, "agentType")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.agentType); return writer; }; @@ -40380,6 +40391,10 @@ message.dispositionCode = reader.string(); break; } + case 5: { + message.agentType = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -40427,6 +40442,17 @@ if (message.dispositionCode != null && message.hasOwnProperty("dispositionCode")) if (!$util.isString(message.dispositionCode)) return "dispositionCode: string expected"; + if (message.agentType != null && message.hasOwnProperty("agentType")) + switch (message.agentType) { + default: + return "agentType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } return null; }; @@ -40450,6 +40476,34 @@ message.team = String(object.team); if (object.dispositionCode != null) message.dispositionCode = String(object.dispositionCode); + switch (object.agentType) { + default: + if (typeof object.agentType === "number") { + message.agentType = object.agentType; + break; + } + break; + case "ROLE_UNSPECIFIED": + case 0: + message.agentType = 0; + break; + case "HUMAN_AGENT": + case 1: + message.agentType = 1; + break; + case "AUTOMATED_AGENT": + case 2: + message.agentType = 2; + break; + case "END_USER": + case 3: + message.agentType = 3; + break; + case "ANY_AGENT": + case 4: + message.agentType = 4; + break; + } return message; }; @@ -40471,6 +40525,7 @@ object.displayName = ""; object.team = ""; object.dispositionCode = ""; + object.agentType = options.enums === String ? "ROLE_UNSPECIFIED" : 0; } if (message.agentId != null && message.hasOwnProperty("agentId")) object.agentId = message.agentId; @@ -40480,6 +40535,8 @@ object.team = message.team; if (message.dispositionCode != null && message.hasOwnProperty("dispositionCode")) object.dispositionCode = message.dispositionCode; + if (message.agentType != null && message.hasOwnProperty("agentType")) + object.agentType = options.enums === String ? $root.google.cloud.contactcenterinsights.v1.ConversationParticipant.Role[message.agentType] === undefined ? message.agentType : $root.google.cloud.contactcenterinsights.v1.ConversationParticipant.Role[message.agentType] : message.agentType; return object; }; diff --git a/packages/google-cloud-contactcenterinsights/protos/protos.json b/packages/google-cloud-contactcenterinsights/protos/protos.json index 28e3c6c4099..d0c4b762b61 100644 --- a/packages/google-cloud-contactcenterinsights/protos/protos.json +++ b/packages/google-cloud-contactcenterinsights/protos/protos.json @@ -753,12 +753,16 @@ "responseType": "CalculateStatsResponse", "options": { "(google.api.http).get": "/v1/{location=projects/*/locations/*}/conversations:calculateStats", + "(google.api.http).additional_bindings.get": "/v1/{location=projects/*/locations/*/authorizedViewSet/*/authorizedView/*}:calculateStats", "(google.api.method_signature)": "location" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v1/{location=projects/*/locations/*}/conversations:calculateStats" + "get": "/v1/{location=projects/*/locations/*}/conversations:calculateStats", + "additional_bindings": { + "get": "/v1/{location=projects/*/locations/*/authorizedViewSet/*/authorizedView/*}:calculateStats" + } } }, { @@ -1044,6 +1048,8 @@ "options": { "(google.api.http).post": "/v1/{location=projects/*/locations/*}:queryMetrics", "(google.api.http).body": "*", + "(google.api.http).additional_bindings.post": "/v1/{location=projects/*/locations/*/authorizedViewSet/*/authorizedView/*}:queryMetrics", + "(google.api.http).additional_bindings.body": "*", "(google.longrunning.operation_info).response_type": "QueryMetricsResponse", "(google.longrunning.operation_info).metadata_type": "QueryMetricsMetadata" }, @@ -1051,7 +1057,11 @@ { "(google.api.http)": { "post": "/v1/{location=projects/*/locations/*}:queryMetrics", - "body": "*" + "body": "*", + "additional_bindings": { + "post": "/v1/{location=projects/*/locations/*/authorizedViewSet/*/authorizedView/*}:queryMetrics", + "body": "*" + } } }, { @@ -4550,7 +4560,7 @@ "Conversation": { "options": { "(google.api.resource).type": "contactcenterinsights.googleapis.com/Conversation", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/conversations/{conversation}", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/authorizedViewSets/{authorized_view_set}/authorizedViews/{authorized_view}/conversations/{conversation}", "(google.api.resource).plural": "conversations", "(google.api.resource).singular": "conversation" }, @@ -4750,6 +4760,10 @@ "dispositionCode": { "type": "string", "id": 4 + }, + "agentType": { + "type": "ConversationParticipant.Role", + "id": 5 } } } @@ -4849,7 +4863,7 @@ "Analysis": { "options": { "(google.api.resource).type": "contactcenterinsights.googleapis.com/Analysis", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/conversations/{conversation}/analyses/{analysis}", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/authorizedViewSets/{authorized_view_set}/authorizedViews/{authorized_view}/conversations/{conversation}/analyses/{analysis}", "(google.api.resource).plural": "analyses", "(google.api.resource).singular": "analysis" }, @@ -5020,7 +5034,7 @@ "FeedbackLabel": { "options": { "(google.api.resource).type": "contactcenterinsights.googleapis.com/FeedbackLabel", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/conversations/{conversation}/feedbackLabels/{feedback_label}", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/authorizedViewSets/{authorized_view_set}/authorizedViews/{authorized_view}/conversations/{conversation}/feedbackLabels/{feedback_label}", "(google.api.resource).plural": "feedbackLabels", "(google.api.resource).singular": "feedbackLabel" }, diff --git a/packages/google-cloud-contactcenterinsights/src/v1/contact_center_insights_client.ts b/packages/google-cloud-contactcenterinsights/src/v1/contact_center_insights_client.ts index 33568873fc0..8e0b9f12768 100644 --- a/packages/google-cloud-contactcenterinsights/src/v1/contact_center_insights_client.ts +++ b/packages/google-cloud-contactcenterinsights/src/v1/contact_center_insights_client.ts @@ -207,21 +207,12 @@ export class ContactCenterInsightsClient { // identifiers to uniquely identify resources within the API. // Create useful helper objects for these. this.pathTemplates = { - analysisPathTemplate: new this._gaxModule.PathTemplate( - 'projects/{project}/locations/{location}/conversations/{conversation}/analyses/{analysis}' - ), analysisRulePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/analysisRules/{analysis_rule}' ), - conversationPathTemplate: new this._gaxModule.PathTemplate( - 'projects/{project}/locations/{location}/conversations/{conversation}' - ), encryptionSpecPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/encryptionSpec' ), - feedbackLabelPathTemplate: new this._gaxModule.PathTemplate( - 'projects/{project}/locations/{location}/conversations/{conversation}/feedbackLabels/{feedback_label}' - ), issuePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/issueModels/{issue_model}/issues/{issue}' ), @@ -234,6 +225,29 @@ export class ContactCenterInsightsClient { phraseMatcherPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher}' ), + projectLocationAuthorizedViewSetAuthorizedViewConversationPathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/authorizedViewSets/{authorized_view_set}/authorizedViews/{authorized_view}/conversations/{conversation}' + ), + projectLocationAuthorizedViewSetAuthorizedViewConversationAnalysisPathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/authorizedViewSets/{authorized_view_set}/authorizedViews/{authorized_view}/conversations/{conversation}/analyses/{analysis}' + ), + projectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabelPathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/authorizedViewSets/{authorized_view_set}/authorizedViews/{authorized_view}/conversations/{conversation}/feedbackLabels/{feedback_label}' + ), + projectLocationConversationPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/conversations/{conversation}' + ), + projectLocationConversationAnalysisPathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/conversations/{conversation}/analyses/{analysis}' + ), + projectLocationConversationFeedbackLabelPathTemplate: + new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/conversations/{conversation}/feedbackLabels/{feedback_label}' + ), qaQuestionPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/qaScorecards/{qa_scorecard}/revisions/{revision}/qaQuestions/{qa_question}' ), @@ -10458,74 +10472,6 @@ export class ContactCenterInsightsClient { // -- Path templates -- // -------------------- - /** - * Return a fully-qualified analysis resource name string. - * - * @param {string} project - * @param {string} location - * @param {string} conversation - * @param {string} analysis - * @returns {string} Resource name string. - */ - analysisPath( - project: string, - location: string, - conversation: string, - analysis: string - ) { - return this.pathTemplates.analysisPathTemplate.render({ - project: project, - location: location, - conversation: conversation, - analysis: analysis, - }); - } - - /** - * Parse the project from Analysis resource. - * - * @param {string} analysisName - * A fully-qualified path representing Analysis resource. - * @returns {string} A string representing the project. - */ - matchProjectFromAnalysisName(analysisName: string) { - return this.pathTemplates.analysisPathTemplate.match(analysisName).project; - } - - /** - * Parse the location from Analysis resource. - * - * @param {string} analysisName - * A fully-qualified path representing Analysis resource. - * @returns {string} A string representing the location. - */ - matchLocationFromAnalysisName(analysisName: string) { - return this.pathTemplates.analysisPathTemplate.match(analysisName).location; - } - - /** - * Parse the conversation from Analysis resource. - * - * @param {string} analysisName - * A fully-qualified path representing Analysis resource. - * @returns {string} A string representing the conversation. - */ - matchConversationFromAnalysisName(analysisName: string) { - return this.pathTemplates.analysisPathTemplate.match(analysisName) - .conversation; - } - - /** - * Parse the analysis from Analysis resource. - * - * @param {string} analysisName - * A fully-qualified path representing Analysis resource. - * @returns {string} A string representing the analysis. - */ - matchAnalysisFromAnalysisName(analysisName: string) { - return this.pathTemplates.analysisPathTemplate.match(analysisName).analysis; - } - /** * Return a fully-qualified analysisRule resource name string. * @@ -10578,58 +10524,6 @@ export class ContactCenterInsightsClient { .analysis_rule; } - /** - * Return a fully-qualified conversation resource name string. - * - * @param {string} project - * @param {string} location - * @param {string} conversation - * @returns {string} Resource name string. - */ - conversationPath(project: string, location: string, conversation: string) { - return this.pathTemplates.conversationPathTemplate.render({ - project: project, - location: location, - conversation: conversation, - }); - } - - /** - * Parse the project from Conversation resource. - * - * @param {string} conversationName - * A fully-qualified path representing Conversation resource. - * @returns {string} A string representing the project. - */ - matchProjectFromConversationName(conversationName: string) { - return this.pathTemplates.conversationPathTemplate.match(conversationName) - .project; - } - - /** - * Parse the location from Conversation resource. - * - * @param {string} conversationName - * A fully-qualified path representing Conversation resource. - * @returns {string} A string representing the location. - */ - matchLocationFromConversationName(conversationName: string) { - return this.pathTemplates.conversationPathTemplate.match(conversationName) - .location; - } - - /** - * Parse the conversation from Conversation resource. - * - * @param {string} conversationName - * A fully-qualified path representing Conversation resource. - * @returns {string} A string representing the conversation. - */ - matchConversationFromConversationName(conversationName: string) { - return this.pathTemplates.conversationPathTemplate.match(conversationName) - .conversation; - } - /** * Return a fully-qualified encryptionSpec resource name string. * @@ -10670,77 +10564,6 @@ export class ContactCenterInsightsClient { ).location; } - /** - * Return a fully-qualified feedbackLabel resource name string. - * - * @param {string} project - * @param {string} location - * @param {string} conversation - * @param {string} feedback_label - * @returns {string} Resource name string. - */ - feedbackLabelPath( - project: string, - location: string, - conversation: string, - feedbackLabel: string - ) { - return this.pathTemplates.feedbackLabelPathTemplate.render({ - project: project, - location: location, - conversation: conversation, - feedback_label: feedbackLabel, - }); - } - - /** - * Parse the project from FeedbackLabel resource. - * - * @param {string} feedbackLabelName - * A fully-qualified path representing FeedbackLabel resource. - * @returns {string} A string representing the project. - */ - matchProjectFromFeedbackLabelName(feedbackLabelName: string) { - return this.pathTemplates.feedbackLabelPathTemplate.match(feedbackLabelName) - .project; - } - - /** - * Parse the location from FeedbackLabel resource. - * - * @param {string} feedbackLabelName - * A fully-qualified path representing FeedbackLabel resource. - * @returns {string} A string representing the location. - */ - matchLocationFromFeedbackLabelName(feedbackLabelName: string) { - return this.pathTemplates.feedbackLabelPathTemplate.match(feedbackLabelName) - .location; - } - - /** - * Parse the conversation from FeedbackLabel resource. - * - * @param {string} feedbackLabelName - * A fully-qualified path representing FeedbackLabel resource. - * @returns {string} A string representing the conversation. - */ - matchConversationFromFeedbackLabelName(feedbackLabelName: string) { - return this.pathTemplates.feedbackLabelPathTemplate.match(feedbackLabelName) - .conversation; - } - - /** - * Parse the feedback_label from FeedbackLabel resource. - * - * @param {string} feedbackLabelName - * A fully-qualified path representing FeedbackLabel resource. - * @returns {string} A string representing the feedback_label. - */ - matchFeedbackLabelFromFeedbackLabelName(feedbackLabelName: string) { - return this.pathTemplates.feedbackLabelPathTemplate.match(feedbackLabelName) - .feedback_label; - } - /** * Return a fully-qualified issue resource name string. * @@ -10948,6 +10771,586 @@ export class ContactCenterInsightsClient { .phrase_matcher; } + /** + * Return a fully-qualified projectLocationAuthorizedViewSetAuthorizedViewConversation resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} authorized_view_set + * @param {string} authorized_view + * @param {string} conversation + * @returns {string} Resource name string. + */ + projectLocationAuthorizedViewSetAuthorizedViewConversationPath( + project: string, + location: string, + authorizedViewSet: string, + authorizedView: string, + conversation: string + ) { + return this.pathTemplates.projectLocationAuthorizedViewSetAuthorizedViewConversationPathTemplate.render( + { + project: project, + location: location, + authorized_view_set: authorizedViewSet, + authorized_view: authorizedView, + conversation: conversation, + } + ); + } + + /** + * Parse the project from ProjectLocationAuthorizedViewSetAuthorizedViewConversation resource. + * + * @param {string} projectLocationAuthorizedViewSetAuthorizedViewConversationName + * A fully-qualified path representing project_location_authorized_view_set_authorized_view_conversation resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationAuthorizedViewSetAuthorizedViewConversationName( + projectLocationAuthorizedViewSetAuthorizedViewConversationName: string + ) { + return this.pathTemplates.projectLocationAuthorizedViewSetAuthorizedViewConversationPathTemplate.match( + projectLocationAuthorizedViewSetAuthorizedViewConversationName + ).project; + } + + /** + * Parse the location from ProjectLocationAuthorizedViewSetAuthorizedViewConversation resource. + * + * @param {string} projectLocationAuthorizedViewSetAuthorizedViewConversationName + * A fully-qualified path representing project_location_authorized_view_set_authorized_view_conversation resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationAuthorizedViewSetAuthorizedViewConversationName( + projectLocationAuthorizedViewSetAuthorizedViewConversationName: string + ) { + return this.pathTemplates.projectLocationAuthorizedViewSetAuthorizedViewConversationPathTemplate.match( + projectLocationAuthorizedViewSetAuthorizedViewConversationName + ).location; + } + + /** + * Parse the authorized_view_set from ProjectLocationAuthorizedViewSetAuthorizedViewConversation resource. + * + * @param {string} projectLocationAuthorizedViewSetAuthorizedViewConversationName + * A fully-qualified path representing project_location_authorized_view_set_authorized_view_conversation resource. + * @returns {string} A string representing the authorized_view_set. + */ + matchAuthorizedViewSetFromProjectLocationAuthorizedViewSetAuthorizedViewConversationName( + projectLocationAuthorizedViewSetAuthorizedViewConversationName: string + ) { + return this.pathTemplates.projectLocationAuthorizedViewSetAuthorizedViewConversationPathTemplate.match( + projectLocationAuthorizedViewSetAuthorizedViewConversationName + ).authorized_view_set; + } + + /** + * Parse the authorized_view from ProjectLocationAuthorizedViewSetAuthorizedViewConversation resource. + * + * @param {string} projectLocationAuthorizedViewSetAuthorizedViewConversationName + * A fully-qualified path representing project_location_authorized_view_set_authorized_view_conversation resource. + * @returns {string} A string representing the authorized_view. + */ + matchAuthorizedViewFromProjectLocationAuthorizedViewSetAuthorizedViewConversationName( + projectLocationAuthorizedViewSetAuthorizedViewConversationName: string + ) { + return this.pathTemplates.projectLocationAuthorizedViewSetAuthorizedViewConversationPathTemplate.match( + projectLocationAuthorizedViewSetAuthorizedViewConversationName + ).authorized_view; + } + + /** + * Parse the conversation from ProjectLocationAuthorizedViewSetAuthorizedViewConversation resource. + * + * @param {string} projectLocationAuthorizedViewSetAuthorizedViewConversationName + * A fully-qualified path representing project_location_authorized_view_set_authorized_view_conversation resource. + * @returns {string} A string representing the conversation. + */ + matchConversationFromProjectLocationAuthorizedViewSetAuthorizedViewConversationName( + projectLocationAuthorizedViewSetAuthorizedViewConversationName: string + ) { + return this.pathTemplates.projectLocationAuthorizedViewSetAuthorizedViewConversationPathTemplate.match( + projectLocationAuthorizedViewSetAuthorizedViewConversationName + ).conversation; + } + + /** + * Return a fully-qualified projectLocationAuthorizedViewSetAuthorizedViewConversationAnalysis resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} authorized_view_set + * @param {string} authorized_view + * @param {string} conversation + * @param {string} analysis + * @returns {string} Resource name string. + */ + projectLocationAuthorizedViewSetAuthorizedViewConversationAnalysisPath( + project: string, + location: string, + authorizedViewSet: string, + authorizedView: string, + conversation: string, + analysis: string + ) { + return this.pathTemplates.projectLocationAuthorizedViewSetAuthorizedViewConversationAnalysisPathTemplate.render( + { + project: project, + location: location, + authorized_view_set: authorizedViewSet, + authorized_view: authorizedView, + conversation: conversation, + analysis: analysis, + } + ); + } + + /** + * Parse the project from ProjectLocationAuthorizedViewSetAuthorizedViewConversationAnalysis resource. + * + * @param {string} projectLocationAuthorizedViewSetAuthorizedViewConversationAnalysisName + * A fully-qualified path representing project_location_authorized_view_set_authorized_view_conversation_analysis resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationAuthorizedViewSetAuthorizedViewConversationAnalysisName( + projectLocationAuthorizedViewSetAuthorizedViewConversationAnalysisName: string + ) { + return this.pathTemplates.projectLocationAuthorizedViewSetAuthorizedViewConversationAnalysisPathTemplate.match( + projectLocationAuthorizedViewSetAuthorizedViewConversationAnalysisName + ).project; + } + + /** + * Parse the location from ProjectLocationAuthorizedViewSetAuthorizedViewConversationAnalysis resource. + * + * @param {string} projectLocationAuthorizedViewSetAuthorizedViewConversationAnalysisName + * A fully-qualified path representing project_location_authorized_view_set_authorized_view_conversation_analysis resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationAuthorizedViewSetAuthorizedViewConversationAnalysisName( + projectLocationAuthorizedViewSetAuthorizedViewConversationAnalysisName: string + ) { + return this.pathTemplates.projectLocationAuthorizedViewSetAuthorizedViewConversationAnalysisPathTemplate.match( + projectLocationAuthorizedViewSetAuthorizedViewConversationAnalysisName + ).location; + } + + /** + * Parse the authorized_view_set from ProjectLocationAuthorizedViewSetAuthorizedViewConversationAnalysis resource. + * + * @param {string} projectLocationAuthorizedViewSetAuthorizedViewConversationAnalysisName + * A fully-qualified path representing project_location_authorized_view_set_authorized_view_conversation_analysis resource. + * @returns {string} A string representing the authorized_view_set. + */ + matchAuthorizedViewSetFromProjectLocationAuthorizedViewSetAuthorizedViewConversationAnalysisName( + projectLocationAuthorizedViewSetAuthorizedViewConversationAnalysisName: string + ) { + return this.pathTemplates.projectLocationAuthorizedViewSetAuthorizedViewConversationAnalysisPathTemplate.match( + projectLocationAuthorizedViewSetAuthorizedViewConversationAnalysisName + ).authorized_view_set; + } + + /** + * Parse the authorized_view from ProjectLocationAuthorizedViewSetAuthorizedViewConversationAnalysis resource. + * + * @param {string} projectLocationAuthorizedViewSetAuthorizedViewConversationAnalysisName + * A fully-qualified path representing project_location_authorized_view_set_authorized_view_conversation_analysis resource. + * @returns {string} A string representing the authorized_view. + */ + matchAuthorizedViewFromProjectLocationAuthorizedViewSetAuthorizedViewConversationAnalysisName( + projectLocationAuthorizedViewSetAuthorizedViewConversationAnalysisName: string + ) { + return this.pathTemplates.projectLocationAuthorizedViewSetAuthorizedViewConversationAnalysisPathTemplate.match( + projectLocationAuthorizedViewSetAuthorizedViewConversationAnalysisName + ).authorized_view; + } + + /** + * Parse the conversation from ProjectLocationAuthorizedViewSetAuthorizedViewConversationAnalysis resource. + * + * @param {string} projectLocationAuthorizedViewSetAuthorizedViewConversationAnalysisName + * A fully-qualified path representing project_location_authorized_view_set_authorized_view_conversation_analysis resource. + * @returns {string} A string representing the conversation. + */ + matchConversationFromProjectLocationAuthorizedViewSetAuthorizedViewConversationAnalysisName( + projectLocationAuthorizedViewSetAuthorizedViewConversationAnalysisName: string + ) { + return this.pathTemplates.projectLocationAuthorizedViewSetAuthorizedViewConversationAnalysisPathTemplate.match( + projectLocationAuthorizedViewSetAuthorizedViewConversationAnalysisName + ).conversation; + } + + /** + * Parse the analysis from ProjectLocationAuthorizedViewSetAuthorizedViewConversationAnalysis resource. + * + * @param {string} projectLocationAuthorizedViewSetAuthorizedViewConversationAnalysisName + * A fully-qualified path representing project_location_authorized_view_set_authorized_view_conversation_analysis resource. + * @returns {string} A string representing the analysis. + */ + matchAnalysisFromProjectLocationAuthorizedViewSetAuthorizedViewConversationAnalysisName( + projectLocationAuthorizedViewSetAuthorizedViewConversationAnalysisName: string + ) { + return this.pathTemplates.projectLocationAuthorizedViewSetAuthorizedViewConversationAnalysisPathTemplate.match( + projectLocationAuthorizedViewSetAuthorizedViewConversationAnalysisName + ).analysis; + } + + /** + * Return a fully-qualified projectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabel resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} authorized_view_set + * @param {string} authorized_view + * @param {string} conversation + * @param {string} feedback_label + * @returns {string} Resource name string. + */ + projectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabelPath( + project: string, + location: string, + authorizedViewSet: string, + authorizedView: string, + conversation: string, + feedbackLabel: string + ) { + return this.pathTemplates.projectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabelPathTemplate.render( + { + project: project, + location: location, + authorized_view_set: authorizedViewSet, + authorized_view: authorizedView, + conversation: conversation, + feedback_label: feedbackLabel, + } + ); + } + + /** + * Parse the project from ProjectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabel resource. + * + * @param {string} projectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabelName + * A fully-qualified path representing project_location_authorized_view_set_authorized_view_conversation_feedback_label resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabelName( + projectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabelName: string + ) { + return this.pathTemplates.projectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabelPathTemplate.match( + projectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabelName + ).project; + } + + /** + * Parse the location from ProjectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabel resource. + * + * @param {string} projectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabelName + * A fully-qualified path representing project_location_authorized_view_set_authorized_view_conversation_feedback_label resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabelName( + projectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabelName: string + ) { + return this.pathTemplates.projectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabelPathTemplate.match( + projectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabelName + ).location; + } + + /** + * Parse the authorized_view_set from ProjectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabel resource. + * + * @param {string} projectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabelName + * A fully-qualified path representing project_location_authorized_view_set_authorized_view_conversation_feedback_label resource. + * @returns {string} A string representing the authorized_view_set. + */ + matchAuthorizedViewSetFromProjectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabelName( + projectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabelName: string + ) { + return this.pathTemplates.projectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabelPathTemplate.match( + projectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabelName + ).authorized_view_set; + } + + /** + * Parse the authorized_view from ProjectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabel resource. + * + * @param {string} projectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabelName + * A fully-qualified path representing project_location_authorized_view_set_authorized_view_conversation_feedback_label resource. + * @returns {string} A string representing the authorized_view. + */ + matchAuthorizedViewFromProjectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabelName( + projectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabelName: string + ) { + return this.pathTemplates.projectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabelPathTemplate.match( + projectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabelName + ).authorized_view; + } + + /** + * Parse the conversation from ProjectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabel resource. + * + * @param {string} projectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabelName + * A fully-qualified path representing project_location_authorized_view_set_authorized_view_conversation_feedback_label resource. + * @returns {string} A string representing the conversation. + */ + matchConversationFromProjectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabelName( + projectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabelName: string + ) { + return this.pathTemplates.projectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabelPathTemplate.match( + projectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabelName + ).conversation; + } + + /** + * Parse the feedback_label from ProjectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabel resource. + * + * @param {string} projectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabelName + * A fully-qualified path representing project_location_authorized_view_set_authorized_view_conversation_feedback_label resource. + * @returns {string} A string representing the feedback_label. + */ + matchFeedbackLabelFromProjectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabelName( + projectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabelName: string + ) { + return this.pathTemplates.projectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabelPathTemplate.match( + projectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabelName + ).feedback_label; + } + + /** + * Return a fully-qualified projectLocationConversation resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} conversation + * @returns {string} Resource name string. + */ + projectLocationConversationPath( + project: string, + location: string, + conversation: string + ) { + return this.pathTemplates.projectLocationConversationPathTemplate.render({ + project: project, + location: location, + conversation: conversation, + }); + } + + /** + * Parse the project from ProjectLocationConversation resource. + * + * @param {string} projectLocationConversationName + * A fully-qualified path representing project_location_conversation resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationConversationName( + projectLocationConversationName: string + ) { + return this.pathTemplates.projectLocationConversationPathTemplate.match( + projectLocationConversationName + ).project; + } + + /** + * Parse the location from ProjectLocationConversation resource. + * + * @param {string} projectLocationConversationName + * A fully-qualified path representing project_location_conversation resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationConversationName( + projectLocationConversationName: string + ) { + return this.pathTemplates.projectLocationConversationPathTemplate.match( + projectLocationConversationName + ).location; + } + + /** + * Parse the conversation from ProjectLocationConversation resource. + * + * @param {string} projectLocationConversationName + * A fully-qualified path representing project_location_conversation resource. + * @returns {string} A string representing the conversation. + */ + matchConversationFromProjectLocationConversationName( + projectLocationConversationName: string + ) { + return this.pathTemplates.projectLocationConversationPathTemplate.match( + projectLocationConversationName + ).conversation; + } + + /** + * Return a fully-qualified projectLocationConversationAnalysis resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} conversation + * @param {string} analysis + * @returns {string} Resource name string. + */ + projectLocationConversationAnalysisPath( + project: string, + location: string, + conversation: string, + analysis: string + ) { + return this.pathTemplates.projectLocationConversationAnalysisPathTemplate.render( + { + project: project, + location: location, + conversation: conversation, + analysis: analysis, + } + ); + } + + /** + * Parse the project from ProjectLocationConversationAnalysis resource. + * + * @param {string} projectLocationConversationAnalysisName + * A fully-qualified path representing project_location_conversation_analysis resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationConversationAnalysisName( + projectLocationConversationAnalysisName: string + ) { + return this.pathTemplates.projectLocationConversationAnalysisPathTemplate.match( + projectLocationConversationAnalysisName + ).project; + } + + /** + * Parse the location from ProjectLocationConversationAnalysis resource. + * + * @param {string} projectLocationConversationAnalysisName + * A fully-qualified path representing project_location_conversation_analysis resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationConversationAnalysisName( + projectLocationConversationAnalysisName: string + ) { + return this.pathTemplates.projectLocationConversationAnalysisPathTemplate.match( + projectLocationConversationAnalysisName + ).location; + } + + /** + * Parse the conversation from ProjectLocationConversationAnalysis resource. + * + * @param {string} projectLocationConversationAnalysisName + * A fully-qualified path representing project_location_conversation_analysis resource. + * @returns {string} A string representing the conversation. + */ + matchConversationFromProjectLocationConversationAnalysisName( + projectLocationConversationAnalysisName: string + ) { + return this.pathTemplates.projectLocationConversationAnalysisPathTemplate.match( + projectLocationConversationAnalysisName + ).conversation; + } + + /** + * Parse the analysis from ProjectLocationConversationAnalysis resource. + * + * @param {string} projectLocationConversationAnalysisName + * A fully-qualified path representing project_location_conversation_analysis resource. + * @returns {string} A string representing the analysis. + */ + matchAnalysisFromProjectLocationConversationAnalysisName( + projectLocationConversationAnalysisName: string + ) { + return this.pathTemplates.projectLocationConversationAnalysisPathTemplate.match( + projectLocationConversationAnalysisName + ).analysis; + } + + /** + * Return a fully-qualified projectLocationConversationFeedbackLabel resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} conversation + * @param {string} feedback_label + * @returns {string} Resource name string. + */ + projectLocationConversationFeedbackLabelPath( + project: string, + location: string, + conversation: string, + feedbackLabel: string + ) { + return this.pathTemplates.projectLocationConversationFeedbackLabelPathTemplate.render( + { + project: project, + location: location, + conversation: conversation, + feedback_label: feedbackLabel, + } + ); + } + + /** + * Parse the project from ProjectLocationConversationFeedbackLabel resource. + * + * @param {string} projectLocationConversationFeedbackLabelName + * A fully-qualified path representing project_location_conversation_feedback_label resource. + * @returns {string} A string representing the project. + */ + matchProjectFromProjectLocationConversationFeedbackLabelName( + projectLocationConversationFeedbackLabelName: string + ) { + return this.pathTemplates.projectLocationConversationFeedbackLabelPathTemplate.match( + projectLocationConversationFeedbackLabelName + ).project; + } + + /** + * Parse the location from ProjectLocationConversationFeedbackLabel resource. + * + * @param {string} projectLocationConversationFeedbackLabelName + * A fully-qualified path representing project_location_conversation_feedback_label resource. + * @returns {string} A string representing the location. + */ + matchLocationFromProjectLocationConversationFeedbackLabelName( + projectLocationConversationFeedbackLabelName: string + ) { + return this.pathTemplates.projectLocationConversationFeedbackLabelPathTemplate.match( + projectLocationConversationFeedbackLabelName + ).location; + } + + /** + * Parse the conversation from ProjectLocationConversationFeedbackLabel resource. + * + * @param {string} projectLocationConversationFeedbackLabelName + * A fully-qualified path representing project_location_conversation_feedback_label resource. + * @returns {string} A string representing the conversation. + */ + matchConversationFromProjectLocationConversationFeedbackLabelName( + projectLocationConversationFeedbackLabelName: string + ) { + return this.pathTemplates.projectLocationConversationFeedbackLabelPathTemplate.match( + projectLocationConversationFeedbackLabelName + ).conversation; + } + + /** + * Parse the feedback_label from ProjectLocationConversationFeedbackLabel resource. + * + * @param {string} projectLocationConversationFeedbackLabelName + * A fully-qualified path representing project_location_conversation_feedback_label resource. + * @returns {string} A string representing the feedback_label. + */ + matchFeedbackLabelFromProjectLocationConversationFeedbackLabelName( + projectLocationConversationFeedbackLabelName: string + ) { + return this.pathTemplates.projectLocationConversationFeedbackLabelPathTemplate.match( + projectLocationConversationFeedbackLabelName + ).feedback_label; + } + /** * Return a fully-qualified qaQuestion resource name string. * diff --git a/packages/google-cloud-contactcenterinsights/test/gapic_contact_center_insights_v1.ts b/packages/google-cloud-contactcenterinsights/test/gapic_contact_center_insights_v1.ts index 878e56036ba..95d415e80bb 100644 --- a/packages/google-cloud-contactcenterinsights/test/gapic_contact_center_insights_v1.ts +++ b/packages/google-cloud-contactcenterinsights/test/gapic_contact_center_insights_v1.ts @@ -14277,83 +14277,6 @@ describe('v1.ContactCenterInsightsClient', () => { }); describe('Path templates', () => { - describe('analysis', () => { - const fakePath = '/rendered/path/analysis'; - const expectedParameters = { - project: 'projectValue', - location: 'locationValue', - conversation: 'conversationValue', - analysis: 'analysisValue', - }; - const client = - new contactcenterinsightsModule.v1.ContactCenterInsightsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - client.pathTemplates.analysisPathTemplate.render = sinon - .stub() - .returns(fakePath); - client.pathTemplates.analysisPathTemplate.match = sinon - .stub() - .returns(expectedParameters); - - it('analysisPath', () => { - const result = client.analysisPath( - 'projectValue', - 'locationValue', - 'conversationValue', - 'analysisValue' - ); - assert.strictEqual(result, fakePath); - assert( - (client.pathTemplates.analysisPathTemplate.render as SinonStub) - .getCall(-1) - .calledWith(expectedParameters) - ); - }); - - it('matchProjectFromAnalysisName', () => { - const result = client.matchProjectFromAnalysisName(fakePath); - assert.strictEqual(result, 'projectValue'); - assert( - (client.pathTemplates.analysisPathTemplate.match as SinonStub) - .getCall(-1) - .calledWith(fakePath) - ); - }); - - it('matchLocationFromAnalysisName', () => { - const result = client.matchLocationFromAnalysisName(fakePath); - assert.strictEqual(result, 'locationValue'); - assert( - (client.pathTemplates.analysisPathTemplate.match as SinonStub) - .getCall(-1) - .calledWith(fakePath) - ); - }); - - it('matchConversationFromAnalysisName', () => { - const result = client.matchConversationFromAnalysisName(fakePath); - assert.strictEqual(result, 'conversationValue'); - assert( - (client.pathTemplates.analysisPathTemplate.match as SinonStub) - .getCall(-1) - .calledWith(fakePath) - ); - }); - - it('matchAnalysisFromAnalysisName', () => { - const result = client.matchAnalysisFromAnalysisName(fakePath); - assert.strictEqual(result, 'analysisValue'); - assert( - (client.pathTemplates.analysisPathTemplate.match as SinonStub) - .getCall(-1) - .calledWith(fakePath) - ); - }); - }); - describe('analysisRule', () => { const fakePath = '/rendered/path/analysisRule'; const expectedParameters = { @@ -14419,71 +14342,6 @@ describe('v1.ContactCenterInsightsClient', () => { }); }); - describe('conversation', () => { - const fakePath = '/rendered/path/conversation'; - const expectedParameters = { - project: 'projectValue', - location: 'locationValue', - conversation: 'conversationValue', - }; - const client = - new contactcenterinsightsModule.v1.ContactCenterInsightsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - client.pathTemplates.conversationPathTemplate.render = sinon - .stub() - .returns(fakePath); - client.pathTemplates.conversationPathTemplate.match = sinon - .stub() - .returns(expectedParameters); - - it('conversationPath', () => { - const result = client.conversationPath( - 'projectValue', - 'locationValue', - 'conversationValue' - ); - assert.strictEqual(result, fakePath); - assert( - (client.pathTemplates.conversationPathTemplate.render as SinonStub) - .getCall(-1) - .calledWith(expectedParameters) - ); - }); - - it('matchProjectFromConversationName', () => { - const result = client.matchProjectFromConversationName(fakePath); - assert.strictEqual(result, 'projectValue'); - assert( - (client.pathTemplates.conversationPathTemplate.match as SinonStub) - .getCall(-1) - .calledWith(fakePath) - ); - }); - - it('matchLocationFromConversationName', () => { - const result = client.matchLocationFromConversationName(fakePath); - assert.strictEqual(result, 'locationValue'); - assert( - (client.pathTemplates.conversationPathTemplate.match as SinonStub) - .getCall(-1) - .calledWith(fakePath) - ); - }); - - it('matchConversationFromConversationName', () => { - const result = client.matchConversationFromConversationName(fakePath); - assert.strictEqual(result, 'conversationValue'); - assert( - (client.pathTemplates.conversationPathTemplate.match as SinonStub) - .getCall(-1) - .calledWith(fakePath) - ); - }); - }); - describe('encryptionSpec', () => { const fakePath = '/rendered/path/encryptionSpec'; const expectedParameters = { @@ -14537,83 +14395,6 @@ describe('v1.ContactCenterInsightsClient', () => { }); }); - describe('feedbackLabel', () => { - const fakePath = '/rendered/path/feedbackLabel'; - const expectedParameters = { - project: 'projectValue', - location: 'locationValue', - conversation: 'conversationValue', - feedback_label: 'feedbackLabelValue', - }; - const client = - new contactcenterinsightsModule.v1.ContactCenterInsightsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - client.pathTemplates.feedbackLabelPathTemplate.render = sinon - .stub() - .returns(fakePath); - client.pathTemplates.feedbackLabelPathTemplate.match = sinon - .stub() - .returns(expectedParameters); - - it('feedbackLabelPath', () => { - const result = client.feedbackLabelPath( - 'projectValue', - 'locationValue', - 'conversationValue', - 'feedbackLabelValue' - ); - assert.strictEqual(result, fakePath); - assert( - (client.pathTemplates.feedbackLabelPathTemplate.render as SinonStub) - .getCall(-1) - .calledWith(expectedParameters) - ); - }); - - it('matchProjectFromFeedbackLabelName', () => { - const result = client.matchProjectFromFeedbackLabelName(fakePath); - assert.strictEqual(result, 'projectValue'); - assert( - (client.pathTemplates.feedbackLabelPathTemplate.match as SinonStub) - .getCall(-1) - .calledWith(fakePath) - ); - }); - - it('matchLocationFromFeedbackLabelName', () => { - const result = client.matchLocationFromFeedbackLabelName(fakePath); - assert.strictEqual(result, 'locationValue'); - assert( - (client.pathTemplates.feedbackLabelPathTemplate.match as SinonStub) - .getCall(-1) - .calledWith(fakePath) - ); - }); - - it('matchConversationFromFeedbackLabelName', () => { - const result = client.matchConversationFromFeedbackLabelName(fakePath); - assert.strictEqual(result, 'conversationValue'); - assert( - (client.pathTemplates.feedbackLabelPathTemplate.match as SinonStub) - .getCall(-1) - .calledWith(fakePath) - ); - }); - - it('matchFeedbackLabelFromFeedbackLabelName', () => { - const result = client.matchFeedbackLabelFromFeedbackLabelName(fakePath); - assert.strictEqual(result, 'feedbackLabelValue'); - assert( - (client.pathTemplates.feedbackLabelPathTemplate.match as SinonStub) - .getCall(-1) - .calledWith(fakePath) - ); - }); - }); - describe('issue', () => { const fakePath = '/rendered/path/issue'; const expectedParameters = { @@ -14871,6 +14652,717 @@ describe('v1.ContactCenterInsightsClient', () => { }); }); + describe('projectLocationAuthorizedViewSetAuthorizedViewConversation', () => { + const fakePath = + '/rendered/path/projectLocationAuthorizedViewSetAuthorizedViewConversation'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + authorized_view_set: 'authorizedViewSetValue', + authorized_view: 'authorizedViewValue', + conversation: 'conversationValue', + }; + const client = + new contactcenterinsightsModule.v1.ContactCenterInsightsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationAuthorizedViewSetAuthorizedViewConversationPathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationAuthorizedViewSetAuthorizedViewConversationPathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationAuthorizedViewSetAuthorizedViewConversationPath', () => { + const result = + client.projectLocationAuthorizedViewSetAuthorizedViewConversationPath( + 'projectValue', + 'locationValue', + 'authorizedViewSetValue', + 'authorizedViewValue', + 'conversationValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates + .projectLocationAuthorizedViewSetAuthorizedViewConversationPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationAuthorizedViewSetAuthorizedViewConversationName', () => { + const result = + client.matchProjectFromProjectLocationAuthorizedViewSetAuthorizedViewConversationName( + fakePath + ); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates + .projectLocationAuthorizedViewSetAuthorizedViewConversationPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationAuthorizedViewSetAuthorizedViewConversationName', () => { + const result = + client.matchLocationFromProjectLocationAuthorizedViewSetAuthorizedViewConversationName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates + .projectLocationAuthorizedViewSetAuthorizedViewConversationPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchAuthorizedViewSetFromProjectLocationAuthorizedViewSetAuthorizedViewConversationName', () => { + const result = + client.matchAuthorizedViewSetFromProjectLocationAuthorizedViewSetAuthorizedViewConversationName( + fakePath + ); + assert.strictEqual(result, 'authorizedViewSetValue'); + assert( + ( + client.pathTemplates + .projectLocationAuthorizedViewSetAuthorizedViewConversationPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchAuthorizedViewFromProjectLocationAuthorizedViewSetAuthorizedViewConversationName', () => { + const result = + client.matchAuthorizedViewFromProjectLocationAuthorizedViewSetAuthorizedViewConversationName( + fakePath + ); + assert.strictEqual(result, 'authorizedViewValue'); + assert( + ( + client.pathTemplates + .projectLocationAuthorizedViewSetAuthorizedViewConversationPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchConversationFromProjectLocationAuthorizedViewSetAuthorizedViewConversationName', () => { + const result = + client.matchConversationFromProjectLocationAuthorizedViewSetAuthorizedViewConversationName( + fakePath + ); + assert.strictEqual(result, 'conversationValue'); + assert( + ( + client.pathTemplates + .projectLocationAuthorizedViewSetAuthorizedViewConversationPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('projectLocationAuthorizedViewSetAuthorizedViewConversationAnalysis', () => { + const fakePath = + '/rendered/path/projectLocationAuthorizedViewSetAuthorizedViewConversationAnalysis'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + authorized_view_set: 'authorizedViewSetValue', + authorized_view: 'authorizedViewValue', + conversation: 'conversationValue', + analysis: 'analysisValue', + }; + const client = + new contactcenterinsightsModule.v1.ContactCenterInsightsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationAuthorizedViewSetAuthorizedViewConversationAnalysisPathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationAuthorizedViewSetAuthorizedViewConversationAnalysisPathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationAuthorizedViewSetAuthorizedViewConversationAnalysisPath', () => { + const result = + client.projectLocationAuthorizedViewSetAuthorizedViewConversationAnalysisPath( + 'projectValue', + 'locationValue', + 'authorizedViewSetValue', + 'authorizedViewValue', + 'conversationValue', + 'analysisValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates + .projectLocationAuthorizedViewSetAuthorizedViewConversationAnalysisPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationAuthorizedViewSetAuthorizedViewConversationAnalysisName', () => { + const result = + client.matchProjectFromProjectLocationAuthorizedViewSetAuthorizedViewConversationAnalysisName( + fakePath + ); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates + .projectLocationAuthorizedViewSetAuthorizedViewConversationAnalysisPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationAuthorizedViewSetAuthorizedViewConversationAnalysisName', () => { + const result = + client.matchLocationFromProjectLocationAuthorizedViewSetAuthorizedViewConversationAnalysisName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates + .projectLocationAuthorizedViewSetAuthorizedViewConversationAnalysisPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchAuthorizedViewSetFromProjectLocationAuthorizedViewSetAuthorizedViewConversationAnalysisName', () => { + const result = + client.matchAuthorizedViewSetFromProjectLocationAuthorizedViewSetAuthorizedViewConversationAnalysisName( + fakePath + ); + assert.strictEqual(result, 'authorizedViewSetValue'); + assert( + ( + client.pathTemplates + .projectLocationAuthorizedViewSetAuthorizedViewConversationAnalysisPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchAuthorizedViewFromProjectLocationAuthorizedViewSetAuthorizedViewConversationAnalysisName', () => { + const result = + client.matchAuthorizedViewFromProjectLocationAuthorizedViewSetAuthorizedViewConversationAnalysisName( + fakePath + ); + assert.strictEqual(result, 'authorizedViewValue'); + assert( + ( + client.pathTemplates + .projectLocationAuthorizedViewSetAuthorizedViewConversationAnalysisPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchConversationFromProjectLocationAuthorizedViewSetAuthorizedViewConversationAnalysisName', () => { + const result = + client.matchConversationFromProjectLocationAuthorizedViewSetAuthorizedViewConversationAnalysisName( + fakePath + ); + assert.strictEqual(result, 'conversationValue'); + assert( + ( + client.pathTemplates + .projectLocationAuthorizedViewSetAuthorizedViewConversationAnalysisPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchAnalysisFromProjectLocationAuthorizedViewSetAuthorizedViewConversationAnalysisName', () => { + const result = + client.matchAnalysisFromProjectLocationAuthorizedViewSetAuthorizedViewConversationAnalysisName( + fakePath + ); + assert.strictEqual(result, 'analysisValue'); + assert( + ( + client.pathTemplates + .projectLocationAuthorizedViewSetAuthorizedViewConversationAnalysisPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('projectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabel', () => { + const fakePath = + '/rendered/path/projectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabel'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + authorized_view_set: 'authorizedViewSetValue', + authorized_view: 'authorizedViewValue', + conversation: 'conversationValue', + feedback_label: 'feedbackLabelValue', + }; + const client = + new contactcenterinsightsModule.v1.ContactCenterInsightsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabelPathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabelPathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabelPath', () => { + const result = + client.projectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabelPath( + 'projectValue', + 'locationValue', + 'authorizedViewSetValue', + 'authorizedViewValue', + 'conversationValue', + 'feedbackLabelValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates + .projectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabelPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabelName', () => { + const result = + client.matchProjectFromProjectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabelName( + fakePath + ); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates + .projectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabelPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabelName', () => { + const result = + client.matchLocationFromProjectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabelName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates + .projectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabelPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchAuthorizedViewSetFromProjectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabelName', () => { + const result = + client.matchAuthorizedViewSetFromProjectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabelName( + fakePath + ); + assert.strictEqual(result, 'authorizedViewSetValue'); + assert( + ( + client.pathTemplates + .projectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabelPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchAuthorizedViewFromProjectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabelName', () => { + const result = + client.matchAuthorizedViewFromProjectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabelName( + fakePath + ); + assert.strictEqual(result, 'authorizedViewValue'); + assert( + ( + client.pathTemplates + .projectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabelPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchConversationFromProjectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabelName', () => { + const result = + client.matchConversationFromProjectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabelName( + fakePath + ); + assert.strictEqual(result, 'conversationValue'); + assert( + ( + client.pathTemplates + .projectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabelPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeedbackLabelFromProjectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabelName', () => { + const result = + client.matchFeedbackLabelFromProjectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabelName( + fakePath + ); + assert.strictEqual(result, 'feedbackLabelValue'); + assert( + ( + client.pathTemplates + .projectLocationAuthorizedViewSetAuthorizedViewConversationFeedbackLabelPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('projectLocationConversation', () => { + const fakePath = '/rendered/path/projectLocationConversation'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + conversation: 'conversationValue', + }; + const client = + new contactcenterinsightsModule.v1.ContactCenterInsightsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationConversationPathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationConversationPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('projectLocationConversationPath', () => { + const result = client.projectLocationConversationPath( + 'projectValue', + 'locationValue', + 'conversationValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.projectLocationConversationPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationConversationName', () => { + const result = + client.matchProjectFromProjectLocationConversationName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.projectLocationConversationPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationConversationName', () => { + const result = + client.matchLocationFromProjectLocationConversationName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.projectLocationConversationPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchConversationFromProjectLocationConversationName', () => { + const result = + client.matchConversationFromProjectLocationConversationName(fakePath); + assert.strictEqual(result, 'conversationValue'); + assert( + ( + client.pathTemplates.projectLocationConversationPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('projectLocationConversationAnalysis', () => { + const fakePath = '/rendered/path/projectLocationConversationAnalysis'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + conversation: 'conversationValue', + analysis: 'analysisValue', + }; + const client = + new contactcenterinsightsModule.v1.ContactCenterInsightsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationConversationAnalysisPathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationConversationAnalysisPathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationConversationAnalysisPath', () => { + const result = client.projectLocationConversationAnalysisPath( + 'projectValue', + 'locationValue', + 'conversationValue', + 'analysisValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates.projectLocationConversationAnalysisPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationConversationAnalysisName', () => { + const result = + client.matchProjectFromProjectLocationConversationAnalysisName( + fakePath + ); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates.projectLocationConversationAnalysisPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationConversationAnalysisName', () => { + const result = + client.matchLocationFromProjectLocationConversationAnalysisName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates.projectLocationConversationAnalysisPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchConversationFromProjectLocationConversationAnalysisName', () => { + const result = + client.matchConversationFromProjectLocationConversationAnalysisName( + fakePath + ); + assert.strictEqual(result, 'conversationValue'); + assert( + ( + client.pathTemplates.projectLocationConversationAnalysisPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchAnalysisFromProjectLocationConversationAnalysisName', () => { + const result = + client.matchAnalysisFromProjectLocationConversationAnalysisName( + fakePath + ); + assert.strictEqual(result, 'analysisValue'); + assert( + ( + client.pathTemplates.projectLocationConversationAnalysisPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('projectLocationConversationFeedbackLabel', () => { + const fakePath = + '/rendered/path/projectLocationConversationFeedbackLabel'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + conversation: 'conversationValue', + feedback_label: 'feedbackLabelValue', + }; + const client = + new contactcenterinsightsModule.v1.ContactCenterInsightsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.projectLocationConversationFeedbackLabelPathTemplate.render = + sinon.stub().returns(fakePath); + client.pathTemplates.projectLocationConversationFeedbackLabelPathTemplate.match = + sinon.stub().returns(expectedParameters); + + it('projectLocationConversationFeedbackLabelPath', () => { + const result = client.projectLocationConversationFeedbackLabelPath( + 'projectValue', + 'locationValue', + 'conversationValue', + 'feedbackLabelValue' + ); + assert.strictEqual(result, fakePath); + assert( + ( + client.pathTemplates + .projectLocationConversationFeedbackLabelPathTemplate + .render as SinonStub + ) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromProjectLocationConversationFeedbackLabelName', () => { + const result = + client.matchProjectFromProjectLocationConversationFeedbackLabelName( + fakePath + ); + assert.strictEqual(result, 'projectValue'); + assert( + ( + client.pathTemplates + .projectLocationConversationFeedbackLabelPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromProjectLocationConversationFeedbackLabelName', () => { + const result = + client.matchLocationFromProjectLocationConversationFeedbackLabelName( + fakePath + ); + assert.strictEqual(result, 'locationValue'); + assert( + ( + client.pathTemplates + .projectLocationConversationFeedbackLabelPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchConversationFromProjectLocationConversationFeedbackLabelName', () => { + const result = + client.matchConversationFromProjectLocationConversationFeedbackLabelName( + fakePath + ); + assert.strictEqual(result, 'conversationValue'); + assert( + ( + client.pathTemplates + .projectLocationConversationFeedbackLabelPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchFeedbackLabelFromProjectLocationConversationFeedbackLabelName', () => { + const result = + client.matchFeedbackLabelFromProjectLocationConversationFeedbackLabelName( + fakePath + ); + assert.strictEqual(result, 'feedbackLabelValue'); + assert( + ( + client.pathTemplates + .projectLocationConversationFeedbackLabelPathTemplate + .match as SinonStub + ) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('qaQuestion', () => { const fakePath = '/rendered/path/qaQuestion'; const expectedParameters = {