pulumi-gcp 7.8.0a1706829616__py3-none-any.whl → 7.8.0a1706905467__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- pulumi_gcp/__init__.py +30 -0
- pulumi_gcp/artifactregistry/repository.py +26 -28
- pulumi_gcp/cloudrun/_inputs.py +87 -4
- pulumi_gcp/cloudrun/outputs.py +152 -4
- pulumi_gcp/composer/_inputs.py +63 -0
- pulumi_gcp/composer/outputs.py +136 -0
- pulumi_gcp/compute/_inputs.py +8 -18
- pulumi_gcp/compute/backend_service.py +28 -0
- pulumi_gcp/compute/outputs.py +10 -20
- pulumi_gcp/compute/region_backend_service.py +30 -0
- pulumi_gcp/config/__init__.pyi +4 -0
- pulumi_gcp/config/vars.py +8 -0
- pulumi_gcp/discoveryengine/__init__.py +8 -0
- pulumi_gcp/discoveryengine/data_store.py +734 -0
- pulumi_gcp/eventarc/_inputs.py +2 -2
- pulumi_gcp/eventarc/outputs.py +2 -2
- pulumi_gcp/firebase/_inputs.py +4 -2
- pulumi_gcp/firebase/extensions_instance.py +6 -8
- pulumi_gcp/firebase/outputs.py +4 -2
- pulumi_gcp/firestore/backup_schedule.py +36 -12
- pulumi_gcp/firestore/database.py +0 -8
- pulumi_gcp/firestore/document.py +0 -68
- pulumi_gcp/firestore/field.py +22 -102
- pulumi_gcp/firestore/index.py +4 -42
- pulumi_gcp/gkehub/feature.py +2 -2
- pulumi_gcp/provider.py +40 -0
- pulumi_gcp/pubsub/_inputs.py +26 -4
- pulumi_gcp/pubsub/outputs.py +45 -8
- pulumi_gcp/pubsub/subscription.py +82 -0
- pulumi_gcp/securityposture/__init__.py +11 -0
- pulumi_gcp/securityposture/_inputs.py +1364 -0
- pulumi_gcp/securityposture/outputs.py +1372 -0
- pulumi_gcp/securityposture/posture.py +828 -0
- pulumi_gcp/securityposture/posture_deployment.py +872 -0
- pulumi_gcp/vertex/_inputs.py +156 -0
- pulumi_gcp/vertex/ai_feature_online_store_featureview.py +259 -3
- pulumi_gcp/vertex/outputs.py +170 -0
- pulumi_gcp/workflows/workflow.py +75 -7
- pulumi_gcp/workstations/_inputs.py +38 -0
- pulumi_gcp/workstations/outputs.py +30 -0
- pulumi_gcp/workstations/workstation_config.py +54 -0
- {pulumi_gcp-7.8.0a1706829616.dist-info → pulumi_gcp-7.8.0a1706905467.dist-info}/METADATA +1 -1
- {pulumi_gcp-7.8.0a1706829616.dist-info → pulumi_gcp-7.8.0a1706905467.dist-info}/RECORD +45 -38
- {pulumi_gcp-7.8.0a1706829616.dist-info → pulumi_gcp-7.8.0a1706905467.dist-info}/WHEEL +0 -0
- {pulumi_gcp-7.8.0a1706829616.dist-info → pulumi_gcp-7.8.0a1706905467.dist-info}/top_level.txt +0 -0
pulumi_gcp/eventarc/_inputs.py
CHANGED
@@ -26,7 +26,7 @@ class TriggerDestinationArgs:
|
|
26
26
|
gke: Optional[pulumi.Input['TriggerDestinationGkeArgs']] = None,
|
27
27
|
workflow: Optional[pulumi.Input[str]] = None):
|
28
28
|
"""
|
29
|
-
:param pulumi.Input[str] cloud_function:
|
29
|
+
:param pulumi.Input[str] cloud_function: The Cloud Function resource name. Only Cloud Functions V2 is supported. Format projects/{project}/locations/{location}/functions/{function} This is a read-only field. [WARNING] Creating Cloud Functions V2 triggers is only supported via the Cloud Functions product. An error will be returned if the user sets this value.
|
30
30
|
:param pulumi.Input['TriggerDestinationCloudRunServiceArgs'] cloud_run_service: Cloud Run fully-managed service that receives the events. The service should be running in the same project of the trigger.
|
31
31
|
:param pulumi.Input['TriggerDestinationGkeArgs'] gke: A GKE service capable of receiving events. The service should be running in the same project as the trigger.
|
32
32
|
:param pulumi.Input[str] workflow: The resource name of the Workflow whose Executions are triggered by the events. The Workflow resource should be deployed in the same project as the trigger. Format: `projects/{project}/locations/{location}/workflows/{workflow}`
|
@@ -44,7 +44,7 @@ class TriggerDestinationArgs:
|
|
44
44
|
@pulumi.getter(name="cloudFunction")
|
45
45
|
def cloud_function(self) -> Optional[pulumi.Input[str]]:
|
46
46
|
"""
|
47
|
-
|
47
|
+
The Cloud Function resource name. Only Cloud Functions V2 is supported. Format projects/{project}/locations/{location}/functions/{function} This is a read-only field. [WARNING] Creating Cloud Functions V2 triggers is only supported via the Cloud Functions product. An error will be returned if the user sets this value.
|
48
48
|
"""
|
49
49
|
return pulumi.get(self, "cloud_function")
|
50
50
|
|
pulumi_gcp/eventarc/outputs.py
CHANGED
@@ -46,7 +46,7 @@ class TriggerDestination(dict):
|
|
46
46
|
gke: Optional['outputs.TriggerDestinationGke'] = None,
|
47
47
|
workflow: Optional[str] = None):
|
48
48
|
"""
|
49
|
-
:param str cloud_function:
|
49
|
+
:param str cloud_function: The Cloud Function resource name. Only Cloud Functions V2 is supported. Format projects/{project}/locations/{location}/functions/{function} This is a read-only field. [WARNING] Creating Cloud Functions V2 triggers is only supported via the Cloud Functions product. An error will be returned if the user sets this value.
|
50
50
|
:param 'TriggerDestinationCloudRunServiceArgs' cloud_run_service: Cloud Run fully-managed service that receives the events. The service should be running in the same project of the trigger.
|
51
51
|
:param 'TriggerDestinationGkeArgs' gke: A GKE service capable of receiving events. The service should be running in the same project as the trigger.
|
52
52
|
:param str workflow: The resource name of the Workflow whose Executions are triggered by the events. The Workflow resource should be deployed in the same project as the trigger. Format: `projects/{project}/locations/{location}/workflows/{workflow}`
|
@@ -64,7 +64,7 @@ class TriggerDestination(dict):
|
|
64
64
|
@pulumi.getter(name="cloudFunction")
|
65
65
|
def cloud_function(self) -> Optional[str]:
|
66
66
|
"""
|
67
|
-
|
67
|
+
The Cloud Function resource name. Only Cloud Functions V2 is supported. Format projects/{project}/locations/{location}/functions/{function} This is a read-only field. [WARNING] Creating Cloud Functions V2 triggers is only supported via the Cloud Functions product. An error will be returned if the user sets this value.
|
68
68
|
"""
|
69
69
|
return pulumi.get(self, "cloud_function")
|
70
70
|
|
pulumi_gcp/firebase/_inputs.py
CHANGED
@@ -68,7 +68,8 @@ class ExtensionsInstanceConfigArgs:
|
|
68
68
|
- - -
|
69
69
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] system_params: Params whose values are only available at deployment time.
|
70
70
|
Unlike other params, these will not be set as environment variables on
|
71
|
-
functions.
|
71
|
+
functions. See a full list of system parameters at
|
72
|
+
https://firebase.google.com/docs/extensions/publishers/parameters#system_parameters
|
72
73
|
"""
|
73
74
|
pulumi.set(__self__, "extension_ref", extension_ref)
|
74
75
|
pulumi.set(__self__, "params", params)
|
@@ -199,7 +200,8 @@ class ExtensionsInstanceConfigArgs:
|
|
199
200
|
"""
|
200
201
|
Params whose values are only available at deployment time.
|
201
202
|
Unlike other params, these will not be set as environment variables on
|
202
|
-
functions.
|
203
|
+
functions. See a full list of system parameters at
|
204
|
+
https://firebase.google.com/docs/extensions/publishers/parameters#system_parameters
|
203
205
|
"""
|
204
206
|
return pulumi.get(self, "system_params")
|
205
207
|
|
@@ -341,7 +341,7 @@ class ExtensionsInstance(pulumi.CustomResource):
|
|
341
341
|
instance_id="storage-resize-images",
|
342
342
|
config=gcp.firebase.ExtensionsInstanceConfigArgs(
|
343
343
|
extension_ref="firebase/storage-resize-images",
|
344
|
-
extension_version="0.
|
344
|
+
extension_version="0.2.2",
|
345
345
|
params={
|
346
346
|
"DELETE_ORIGINAL_FILE": "false",
|
347
347
|
"MAKE_PUBLIC": "false",
|
@@ -351,15 +351,14 @@ class ExtensionsInstance(pulumi.CustomResource):
|
|
351
351
|
"DO_BACKFILL": "false",
|
352
352
|
"IMG_SIZES": "200x200",
|
353
353
|
"IMG_BUCKET": images.name,
|
354
|
-
"LOCATION": "",
|
355
354
|
},
|
356
355
|
system_params={
|
356
|
+
"firebaseextensions.v1beta.function/location": "",
|
357
357
|
"firebaseextensions.v1beta.function/maxInstances": "3000",
|
358
|
-
"firebaseextensions.v1beta.function/memory": "256",
|
359
358
|
"firebaseextensions.v1beta.function/minInstances": "0",
|
360
359
|
"firebaseextensions.v1beta.function/vpcConnectorEgressSettings": "VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED",
|
361
360
|
},
|
362
|
-
allowed_event_types=["firebase.extensions.storage-resize-images.v1.
|
361
|
+
allowed_event_types=["firebase.extensions.storage-resize-images.v1.onCompletion"],
|
363
362
|
eventarc_channel="projects/my-project-name/locations//channels/firebase",
|
364
363
|
),
|
365
364
|
opts=pulumi.ResourceOptions(provider=google_beta))
|
@@ -415,7 +414,7 @@ class ExtensionsInstance(pulumi.CustomResource):
|
|
415
414
|
instance_id="storage-resize-images",
|
416
415
|
config=gcp.firebase.ExtensionsInstanceConfigArgs(
|
417
416
|
extension_ref="firebase/storage-resize-images",
|
418
|
-
extension_version="0.
|
417
|
+
extension_version="0.2.2",
|
419
418
|
params={
|
420
419
|
"DELETE_ORIGINAL_FILE": "false",
|
421
420
|
"MAKE_PUBLIC": "false",
|
@@ -425,15 +424,14 @@ class ExtensionsInstance(pulumi.CustomResource):
|
|
425
424
|
"DO_BACKFILL": "false",
|
426
425
|
"IMG_SIZES": "200x200",
|
427
426
|
"IMG_BUCKET": images.name,
|
428
|
-
"LOCATION": "",
|
429
427
|
},
|
430
428
|
system_params={
|
429
|
+
"firebaseextensions.v1beta.function/location": "",
|
431
430
|
"firebaseextensions.v1beta.function/maxInstances": "3000",
|
432
|
-
"firebaseextensions.v1beta.function/memory": "256",
|
433
431
|
"firebaseextensions.v1beta.function/minInstances": "0",
|
434
432
|
"firebaseextensions.v1beta.function/vpcConnectorEgressSettings": "VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED",
|
435
433
|
},
|
436
|
-
allowed_event_types=["firebase.extensions.storage-resize-images.v1.
|
434
|
+
allowed_event_types=["firebase.extensions.storage-resize-images.v1.onCompletion"],
|
437
435
|
eventarc_channel="projects/my-project-name/locations//channels/firebase",
|
438
436
|
),
|
439
437
|
opts=pulumi.ResourceOptions(provider=google_beta))
|
pulumi_gcp/firebase/outputs.py
CHANGED
@@ -98,7 +98,8 @@ class ExtensionsInstanceConfig(dict):
|
|
98
98
|
- - -
|
99
99
|
:param Mapping[str, str] system_params: Params whose values are only available at deployment time.
|
100
100
|
Unlike other params, these will not be set as environment variables on
|
101
|
-
functions.
|
101
|
+
functions. See a full list of system parameters at
|
102
|
+
https://firebase.google.com/docs/extensions/publishers/parameters#system_parameters
|
102
103
|
"""
|
103
104
|
pulumi.set(__self__, "extension_ref", extension_ref)
|
104
105
|
pulumi.set(__self__, "params", params)
|
@@ -197,7 +198,8 @@ class ExtensionsInstanceConfig(dict):
|
|
197
198
|
"""
|
198
199
|
Params whose values are only available at deployment time.
|
199
200
|
Unlike other params, these will not be set as environment variables on
|
200
|
-
functions.
|
201
|
+
functions. See a full list of system parameters at
|
202
|
+
https://firebase.google.com/docs/extensions/publishers/parameters#system_parameters
|
201
203
|
"""
|
202
204
|
return pulumi.get(self, "system_params")
|
203
205
|
|
@@ -128,7 +128,7 @@ class _BackupScheduleState:
|
|
128
128
|
:param pulumi.Input['BackupScheduleDailyRecurrenceArgs'] daily_recurrence: For a schedule that runs daily at a specified time.
|
129
129
|
:param pulumi.Input[str] database: The Firestore database id. Defaults to `"(default)"`.
|
130
130
|
:param pulumi.Input[str] name: The unique backup schedule identifier across all locations and databases for the given project. Format:
|
131
|
-
`projects/{{project}}/databases/{{database}}/backupSchedules/{{backupSchedule}}
|
131
|
+
`projects/{{project}}/databases/{{database}}/backupSchedules/{{backupSchedule}}`
|
132
132
|
:param pulumi.Input[str] project: The ID of the project in which the resource belongs.
|
133
133
|
If it is not provided, the provider project is used.
|
134
134
|
:param pulumi.Input[str] retention: At what relative time in the future, compared to its creation time, the backup should be deleted, e.g. keep backups for 7 days.
|
@@ -182,7 +182,7 @@ class _BackupScheduleState:
|
|
182
182
|
def name(self) -> Optional[pulumi.Input[str]]:
|
183
183
|
"""
|
184
184
|
The unique backup schedule identifier across all locations and databases for the given project. Format:
|
185
|
-
`projects/{{project}}/databases/{{database}}/backupSchedules/{{backupSchedule}}
|
185
|
+
`projects/{{project}}/databases/{{database}}/backupSchedules/{{backupSchedule}}`
|
186
186
|
"""
|
187
187
|
return pulumi.get(self, "name")
|
188
188
|
|
@@ -268,11 +268,17 @@ class BackupSchedule(pulumi.CustomResource):
|
|
268
268
|
import pulumi
|
269
269
|
import pulumi_gcp as gcp
|
270
270
|
|
271
|
+
database = gcp.firestore.Database("database",
|
272
|
+
project="my-project-name",
|
273
|
+
location_id="nam5",
|
274
|
+
type="FIRESTORE_NATIVE",
|
275
|
+
delete_protection_state="DELETE_PROTECTION_ENABLED",
|
276
|
+
deletion_policy="DELETE")
|
271
277
|
daily_backup = gcp.firestore.BackupSchedule("daily-backup",
|
272
|
-
daily_recurrence=gcp.firestore.BackupScheduleDailyRecurrenceArgs(),
|
273
278
|
project="my-project-name",
|
274
|
-
|
275
|
-
|
279
|
+
database=database.name,
|
280
|
+
retention="604800s",
|
281
|
+
daily_recurrence=gcp.firestore.BackupScheduleDailyRecurrenceArgs())
|
276
282
|
```
|
277
283
|
### Firestore Backup Schedule Weekly
|
278
284
|
|
@@ -280,9 +286,15 @@ class BackupSchedule(pulumi.CustomResource):
|
|
280
286
|
import pulumi
|
281
287
|
import pulumi_gcp as gcp
|
282
288
|
|
289
|
+
database = gcp.firestore.Database("database",
|
290
|
+
project="my-project-name",
|
291
|
+
location_id="nam5",
|
292
|
+
type="FIRESTORE_NATIVE",
|
293
|
+
delete_protection_state="DELETE_PROTECTION_ENABLED",
|
294
|
+
deletion_policy="DELETE")
|
283
295
|
weekly_backup = gcp.firestore.BackupSchedule("weekly-backup",
|
284
|
-
database="(default)",
|
285
296
|
project="my-project-name",
|
297
|
+
database=database.name,
|
286
298
|
retention="8467200s",
|
287
299
|
weekly_recurrence=gcp.firestore.BackupScheduleWeeklyRecurrenceArgs(
|
288
300
|
day="SUNDAY",
|
@@ -349,11 +361,17 @@ class BackupSchedule(pulumi.CustomResource):
|
|
349
361
|
import pulumi
|
350
362
|
import pulumi_gcp as gcp
|
351
363
|
|
364
|
+
database = gcp.firestore.Database("database",
|
365
|
+
project="my-project-name",
|
366
|
+
location_id="nam5",
|
367
|
+
type="FIRESTORE_NATIVE",
|
368
|
+
delete_protection_state="DELETE_PROTECTION_ENABLED",
|
369
|
+
deletion_policy="DELETE")
|
352
370
|
daily_backup = gcp.firestore.BackupSchedule("daily-backup",
|
353
|
-
daily_recurrence=gcp.firestore.BackupScheduleDailyRecurrenceArgs(),
|
354
371
|
project="my-project-name",
|
355
|
-
|
356
|
-
|
372
|
+
database=database.name,
|
373
|
+
retention="604800s",
|
374
|
+
daily_recurrence=gcp.firestore.BackupScheduleDailyRecurrenceArgs())
|
357
375
|
```
|
358
376
|
### Firestore Backup Schedule Weekly
|
359
377
|
|
@@ -361,9 +379,15 @@ class BackupSchedule(pulumi.CustomResource):
|
|
361
379
|
import pulumi
|
362
380
|
import pulumi_gcp as gcp
|
363
381
|
|
382
|
+
database = gcp.firestore.Database("database",
|
383
|
+
project="my-project-name",
|
384
|
+
location_id="nam5",
|
385
|
+
type="FIRESTORE_NATIVE",
|
386
|
+
delete_protection_state="DELETE_PROTECTION_ENABLED",
|
387
|
+
deletion_policy="DELETE")
|
364
388
|
weekly_backup = gcp.firestore.BackupSchedule("weekly-backup",
|
365
|
-
database="(default)",
|
366
389
|
project="my-project-name",
|
390
|
+
database=database.name,
|
367
391
|
retention="8467200s",
|
368
392
|
weekly_recurrence=gcp.firestore.BackupScheduleWeeklyRecurrenceArgs(
|
369
393
|
day="SUNDAY",
|
@@ -449,7 +473,7 @@ class BackupSchedule(pulumi.CustomResource):
|
|
449
473
|
:param pulumi.Input[pulumi.InputType['BackupScheduleDailyRecurrenceArgs']] daily_recurrence: For a schedule that runs daily at a specified time.
|
450
474
|
:param pulumi.Input[str] database: The Firestore database id. Defaults to `"(default)"`.
|
451
475
|
:param pulumi.Input[str] name: The unique backup schedule identifier across all locations and databases for the given project. Format:
|
452
|
-
`projects/{{project}}/databases/{{database}}/backupSchedules/{{backupSchedule}}
|
476
|
+
`projects/{{project}}/databases/{{database}}/backupSchedules/{{backupSchedule}}`
|
453
477
|
:param pulumi.Input[str] project: The ID of the project in which the resource belongs.
|
454
478
|
If it is not provided, the provider project is used.
|
455
479
|
:param pulumi.Input[str] retention: At what relative time in the future, compared to its creation time, the backup should be deleted, e.g. keep backups for 7 days.
|
@@ -494,7 +518,7 @@ class BackupSchedule(pulumi.CustomResource):
|
|
494
518
|
def name(self) -> pulumi.Output[str]:
|
495
519
|
"""
|
496
520
|
The unique backup schedule identifier across all locations and databases for the given project. Format:
|
497
|
-
`projects/{{project}}/databases/{{database}}/backupSchedules/{{backupSchedule}}
|
521
|
+
`projects/{{project}}/databases/{{database}}/backupSchedules/{{backupSchedule}}`
|
498
522
|
"""
|
499
523
|
return pulumi.get(self, "name")
|
500
524
|
|
pulumi_gcp/firestore/database.py
CHANGED
@@ -591,8 +591,6 @@ class Database(pulumi.CustomResource):
|
|
591
591
|
import pulumi_gcp as gcp
|
592
592
|
|
593
593
|
database = gcp.firestore.Database("database",
|
594
|
-
delete_protection_state="DELETE_PROTECTION_ENABLED",
|
595
|
-
deletion_policy="DELETE",
|
596
594
|
location_id="nam5",
|
597
595
|
project="my-project-name",
|
598
596
|
type="FIRESTORE_NATIVE")
|
@@ -620,8 +618,6 @@ class Database(pulumi.CustomResource):
|
|
620
618
|
import pulumi_gcp as gcp
|
621
619
|
|
622
620
|
datastore_mode_database = gcp.firestore.Database("datastoreModeDatabase",
|
623
|
-
delete_protection_state="DELETE_PROTECTION_ENABLED",
|
624
|
-
deletion_policy="DELETE",
|
625
621
|
location_id="nam5",
|
626
622
|
project="my-project-name",
|
627
623
|
type="DATASTORE_MODE")
|
@@ -727,8 +723,6 @@ class Database(pulumi.CustomResource):
|
|
727
723
|
import pulumi_gcp as gcp
|
728
724
|
|
729
725
|
database = gcp.firestore.Database("database",
|
730
|
-
delete_protection_state="DELETE_PROTECTION_ENABLED",
|
731
|
-
deletion_policy="DELETE",
|
732
726
|
location_id="nam5",
|
733
727
|
project="my-project-name",
|
734
728
|
type="FIRESTORE_NATIVE")
|
@@ -756,8 +750,6 @@ class Database(pulumi.CustomResource):
|
|
756
750
|
import pulumi_gcp as gcp
|
757
751
|
|
758
752
|
datastore_mode_database = gcp.firestore.Database("datastoreModeDatabase",
|
759
|
-
delete_protection_state="DELETE_PROTECTION_ENABLED",
|
760
|
-
deletion_policy="DELETE",
|
761
753
|
location_id="nam5",
|
762
754
|
project="my-project-name",
|
763
755
|
type="DATASTORE_MODE")
|
pulumi_gcp/firestore/document.py
CHANGED
@@ -299,40 +299,6 @@ class Document(pulumi.CustomResource):
|
|
299
299
|
is allowed for the database parameter.
|
300
300
|
|
301
301
|
## Example Usage
|
302
|
-
### Firestore Document Basic
|
303
|
-
|
304
|
-
```python
|
305
|
-
import pulumi
|
306
|
-
import pulumi_gcp as gcp
|
307
|
-
|
308
|
-
mydoc = gcp.firestore.Document("mydoc",
|
309
|
-
collection="somenewcollection",
|
310
|
-
document_id="my-doc-id",
|
311
|
-
fields="{\\"something\\":{\\"mapValue\\":{\\"fields\\":{\\"akey\\":{\\"stringValue\\":\\"avalue\\"}}}}}",
|
312
|
-
project="my-project-name")
|
313
|
-
```
|
314
|
-
### Firestore Document Nested Document
|
315
|
-
|
316
|
-
```python
|
317
|
-
import pulumi
|
318
|
-
import pulumi_gcp as gcp
|
319
|
-
|
320
|
-
mydoc = gcp.firestore.Document("mydoc",
|
321
|
-
collection="somenewcollection",
|
322
|
-
document_id="my-doc-id",
|
323
|
-
fields="{\\"something\\":{\\"mapValue\\":{\\"fields\\":{\\"akey\\":{\\"stringValue\\":\\"avalue\\"}}}}}",
|
324
|
-
project="my-project-name")
|
325
|
-
sub_document = gcp.firestore.Document("subDocument",
|
326
|
-
collection=mydoc.path.apply(lambda path: f"{path}/subdocs"),
|
327
|
-
document_id="bitcoinkey",
|
328
|
-
fields="{\\"something\\":{\\"mapValue\\":{\\"fields\\":{\\"ayo\\":{\\"stringValue\\":\\"val2\\"}}}}}",
|
329
|
-
project="my-project-name")
|
330
|
-
sub_sub_document = gcp.firestore.Document("subSubDocument",
|
331
|
-
collection=sub_document.path.apply(lambda path: f"{path}/subsubdocs"),
|
332
|
-
document_id="asecret",
|
333
|
-
fields="{\\"something\\":{\\"mapValue\\":{\\"fields\\":{\\"secret\\":{\\"stringValue\\":\\"hithere\\"}}}}}",
|
334
|
-
project="my-project-name")
|
335
|
-
```
|
336
302
|
|
337
303
|
## Import
|
338
304
|
|
@@ -382,40 +348,6 @@ class Document(pulumi.CustomResource):
|
|
382
348
|
is allowed for the database parameter.
|
383
349
|
|
384
350
|
## Example Usage
|
385
|
-
### Firestore Document Basic
|
386
|
-
|
387
|
-
```python
|
388
|
-
import pulumi
|
389
|
-
import pulumi_gcp as gcp
|
390
|
-
|
391
|
-
mydoc = gcp.firestore.Document("mydoc",
|
392
|
-
collection="somenewcollection",
|
393
|
-
document_id="my-doc-id",
|
394
|
-
fields="{\\"something\\":{\\"mapValue\\":{\\"fields\\":{\\"akey\\":{\\"stringValue\\":\\"avalue\\"}}}}}",
|
395
|
-
project="my-project-name")
|
396
|
-
```
|
397
|
-
### Firestore Document Nested Document
|
398
|
-
|
399
|
-
```python
|
400
|
-
import pulumi
|
401
|
-
import pulumi_gcp as gcp
|
402
|
-
|
403
|
-
mydoc = gcp.firestore.Document("mydoc",
|
404
|
-
collection="somenewcollection",
|
405
|
-
document_id="my-doc-id",
|
406
|
-
fields="{\\"something\\":{\\"mapValue\\":{\\"fields\\":{\\"akey\\":{\\"stringValue\\":\\"avalue\\"}}}}}",
|
407
|
-
project="my-project-name")
|
408
|
-
sub_document = gcp.firestore.Document("subDocument",
|
409
|
-
collection=mydoc.path.apply(lambda path: f"{path}/subdocs"),
|
410
|
-
document_id="bitcoinkey",
|
411
|
-
fields="{\\"something\\":{\\"mapValue\\":{\\"fields\\":{\\"ayo\\":{\\"stringValue\\":\\"val2\\"}}}}}",
|
412
|
-
project="my-project-name")
|
413
|
-
sub_sub_document = gcp.firestore.Document("subSubDocument",
|
414
|
-
collection=sub_document.path.apply(lambda path: f"{path}/subsubdocs"),
|
415
|
-
document_id="asecret",
|
416
|
-
fields="{\\"something\\":{\\"mapValue\\":{\\"fields\\":{\\"secret\\":{\\"stringValue\\":\\"hithere\\"}}}}}",
|
417
|
-
project="my-project-name")
|
418
|
-
```
|
419
351
|
|
420
352
|
## Import
|
421
353
|
|
pulumi_gcp/firestore/field.py
CHANGED
@@ -302,65 +302,25 @@ class Field(pulumi.CustomResource):
|
|
302
302
|
chosen location.
|
303
303
|
|
304
304
|
## Example Usage
|
305
|
-
### Firestore Field Basic
|
306
|
-
|
307
|
-
```python
|
308
|
-
import pulumi
|
309
|
-
import pulumi_gcp as gcp
|
310
|
-
|
311
|
-
basic = gcp.firestore.Field("basic",
|
312
|
-
collection="chatrooms_%{random_suffix}",
|
313
|
-
database="(default)",
|
314
|
-
field="basic",
|
315
|
-
index_config=gcp.firestore.FieldIndexConfigArgs(
|
316
|
-
indexes=[
|
317
|
-
gcp.firestore.FieldIndexConfigIndexArgs(
|
318
|
-
order="ASCENDING",
|
319
|
-
query_scope="COLLECTION_GROUP",
|
320
|
-
),
|
321
|
-
gcp.firestore.FieldIndexConfigIndexArgs(
|
322
|
-
array_config="CONTAINS",
|
323
|
-
),
|
324
|
-
],
|
325
|
-
),
|
326
|
-
project="my-project-name")
|
327
|
-
```
|
328
305
|
### Firestore Field Timestamp
|
329
306
|
|
330
307
|
```python
|
331
308
|
import pulumi
|
332
309
|
import pulumi_gcp as gcp
|
333
310
|
|
311
|
+
database = gcp.firestore.Database("database",
|
312
|
+
project="my-project-name",
|
313
|
+
location_id="nam5",
|
314
|
+
type="FIRESTORE_NATIVE",
|
315
|
+
delete_protection_state="DELETE_PROTECTION_ENABLED",
|
316
|
+
deletion_policy="DELETE")
|
334
317
|
timestamp = gcp.firestore.Field("timestamp",
|
335
|
-
collection="chatrooms_%{random_suffix}",
|
336
|
-
field="timestamp",
|
337
|
-
index_config=gcp.firestore.FieldIndexConfigArgs(),
|
338
318
|
project="my-project-name",
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
import pulumi
|
345
|
-
import pulumi_gcp as gcp
|
346
|
-
|
347
|
-
match_override = gcp.firestore.Field("matchOverride",
|
348
|
-
collection="chatrooms_%{random_suffix}",
|
349
|
-
field="field_with_same_configuration_as_ancestor",
|
350
|
-
index_config=gcp.firestore.FieldIndexConfigArgs(
|
351
|
-
indexes=[
|
352
|
-
gcp.firestore.FieldIndexConfigIndexArgs(
|
353
|
-
order="ASCENDING",
|
354
|
-
),
|
355
|
-
gcp.firestore.FieldIndexConfigIndexArgs(
|
356
|
-
order="DESCENDING",
|
357
|
-
),
|
358
|
-
gcp.firestore.FieldIndexConfigIndexArgs(
|
359
|
-
array_config="CONTAINS",
|
360
|
-
),
|
361
|
-
],
|
362
|
-
),
|
363
|
-
project="my-project-name")
|
319
|
+
database=database.name,
|
320
|
+
collection="chatrooms",
|
321
|
+
field="timestamp",
|
322
|
+
ttl_config=gcp.firestore.FieldTtlConfigArgs(),
|
323
|
+
index_config=gcp.firestore.FieldIndexConfigArgs())
|
364
324
|
```
|
365
325
|
|
366
326
|
## Import
|
@@ -412,65 +372,25 @@ class Field(pulumi.CustomResource):
|
|
412
372
|
chosen location.
|
413
373
|
|
414
374
|
## Example Usage
|
415
|
-
### Firestore Field Basic
|
416
|
-
|
417
|
-
```python
|
418
|
-
import pulumi
|
419
|
-
import pulumi_gcp as gcp
|
420
|
-
|
421
|
-
basic = gcp.firestore.Field("basic",
|
422
|
-
collection="chatrooms_%{random_suffix}",
|
423
|
-
database="(default)",
|
424
|
-
field="basic",
|
425
|
-
index_config=gcp.firestore.FieldIndexConfigArgs(
|
426
|
-
indexes=[
|
427
|
-
gcp.firestore.FieldIndexConfigIndexArgs(
|
428
|
-
order="ASCENDING",
|
429
|
-
query_scope="COLLECTION_GROUP",
|
430
|
-
),
|
431
|
-
gcp.firestore.FieldIndexConfigIndexArgs(
|
432
|
-
array_config="CONTAINS",
|
433
|
-
),
|
434
|
-
],
|
435
|
-
),
|
436
|
-
project="my-project-name")
|
437
|
-
```
|
438
375
|
### Firestore Field Timestamp
|
439
376
|
|
440
377
|
```python
|
441
378
|
import pulumi
|
442
379
|
import pulumi_gcp as gcp
|
443
380
|
|
381
|
+
database = gcp.firestore.Database("database",
|
382
|
+
project="my-project-name",
|
383
|
+
location_id="nam5",
|
384
|
+
type="FIRESTORE_NATIVE",
|
385
|
+
delete_protection_state="DELETE_PROTECTION_ENABLED",
|
386
|
+
deletion_policy="DELETE")
|
444
387
|
timestamp = gcp.firestore.Field("timestamp",
|
445
|
-
collection="chatrooms_%{random_suffix}",
|
446
|
-
field="timestamp",
|
447
|
-
index_config=gcp.firestore.FieldIndexConfigArgs(),
|
448
388
|
project="my-project-name",
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
import pulumi
|
455
|
-
import pulumi_gcp as gcp
|
456
|
-
|
457
|
-
match_override = gcp.firestore.Field("matchOverride",
|
458
|
-
collection="chatrooms_%{random_suffix}",
|
459
|
-
field="field_with_same_configuration_as_ancestor",
|
460
|
-
index_config=gcp.firestore.FieldIndexConfigArgs(
|
461
|
-
indexes=[
|
462
|
-
gcp.firestore.FieldIndexConfigIndexArgs(
|
463
|
-
order="ASCENDING",
|
464
|
-
),
|
465
|
-
gcp.firestore.FieldIndexConfigIndexArgs(
|
466
|
-
order="DESCENDING",
|
467
|
-
),
|
468
|
-
gcp.firestore.FieldIndexConfigIndexArgs(
|
469
|
-
array_config="CONTAINS",
|
470
|
-
),
|
471
|
-
],
|
472
|
-
),
|
473
|
-
project="my-project-name")
|
389
|
+
database=database.name,
|
390
|
+
collection="chatrooms",
|
391
|
+
field="timestamp",
|
392
|
+
ttl_config=gcp.firestore.FieldTtlConfigArgs(),
|
393
|
+
index_config=gcp.firestore.FieldIndexConfigArgs())
|
474
394
|
```
|
475
395
|
|
476
396
|
## Import
|
pulumi_gcp/firestore/index.py
CHANGED
@@ -313,35 +313,16 @@ class Index(pulumi.CustomResource):
|
|
313
313
|
will be the same as the App Engine location specified.
|
314
314
|
|
315
315
|
## Example Usage
|
316
|
-
### Firestore Index Basic
|
317
|
-
|
318
|
-
```python
|
319
|
-
import pulumi
|
320
|
-
import pulumi_gcp as gcp
|
321
|
-
|
322
|
-
my_index = gcp.firestore.Index("my-index",
|
323
|
-
collection="chatrooms",
|
324
|
-
fields=[
|
325
|
-
gcp.firestore.IndexFieldArgs(
|
326
|
-
field_path="name",
|
327
|
-
order="ASCENDING",
|
328
|
-
),
|
329
|
-
gcp.firestore.IndexFieldArgs(
|
330
|
-
field_path="description",
|
331
|
-
order="DESCENDING",
|
332
|
-
),
|
333
|
-
],
|
334
|
-
project="my-project-name")
|
335
|
-
```
|
336
316
|
### Firestore Index Datastore Mode
|
337
317
|
|
338
318
|
```python
|
339
319
|
import pulumi
|
340
320
|
import pulumi_gcp as gcp
|
341
321
|
|
342
|
-
|
322
|
+
my_index = gcp.firestore.Index("my-index",
|
343
323
|
api_scope="DATASTORE_MODE_API",
|
344
324
|
collection="chatrooms",
|
325
|
+
database="(default)",
|
345
326
|
fields=[
|
346
327
|
gcp.firestore.IndexFieldArgs(
|
347
328
|
field_path="name",
|
@@ -410,35 +391,16 @@ class Index(pulumi.CustomResource):
|
|
410
391
|
will be the same as the App Engine location specified.
|
411
392
|
|
412
393
|
## Example Usage
|
413
|
-
### Firestore Index Basic
|
414
|
-
|
415
|
-
```python
|
416
|
-
import pulumi
|
417
|
-
import pulumi_gcp as gcp
|
418
|
-
|
419
|
-
my_index = gcp.firestore.Index("my-index",
|
420
|
-
collection="chatrooms",
|
421
|
-
fields=[
|
422
|
-
gcp.firestore.IndexFieldArgs(
|
423
|
-
field_path="name",
|
424
|
-
order="ASCENDING",
|
425
|
-
),
|
426
|
-
gcp.firestore.IndexFieldArgs(
|
427
|
-
field_path="description",
|
428
|
-
order="DESCENDING",
|
429
|
-
),
|
430
|
-
],
|
431
|
-
project="my-project-name")
|
432
|
-
```
|
433
394
|
### Firestore Index Datastore Mode
|
434
395
|
|
435
396
|
```python
|
436
397
|
import pulumi
|
437
398
|
import pulumi_gcp as gcp
|
438
399
|
|
439
|
-
|
400
|
+
my_index = gcp.firestore.Index("my-index",
|
440
401
|
api_scope="DATASTORE_MODE_API",
|
441
402
|
collection="chatrooms",
|
403
|
+
database="(default)",
|
442
404
|
fields=[
|
443
405
|
gcp.firestore.IndexFieldArgs(
|
444
406
|
field_path="name",
|
pulumi_gcp/gkehub/feature.py
CHANGED
@@ -561,7 +561,7 @@ class Feature(pulumi.CustomResource):
|
|
561
561
|
),
|
562
562
|
location="global")
|
563
563
|
```
|
564
|
-
### Enable Fleet Default Member Config Policycontroller
|
564
|
+
### Enable Fleet Default Member Config Policycontroller Minimal
|
565
565
|
|
566
566
|
```python
|
567
567
|
import pulumi
|
@@ -818,7 +818,7 @@ class Feature(pulumi.CustomResource):
|
|
818
818
|
),
|
819
819
|
location="global")
|
820
820
|
```
|
821
|
-
### Enable Fleet Default Member Config Policycontroller
|
821
|
+
### Enable Fleet Default Member Config Policycontroller Minimal
|
822
822
|
|
823
823
|
```python
|
824
824
|
import pulumi
|