pulumi-gcp 7.38.0__py3-none-any.whl → 7.38.0a1723822337__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.
- pulumi_gcp/__init__.py +0 -32
- pulumi_gcp/appengine/flexible_app_version.py +0 -8
- pulumi_gcp/applicationintegration/client.py +2 -2
- pulumi_gcp/artifactregistry/__init__.py +0 -1
- pulumi_gcp/bigquery/connection.py +0 -12
- pulumi_gcp/clouddeploy/_inputs.py +1 -41
- pulumi_gcp/clouddeploy/outputs.py +1 -29
- pulumi_gcp/cloudfunctionsv2/function.py +0 -2
- pulumi_gcp/cloudidentity/__init__.py +0 -1
- pulumi_gcp/cloudidentity/get_group_memberships.py +0 -12
- pulumi_gcp/cloudidentity/outputs.py +0 -131
- pulumi_gcp/compute/_inputs.py +30 -36
- pulumi_gcp/compute/outputs.py +38 -48
- pulumi_gcp/compute/region_network_endpoint_group.py +0 -8
- pulumi_gcp/compute/subnetwork.py +0 -82
- pulumi_gcp/container/_inputs.py +18 -15
- pulumi_gcp/container/attached_cluster.py +7 -14
- pulumi_gcp/container/outputs.py +12 -10
- pulumi_gcp/discoveryengine/__init__.py +0 -1
- pulumi_gcp/dns/_inputs.py +76 -80
- pulumi_gcp/dns/outputs.py +52 -56
- pulumi_gcp/managedkafka/_inputs.py +6 -6
- pulumi_gcp/managedkafka/cluster.py +7 -7
- pulumi_gcp/managedkafka/outputs.py +4 -4
- pulumi_gcp/managedkafka/topic.py +7 -7
- pulumi_gcp/parallelstore/instance.py +15 -215
- pulumi_gcp/pulumi-plugin.json +1 -1
- pulumi_gcp/securitycenter/__init__.py +0 -2
- pulumi_gcp/securitycenter/_inputs.py +0 -186
- pulumi_gcp/securitycenter/outputs.py +0 -118
- pulumi_gcp/servicenetworking/connection.py +3 -50
- pulumi_gcp/sql/_inputs.py +0 -20
- pulumi_gcp/sql/outputs.py +0 -36
- pulumi_gcp/vertex/__init__.py +0 -1
- pulumi_gcp/vertex/_inputs.py +0 -438
- pulumi_gcp/vertex/outputs.py +0 -393
- {pulumi_gcp-7.38.0.dist-info → pulumi_gcp-7.38.0a1723822337.dist-info}/METADATA +1 -1
- {pulumi_gcp-7.38.0.dist-info → pulumi_gcp-7.38.0a1723822337.dist-info}/RECORD +40 -46
- {pulumi_gcp-7.38.0.dist-info → pulumi_gcp-7.38.0a1723822337.dist-info}/WHEEL +1 -1
- pulumi_gcp/artifactregistry/get_locations.py +0 -167
- pulumi_gcp/cloudidentity/get_group_transitive_memberships.py +0 -93
- pulumi_gcp/discoveryengine/schema.py +0 -524
- pulumi_gcp/securitycenter/folder_notification_config.py +0 -486
- pulumi_gcp/securitycenter/v2_folder_notification_config.py +0 -575
- pulumi_gcp/vertex/ai_index_endpoint_deployed_index.py +0 -1170
- {pulumi_gcp-7.38.0.dist-info → pulumi_gcp-7.38.0a1723822337.dist-info}/top_level.txt +0 -0
@@ -1,524 +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__ = ['SchemaArgs', 'Schema']
|
18
|
-
|
19
|
-
@pulumi.input_type
|
20
|
-
class SchemaArgs:
|
21
|
-
def __init__(__self__, *,
|
22
|
-
data_store_id: pulumi.Input[str],
|
23
|
-
location: pulumi.Input[str],
|
24
|
-
schema_id: pulumi.Input[str],
|
25
|
-
json_schema: Optional[pulumi.Input[str]] = None,
|
26
|
-
project: Optional[pulumi.Input[str]] = None):
|
27
|
-
"""
|
28
|
-
The set of arguments for constructing a Schema resource.
|
29
|
-
:param pulumi.Input[str] data_store_id: The unique id of the data store.
|
30
|
-
:param pulumi.Input[str] location: The geographic location where the data store should reside. The value can
|
31
|
-
only be one of "global", "us" and "eu".
|
32
|
-
:param pulumi.Input[str] schema_id: The unique id of the schema.
|
33
|
-
|
34
|
-
|
35
|
-
- - -
|
36
|
-
:param pulumi.Input[str] json_schema: The JSON representation of the schema.
|
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
|
-
"""
|
40
|
-
pulumi.set(__self__, "data_store_id", data_store_id)
|
41
|
-
pulumi.set(__self__, "location", location)
|
42
|
-
pulumi.set(__self__, "schema_id", schema_id)
|
43
|
-
if json_schema is not None:
|
44
|
-
pulumi.set(__self__, "json_schema", json_schema)
|
45
|
-
if project is not None:
|
46
|
-
pulumi.set(__self__, "project", project)
|
47
|
-
|
48
|
-
@property
|
49
|
-
@pulumi.getter(name="dataStoreId")
|
50
|
-
def data_store_id(self) -> pulumi.Input[str]:
|
51
|
-
"""
|
52
|
-
The unique id of the data store.
|
53
|
-
"""
|
54
|
-
return pulumi.get(self, "data_store_id")
|
55
|
-
|
56
|
-
@data_store_id.setter
|
57
|
-
def data_store_id(self, value: pulumi.Input[str]):
|
58
|
-
pulumi.set(self, "data_store_id", value)
|
59
|
-
|
60
|
-
@property
|
61
|
-
@pulumi.getter
|
62
|
-
def location(self) -> pulumi.Input[str]:
|
63
|
-
"""
|
64
|
-
The geographic location where the data store should reside. The value can
|
65
|
-
only be one of "global", "us" and "eu".
|
66
|
-
"""
|
67
|
-
return pulumi.get(self, "location")
|
68
|
-
|
69
|
-
@location.setter
|
70
|
-
def location(self, value: pulumi.Input[str]):
|
71
|
-
pulumi.set(self, "location", value)
|
72
|
-
|
73
|
-
@property
|
74
|
-
@pulumi.getter(name="schemaId")
|
75
|
-
def schema_id(self) -> pulumi.Input[str]:
|
76
|
-
"""
|
77
|
-
The unique id of the schema.
|
78
|
-
|
79
|
-
|
80
|
-
- - -
|
81
|
-
"""
|
82
|
-
return pulumi.get(self, "schema_id")
|
83
|
-
|
84
|
-
@schema_id.setter
|
85
|
-
def schema_id(self, value: pulumi.Input[str]):
|
86
|
-
pulumi.set(self, "schema_id", value)
|
87
|
-
|
88
|
-
@property
|
89
|
-
@pulumi.getter(name="jsonSchema")
|
90
|
-
def json_schema(self) -> Optional[pulumi.Input[str]]:
|
91
|
-
"""
|
92
|
-
The JSON representation of the schema.
|
93
|
-
"""
|
94
|
-
return pulumi.get(self, "json_schema")
|
95
|
-
|
96
|
-
@json_schema.setter
|
97
|
-
def json_schema(self, value: Optional[pulumi.Input[str]]):
|
98
|
-
pulumi.set(self, "json_schema", value)
|
99
|
-
|
100
|
-
@property
|
101
|
-
@pulumi.getter
|
102
|
-
def project(self) -> Optional[pulumi.Input[str]]:
|
103
|
-
"""
|
104
|
-
The ID of the project in which the resource belongs.
|
105
|
-
If it is not provided, the provider project is used.
|
106
|
-
"""
|
107
|
-
return pulumi.get(self, "project")
|
108
|
-
|
109
|
-
@project.setter
|
110
|
-
def project(self, value: Optional[pulumi.Input[str]]):
|
111
|
-
pulumi.set(self, "project", value)
|
112
|
-
|
113
|
-
|
114
|
-
@pulumi.input_type
|
115
|
-
class _SchemaState:
|
116
|
-
def __init__(__self__, *,
|
117
|
-
data_store_id: Optional[pulumi.Input[str]] = None,
|
118
|
-
json_schema: Optional[pulumi.Input[str]] = None,
|
119
|
-
location: Optional[pulumi.Input[str]] = None,
|
120
|
-
name: Optional[pulumi.Input[str]] = None,
|
121
|
-
project: Optional[pulumi.Input[str]] = None,
|
122
|
-
schema_id: Optional[pulumi.Input[str]] = None):
|
123
|
-
"""
|
124
|
-
Input properties used for looking up and filtering Schema resources.
|
125
|
-
:param pulumi.Input[str] data_store_id: The unique id of the data store.
|
126
|
-
:param pulumi.Input[str] json_schema: The JSON representation of the schema.
|
127
|
-
:param pulumi.Input[str] location: The geographic location where the data store should reside. The value can
|
128
|
-
only be one of "global", "us" and "eu".
|
129
|
-
:param pulumi.Input[str] name: The unique full resource name of the schema. Values are of the format
|
130
|
-
`projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/schemas/{schema_id}`.
|
131
|
-
This field must be a UTF-8 encoded string with a length limit of 1024
|
132
|
-
characters.
|
133
|
-
:param pulumi.Input[str] project: The ID of the project in which the resource belongs.
|
134
|
-
If it is not provided, the provider project is used.
|
135
|
-
:param pulumi.Input[str] schema_id: The unique id of the schema.
|
136
|
-
|
137
|
-
|
138
|
-
- - -
|
139
|
-
"""
|
140
|
-
if data_store_id is not None:
|
141
|
-
pulumi.set(__self__, "data_store_id", data_store_id)
|
142
|
-
if json_schema is not None:
|
143
|
-
pulumi.set(__self__, "json_schema", json_schema)
|
144
|
-
if location is not None:
|
145
|
-
pulumi.set(__self__, "location", location)
|
146
|
-
if name is not None:
|
147
|
-
pulumi.set(__self__, "name", name)
|
148
|
-
if project is not None:
|
149
|
-
pulumi.set(__self__, "project", project)
|
150
|
-
if schema_id is not None:
|
151
|
-
pulumi.set(__self__, "schema_id", schema_id)
|
152
|
-
|
153
|
-
@property
|
154
|
-
@pulumi.getter(name="dataStoreId")
|
155
|
-
def data_store_id(self) -> Optional[pulumi.Input[str]]:
|
156
|
-
"""
|
157
|
-
The unique id of the data store.
|
158
|
-
"""
|
159
|
-
return pulumi.get(self, "data_store_id")
|
160
|
-
|
161
|
-
@data_store_id.setter
|
162
|
-
def data_store_id(self, value: Optional[pulumi.Input[str]]):
|
163
|
-
pulumi.set(self, "data_store_id", value)
|
164
|
-
|
165
|
-
@property
|
166
|
-
@pulumi.getter(name="jsonSchema")
|
167
|
-
def json_schema(self) -> Optional[pulumi.Input[str]]:
|
168
|
-
"""
|
169
|
-
The JSON representation of the schema.
|
170
|
-
"""
|
171
|
-
return pulumi.get(self, "json_schema")
|
172
|
-
|
173
|
-
@json_schema.setter
|
174
|
-
def json_schema(self, value: Optional[pulumi.Input[str]]):
|
175
|
-
pulumi.set(self, "json_schema", value)
|
176
|
-
|
177
|
-
@property
|
178
|
-
@pulumi.getter
|
179
|
-
def location(self) -> Optional[pulumi.Input[str]]:
|
180
|
-
"""
|
181
|
-
The geographic location where the data store should reside. The value can
|
182
|
-
only be one of "global", "us" and "eu".
|
183
|
-
"""
|
184
|
-
return pulumi.get(self, "location")
|
185
|
-
|
186
|
-
@location.setter
|
187
|
-
def location(self, value: Optional[pulumi.Input[str]]):
|
188
|
-
pulumi.set(self, "location", value)
|
189
|
-
|
190
|
-
@property
|
191
|
-
@pulumi.getter
|
192
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
193
|
-
"""
|
194
|
-
The unique full resource name of the schema. Values are of the format
|
195
|
-
`projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/schemas/{schema_id}`.
|
196
|
-
This field must be a UTF-8 encoded string with a length limit of 1024
|
197
|
-
characters.
|
198
|
-
"""
|
199
|
-
return pulumi.get(self, "name")
|
200
|
-
|
201
|
-
@name.setter
|
202
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
203
|
-
pulumi.set(self, "name", value)
|
204
|
-
|
205
|
-
@property
|
206
|
-
@pulumi.getter
|
207
|
-
def project(self) -> Optional[pulumi.Input[str]]:
|
208
|
-
"""
|
209
|
-
The ID of the project in which the resource belongs.
|
210
|
-
If it is not provided, the provider project is used.
|
211
|
-
"""
|
212
|
-
return pulumi.get(self, "project")
|
213
|
-
|
214
|
-
@project.setter
|
215
|
-
def project(self, value: Optional[pulumi.Input[str]]):
|
216
|
-
pulumi.set(self, "project", value)
|
217
|
-
|
218
|
-
@property
|
219
|
-
@pulumi.getter(name="schemaId")
|
220
|
-
def schema_id(self) -> Optional[pulumi.Input[str]]:
|
221
|
-
"""
|
222
|
-
The unique id of the schema.
|
223
|
-
|
224
|
-
|
225
|
-
- - -
|
226
|
-
"""
|
227
|
-
return pulumi.get(self, "schema_id")
|
228
|
-
|
229
|
-
@schema_id.setter
|
230
|
-
def schema_id(self, value: Optional[pulumi.Input[str]]):
|
231
|
-
pulumi.set(self, "schema_id", value)
|
232
|
-
|
233
|
-
|
234
|
-
class Schema(pulumi.CustomResource):
|
235
|
-
@overload
|
236
|
-
def __init__(__self__,
|
237
|
-
resource_name: str,
|
238
|
-
opts: Optional[pulumi.ResourceOptions] = None,
|
239
|
-
data_store_id: Optional[pulumi.Input[str]] = None,
|
240
|
-
json_schema: Optional[pulumi.Input[str]] = None,
|
241
|
-
location: Optional[pulumi.Input[str]] = None,
|
242
|
-
project: Optional[pulumi.Input[str]] = None,
|
243
|
-
schema_id: Optional[pulumi.Input[str]] = None,
|
244
|
-
__props__=None):
|
245
|
-
"""
|
246
|
-
Schema defines the structure and layout of a type of document data.
|
247
|
-
|
248
|
-
To get more information about Schema, see:
|
249
|
-
|
250
|
-
* [API documentation](https://cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1/projects.locations.collections.dataStores.schemas)
|
251
|
-
* How-to Guides
|
252
|
-
* [Provide a schema for your data store](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema)
|
253
|
-
|
254
|
-
## Example Usage
|
255
|
-
|
256
|
-
### Discoveryengine Schema Basic
|
257
|
-
|
258
|
-
```python
|
259
|
-
import pulumi
|
260
|
-
import pulumi_gcp as gcp
|
261
|
-
|
262
|
-
basic_data_store = gcp.discoveryengine.DataStore("basic",
|
263
|
-
location="global",
|
264
|
-
data_store_id="data-store-id",
|
265
|
-
display_name="tf-test-structured-datastore",
|
266
|
-
industry_vertical="GENERIC",
|
267
|
-
content_config="NO_CONTENT",
|
268
|
-
solution_types=["SOLUTION_TYPE_SEARCH"],
|
269
|
-
create_advanced_site_search=False,
|
270
|
-
skip_default_schema_creation=True)
|
271
|
-
basic = gcp.discoveryengine.Schema("basic",
|
272
|
-
location=basic_data_store.location,
|
273
|
-
data_store_id=basic_data_store.data_store_id,
|
274
|
-
schema_id="schema-id",
|
275
|
-
json_schema="{\\"$schema\\":\\"https://json-schema.org/draft/2020-12/schema\\",\\"datetime_detection\\":true,\\"type\\":\\"object\\",\\"geolocation_detection\\":true}")
|
276
|
-
```
|
277
|
-
|
278
|
-
## Import
|
279
|
-
|
280
|
-
Schema can be imported using any of these accepted formats:
|
281
|
-
|
282
|
-
* `projects/{{project}}/locations/{{location}}/collections/default_collection/dataStores/{{data_store_id}}/schemas/{{schema_id}}`
|
283
|
-
|
284
|
-
* `{{project}}/{{location}}/{{data_store_id}}/{{schema_id}}`
|
285
|
-
|
286
|
-
* `{{location}}/{{data_store_id}}/{{schema_id}}`
|
287
|
-
|
288
|
-
When using the `pulumi import` command, Schema can be imported using one of the formats above. For example:
|
289
|
-
|
290
|
-
```sh
|
291
|
-
$ pulumi import gcp:discoveryengine/schema:Schema default projects/{{project}}/locations/{{location}}/collections/default_collection/dataStores/{{data_store_id}}/schemas/{{schema_id}}
|
292
|
-
```
|
293
|
-
|
294
|
-
```sh
|
295
|
-
$ pulumi import gcp:discoveryengine/schema:Schema default {{project}}/{{location}}/{{data_store_id}}/{{schema_id}}
|
296
|
-
```
|
297
|
-
|
298
|
-
```sh
|
299
|
-
$ pulumi import gcp:discoveryengine/schema:Schema default {{location}}/{{data_store_id}}/{{schema_id}}
|
300
|
-
```
|
301
|
-
|
302
|
-
:param str resource_name: The name of the resource.
|
303
|
-
:param pulumi.ResourceOptions opts: Options for the resource.
|
304
|
-
:param pulumi.Input[str] data_store_id: The unique id of the data store.
|
305
|
-
:param pulumi.Input[str] json_schema: The JSON representation of the schema.
|
306
|
-
:param pulumi.Input[str] location: The geographic location where the data store should reside. The value can
|
307
|
-
only be one of "global", "us" and "eu".
|
308
|
-
:param pulumi.Input[str] project: The ID of the project in which the resource belongs.
|
309
|
-
If it is not provided, the provider project is used.
|
310
|
-
:param pulumi.Input[str] schema_id: The unique id of the schema.
|
311
|
-
|
312
|
-
|
313
|
-
- - -
|
314
|
-
"""
|
315
|
-
...
|
316
|
-
@overload
|
317
|
-
def __init__(__self__,
|
318
|
-
resource_name: str,
|
319
|
-
args: SchemaArgs,
|
320
|
-
opts: Optional[pulumi.ResourceOptions] = None):
|
321
|
-
"""
|
322
|
-
Schema defines the structure and layout of a type of document data.
|
323
|
-
|
324
|
-
To get more information about Schema, see:
|
325
|
-
|
326
|
-
* [API documentation](https://cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1/projects.locations.collections.dataStores.schemas)
|
327
|
-
* How-to Guides
|
328
|
-
* [Provide a schema for your data store](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema)
|
329
|
-
|
330
|
-
## Example Usage
|
331
|
-
|
332
|
-
### Discoveryengine Schema Basic
|
333
|
-
|
334
|
-
```python
|
335
|
-
import pulumi
|
336
|
-
import pulumi_gcp as gcp
|
337
|
-
|
338
|
-
basic_data_store = gcp.discoveryengine.DataStore("basic",
|
339
|
-
location="global",
|
340
|
-
data_store_id="data-store-id",
|
341
|
-
display_name="tf-test-structured-datastore",
|
342
|
-
industry_vertical="GENERIC",
|
343
|
-
content_config="NO_CONTENT",
|
344
|
-
solution_types=["SOLUTION_TYPE_SEARCH"],
|
345
|
-
create_advanced_site_search=False,
|
346
|
-
skip_default_schema_creation=True)
|
347
|
-
basic = gcp.discoveryengine.Schema("basic",
|
348
|
-
location=basic_data_store.location,
|
349
|
-
data_store_id=basic_data_store.data_store_id,
|
350
|
-
schema_id="schema-id",
|
351
|
-
json_schema="{\\"$schema\\":\\"https://json-schema.org/draft/2020-12/schema\\",\\"datetime_detection\\":true,\\"type\\":\\"object\\",\\"geolocation_detection\\":true}")
|
352
|
-
```
|
353
|
-
|
354
|
-
## Import
|
355
|
-
|
356
|
-
Schema can be imported using any of these accepted formats:
|
357
|
-
|
358
|
-
* `projects/{{project}}/locations/{{location}}/collections/default_collection/dataStores/{{data_store_id}}/schemas/{{schema_id}}`
|
359
|
-
|
360
|
-
* `{{project}}/{{location}}/{{data_store_id}}/{{schema_id}}`
|
361
|
-
|
362
|
-
* `{{location}}/{{data_store_id}}/{{schema_id}}`
|
363
|
-
|
364
|
-
When using the `pulumi import` command, Schema can be imported using one of the formats above. For example:
|
365
|
-
|
366
|
-
```sh
|
367
|
-
$ pulumi import gcp:discoveryengine/schema:Schema default projects/{{project}}/locations/{{location}}/collections/default_collection/dataStores/{{data_store_id}}/schemas/{{schema_id}}
|
368
|
-
```
|
369
|
-
|
370
|
-
```sh
|
371
|
-
$ pulumi import gcp:discoveryengine/schema:Schema default {{project}}/{{location}}/{{data_store_id}}/{{schema_id}}
|
372
|
-
```
|
373
|
-
|
374
|
-
```sh
|
375
|
-
$ pulumi import gcp:discoveryengine/schema:Schema default {{location}}/{{data_store_id}}/{{schema_id}}
|
376
|
-
```
|
377
|
-
|
378
|
-
:param str resource_name: The name of the resource.
|
379
|
-
:param SchemaArgs args: The arguments to use to populate this resource's properties.
|
380
|
-
:param pulumi.ResourceOptions opts: Options for the resource.
|
381
|
-
"""
|
382
|
-
...
|
383
|
-
def __init__(__self__, resource_name: str, *args, **kwargs):
|
384
|
-
resource_args, opts = _utilities.get_resource_args_opts(SchemaArgs, pulumi.ResourceOptions, *args, **kwargs)
|
385
|
-
if resource_args is not None:
|
386
|
-
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
387
|
-
else:
|
388
|
-
__self__._internal_init(resource_name, *args, **kwargs)
|
389
|
-
|
390
|
-
def _internal_init(__self__,
|
391
|
-
resource_name: str,
|
392
|
-
opts: Optional[pulumi.ResourceOptions] = None,
|
393
|
-
data_store_id: Optional[pulumi.Input[str]] = None,
|
394
|
-
json_schema: Optional[pulumi.Input[str]] = None,
|
395
|
-
location: Optional[pulumi.Input[str]] = None,
|
396
|
-
project: Optional[pulumi.Input[str]] = None,
|
397
|
-
schema_id: Optional[pulumi.Input[str]] = None,
|
398
|
-
__props__=None):
|
399
|
-
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
400
|
-
if not isinstance(opts, pulumi.ResourceOptions):
|
401
|
-
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
402
|
-
if opts.id is None:
|
403
|
-
if __props__ is not None:
|
404
|
-
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
405
|
-
__props__ = SchemaArgs.__new__(SchemaArgs)
|
406
|
-
|
407
|
-
if data_store_id is None and not opts.urn:
|
408
|
-
raise TypeError("Missing required property 'data_store_id'")
|
409
|
-
__props__.__dict__["data_store_id"] = data_store_id
|
410
|
-
__props__.__dict__["json_schema"] = json_schema
|
411
|
-
if location is None and not opts.urn:
|
412
|
-
raise TypeError("Missing required property 'location'")
|
413
|
-
__props__.__dict__["location"] = location
|
414
|
-
__props__.__dict__["project"] = project
|
415
|
-
if schema_id is None and not opts.urn:
|
416
|
-
raise TypeError("Missing required property 'schema_id'")
|
417
|
-
__props__.__dict__["schema_id"] = schema_id
|
418
|
-
__props__.__dict__["name"] = None
|
419
|
-
super(Schema, __self__).__init__(
|
420
|
-
'gcp:discoveryengine/schema:Schema',
|
421
|
-
resource_name,
|
422
|
-
__props__,
|
423
|
-
opts)
|
424
|
-
|
425
|
-
@staticmethod
|
426
|
-
def get(resource_name: str,
|
427
|
-
id: pulumi.Input[str],
|
428
|
-
opts: Optional[pulumi.ResourceOptions] = None,
|
429
|
-
data_store_id: Optional[pulumi.Input[str]] = None,
|
430
|
-
json_schema: Optional[pulumi.Input[str]] = None,
|
431
|
-
location: Optional[pulumi.Input[str]] = None,
|
432
|
-
name: Optional[pulumi.Input[str]] = None,
|
433
|
-
project: Optional[pulumi.Input[str]] = None,
|
434
|
-
schema_id: Optional[pulumi.Input[str]] = None) -> 'Schema':
|
435
|
-
"""
|
436
|
-
Get an existing Schema resource's state with the given name, id, and optional extra
|
437
|
-
properties used to qualify the lookup.
|
438
|
-
|
439
|
-
:param str resource_name: The unique name of the resulting resource.
|
440
|
-
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
441
|
-
:param pulumi.ResourceOptions opts: Options for the resource.
|
442
|
-
:param pulumi.Input[str] data_store_id: The unique id of the data store.
|
443
|
-
:param pulumi.Input[str] json_schema: The JSON representation of the schema.
|
444
|
-
:param pulumi.Input[str] location: The geographic location where the data store should reside. The value can
|
445
|
-
only be one of "global", "us" and "eu".
|
446
|
-
:param pulumi.Input[str] name: The unique full resource name of the schema. Values are of the format
|
447
|
-
`projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/schemas/{schema_id}`.
|
448
|
-
This field must be a UTF-8 encoded string with a length limit of 1024
|
449
|
-
characters.
|
450
|
-
:param pulumi.Input[str] project: The ID of the project in which the resource belongs.
|
451
|
-
If it is not provided, the provider project is used.
|
452
|
-
:param pulumi.Input[str] schema_id: The unique id of the schema.
|
453
|
-
|
454
|
-
|
455
|
-
- - -
|
456
|
-
"""
|
457
|
-
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
458
|
-
|
459
|
-
__props__ = _SchemaState.__new__(_SchemaState)
|
460
|
-
|
461
|
-
__props__.__dict__["data_store_id"] = data_store_id
|
462
|
-
__props__.__dict__["json_schema"] = json_schema
|
463
|
-
__props__.__dict__["location"] = location
|
464
|
-
__props__.__dict__["name"] = name
|
465
|
-
__props__.__dict__["project"] = project
|
466
|
-
__props__.__dict__["schema_id"] = schema_id
|
467
|
-
return Schema(resource_name, opts=opts, __props__=__props__)
|
468
|
-
|
469
|
-
@property
|
470
|
-
@pulumi.getter(name="dataStoreId")
|
471
|
-
def data_store_id(self) -> pulumi.Output[str]:
|
472
|
-
"""
|
473
|
-
The unique id of the data store.
|
474
|
-
"""
|
475
|
-
return pulumi.get(self, "data_store_id")
|
476
|
-
|
477
|
-
@property
|
478
|
-
@pulumi.getter(name="jsonSchema")
|
479
|
-
def json_schema(self) -> pulumi.Output[Optional[str]]:
|
480
|
-
"""
|
481
|
-
The JSON representation of the schema.
|
482
|
-
"""
|
483
|
-
return pulumi.get(self, "json_schema")
|
484
|
-
|
485
|
-
@property
|
486
|
-
@pulumi.getter
|
487
|
-
def location(self) -> pulumi.Output[str]:
|
488
|
-
"""
|
489
|
-
The geographic location where the data store should reside. The value can
|
490
|
-
only be one of "global", "us" and "eu".
|
491
|
-
"""
|
492
|
-
return pulumi.get(self, "location")
|
493
|
-
|
494
|
-
@property
|
495
|
-
@pulumi.getter
|
496
|
-
def name(self) -> pulumi.Output[str]:
|
497
|
-
"""
|
498
|
-
The unique full resource name of the schema. Values are of the format
|
499
|
-
`projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/schemas/{schema_id}`.
|
500
|
-
This field must be a UTF-8 encoded string with a length limit of 1024
|
501
|
-
characters.
|
502
|
-
"""
|
503
|
-
return pulumi.get(self, "name")
|
504
|
-
|
505
|
-
@property
|
506
|
-
@pulumi.getter
|
507
|
-
def project(self) -> pulumi.Output[str]:
|
508
|
-
"""
|
509
|
-
The ID of the project in which the resource belongs.
|
510
|
-
If it is not provided, the provider project is used.
|
511
|
-
"""
|
512
|
-
return pulumi.get(self, "project")
|
513
|
-
|
514
|
-
@property
|
515
|
-
@pulumi.getter(name="schemaId")
|
516
|
-
def schema_id(self) -> pulumi.Output[str]:
|
517
|
-
"""
|
518
|
-
The unique id of the schema.
|
519
|
-
|
520
|
-
|
521
|
-
- - -
|
522
|
-
"""
|
523
|
-
return pulumi.get(self, "schema_id")
|
524
|
-
|