-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
Copy pathterraform.yaml
178 lines (176 loc) · 7.58 KB
/
terraform.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
# Copyright 2021 Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
--- !ruby/object:Provider::Terraform::Config
overrides: !ruby/object:Overrides::ResourceOverrides
Dataset: !ruby/object:Overrides::Terraform::ResourceOverride
autogen_async: false
id_format: '{{name}}'
exclude_import: true
skip_sweeper: true
examples:
- !ruby/object:Provider::Terraform::Examples
name: "vertex_ai_dataset"
skip_import_test: true
primary_resource_id: "dataset"
vars:
display_name: "terraform"
properties:
labels: !ruby/object:Overrides::Terraform::PropertyOverride
default_from_api: true
region: !ruby/object:Overrides::Terraform::PropertyOverride
default_from_api: true
Endpoint: !ruby/object:Overrides::Terraform::ResourceOverride
examples:
- !ruby/object:Provider::Terraform::Examples
name: "vertex_ai_endpoint_network"
# Test is covered by handwritten test to include an update.
skip_test: true
primary_resource_id: "endpoint"
vars:
name: "vertex_ai_endpoint"
project: "vertex-ai"
endpoint_name: "endpoint-name"
address_name: "address-name"
kms_key_name: "kms-name"
network_name: "network-name"
test_vars_overrides:
kms_key_name: 'BootstrapKMSKeyInLocation(t, "us-central1").CryptoKey.Name'
network_name: 'BootstrapSharedTestNetwork(t, "vertex")'
properties:
etag: !ruby/object:Overrides::Terraform::PropertyOverride
ignore_read: true
Featurestore: !ruby/object:Overrides::Terraform::ResourceOverride
autogen_async: false
skip_sweeper: true
examples:
- !ruby/object:Provider::Terraform::Examples
name: "vertex_ai_featurestore"
primary_resource_id: "featurestore"
primary_resource_name: "fmt.Sprintf(\"terraform%s\", context[\"random_suffix\"])"
vars:
name: "terraform"
project: "appeng-flex"
kms_key_name: "kms-name"
test_env_vars:
org_id: :ORG_ID
billing_account: :BILLING_ACCT
test_vars_overrides:
kms_key_name: 'BootstrapKMSKeyInLocation(t, "us-central1").CryptoKey.Name'
ignore_read_extra:
- "force_destroy"
properties:
region: !ruby/object:Overrides::Terraform::PropertyOverride
default_from_api: true
etag: !ruby/object:Overrides::Terraform::PropertyOverride
ignore_read: true
name: !ruby/object:Overrides::Terraform::PropertyOverride
custom_flatten: templates/terraform/custom_flatten/name_from_self_link.erb
custom_code: !ruby/object:Provider::Terraform::CustomCode
pre_delete: templates/terraform/pre_delete/vertex_ai_force_delete.go.erb
virtual_fields:
- !ruby/object:Api::Type::Boolean
name: 'force_destroy'
description: 'If set to true, any EntityTypes and Features for this Featurestore will also be deleted'
default_value: false
FeaturestoreEntitytype: !ruby/object:Overrides::Terraform::ResourceOverride
import_format: ["{{%featurestore}}/entityTypes/{{name}}"]
autogen_async: false
skip_sweeper: true
examples:
- !ruby/object:Provider::Terraform::Examples
name: "vertex_ai_featurestore_entitytype"
primary_resource_id: "entity"
vars:
name: "terraform"
project: "vertex-ai"
kms_key_name: "kms-name"
test_env_vars:
org_id: :ORG_ID
billing_account: :BILLING_ACCT
test_vars_overrides:
kms_key_name: 'BootstrapKMSKeyInLocation(t, "us-central1").CryptoKey.Name'
- !ruby/object:Provider::Terraform::Examples
name: "vertex_ai_featurestore_entitytype_with_beta_fields"
primary_resource_id: "entity"
vars:
name: "terraform2"
project: "vertex-ai"
kms_key_name: "kms-name"
test_env_vars:
org_id: :ORG_ID
billing_account: :BILLING_ACCT
test_vars_overrides:
kms_key_name: 'BootstrapKMSKeyInLocation(t, "us-central1").CryptoKey.Name'
min_version: beta
properties:
etag: !ruby/object:Overrides::Terraform::PropertyOverride
ignore_read: true
name: !ruby/object:Overrides::Terraform::PropertyOverride
custom_flatten: templates/terraform/custom_flatten/name_from_self_link.erb
monitoringConfig.snapshotAnalysis.monitoringInterval: !ruby/object:Overrides::Terraform::PropertyOverride
default_from_api: true
custom_code: !ruby/object:Provider::Terraform::CustomCode
pre_create: templates/terraform/constants/vertex_ai_featurestore_entitytype.go.erb
pre_delete: templates/terraform/constants/vertex_ai_featurestore_entitytype.go.erb
custom_import: templates/terraform/custom_import/vertex_ai_featurestore_entitytype.go.erb
extra_schema_entry: templates/terraform/extra_schema_entry/vertex_ai_featurestore_entitytype.go.erb
encoder: templates/terraform/encoders/vertex_ai_featurestore_entitytype.go.erb
FeaturestoreEntitytypeFeature: !ruby/object:Overrides::Terraform::ResourceOverride
import_format: ["{{%entitytype}}/features/{{name}}"]
autogen_async: false
examples:
- !ruby/object:Provider::Terraform::Examples
name: "vertex_ai_featurestore_entitytype_feature"
primary_resource_id: "feature"
vars:
name: "terraform"
project: "vertex-ai"
kms_key_name: "kms-name"
- !ruby/object:Provider::Terraform::Examples
name: "vertex_ai_featurestore_entitytype_feature_with_beta_fields"
primary_resource_id: "feature"
vars:
name: "terraform2"
project: "vertex-ai"
kms_key_name: "kms-name"
min_version: beta
properties:
etag: !ruby/object:Overrides::Terraform::PropertyOverride
ignore_read: true
name: !ruby/object:Overrides::Terraform::PropertyOverride
custom_flatten: templates/terraform/custom_flatten/name_from_self_link.erb
custom_code: !ruby/object:Provider::Terraform::CustomCode
pre_create: templates/terraform/constants/vertex_ai_featurestore_entitytype_feature.go.erb
pre_delete: templates/terraform/constants/vertex_ai_featurestore_entitytype_feature.go.erb
MetadataStore: !ruby/object:Overrides::Terraform::ResourceOverride
autogen_async: false
id_format: '{{name}}'
skip_sweeper: true
examples:
- !ruby/object:Provider::Terraform::Examples
name: "vertex_ai_metadata_store"
skip_test: true
primary_resource_id: "store"
vars:
name: "test-store"
properties:
name: !ruby/object:Overrides::Terraform::PropertyOverride
custom_flatten: templates/terraform/custom_flatten/name_from_self_link.erb
region: !ruby/object:Overrides::Terraform::PropertyOverride
default_from_api: true
# This is for copying files over
files: !ruby/object:Provider::Config::Files
# These files have templating (ERB) code that will be run.
# This is usually to add licensing info, autogeneration notices, etc.
compile:
<%= lines(indent(compile('provider/terraform/product~compile.yaml'), 4)) -%>