wonderful-midnight-15751
07/12/2022, 10:40 PMimport * as gcp from "@pulumi/google-native";
const customProvider = new gcp.Provider("default",{
project: "12312312"
})
const agent = new gcp.dialogflow.v3.Agent("Test", {
defaultLanguageCode: "DE",
displayName: "Pulumi-Demo",
timeZone: "Europe/Berlin",
location: "global",
}, {
provider: customProvider
})
const page = new gcp.dialogflow.v3.Page("basicPage", {
agentId: agent.id,
displayName: "BasicPage",
flowId: agent.startFlow,
location: "global",
}, {
provider: customProvider
})
Poorly I am getting the following error message:
error: error sending request: googleapi: Error 400: com.google.apps.framework.request.BadRequestException: Page name should not be specified as it will be automatically generated by Dialogflow upon creation.: "<https://dialogflow.googleapis.com/v3/projects/.../locations/global/agents/v3%2Fprojects%2Flocations%2Fglobal%2Fagents%2Fc6e7342e-3385-4846-af64-cbf6918c2b39/flows/projects%2FFlocations%2Fglobal%2Fagents%2Fc6e7342e-3385-4846-af64-cbf6918c2b39%2Fflows%2F00000000-0000-0000-0000-000000000000/pages>" map[__autonamed:true agentId:v3/projects/.../locations/global/agents/c6e7342e-3385-4846-af64-cbf6918c2b39 displayName:Hallo flowId:projects/.../locations/global/agents/c6e7342e-3385-4846-af64-cbf6918c2b39/flows/00000000-0000-0000-0000-000000000000 location:global name:projects/.../locations/global/agents/v3/projects/.../locations/global/agents/c6e7342e-3385-4846-af64-cbf6918c2b39/flows/projects/.../locations/global/agents/c6e7342e-3385-4846-af64-cbf6918c2b39/flows/00000000-0000-0000-0000-000000000000/pages/5757dc8e-e2ce-4d51-a257-675cd7c00e01-5bc9156 project:...]
It seams Pulumi wants to set the name / id of the page. But google does not allow it. Someone who tried this earlier?
Thanks for helping!No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by