...
1/**
2 * Copyright 2022 Google LLC
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17```hcl
18resource "google_dialogflow_agent" "basic_agent" {
19 display_name = "example_agent"
20 default_language_code = "en"
21 time_zone = "America/New_York"
22}
23
24resource "google_dialogflow_fulfillment" "basic_fulfillment" {
25 depends_on = [google_dialogflow_agent.basic_agent]
26 display_name = "basic-fulfillment"
27 enabled = true
28 generic_web_service {
29 uri = "https://google.com"
30 username = "admin"
31 password = "password"
32 request_headers = {
33 name = "wrench"
34 }
35 }
36}
37```
View as plain text