forked from GoogleCloudPlatform/magic-modules
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDomain.yaml
More file actions
425 lines (422 loc) · 17.7 KB
/
Domain.yaml
File metadata and controls
425 lines (422 loc) · 17.7 KB
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
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
# Copyright 2025 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.
---
name: Domain
description: A domain name that is associated with a backend.
base_url: projects/{{project}}/locations/{{location}}/backends/{{backend}}/domains
update_mask: true
self_link: projects/{{project}}/locations/{{location}}/backends/{{backend}}/domains/{{domain_id}}
create_url: projects/{{project}}/locations/{{location}}/backends/{{backend}}/domains?domainId={{domain_id}}
update_verb: PATCH
id_format: projects/{{project}}/locations/{{location}}/backends/{{backend}}/domains/{{domain_id}}
import_format:
- projects/{{project}}/locations/{{location}}/backends/{{backend}}/domains/{{domain_id}}
- "{{project}}/{{location}}/{{backend}}/{{domain_id}}"
- "{{location}}/{{backend}}/{{domain_id}}"
autogen_async: true
async:
operation:
timeouts:
update_minutes: 20
delete_minutes: 20
base_url: "{{op_id}}"
actions:
- update
- delete
type: PollAsync
include_project: false
check_response_func_existence: 'transport_tpg.PollCheckForExistence'
check_response_func_absence: 'transport_tpg.PollCheckForAbsence'
# Errors are on the Domain resource itself
suppress_error: true
examples:
- name: firebase_app_hosting_domain_minimal
primary_resource_id: example
vars:
backend_id: 'domain-mini'
service_act_id: 'sa-id'
domain_id: example.com
test_env_vars:
project_id: 'PROJECT_NAME'
test_vars_overrides:
domain_id: '"my-domain-m.com"'
# prevent tests from colliding with each other
service_act_id: '"tf-test-domain-m"'
- name: firebase_app_hosting_domain_full
primary_resource_id: example
vars:
backend_id: 'domain-full'
service_act_id: 'sa-id'
domain_id: example.com
test_env_vars:
project_id: 'PROJECT_NAME'
test_vars_overrides:
domain_id: '"my-domain.com"'
# prevent tests from colliding with each other
service_act_id: '"tf-test-domain"'
autogen_status: RG9tYWlu
parameters:
- name: location
type: String
description: The location of the Backend that this Domain is associated with
immutable: true
url_param_only: true
required: true
- name: backend
type: String
description: The ID of the Backend that this Domain is associated with
immutable: true
url_param_only: true
required: true
- name: domainId
type: String
description: |-
Id of the domain to create.
Must be a valid domain name, such as "foo.com"
immutable: true
url_param_only: true
required: true
properties:
- name: customDomainStatus
type: NestedObject
description: The status of a custom domain's linkage to the Backend.
output: true
properties:
- name: certState
type: String
output: true
description: |-
Possible values:
CERT_PREPARING
CERT_VALIDATING
CERT_PROPAGATING
CERT_ACTIVE
CERT_EXPIRING_SOON
CERT_EXPIRED
- name: requiredDnsUpdates
type: Array
description: |-
Lists the records that must added or removed to a custom domain's DNS
in order to finish setup and start serving content.
Field is present during onboarding. Also present after onboarding if one
or more of the above states is not *_ACTIVE, indicating the domain's DNS
records are in a bad state.
output: true
item_type:
type: NestedObject
properties:
- name: domainName
type: String
description: The domain name the DNS updates pertain to.
output: true
- name: discovered
type: Array
description: The set of DNS records App Hosting discovered when inspecting a domain.
output: true
item_type:
type: NestedObject
properties:
- name: domainName
type: String
description: The domain name the record set pertains to.
output: true
- name: checkError
type: NestedObject
output: true
description: |-
The `Status` type defines a logical error model that is suitable for
different programming environments, including REST APIs and RPC APIs. It is
used by [gRPC](https://github.com/grpc). Each `Status` message contains
three pieces of data: error code, error message, and error details.
You can find out more about this error model and how to work with it in the
[API Design Guide](https://cloud.google.com/apis/design/errors).
properties:
- name: code
type: Integer
description: The status code, which should be an enum value of google.rpc.Code.
output: true
- name: message
type: String
output: true
description: |-
A developer-facing error message, which should be in English. Any
user-facing error message should be localized and sent in the
google.rpc.Status.details field, or localized by the client.
- name: details
type: String
output: true
description: |
A list of messages that carry the error details.
custom_flatten: 'templates/terraform/custom_flatten/json_schema.tmpl'
custom_expand: 'templates/terraform/custom_expand/json_schema.tmpl'
validation:
function: 'validation.StringIsJSON'
- name: records
type: Array
description: Records on the domain.
output: true
item_type:
type: NestedObject
properties:
- name: domainName
type: String
description: The domain the record pertains to, e.g. `foo.bar.com.`.
output: true
- name: type
type: String
description: |-
The record's type, which determines what data the record contains.
Possible values:
A
CNAME
TXT
AAAA
CAA
output: true
- name: rdata
type: String
description: |-
The data of the record. The meaning of the value depends on record type:
- A and AAAA: IP addresses for the domain.
- CNAME: Another domain to check for records.
- TXT: Arbitrary text strings associated with the domain. App Hosting
uses TXT records to determine which Firebase projects have
permission to act on the domain's behalf.
- CAA: The record's flags, tag, and value, e.g. `0 issue "pki.goog"`.
output: true
- name: requiredAction
type: String
description: |-
An enum that indicates the a required action for this record. Populated
when the record is part of a required change in a `DnsUpdates`
`discovered` or `desired` record set.
Possible values:
NONE
ADD
REMOVE
output: true
- name: relevantState
type: Array
description: |-
An enum that indicates which state(s) this DNS record applies to. Populated
for all records with an `ADD` or `REMOVE` required action.
output: true
item_type:
type: String
- name: desired
type: Array
description: |-
The set of DNS records App Hosting needs in order to be able to serve
secure content on the domain.
output: true
item_type:
type: NestedObject
properties:
- name: domainName
type: String
description: The domain name the record set pertains to.
output: true
- name: checkError
type: NestedObject
output: true
description: |-
The `Status` type defines a logical error model that is suitable for
different programming environments, including REST APIs and RPC APIs. It is
used by [gRPC](https://github.com/grpc). Each `Status` message contains
three pieces of data: error code, error message, and error details.
You can find out more about this error model and how to work with it in the
[API Design Guide](https://cloud.google.com/apis/design/errors).
properties:
- name: code
type: Integer
output: true
description: The status code, which should be an enum value of google.rpc.Code.
- name: message
type: String
output: true
description: |-
A developer-facing error message, which should be in English. Any
user-facing error message should be localized and sent in the
google.rpc.Status.details field, or localized by the client.
- name: details
type: String
output: true
description: |
A list of messages that carry the error details.
custom_flatten: 'templates/terraform/custom_flatten/json_schema.tmpl'
custom_expand: 'templates/terraform/custom_expand/json_schema.tmpl'
validation:
function: 'validation.StringIsJSON'
- name: records
type: Array
description: Records on the domain.
output: true
item_type:
type: NestedObject
properties:
- name: requiredAction
type: String
description: |-
An enum that indicates the a required action for this record. Populated
when the record is part of a required change in a `DnsUpdates`
`discovered` or `desired` record set.
Possible values:
NONE
ADD
REMOVE
output: true
- name: relevantState
type: Array
description: |-
An enum that indicates which state(s) this DNS record applies to. Populated
for all records with an `ADD` or `REMOVE` required action.
output: true
item_type:
type: String
- name: domainName
type: String
description: The domain the record pertains to, e.g. `foo.bar.com.`.
output: true
- name: type
type: String
description: |-
The record's type, which determines what data the record contains.
Possible values:
A
CNAME
TXT
AAAA
CAA
output: true
- name: rdata
type: String
description: |-
The data of the record. The meaning of the value depends on record type:
- A and AAAA: IP addresses for the domain.
- CNAME: Another domain to check for records.
- TXT: Arbitrary text strings associated with the domain. App Hosting
uses TXT records to determine which Firebase projects have
permission to act on the domain's behalf.
- CAA: The record's flags, tag, and value, e.g. `0 issue "pki.goog"`.
output: true
- name: checkTime
type: String
description: The last time App Hosting checked your custom domain's DNS records.
output: true
- name: issues
type: Array
description: |-
A list of issues with domain configuration. Allows users to self-correct
problems with DNS records.
output: true
item_type:
type: NestedObject
properties:
- name: code
type: Integer
output: true
description: The status code, which should be an enum value of google.rpc.Code.
- name: message
type: String
output: true
description: |-
A developer-facing error message, which should be in English. Any
user-facing error message should be localized and sent in the
google.rpc.Status.details field, or localized by the client.
- name: details
type: String
output: true
description: |
A list of messages that carry the error details.
custom_flatten: 'templates/terraform/custom_flatten/json_schema.tmpl'
custom_expand: 'templates/terraform/custom_expand/json_schema.tmpl'
validation:
function: 'validation.StringIsJSON'
- name: hostState
type: String
output: true
description: |-
Possible values:
HOST_UNHOSTED
HOST_UNREACHABLE
HOST_NON_FAH
HOST_CONFLICT
HOST_WRONG_SHARD
HOST_ACTIVE
- name: ownershipState
type: String
output: true
description: |-
Possible values:
OWNERSHIP_MISSING
OWNERSHIP_UNREACHABLE
OWNERSHIP_MISMATCH
OWNERSHIP_CONFLICT
OWNERSHIP_PENDING
OWNERSHIP_ACTIVE
- name: name
type: String
description: |-
Identifier. The resource name of the domain, e.g.
`projects/{project}/locations/{locationId}/backends/{backendId}/domains/{domainId}`
output: true
- name: uid
type: String
description: System-assigned, unique identifier.
output: true
- name: etag
type: String
description: |-
Server-computed checksum based on other values; may be sent
on update or delete to ensure operation is done on expected resource.
output: true
- name: serve
type: NestedObject
description: |-
The serving behavior of the domain. If specified, the domain will
serve content other than its Backend's live content.
properties:
- name: redirect
type: NestedObject
description: Specifies redirect behavior for a domain.
properties:
- name: uri
type: String
description: |-
The URI of the redirect's intended destination. This URI will be
prepended to the original request path. URI without a scheme are
assumed to be HTTPS.
required: true
- name: status
type: String
description: |-
The status code to use in a redirect response. Must be a valid HTTP 3XX
status code. Defaults to 302 if not present.
- name: updateTime
type: String
description: Time at which the domain was last updated.
output: true
- name: purgeTime
type: String
description: |-
Time at which a soft-deleted domain will be purged, rendering in
permanently deleted.
output: true
- name: deleteTime
type: String
description: Time at which the domain was deleted.
output: true
- name: createTime
type: String
description: Time at which the domain was created.
output: true