pulumi-gcp 7.39.0a1726207510__py3-none-any.whl → 8.0.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (132) hide show
  1. pulumi_gcp/__init__.py +32 -19
  2. pulumi_gcp/accesscontextmanager/access_policy.py +4 -2
  3. pulumi_gcp/activedirectory/domain.py +38 -2
  4. pulumi_gcp/activedirectory/domain_trust.py +0 -30
  5. pulumi_gcp/activedirectory/peering.py +0 -72
  6. pulumi_gcp/alloydb/cluster.py +12 -200
  7. pulumi_gcp/alloydb/instance.py +13 -5
  8. pulumi_gcp/alloydb/user.py +14 -6
  9. pulumi_gcp/apigee/keystores_aliases_self_signed_cert.py +4 -2
  10. pulumi_gcp/apigee/sync_authorization.py +4 -2
  11. pulumi_gcp/apigee/target_server.py +4 -2
  12. pulumi_gcp/appengine/firewall_rule.py +4 -2
  13. pulumi_gcp/appengine/flexible_app_version.py +4 -2
  14. pulumi_gcp/apphub/service.py +8 -4
  15. pulumi_gcp/apphub/service_project_attachment.py +8 -4
  16. pulumi_gcp/applicationintegration/client.py +0 -154
  17. pulumi_gcp/bigquery/_inputs.py +0 -70
  18. pulumi_gcp/bigquery/iam_binding.py +0 -260
  19. pulumi_gcp/bigquery/iam_member.py +0 -260
  20. pulumi_gcp/bigquery/iam_policy.py +0 -240
  21. pulumi_gcp/bigquery/outputs.py +0 -44
  22. pulumi_gcp/bigquery/reservation.py +0 -84
  23. pulumi_gcp/bigquery/table.py +0 -98
  24. pulumi_gcp/billing/project_info.py +4 -2
  25. pulumi_gcp/cloudasset/folder_feed.py +4 -2
  26. pulumi_gcp/cloudrunv2/_inputs.py +25 -25
  27. pulumi_gcp/cloudrunv2/get_job.py +11 -1
  28. pulumi_gcp/cloudrunv2/get_service.py +11 -1
  29. pulumi_gcp/cloudrunv2/job.py +50 -0
  30. pulumi_gcp/cloudrunv2/outputs.py +26 -26
  31. pulumi_gcp/cloudrunv2/service.py +54 -0
  32. pulumi_gcp/compute/_inputs.py +117 -54
  33. pulumi_gcp/compute/backend_service.py +52 -0
  34. pulumi_gcp/compute/firewall_policy_rule.py +4 -2
  35. pulumi_gcp/compute/forwarding_rule.py +42 -0
  36. pulumi_gcp/compute/get_forwarding_rule.py +11 -1
  37. pulumi_gcp/compute/global_address.py +8 -4
  38. pulumi_gcp/compute/global_forwarding_rule.py +7 -0
  39. pulumi_gcp/compute/instance_template.py +56 -7
  40. pulumi_gcp/compute/managed_ssl_certificate.py +1 -20
  41. pulumi_gcp/compute/manged_ssl_certificate.py +1 -20
  42. pulumi_gcp/compute/network_attachment.py +8 -4
  43. pulumi_gcp/compute/node_group.py +4 -2
  44. pulumi_gcp/compute/organization_security_policy_association.py +4 -2
  45. pulumi_gcp/compute/outputs.py +101 -42
  46. pulumi_gcp/compute/project_cloud_armor_tier.py +4 -2
  47. pulumi_gcp/compute/region_backend_service.py +36 -7
  48. pulumi_gcp/compute/region_instance_template.py +56 -7
  49. pulumi_gcp/compute/region_ssl_certificate.py +49 -7
  50. pulumi_gcp/compute/ssl_certificate.py +49 -7
  51. pulumi_gcp/compute/subnetwork.py +193 -23
  52. pulumi_gcp/config/__init__.pyi +3 -5
  53. pulumi_gcp/config/vars.py +6 -10
  54. pulumi_gcp/container/_inputs.py +19 -41
  55. pulumi_gcp/container/cluster.py +79 -0
  56. pulumi_gcp/container/get_cluster.py +21 -1
  57. pulumi_gcp/container/get_engine_versions.py +8 -2
  58. pulumi_gcp/container/outputs.py +17 -40
  59. pulumi_gcp/diagflow/intent.py +4 -2
  60. pulumi_gcp/edgenetwork/network.py +83 -0
  61. pulumi_gcp/edgenetwork/subnet.py +83 -0
  62. pulumi_gcp/firebase/database_instance.py +2 -0
  63. pulumi_gcp/firebase/hosting_custom_domain.py +4 -2
  64. pulumi_gcp/firebase/hosting_version.py +4 -2
  65. pulumi_gcp/firebase/project.py +2 -0
  66. pulumi_gcp/firestore/document.py +8 -4
  67. pulumi_gcp/folder/access_approval_settings.py +12 -6
  68. pulumi_gcp/gkeonprem/_inputs.py +11 -11
  69. pulumi_gcp/gkeonprem/outputs.py +9 -9
  70. pulumi_gcp/gkeonprem/v_mware_cluster.py +31 -31
  71. pulumi_gcp/gkeonprem/v_mware_node_pool.py +186 -0
  72. pulumi_gcp/iam/access_boundary_policy.py +4 -2
  73. pulumi_gcp/iam/deny_policy.py +4 -2
  74. pulumi_gcp/iap/brand.py +4 -2
  75. pulumi_gcp/iap/client.py +4 -2
  76. pulumi_gcp/identityplatform/__init__.py +0 -1
  77. pulumi_gcp/identityplatform/_inputs.py +0 -396
  78. pulumi_gcp/identityplatform/config.py +2 -0
  79. pulumi_gcp/identityplatform/outputs.py +0 -313
  80. pulumi_gcp/integrationconnectors/managed_zone.py +4 -2
  81. pulumi_gcp/kms/__init__.py +4 -0
  82. pulumi_gcp/kms/_inputs.py +130 -0
  83. pulumi_gcp/kms/autokey_config.py +6 -2
  84. pulumi_gcp/kms/ekm_connection_iam_binding.py +1097 -0
  85. pulumi_gcp/kms/ekm_connection_iam_member.py +1097 -0
  86. pulumi_gcp/kms/ekm_connection_iam_policy.py +916 -0
  87. pulumi_gcp/kms/get_ekm_connection_iam_policy.py +177 -0
  88. pulumi_gcp/kms/key_handle.py +8 -2
  89. pulumi_gcp/kms/outputs.py +76 -0
  90. pulumi_gcp/logging/folder_settings.py +4 -2
  91. pulumi_gcp/monitoring/monitored_project.py +4 -2
  92. pulumi_gcp/networksecurity/firewall_endpoint_association.py +12 -44
  93. pulumi_gcp/networkservices/_inputs.py +23 -0
  94. pulumi_gcp/networkservices/outputs.py +17 -1
  95. pulumi_gcp/networkservices/tcp_route.py +2 -0
  96. pulumi_gcp/organizations/access_approval_settings.py +4 -2
  97. pulumi_gcp/organizations/folder.py +35 -1
  98. pulumi_gcp/organizations/get_client_config.py +14 -1
  99. pulumi_gcp/organizations/get_folder.py +11 -1
  100. pulumi_gcp/organizations/get_project.py +3 -13
  101. pulumi_gcp/organizations/project.py +3 -87
  102. pulumi_gcp/orgpolicy/policy.py +12 -6
  103. pulumi_gcp/projects/api_key.py +2 -52
  104. pulumi_gcp/provider.py +32 -52
  105. pulumi_gcp/pubsub/topic.py +1 -1
  106. pulumi_gcp/pulumi-plugin.json +1 -1
  107. pulumi_gcp/redis/cluster.py +58 -0
  108. pulumi_gcp/resourcemanager/lien.py +4 -2
  109. pulumi_gcp/securitycenter/__init__.py +1 -0
  110. pulumi_gcp/securitycenter/folder_custom_module.py +8 -4
  111. pulumi_gcp/securitycenter/management_folder_security_health_analytics_custom_module.py +8 -4
  112. pulumi_gcp/securitycenter/v2_organization_scc_big_query_exports.py +862 -0
  113. pulumi_gcp/serviceusage/consumer_quota_override.py +12 -6
  114. pulumi_gcp/sql/_inputs.py +3 -36
  115. pulumi_gcp/sql/outputs.py +6 -49
  116. pulumi_gcp/storage/_inputs.py +23 -23
  117. pulumi_gcp/storage/bucket.py +6 -6
  118. pulumi_gcp/storage/outputs.py +27 -27
  119. pulumi_gcp/tags/tag_binding.py +4 -2
  120. pulumi_gcp/vertex/ai_feature_online_store_featureview.py +4 -2
  121. pulumi_gcp/vmwareengine/network.py +4 -2
  122. pulumi_gcp/vpcaccess/connector.py +14 -6
  123. pulumi_gcp/vpcaccess/get_connector.py +6 -2
  124. {pulumi_gcp-7.39.0a1726207510.dist-info → pulumi_gcp-8.0.0.dist-info}/METADATA +1 -1
  125. {pulumi_gcp-7.39.0a1726207510.dist-info → pulumi_gcp-8.0.0.dist-info}/RECORD +127 -127
  126. pulumi_gcp/datastore/__init__.py +0 -10
  127. pulumi_gcp/datastore/_inputs.py +0 -76
  128. pulumi_gcp/datastore/data_store_index.py +0 -515
  129. pulumi_gcp/datastore/outputs.py +0 -51
  130. pulumi_gcp/identityplatform/project_default_config.py +0 -357
  131. {pulumi_gcp-7.39.0a1726207510.dist-info → pulumi_gcp-8.0.0.dist-info}/WHEEL +0 -0
  132. {pulumi_gcp-7.39.0a1726207510.dist-info → pulumi_gcp-8.0.0.dist-info}/top_level.txt +0 -0
@@ -1,10 +0,0 @@
1
- # coding=utf-8
2
- # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
- # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
-
5
- from .. import _utilities
6
- import typing
7
- # Export this package's modules as members:
8
- from .data_store_index import *
9
- from ._inputs import *
10
- from . import outputs
@@ -1,76 +0,0 @@
1
- # coding=utf-8
2
- # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
- # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
-
5
- import copy
6
- import warnings
7
- import sys
8
- import pulumi
9
- import pulumi.runtime
10
- from typing import Any, Mapping, Optional, Sequence, Union, overload
11
- if sys.version_info >= (3, 11):
12
- from typing import NotRequired, TypedDict, TypeAlias
13
- else:
14
- from typing_extensions import NotRequired, TypedDict, TypeAlias
15
- from .. import _utilities
16
-
17
- __all__ = [
18
- 'DataStoreIndexPropertyArgs',
19
- 'DataStoreIndexPropertyArgsDict',
20
- ]
21
-
22
- MYPY = False
23
-
24
- if not MYPY:
25
- class DataStoreIndexPropertyArgsDict(TypedDict):
26
- direction: pulumi.Input[str]
27
- """
28
- The direction the index should optimize for sorting.
29
- Possible values are: `ASCENDING`, `DESCENDING`.
30
- """
31
- name: pulumi.Input[str]
32
- """
33
- The property name to index.
34
- """
35
- elif False:
36
- DataStoreIndexPropertyArgsDict: TypeAlias = Mapping[str, Any]
37
-
38
- @pulumi.input_type
39
- class DataStoreIndexPropertyArgs:
40
- def __init__(__self__, *,
41
- direction: pulumi.Input[str],
42
- name: pulumi.Input[str]):
43
- """
44
- :param pulumi.Input[str] direction: The direction the index should optimize for sorting.
45
- Possible values are: `ASCENDING`, `DESCENDING`.
46
- :param pulumi.Input[str] name: The property name to index.
47
- """
48
- pulumi.set(__self__, "direction", direction)
49
- pulumi.set(__self__, "name", name)
50
-
51
- @property
52
- @pulumi.getter
53
- def direction(self) -> pulumi.Input[str]:
54
- """
55
- The direction the index should optimize for sorting.
56
- Possible values are: `ASCENDING`, `DESCENDING`.
57
- """
58
- return pulumi.get(self, "direction")
59
-
60
- @direction.setter
61
- def direction(self, value: pulumi.Input[str]):
62
- pulumi.set(self, "direction", value)
63
-
64
- @property
65
- @pulumi.getter
66
- def name(self) -> pulumi.Input[str]:
67
- """
68
- The property name to index.
69
- """
70
- return pulumi.get(self, "name")
71
-
72
- @name.setter
73
- def name(self, value: pulumi.Input[str]):
74
- pulumi.set(self, "name", value)
75
-
76
-
@@ -1,515 +0,0 @@
1
- # coding=utf-8
2
- # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
- # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
-
5
- import copy
6
- import warnings
7
- import sys
8
- import pulumi
9
- import pulumi.runtime
10
- from typing import Any, Mapping, Optional, Sequence, Union, overload
11
- if sys.version_info >= (3, 11):
12
- from typing import NotRequired, TypedDict, TypeAlias
13
- else:
14
- from typing_extensions import NotRequired, TypedDict, TypeAlias
15
- from .. import _utilities
16
- from . import outputs
17
- from ._inputs import *
18
-
19
- __all__ = ['DataStoreIndexArgs', 'DataStoreIndex']
20
-
21
- @pulumi.input_type
22
- class DataStoreIndexArgs:
23
- def __init__(__self__, *,
24
- kind: pulumi.Input[str],
25
- ancestor: Optional[pulumi.Input[str]] = None,
26
- project: Optional[pulumi.Input[str]] = None,
27
- properties: Optional[pulumi.Input[Sequence[pulumi.Input['DataStoreIndexPropertyArgs']]]] = None):
28
- """
29
- The set of arguments for constructing a DataStoreIndex resource.
30
- :param pulumi.Input[str] kind: The entity kind which the index applies to.
31
-
32
-
33
- - - -
34
- :param pulumi.Input[str] ancestor: Policy for including ancestors in the index.
35
- Default value is `NONE`.
36
- Possible values are: `NONE`, `ALL_ANCESTORS`.
37
- :param pulumi.Input[str] project: The ID of the project in which the resource belongs.
38
- If it is not provided, the provider project is used.
39
- :param pulumi.Input[Sequence[pulumi.Input['DataStoreIndexPropertyArgs']]] properties: An ordered list of properties to index on.
40
- Structure is documented below.
41
- """
42
- pulumi.set(__self__, "kind", kind)
43
- if ancestor is not None:
44
- pulumi.set(__self__, "ancestor", ancestor)
45
- if project is not None:
46
- pulumi.set(__self__, "project", project)
47
- if properties is not None:
48
- pulumi.set(__self__, "properties", properties)
49
-
50
- @property
51
- @pulumi.getter
52
- def kind(self) -> pulumi.Input[str]:
53
- """
54
- The entity kind which the index applies to.
55
-
56
-
57
- - - -
58
- """
59
- return pulumi.get(self, "kind")
60
-
61
- @kind.setter
62
- def kind(self, value: pulumi.Input[str]):
63
- pulumi.set(self, "kind", value)
64
-
65
- @property
66
- @pulumi.getter
67
- def ancestor(self) -> Optional[pulumi.Input[str]]:
68
- """
69
- Policy for including ancestors in the index.
70
- Default value is `NONE`.
71
- Possible values are: `NONE`, `ALL_ANCESTORS`.
72
- """
73
- return pulumi.get(self, "ancestor")
74
-
75
- @ancestor.setter
76
- def ancestor(self, value: Optional[pulumi.Input[str]]):
77
- pulumi.set(self, "ancestor", value)
78
-
79
- @property
80
- @pulumi.getter
81
- def project(self) -> Optional[pulumi.Input[str]]:
82
- """
83
- The ID of the project in which the resource belongs.
84
- If it is not provided, the provider project is used.
85
- """
86
- return pulumi.get(self, "project")
87
-
88
- @project.setter
89
- def project(self, value: Optional[pulumi.Input[str]]):
90
- pulumi.set(self, "project", value)
91
-
92
- @property
93
- @pulumi.getter
94
- def properties(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['DataStoreIndexPropertyArgs']]]]:
95
- """
96
- An ordered list of properties to index on.
97
- Structure is documented below.
98
- """
99
- return pulumi.get(self, "properties")
100
-
101
- @properties.setter
102
- def properties(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['DataStoreIndexPropertyArgs']]]]):
103
- pulumi.set(self, "properties", value)
104
-
105
-
106
- @pulumi.input_type
107
- class _DataStoreIndexState:
108
- def __init__(__self__, *,
109
- ancestor: Optional[pulumi.Input[str]] = None,
110
- index_id: Optional[pulumi.Input[str]] = None,
111
- kind: Optional[pulumi.Input[str]] = None,
112
- project: Optional[pulumi.Input[str]] = None,
113
- properties: Optional[pulumi.Input[Sequence[pulumi.Input['DataStoreIndexPropertyArgs']]]] = None):
114
- """
115
- Input properties used for looking up and filtering DataStoreIndex resources.
116
- :param pulumi.Input[str] ancestor: Policy for including ancestors in the index.
117
- Default value is `NONE`.
118
- Possible values are: `NONE`, `ALL_ANCESTORS`.
119
- :param pulumi.Input[str] index_id: The index id.
120
- :param pulumi.Input[str] kind: The entity kind which the index applies to.
121
-
122
-
123
- - - -
124
- :param pulumi.Input[str] project: The ID of the project in which the resource belongs.
125
- If it is not provided, the provider project is used.
126
- :param pulumi.Input[Sequence[pulumi.Input['DataStoreIndexPropertyArgs']]] properties: An ordered list of properties to index on.
127
- Structure is documented below.
128
- """
129
- if ancestor is not None:
130
- pulumi.set(__self__, "ancestor", ancestor)
131
- if index_id is not None:
132
- pulumi.set(__self__, "index_id", index_id)
133
- if kind is not None:
134
- pulumi.set(__self__, "kind", kind)
135
- if project is not None:
136
- pulumi.set(__self__, "project", project)
137
- if properties is not None:
138
- pulumi.set(__self__, "properties", properties)
139
-
140
- @property
141
- @pulumi.getter
142
- def ancestor(self) -> Optional[pulumi.Input[str]]:
143
- """
144
- Policy for including ancestors in the index.
145
- Default value is `NONE`.
146
- Possible values are: `NONE`, `ALL_ANCESTORS`.
147
- """
148
- return pulumi.get(self, "ancestor")
149
-
150
- @ancestor.setter
151
- def ancestor(self, value: Optional[pulumi.Input[str]]):
152
- pulumi.set(self, "ancestor", value)
153
-
154
- @property
155
- @pulumi.getter(name="indexId")
156
- def index_id(self) -> Optional[pulumi.Input[str]]:
157
- """
158
- The index id.
159
- """
160
- return pulumi.get(self, "index_id")
161
-
162
- @index_id.setter
163
- def index_id(self, value: Optional[pulumi.Input[str]]):
164
- pulumi.set(self, "index_id", value)
165
-
166
- @property
167
- @pulumi.getter
168
- def kind(self) -> Optional[pulumi.Input[str]]:
169
- """
170
- The entity kind which the index applies to.
171
-
172
-
173
- - - -
174
- """
175
- return pulumi.get(self, "kind")
176
-
177
- @kind.setter
178
- def kind(self, value: Optional[pulumi.Input[str]]):
179
- pulumi.set(self, "kind", value)
180
-
181
- @property
182
- @pulumi.getter
183
- def project(self) -> Optional[pulumi.Input[str]]:
184
- """
185
- The ID of the project in which the resource belongs.
186
- If it is not provided, the provider project is used.
187
- """
188
- return pulumi.get(self, "project")
189
-
190
- @project.setter
191
- def project(self, value: Optional[pulumi.Input[str]]):
192
- pulumi.set(self, "project", value)
193
-
194
- @property
195
- @pulumi.getter
196
- def properties(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['DataStoreIndexPropertyArgs']]]]:
197
- """
198
- An ordered list of properties to index on.
199
- Structure is documented below.
200
- """
201
- return pulumi.get(self, "properties")
202
-
203
- @properties.setter
204
- def properties(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['DataStoreIndexPropertyArgs']]]]):
205
- pulumi.set(self, "properties", value)
206
-
207
-
208
- class DataStoreIndex(pulumi.CustomResource):
209
- @overload
210
- def __init__(__self__,
211
- resource_name: str,
212
- opts: Optional[pulumi.ResourceOptions] = None,
213
- ancestor: Optional[pulumi.Input[str]] = None,
214
- kind: Optional[pulumi.Input[str]] = None,
215
- project: Optional[pulumi.Input[str]] = None,
216
- properties: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DataStoreIndexPropertyArgs', 'DataStoreIndexPropertyArgsDict']]]]] = None,
217
- __props__=None):
218
- """
219
- > **Warning:** `datastore_index` is deprecated and will be removed in a future major release. Use `firestore_index` instead; this resource is deprecated because it only supports the (default) database. `firestore_index` supports both Firestore in Datastore Mode and Firestore Native indexes and supports both named and the (default) database.
220
-
221
- Describes a composite index for Firestore in Datastore Mode.
222
-
223
- To get more information about Index, see:
224
-
225
- * [API documentation](https://cloud.google.com/datastore/docs/reference/admin/rest/v1/projects.indexes)
226
- * How-to Guides
227
- * [Official Documentation](https://cloud.google.com/datastore/docs/concepts/indexes)
228
-
229
- > **Warning:** `datastore_index` is deprecated and will be removed in a future major release.
230
- Use `firestore_index` instead; this resource is deprecated because it only supports the (default) database.
231
- This resource creates a Datastore Index on a project that has already
232
- enabled a Datastore-compatible database. If you haven't already created it, you may
233
- create a `firestore.Database` resource with `location_id` set
234
- to your chosen location, and `type` set to `"DATASTORE_MODE"`.
235
- If you wish to use App Engine, you may instead create a `appengine.Application` resource with
236
- `database_type` set to `"CLOUD_DATASTORE_COMPATIBILITY"`.
237
- Your Datastore location will be the same as the App Engine location specified.
238
-
239
- ## Example Usage
240
-
241
- ### Datastore Index
242
-
243
- ```python
244
- import pulumi
245
- import pulumi_gcp as gcp
246
-
247
- database = gcp.firestore.Database("database",
248
- project="my-project-name",
249
- name="(default)",
250
- location_id="nam5",
251
- type="DATASTORE_MODE",
252
- delete_protection_state="DELETE_PROTECTION_DISABLED",
253
- deletion_policy="DELETE")
254
- default = gcp.datastore.DataStoreIndex("default",
255
- kind="foo",
256
- properties=[
257
- {
258
- "name": "property_a",
259
- "direction": "ASCENDING",
260
- },
261
- {
262
- "name": "property_b",
263
- "direction": "ASCENDING",
264
- },
265
- ],
266
- opts = pulumi.ResourceOptions(depends_on=[database]))
267
- ```
268
-
269
- ## Import
270
-
271
- Index can be imported using any of these accepted formats:
272
-
273
- * `projects/{{project}}/indexes/{{index_id}}`
274
-
275
- * `{{project}}/{{index_id}}`
276
-
277
- * `{{index_id}}`
278
-
279
- When using the `pulumi import` command, Index can be imported using one of the formats above. For example:
280
-
281
- ```sh
282
- $ pulumi import gcp:datastore/dataStoreIndex:DataStoreIndex default projects/{{project}}/indexes/{{index_id}}
283
- ```
284
-
285
- ```sh
286
- $ pulumi import gcp:datastore/dataStoreIndex:DataStoreIndex default {{project}}/{{index_id}}
287
- ```
288
-
289
- ```sh
290
- $ pulumi import gcp:datastore/dataStoreIndex:DataStoreIndex default {{index_id}}
291
- ```
292
-
293
- :param str resource_name: The name of the resource.
294
- :param pulumi.ResourceOptions opts: Options for the resource.
295
- :param pulumi.Input[str] ancestor: Policy for including ancestors in the index.
296
- Default value is `NONE`.
297
- Possible values are: `NONE`, `ALL_ANCESTORS`.
298
- :param pulumi.Input[str] kind: The entity kind which the index applies to.
299
-
300
-
301
- - - -
302
- :param pulumi.Input[str] project: The ID of the project in which the resource belongs.
303
- If it is not provided, the provider project is used.
304
- :param pulumi.Input[Sequence[pulumi.Input[Union['DataStoreIndexPropertyArgs', 'DataStoreIndexPropertyArgsDict']]]] properties: An ordered list of properties to index on.
305
- Structure is documented below.
306
- """
307
- ...
308
- @overload
309
- def __init__(__self__,
310
- resource_name: str,
311
- args: DataStoreIndexArgs,
312
- opts: Optional[pulumi.ResourceOptions] = None):
313
- """
314
- > **Warning:** `datastore_index` is deprecated and will be removed in a future major release. Use `firestore_index` instead; this resource is deprecated because it only supports the (default) database. `firestore_index` supports both Firestore in Datastore Mode and Firestore Native indexes and supports both named and the (default) database.
315
-
316
- Describes a composite index for Firestore in Datastore Mode.
317
-
318
- To get more information about Index, see:
319
-
320
- * [API documentation](https://cloud.google.com/datastore/docs/reference/admin/rest/v1/projects.indexes)
321
- * How-to Guides
322
- * [Official Documentation](https://cloud.google.com/datastore/docs/concepts/indexes)
323
-
324
- > **Warning:** `datastore_index` is deprecated and will be removed in a future major release.
325
- Use `firestore_index` instead; this resource is deprecated because it only supports the (default) database.
326
- This resource creates a Datastore Index on a project that has already
327
- enabled a Datastore-compatible database. If you haven't already created it, you may
328
- create a `firestore.Database` resource with `location_id` set
329
- to your chosen location, and `type` set to `"DATASTORE_MODE"`.
330
- If you wish to use App Engine, you may instead create a `appengine.Application` resource with
331
- `database_type` set to `"CLOUD_DATASTORE_COMPATIBILITY"`.
332
- Your Datastore location will be the same as the App Engine location specified.
333
-
334
- ## Example Usage
335
-
336
- ### Datastore Index
337
-
338
- ```python
339
- import pulumi
340
- import pulumi_gcp as gcp
341
-
342
- database = gcp.firestore.Database("database",
343
- project="my-project-name",
344
- name="(default)",
345
- location_id="nam5",
346
- type="DATASTORE_MODE",
347
- delete_protection_state="DELETE_PROTECTION_DISABLED",
348
- deletion_policy="DELETE")
349
- default = gcp.datastore.DataStoreIndex("default",
350
- kind="foo",
351
- properties=[
352
- {
353
- "name": "property_a",
354
- "direction": "ASCENDING",
355
- },
356
- {
357
- "name": "property_b",
358
- "direction": "ASCENDING",
359
- },
360
- ],
361
- opts = pulumi.ResourceOptions(depends_on=[database]))
362
- ```
363
-
364
- ## Import
365
-
366
- Index can be imported using any of these accepted formats:
367
-
368
- * `projects/{{project}}/indexes/{{index_id}}`
369
-
370
- * `{{project}}/{{index_id}}`
371
-
372
- * `{{index_id}}`
373
-
374
- When using the `pulumi import` command, Index can be imported using one of the formats above. For example:
375
-
376
- ```sh
377
- $ pulumi import gcp:datastore/dataStoreIndex:DataStoreIndex default projects/{{project}}/indexes/{{index_id}}
378
- ```
379
-
380
- ```sh
381
- $ pulumi import gcp:datastore/dataStoreIndex:DataStoreIndex default {{project}}/{{index_id}}
382
- ```
383
-
384
- ```sh
385
- $ pulumi import gcp:datastore/dataStoreIndex:DataStoreIndex default {{index_id}}
386
- ```
387
-
388
- :param str resource_name: The name of the resource.
389
- :param DataStoreIndexArgs args: The arguments to use to populate this resource's properties.
390
- :param pulumi.ResourceOptions opts: Options for the resource.
391
- """
392
- ...
393
- def __init__(__self__, resource_name: str, *args, **kwargs):
394
- resource_args, opts = _utilities.get_resource_args_opts(DataStoreIndexArgs, pulumi.ResourceOptions, *args, **kwargs)
395
- if resource_args is not None:
396
- __self__._internal_init(resource_name, opts, **resource_args.__dict__)
397
- else:
398
- __self__._internal_init(resource_name, *args, **kwargs)
399
-
400
- def _internal_init(__self__,
401
- resource_name: str,
402
- opts: Optional[pulumi.ResourceOptions] = None,
403
- ancestor: Optional[pulumi.Input[str]] = None,
404
- kind: Optional[pulumi.Input[str]] = None,
405
- project: Optional[pulumi.Input[str]] = None,
406
- properties: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DataStoreIndexPropertyArgs', 'DataStoreIndexPropertyArgsDict']]]]] = None,
407
- __props__=None):
408
- opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
409
- if not isinstance(opts, pulumi.ResourceOptions):
410
- raise TypeError('Expected resource options to be a ResourceOptions instance')
411
- if opts.id is None:
412
- if __props__ is not None:
413
- raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
414
- __props__ = DataStoreIndexArgs.__new__(DataStoreIndexArgs)
415
-
416
- __props__.__dict__["ancestor"] = ancestor
417
- if kind is None and not opts.urn:
418
- raise TypeError("Missing required property 'kind'")
419
- __props__.__dict__["kind"] = kind
420
- __props__.__dict__["project"] = project
421
- __props__.__dict__["properties"] = properties
422
- __props__.__dict__["index_id"] = None
423
- super(DataStoreIndex, __self__).__init__(
424
- 'gcp:datastore/dataStoreIndex:DataStoreIndex',
425
- resource_name,
426
- __props__,
427
- opts)
428
-
429
- @staticmethod
430
- def get(resource_name: str,
431
- id: pulumi.Input[str],
432
- opts: Optional[pulumi.ResourceOptions] = None,
433
- ancestor: Optional[pulumi.Input[str]] = None,
434
- index_id: Optional[pulumi.Input[str]] = None,
435
- kind: Optional[pulumi.Input[str]] = None,
436
- project: Optional[pulumi.Input[str]] = None,
437
- properties: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DataStoreIndexPropertyArgs', 'DataStoreIndexPropertyArgsDict']]]]] = None) -> 'DataStoreIndex':
438
- """
439
- Get an existing DataStoreIndex resource's state with the given name, id, and optional extra
440
- properties used to qualify the lookup.
441
-
442
- :param str resource_name: The unique name of the resulting resource.
443
- :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
444
- :param pulumi.ResourceOptions opts: Options for the resource.
445
- :param pulumi.Input[str] ancestor: Policy for including ancestors in the index.
446
- Default value is `NONE`.
447
- Possible values are: `NONE`, `ALL_ANCESTORS`.
448
- :param pulumi.Input[str] index_id: The index id.
449
- :param pulumi.Input[str] kind: The entity kind which the index applies to.
450
-
451
-
452
- - - -
453
- :param pulumi.Input[str] project: The ID of the project in which the resource belongs.
454
- If it is not provided, the provider project is used.
455
- :param pulumi.Input[Sequence[pulumi.Input[Union['DataStoreIndexPropertyArgs', 'DataStoreIndexPropertyArgsDict']]]] properties: An ordered list of properties to index on.
456
- Structure is documented below.
457
- """
458
- opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
459
-
460
- __props__ = _DataStoreIndexState.__new__(_DataStoreIndexState)
461
-
462
- __props__.__dict__["ancestor"] = ancestor
463
- __props__.__dict__["index_id"] = index_id
464
- __props__.__dict__["kind"] = kind
465
- __props__.__dict__["project"] = project
466
- __props__.__dict__["properties"] = properties
467
- return DataStoreIndex(resource_name, opts=opts, __props__=__props__)
468
-
469
- @property
470
- @pulumi.getter
471
- def ancestor(self) -> pulumi.Output[Optional[str]]:
472
- """
473
- Policy for including ancestors in the index.
474
- Default value is `NONE`.
475
- Possible values are: `NONE`, `ALL_ANCESTORS`.
476
- """
477
- return pulumi.get(self, "ancestor")
478
-
479
- @property
480
- @pulumi.getter(name="indexId")
481
- def index_id(self) -> pulumi.Output[str]:
482
- """
483
- The index id.
484
- """
485
- return pulumi.get(self, "index_id")
486
-
487
- @property
488
- @pulumi.getter
489
- def kind(self) -> pulumi.Output[str]:
490
- """
491
- The entity kind which the index applies to.
492
-
493
-
494
- - - -
495
- """
496
- return pulumi.get(self, "kind")
497
-
498
- @property
499
- @pulumi.getter
500
- def project(self) -> pulumi.Output[str]:
501
- """
502
- The ID of the project in which the resource belongs.
503
- If it is not provided, the provider project is used.
504
- """
505
- return pulumi.get(self, "project")
506
-
507
- @property
508
- @pulumi.getter
509
- def properties(self) -> pulumi.Output[Optional[Sequence['outputs.DataStoreIndexProperty']]]:
510
- """
511
- An ordered list of properties to index on.
512
- Structure is documented below.
513
- """
514
- return pulumi.get(self, "properties")
515
-
@@ -1,51 +0,0 @@
1
- # coding=utf-8
2
- # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
- # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
-
5
- import copy
6
- import warnings
7
- import sys
8
- import pulumi
9
- import pulumi.runtime
10
- from typing import Any, Mapping, Optional, Sequence, Union, overload
11
- if sys.version_info >= (3, 11):
12
- from typing import NotRequired, TypedDict, TypeAlias
13
- else:
14
- from typing_extensions import NotRequired, TypedDict, TypeAlias
15
- from .. import _utilities
16
-
17
- __all__ = [
18
- 'DataStoreIndexProperty',
19
- ]
20
-
21
- @pulumi.output_type
22
- class DataStoreIndexProperty(dict):
23
- def __init__(__self__, *,
24
- direction: str,
25
- name: str):
26
- """
27
- :param str direction: The direction the index should optimize for sorting.
28
- Possible values are: `ASCENDING`, `DESCENDING`.
29
- :param str name: The property name to index.
30
- """
31
- pulumi.set(__self__, "direction", direction)
32
- pulumi.set(__self__, "name", name)
33
-
34
- @property
35
- @pulumi.getter
36
- def direction(self) -> str:
37
- """
38
- The direction the index should optimize for sorting.
39
- Possible values are: `ASCENDING`, `DESCENDING`.
40
- """
41
- return pulumi.get(self, "direction")
42
-
43
- @property
44
- @pulumi.getter
45
- def name(self) -> str:
46
- """
47
- The property name to index.
48
- """
49
- return pulumi.get(self, "name")
50
-
51
-