pulumi-gcp 8.3.0a1727223968__py3-none-any.whl → 8.3.0a1727226164__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 (76) hide show
  1. pulumi_gcp/__init__.py +120 -0
  2. pulumi_gcp/alloydb/_inputs.py +20 -0
  3. pulumi_gcp/alloydb/instance.py +36 -0
  4. pulumi_gcp/alloydb/outputs.py +14 -0
  5. pulumi_gcp/compute/__init__.py +1 -0
  6. pulumi_gcp/compute/_inputs.py +1400 -0
  7. pulumi_gcp/compute/attached_disk.py +103 -0
  8. pulumi_gcp/compute/backend_service.py +29 -22
  9. pulumi_gcp/compute/firewall_policy_with_rules.py +769 -0
  10. pulumi_gcp/compute/outputs.py +1019 -0
  11. pulumi_gcp/compute/region_backend_service.py +29 -22
  12. pulumi_gcp/compute/router_nat.py +27 -66
  13. pulumi_gcp/config/__init__.pyi +2 -0
  14. pulumi_gcp/config/vars.py +4 -0
  15. pulumi_gcp/container/_inputs.py +72 -99
  16. pulumi_gcp/container/outputs.py +53 -70
  17. pulumi_gcp/databasemigrationservice/__init__.py +1 -0
  18. pulumi_gcp/databasemigrationservice/_inputs.py +362 -0
  19. pulumi_gcp/databasemigrationservice/migration_job.py +1739 -0
  20. pulumi_gcp/databasemigrationservice/outputs.py +268 -0
  21. pulumi_gcp/dataproc/get_metastore_service.py +11 -1
  22. pulumi_gcp/dataproc/metastore_service.py +93 -0
  23. pulumi_gcp/developerconnect/_inputs.py +42 -39
  24. pulumi_gcp/developerconnect/connection.py +86 -83
  25. pulumi_gcp/developerconnect/outputs.py +28 -26
  26. pulumi_gcp/discoveryengine/__init__.py +1 -0
  27. pulumi_gcp/discoveryengine/_inputs.py +131 -0
  28. pulumi_gcp/discoveryengine/outputs.py +131 -0
  29. pulumi_gcp/discoveryengine/target_site.py +870 -0
  30. pulumi_gcp/dns/managed_zone.py +1 -1
  31. pulumi_gcp/filestore/get_instance.py +21 -1
  32. pulumi_gcp/filestore/instance.py +94 -0
  33. pulumi_gcp/gkehub/feature_membership.py +140 -62
  34. pulumi_gcp/healthcare/__init__.py +1 -0
  35. pulumi_gcp/healthcare/_inputs.py +39 -0
  36. pulumi_gcp/healthcare/outputs.py +40 -0
  37. pulumi_gcp/healthcare/workspace.py +465 -0
  38. pulumi_gcp/looker/instance.py +81 -0
  39. pulumi_gcp/netapp/_inputs.py +63 -0
  40. pulumi_gcp/netapp/outputs.py +57 -0
  41. pulumi_gcp/netapp/storage_pool.py +54 -0
  42. pulumi_gcp/netapp/volume.py +82 -0
  43. pulumi_gcp/provider.py +20 -0
  44. pulumi_gcp/pubsub/subscription.py +43 -7
  45. pulumi_gcp/pulumi-plugin.json +1 -1
  46. pulumi_gcp/secretmanager/__init__.py +8 -0
  47. pulumi_gcp/secretmanager/_inputs.py +308 -0
  48. pulumi_gcp/secretmanager/get_regional_secret.py +279 -0
  49. pulumi_gcp/secretmanager/get_regional_secret_iam_policy.py +173 -0
  50. pulumi_gcp/secretmanager/get_regional_secret_version.py +241 -0
  51. pulumi_gcp/secretmanager/outputs.py +336 -0
  52. pulumi_gcp/secretmanager/regional_secret.py +1433 -0
  53. pulumi_gcp/secretmanager/regional_secret_iam_binding.py +1082 -0
  54. pulumi_gcp/secretmanager/regional_secret_iam_member.py +1082 -0
  55. pulumi_gcp/secretmanager/regional_secret_iam_policy.py +901 -0
  56. pulumi_gcp/secretmanager/regional_secret_version.py +753 -0
  57. pulumi_gcp/securitycenter/__init__.py +4 -0
  58. pulumi_gcp/securitycenter/folder_scc_big_query_export.py +795 -0
  59. pulumi_gcp/securitycenter/organization_scc_big_query_export.py +738 -0
  60. pulumi_gcp/securitycenter/project_scc_big_query_export.py +749 -0
  61. pulumi_gcp/securitycenter/v2_organization_scc_big_query_export.py +862 -0
  62. pulumi_gcp/securitycenter/v2_organization_scc_big_query_exports.py +6 -2
  63. pulumi_gcp/siteverification/__init__.py +3 -0
  64. pulumi_gcp/siteverification/_inputs.py +85 -0
  65. pulumi_gcp/siteverification/outputs.py +57 -0
  66. pulumi_gcp/siteverification/web_resource.py +398 -0
  67. pulumi_gcp/spanner/__init__.py +1 -0
  68. pulumi_gcp/spanner/_inputs.py +129 -0
  69. pulumi_gcp/spanner/backup_schedule.py +748 -0
  70. pulumi_gcp/spanner/get_instance.py +11 -1
  71. pulumi_gcp/spanner/instance.py +56 -0
  72. pulumi_gcp/spanner/outputs.py +93 -0
  73. {pulumi_gcp-8.3.0a1727223968.dist-info → pulumi_gcp-8.3.0a1727226164.dist-info}/METADATA +1 -1
  74. {pulumi_gcp-8.3.0a1727223968.dist-info → pulumi_gcp-8.3.0a1727226164.dist-info}/RECORD +76 -56
  75. {pulumi_gcp-8.3.0a1727223968.dist-info → pulumi_gcp-8.3.0a1727226164.dist-info}/WHEEL +0 -0
  76. {pulumi_gcp-8.3.0a1727223968.dist-info → pulumi_gcp-8.3.0a1727226164.dist-info}/top_level.txt +0 -0
@@ -446,6 +446,8 @@ class V2OrganizationSccBigQueryExports(pulumi.CustomResource):
446
446
  organization: Optional[pulumi.Input[str]] = None,
447
447
  __props__=None):
448
448
  """
449
+ > **Warning:** `securitycenter.V2OrganizationSccBigQueryExports` is deprecated and will be removed in a future major release. Use `securitycenter.V2OrganizationSccBigQueryExport` instead.
450
+
449
451
  A Cloud Security Command Center (Cloud SCC) Big Query Export Config.
450
452
  It represents exporting Security Command Center data, including assets, findings, and security marks
451
453
  using gcloud scc bqexports
@@ -461,7 +463,7 @@ class V2OrganizationSccBigQueryExports(pulumi.CustomResource):
461
463
 
462
464
  ## Example Usage
463
465
 
464
- ### Scc V2 Organization Big Query Export Config Basic
466
+ ### Scc V2 Organization Big Query Exports Config Basic
465
467
 
466
468
  ```python
467
469
  import pulumi
@@ -548,6 +550,8 @@ class V2OrganizationSccBigQueryExports(pulumi.CustomResource):
548
550
  args: V2OrganizationSccBigQueryExportsArgs,
549
551
  opts: Optional[pulumi.ResourceOptions] = None):
550
552
  """
553
+ > **Warning:** `securitycenter.V2OrganizationSccBigQueryExports` is deprecated and will be removed in a future major release. Use `securitycenter.V2OrganizationSccBigQueryExport` instead.
554
+
551
555
  A Cloud Security Command Center (Cloud SCC) Big Query Export Config.
552
556
  It represents exporting Security Command Center data, including assets, findings, and security marks
553
557
  using gcloud scc bqexports
@@ -563,7 +567,7 @@ class V2OrganizationSccBigQueryExports(pulumi.CustomResource):
563
567
 
564
568
  ## Example Usage
565
569
 
566
- ### Scc V2 Organization Big Query Export Config Basic
570
+ ### Scc V2 Organization Big Query Exports Config Basic
567
571
 
568
572
  ```python
569
573
  import pulumi
@@ -6,3 +6,6 @@ from .. import _utilities
6
6
  import typing
7
7
  # Export this package's modules as members:
8
8
  from .get_token import *
9
+ from .web_resource import *
10
+ from ._inputs import *
11
+ from . import outputs
@@ -0,0 +1,85 @@
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
+ 'WebResourceSiteArgs',
19
+ 'WebResourceSiteArgsDict',
20
+ ]
21
+
22
+ MYPY = False
23
+
24
+ if not MYPY:
25
+ class WebResourceSiteArgsDict(TypedDict):
26
+ identifier: pulumi.Input[str]
27
+ """
28
+ The site identifier. If the type is set to SITE, the identifier is a URL. If the type is
29
+ set to INET_DOMAIN, the identifier is a domain name.
30
+
31
+ - - -
32
+ """
33
+ type: pulumi.Input[str]
34
+ """
35
+ The type of resource to be verified.
36
+ Possible values are: `INET_DOMAIN`, `SITE`.
37
+ """
38
+ elif False:
39
+ WebResourceSiteArgsDict: TypeAlias = Mapping[str, Any]
40
+
41
+ @pulumi.input_type
42
+ class WebResourceSiteArgs:
43
+ def __init__(__self__, *,
44
+ identifier: pulumi.Input[str],
45
+ type: pulumi.Input[str]):
46
+ """
47
+ :param pulumi.Input[str] identifier: The site identifier. If the type is set to SITE, the identifier is a URL. If the type is
48
+ set to INET_DOMAIN, the identifier is a domain name.
49
+
50
+ - - -
51
+ :param pulumi.Input[str] type: The type of resource to be verified.
52
+ Possible values are: `INET_DOMAIN`, `SITE`.
53
+ """
54
+ pulumi.set(__self__, "identifier", identifier)
55
+ pulumi.set(__self__, "type", type)
56
+
57
+ @property
58
+ @pulumi.getter
59
+ def identifier(self) -> pulumi.Input[str]:
60
+ """
61
+ The site identifier. If the type is set to SITE, the identifier is a URL. If the type is
62
+ set to INET_DOMAIN, the identifier is a domain name.
63
+
64
+ - - -
65
+ """
66
+ return pulumi.get(self, "identifier")
67
+
68
+ @identifier.setter
69
+ def identifier(self, value: pulumi.Input[str]):
70
+ pulumi.set(self, "identifier", value)
71
+
72
+ @property
73
+ @pulumi.getter
74
+ def type(self) -> pulumi.Input[str]:
75
+ """
76
+ The type of resource to be verified.
77
+ Possible values are: `INET_DOMAIN`, `SITE`.
78
+ """
79
+ return pulumi.get(self, "type")
80
+
81
+ @type.setter
82
+ def type(self, value: pulumi.Input[str]):
83
+ pulumi.set(self, "type", value)
84
+
85
+
@@ -0,0 +1,57 @@
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
+ 'WebResourceSite',
19
+ ]
20
+
21
+ @pulumi.output_type
22
+ class WebResourceSite(dict):
23
+ def __init__(__self__, *,
24
+ identifier: str,
25
+ type: str):
26
+ """
27
+ :param str identifier: The site identifier. If the type is set to SITE, the identifier is a URL. If the type is
28
+ set to INET_DOMAIN, the identifier is a domain name.
29
+
30
+ - - -
31
+ :param str type: The type of resource to be verified.
32
+ Possible values are: `INET_DOMAIN`, `SITE`.
33
+ """
34
+ pulumi.set(__self__, "identifier", identifier)
35
+ pulumi.set(__self__, "type", type)
36
+
37
+ @property
38
+ @pulumi.getter
39
+ def identifier(self) -> str:
40
+ """
41
+ The site identifier. If the type is set to SITE, the identifier is a URL. If the type is
42
+ set to INET_DOMAIN, the identifier is a domain name.
43
+
44
+ - - -
45
+ """
46
+ return pulumi.get(self, "identifier")
47
+
48
+ @property
49
+ @pulumi.getter
50
+ def type(self) -> str:
51
+ """
52
+ The type of resource to be verified.
53
+ Possible values are: `INET_DOMAIN`, `SITE`.
54
+ """
55
+ return pulumi.get(self, "type")
56
+
57
+
@@ -0,0 +1,398 @@
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__ = ['WebResourceArgs', 'WebResource']
20
+
21
+ @pulumi.input_type
22
+ class WebResourceArgs:
23
+ def __init__(__self__, *,
24
+ site: pulumi.Input['WebResourceSiteArgs'],
25
+ verification_method: pulumi.Input[str]):
26
+ """
27
+ The set of arguments for constructing a WebResource resource.
28
+ :param pulumi.Input['WebResourceSiteArgs'] site: Container for the address and type of a site for which a verification token will be verified.
29
+ Structure is documented below.
30
+ :param pulumi.Input[str] verification_method: The verification method for the Site Verification system to use to verify
31
+ this site or domain.
32
+ Possible values are: `ANALYTICS`, `DNS_CNAME`, `DNS_TXT`, `FILE`, `META`, `TAG_MANAGER`.
33
+ """
34
+ pulumi.set(__self__, "site", site)
35
+ pulumi.set(__self__, "verification_method", verification_method)
36
+
37
+ @property
38
+ @pulumi.getter
39
+ def site(self) -> pulumi.Input['WebResourceSiteArgs']:
40
+ """
41
+ Container for the address and type of a site for which a verification token will be verified.
42
+ Structure is documented below.
43
+ """
44
+ return pulumi.get(self, "site")
45
+
46
+ @site.setter
47
+ def site(self, value: pulumi.Input['WebResourceSiteArgs']):
48
+ pulumi.set(self, "site", value)
49
+
50
+ @property
51
+ @pulumi.getter(name="verificationMethod")
52
+ def verification_method(self) -> pulumi.Input[str]:
53
+ """
54
+ The verification method for the Site Verification system to use to verify
55
+ this site or domain.
56
+ Possible values are: `ANALYTICS`, `DNS_CNAME`, `DNS_TXT`, `FILE`, `META`, `TAG_MANAGER`.
57
+ """
58
+ return pulumi.get(self, "verification_method")
59
+
60
+ @verification_method.setter
61
+ def verification_method(self, value: pulumi.Input[str]):
62
+ pulumi.set(self, "verification_method", value)
63
+
64
+
65
+ @pulumi.input_type
66
+ class _WebResourceState:
67
+ def __init__(__self__, *,
68
+ owners: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
69
+ site: Optional[pulumi.Input['WebResourceSiteArgs']] = None,
70
+ verification_method: Optional[pulumi.Input[str]] = None,
71
+ web_resource_id: Optional[pulumi.Input[str]] = None):
72
+ """
73
+ Input properties used for looking up and filtering WebResource resources.
74
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] owners: The email addresses of all direct, verified owners of this exact property. Indirect owners —
75
+ for example verified owners of the containing domain—are not included in this list.
76
+ :param pulumi.Input['WebResourceSiteArgs'] site: Container for the address and type of a site for which a verification token will be verified.
77
+ Structure is documented below.
78
+ :param pulumi.Input[str] verification_method: The verification method for the Site Verification system to use to verify
79
+ this site or domain.
80
+ Possible values are: `ANALYTICS`, `DNS_CNAME`, `DNS_TXT`, `FILE`, `META`, `TAG_MANAGER`.
81
+ :param pulumi.Input[str] web_resource_id: The string used to identify this web resource.
82
+ """
83
+ if owners is not None:
84
+ pulumi.set(__self__, "owners", owners)
85
+ if site is not None:
86
+ pulumi.set(__self__, "site", site)
87
+ if verification_method is not None:
88
+ pulumi.set(__self__, "verification_method", verification_method)
89
+ if web_resource_id is not None:
90
+ pulumi.set(__self__, "web_resource_id", web_resource_id)
91
+
92
+ @property
93
+ @pulumi.getter
94
+ def owners(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
95
+ """
96
+ The email addresses of all direct, verified owners of this exact property. Indirect owners —
97
+ for example verified owners of the containing domain—are not included in this list.
98
+ """
99
+ return pulumi.get(self, "owners")
100
+
101
+ @owners.setter
102
+ def owners(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
103
+ pulumi.set(self, "owners", value)
104
+
105
+ @property
106
+ @pulumi.getter
107
+ def site(self) -> Optional[pulumi.Input['WebResourceSiteArgs']]:
108
+ """
109
+ Container for the address and type of a site for which a verification token will be verified.
110
+ Structure is documented below.
111
+ """
112
+ return pulumi.get(self, "site")
113
+
114
+ @site.setter
115
+ def site(self, value: Optional[pulumi.Input['WebResourceSiteArgs']]):
116
+ pulumi.set(self, "site", value)
117
+
118
+ @property
119
+ @pulumi.getter(name="verificationMethod")
120
+ def verification_method(self) -> Optional[pulumi.Input[str]]:
121
+ """
122
+ The verification method for the Site Verification system to use to verify
123
+ this site or domain.
124
+ Possible values are: `ANALYTICS`, `DNS_CNAME`, `DNS_TXT`, `FILE`, `META`, `TAG_MANAGER`.
125
+ """
126
+ return pulumi.get(self, "verification_method")
127
+
128
+ @verification_method.setter
129
+ def verification_method(self, value: Optional[pulumi.Input[str]]):
130
+ pulumi.set(self, "verification_method", value)
131
+
132
+ @property
133
+ @pulumi.getter(name="webResourceId")
134
+ def web_resource_id(self) -> Optional[pulumi.Input[str]]:
135
+ """
136
+ The string used to identify this web resource.
137
+ """
138
+ return pulumi.get(self, "web_resource_id")
139
+
140
+ @web_resource_id.setter
141
+ def web_resource_id(self, value: Optional[pulumi.Input[str]]):
142
+ pulumi.set(self, "web_resource_id", value)
143
+
144
+
145
+ class WebResource(pulumi.CustomResource):
146
+ @overload
147
+ def __init__(__self__,
148
+ resource_name: str,
149
+ opts: Optional[pulumi.ResourceOptions] = None,
150
+ site: Optional[pulumi.Input[Union['WebResourceSiteArgs', 'WebResourceSiteArgsDict']]] = None,
151
+ verification_method: Optional[pulumi.Input[str]] = None,
152
+ __props__=None):
153
+ """
154
+ A web resource is a website or domain with verified ownership. Once your
155
+ ownership is verified you will be able to manage your website in the
156
+ [Google Search Console](https://www.google.com/webmasters/tools/).
157
+
158
+ > **Note:** The verification data (DNS `TXT` record, HTML file, `meta` tag, etc.)
159
+ must already exist before the web resource is created, and must be deleted before
160
+ the web resource is destroyed. The Google Site Verification API checks that the
161
+ verification data exists at creation time and does not exist at destruction time
162
+ and will fail if the required condition is not met.
163
+
164
+ To get more information about WebResource, see:
165
+
166
+ * [API documentation](https://developers.google.com/site-verification/v1)
167
+ * How-to Guides
168
+ * [Getting Started](https://developers.google.com/site-verification/v1/getting_started)
169
+
170
+ ## Example Usage
171
+
172
+ ### Site Verification Domain Record
173
+
174
+ ```python
175
+ import pulumi
176
+ import pulumi_gcp as gcp
177
+
178
+ token = gcp.siteverification.get_token(type="INET_DOMAIN",
179
+ identifier="www.example.com",
180
+ verification_method="DNS_TXT")
181
+ example = gcp.dns.RecordSet("example",
182
+ managed_zone="example.com",
183
+ name="www.example.com.",
184
+ type="TXT",
185
+ rrdatas=[token.token],
186
+ ttl=86400)
187
+ example_web_resource = gcp.siteverification.WebResource("example",
188
+ site={
189
+ "type": token.type,
190
+ "identifier": token.identifier,
191
+ },
192
+ verification_method=token.verification_method,
193
+ opts = pulumi.ResourceOptions(depends_on=[example]))
194
+ ```
195
+
196
+ ## Import
197
+
198
+ WebResource can be imported using any of these accepted formats:
199
+
200
+ * `webResource/{{web_resource_id}}`
201
+
202
+ * `{{web_resource_id}}`
203
+
204
+ When using the `pulumi import` command, WebResource can be imported using one of the formats above. For example:
205
+
206
+ ```sh
207
+ $ pulumi import gcp:siteverification/webResource:WebResource default webResource/{{web_resource_id}}
208
+ ```
209
+
210
+ ```sh
211
+ $ pulumi import gcp:siteverification/webResource:WebResource default {{web_resource_id}}
212
+ ```
213
+
214
+ :param str resource_name: The name of the resource.
215
+ :param pulumi.ResourceOptions opts: Options for the resource.
216
+ :param pulumi.Input[Union['WebResourceSiteArgs', 'WebResourceSiteArgsDict']] site: Container for the address and type of a site for which a verification token will be verified.
217
+ Structure is documented below.
218
+ :param pulumi.Input[str] verification_method: The verification method for the Site Verification system to use to verify
219
+ this site or domain.
220
+ Possible values are: `ANALYTICS`, `DNS_CNAME`, `DNS_TXT`, `FILE`, `META`, `TAG_MANAGER`.
221
+ """
222
+ ...
223
+ @overload
224
+ def __init__(__self__,
225
+ resource_name: str,
226
+ args: WebResourceArgs,
227
+ opts: Optional[pulumi.ResourceOptions] = None):
228
+ """
229
+ A web resource is a website or domain with verified ownership. Once your
230
+ ownership is verified you will be able to manage your website in the
231
+ [Google Search Console](https://www.google.com/webmasters/tools/).
232
+
233
+ > **Note:** The verification data (DNS `TXT` record, HTML file, `meta` tag, etc.)
234
+ must already exist before the web resource is created, and must be deleted before
235
+ the web resource is destroyed. The Google Site Verification API checks that the
236
+ verification data exists at creation time and does not exist at destruction time
237
+ and will fail if the required condition is not met.
238
+
239
+ To get more information about WebResource, see:
240
+
241
+ * [API documentation](https://developers.google.com/site-verification/v1)
242
+ * How-to Guides
243
+ * [Getting Started](https://developers.google.com/site-verification/v1/getting_started)
244
+
245
+ ## Example Usage
246
+
247
+ ### Site Verification Domain Record
248
+
249
+ ```python
250
+ import pulumi
251
+ import pulumi_gcp as gcp
252
+
253
+ token = gcp.siteverification.get_token(type="INET_DOMAIN",
254
+ identifier="www.example.com",
255
+ verification_method="DNS_TXT")
256
+ example = gcp.dns.RecordSet("example",
257
+ managed_zone="example.com",
258
+ name="www.example.com.",
259
+ type="TXT",
260
+ rrdatas=[token.token],
261
+ ttl=86400)
262
+ example_web_resource = gcp.siteverification.WebResource("example",
263
+ site={
264
+ "type": token.type,
265
+ "identifier": token.identifier,
266
+ },
267
+ verification_method=token.verification_method,
268
+ opts = pulumi.ResourceOptions(depends_on=[example]))
269
+ ```
270
+
271
+ ## Import
272
+
273
+ WebResource can be imported using any of these accepted formats:
274
+
275
+ * `webResource/{{web_resource_id}}`
276
+
277
+ * `{{web_resource_id}}`
278
+
279
+ When using the `pulumi import` command, WebResource can be imported using one of the formats above. For example:
280
+
281
+ ```sh
282
+ $ pulumi import gcp:siteverification/webResource:WebResource default webResource/{{web_resource_id}}
283
+ ```
284
+
285
+ ```sh
286
+ $ pulumi import gcp:siteverification/webResource:WebResource default {{web_resource_id}}
287
+ ```
288
+
289
+ :param str resource_name: The name of the resource.
290
+ :param WebResourceArgs args: The arguments to use to populate this resource's properties.
291
+ :param pulumi.ResourceOptions opts: Options for the resource.
292
+ """
293
+ ...
294
+ def __init__(__self__, resource_name: str, *args, **kwargs):
295
+ resource_args, opts = _utilities.get_resource_args_opts(WebResourceArgs, pulumi.ResourceOptions, *args, **kwargs)
296
+ if resource_args is not None:
297
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
298
+ else:
299
+ __self__._internal_init(resource_name, *args, **kwargs)
300
+
301
+ def _internal_init(__self__,
302
+ resource_name: str,
303
+ opts: Optional[pulumi.ResourceOptions] = None,
304
+ site: Optional[pulumi.Input[Union['WebResourceSiteArgs', 'WebResourceSiteArgsDict']]] = None,
305
+ verification_method: Optional[pulumi.Input[str]] = None,
306
+ __props__=None):
307
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
308
+ if not isinstance(opts, pulumi.ResourceOptions):
309
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
310
+ if opts.id is None:
311
+ if __props__ is not None:
312
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
313
+ __props__ = WebResourceArgs.__new__(WebResourceArgs)
314
+
315
+ if site is None and not opts.urn:
316
+ raise TypeError("Missing required property 'site'")
317
+ __props__.__dict__["site"] = site
318
+ if verification_method is None and not opts.urn:
319
+ raise TypeError("Missing required property 'verification_method'")
320
+ __props__.__dict__["verification_method"] = verification_method
321
+ __props__.__dict__["owners"] = None
322
+ __props__.__dict__["web_resource_id"] = None
323
+ super(WebResource, __self__).__init__(
324
+ 'gcp:siteverification/webResource:WebResource',
325
+ resource_name,
326
+ __props__,
327
+ opts)
328
+
329
+ @staticmethod
330
+ def get(resource_name: str,
331
+ id: pulumi.Input[str],
332
+ opts: Optional[pulumi.ResourceOptions] = None,
333
+ owners: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
334
+ site: Optional[pulumi.Input[Union['WebResourceSiteArgs', 'WebResourceSiteArgsDict']]] = None,
335
+ verification_method: Optional[pulumi.Input[str]] = None,
336
+ web_resource_id: Optional[pulumi.Input[str]] = None) -> 'WebResource':
337
+ """
338
+ Get an existing WebResource resource's state with the given name, id, and optional extra
339
+ properties used to qualify the lookup.
340
+
341
+ :param str resource_name: The unique name of the resulting resource.
342
+ :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
343
+ :param pulumi.ResourceOptions opts: Options for the resource.
344
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] owners: The email addresses of all direct, verified owners of this exact property. Indirect owners —
345
+ for example verified owners of the containing domain—are not included in this list.
346
+ :param pulumi.Input[Union['WebResourceSiteArgs', 'WebResourceSiteArgsDict']] site: Container for the address and type of a site for which a verification token will be verified.
347
+ Structure is documented below.
348
+ :param pulumi.Input[str] verification_method: The verification method for the Site Verification system to use to verify
349
+ this site or domain.
350
+ Possible values are: `ANALYTICS`, `DNS_CNAME`, `DNS_TXT`, `FILE`, `META`, `TAG_MANAGER`.
351
+ :param pulumi.Input[str] web_resource_id: The string used to identify this web resource.
352
+ """
353
+ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
354
+
355
+ __props__ = _WebResourceState.__new__(_WebResourceState)
356
+
357
+ __props__.__dict__["owners"] = owners
358
+ __props__.__dict__["site"] = site
359
+ __props__.__dict__["verification_method"] = verification_method
360
+ __props__.__dict__["web_resource_id"] = web_resource_id
361
+ return WebResource(resource_name, opts=opts, __props__=__props__)
362
+
363
+ @property
364
+ @pulumi.getter
365
+ def owners(self) -> pulumi.Output[Sequence[str]]:
366
+ """
367
+ The email addresses of all direct, verified owners of this exact property. Indirect owners —
368
+ for example verified owners of the containing domain—are not included in this list.
369
+ """
370
+ return pulumi.get(self, "owners")
371
+
372
+ @property
373
+ @pulumi.getter
374
+ def site(self) -> pulumi.Output['outputs.WebResourceSite']:
375
+ """
376
+ Container for the address and type of a site for which a verification token will be verified.
377
+ Structure is documented below.
378
+ """
379
+ return pulumi.get(self, "site")
380
+
381
+ @property
382
+ @pulumi.getter(name="verificationMethod")
383
+ def verification_method(self) -> pulumi.Output[str]:
384
+ """
385
+ The verification method for the Site Verification system to use to verify
386
+ this site or domain.
387
+ Possible values are: `ANALYTICS`, `DNS_CNAME`, `DNS_TXT`, `FILE`, `META`, `TAG_MANAGER`.
388
+ """
389
+ return pulumi.get(self, "verification_method")
390
+
391
+ @property
392
+ @pulumi.getter(name="webResourceId")
393
+ def web_resource_id(self) -> pulumi.Output[str]:
394
+ """
395
+ The string used to identify this web resource.
396
+ """
397
+ return pulumi.get(self, "web_resource_id")
398
+
@@ -5,6 +5,7 @@
5
5
  from .. import _utilities
6
6
  import typing
7
7
  # Export this package's modules as members:
8
+ from .backup_schedule import *
8
9
  from .database import *
9
10
  from .database_iam_binding import *
10
11
  from .database_iam_member import *