forked from GoogleCloudPlatform/magic-modules
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathterraform.yaml
198 lines (193 loc) · 6.15 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
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
# Copyright 2017 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
objects: !ruby/object:Api::Resource::HashArray
Address:
# TODO: Add support for missing features needed by this resource
skip: true
BackendBucket:
id: "{{name}}"
ignore:
- id
# TODO: look into moving validation into api.yaml
validation:
name: '^(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)$'
BackendService:
# TODO: Add support for missing features needed by this resource
skip: true
Disk:
# TODO: Add support for missing features needed by this resource
skip: true
DiskType:
# TODO: Add support for missing features needed by this resource
skip: true
Firewall:
# TODO: Add support for missing features needed by this resource
skip: true
ForwardingRule:
id: "{{name}}"
ignore:
- id
diff_suppress_funcs:
portRange: "portRangeDiffSuppress"
# TODO: Add support for missing features needed by this resource
skip: true
GlobalAddress:
id: "{{name}}"
ignore:
- id
- region # TODO: Remove this from api.yaml instead of ignoring
# TODO: Add support for missing features needed by this resource
skip: true
GlobalForwardingRule:
# TODO: Add support for missing features needed by this resource
skip: true
HttpHealthCheck:
id: "{{name}}"
ignore:
- id
default_values:
checkIntervalSec: 5
healthyThreshold: 2
port: 80
requestPath: "/"
timeoutSec: 5
unhealthyThreshold: 2
HttpsHealthCheck:
id: "{{name}}"
ignore:
- id
default_values:
checkIntervalSec: 5
healthyThreshold: 2
port: 443
requestPath: "/"
timeoutSec: 5
unhealthyThreshold: 2
HealthCheck:
# TODO: Add support for missing features needed by this resource
skip: true
Image:
id: "{{name}}"
# TODO: Add support for aliasing. For instance, the sha1_checksum field
# in raw_disk is currently named `sha1` in our Terraform provider.
ignore:
- id
- deprecated
- guestOsFeatures
- imageEncryptionKey
- sourceDiskEncryptionKey
- sourceDiskId
- sourceType
- licenses
# TODO: Add support for missing features needed by this resource
skip: true
Instance:
# TODO: Add support for missing features needed by this resource
skip: true
InstanceGroup:
# TODO: Add support for missing features needed by this resource
skip: true
InstanceGroupManager:
# TODO: Add support for missing features needed by this resource
skip: true
InstanceTemplate:
# TODO: Add support for missing features needed by this resource
skip: true
License:
# TODO: Add support for missing features needed by this resource
skip: true
MachineType:
# TODO: Add support for missing features needed by this resource
skip: true
Network:
# TODO: Add support for missing features needed by this resource
skip: true
Region:
# TODO: Add support for missing features needed by this resource
skip: true
Route:
id: "{{name}}"
# TODO: Add support for missing features needed by this resource
skip: true
Snapshot:
# TODO: Add support for missing features needed by this resource
skip: true
SslCertificate:
id: "{{name}}"
ignore:
- id
sensitive:
- certificate
- privateKey
# TODO: Add support for missing features needed by this resource
skip: true
Subnetwork:
id: "{{region}}/{{name}}"
ignore:
- id
# TODO: Add support for missing features needed by this resource
skip: true
TargetHttpProxy:
id: "{{name}}"
ignore:
- id
# TODO: Alias id to proxy_id
# TODO: Add support for missing features needed by this resource
skip: true
TargetHttpsProxy:
id: "{{name}}"
ignore:
- id
# TODO: Alias id to proxy_id
# TODO: Add support for missing features needed by this resource
skip: true
TargetPool:
id: "{{name}}"
# TODO: Add support for missing features needed by this resource
skip: true
TargetSslProxy:
# TODO: Add support for missing features needed by this resource
skip: true
TargetTcpProxy:
# TODO: Add support for missing features needed by this resource
skip: true
UrlMap:
# TODO: Add support for missing features needed by this resource
skip: true
Zone:
# TODO: Add support for missing features needed by this resource
skip: true
# This is for a list of example files.
examples: !ruby/object:Api::Resource::HashArray
# This is for copying files over
files: !ruby/object:Provider::Config::Files
# All of these files will be copied verbatim.
copy:
'google/transport.go': 'templates/terraform/transport.go'
'google/transport_test.go': 'templates/terraform/transport_test.go'
'google/import.go': 'templates/terraform/import.go'
'google/import_test.go': 'templates/terraform/import_test.go'
# These files have templating (ERB) code that will be run.
# This is usually to add licensing info, autogeneration notices, etc.
compile:
# 'compiled_file': 'templates/terraform/compiled_file'
# This is for custom testing code. All of our tests follow a specific pattern
# that sometimes needs to be deviated from. We're working towards a world where
# these handwritten tests would be unnecessary in many cases (custom types).
tests: !ruby/object:Api::Resource::HashArray
# This would be for custom network responses. Tests work by running some block
# of autogenerated code and then verifying the network calls.
# The network call verifications are automatically generated, but can be
# overriden.
test_data: !ruby/object:Provider::Config::TestData