pulumi-gcp 7.3.0a1702567892__py3-none-any.whl → 7.3.1__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 +129 -0
- pulumi_gcp/artifactregistry/_inputs.py +88 -0
- pulumi_gcp/artifactregistry/outputs.py +148 -0
- pulumi_gcp/artifactregistry/repository.py +116 -16
- pulumi_gcp/bigquery/_inputs.py +110 -0
- pulumi_gcp/bigquery/connection.py +123 -3
- pulumi_gcp/bigquery/outputs.py +145 -0
- pulumi_gcp/cloudbuild/_inputs.py +241 -1
- pulumi_gcp/cloudbuild/outputs.py +353 -2
- pulumi_gcp/cloudfunctionsv2/_inputs.py +6 -2
- pulumi_gcp/cloudfunctionsv2/outputs.py +6 -2
- pulumi_gcp/cloudidentity/_inputs.py +54 -5
- pulumi_gcp/cloudidentity/group_membership.py +0 -8
- pulumi_gcp/cloudidentity/outputs.py +99 -4
- pulumi_gcp/cloudrunv2/_inputs.py +8 -4
- pulumi_gcp/cloudrunv2/job.py +44 -0
- pulumi_gcp/cloudrunv2/outputs.py +8 -4
- pulumi_gcp/cloudrunv2/service.py +42 -0
- pulumi_gcp/cloudtasks/queue.py +0 -10
- pulumi_gcp/composer/_inputs.py +17 -4
- pulumi_gcp/composer/outputs.py +20 -4
- pulumi_gcp/compute/_inputs.py +46 -0
- pulumi_gcp/compute/get_global_forwarding_rule.py +11 -1
- pulumi_gcp/compute/global_forwarding_rule.py +69 -0
- pulumi_gcp/compute/outputs.py +75 -0
- pulumi_gcp/config/__init__.pyi +6 -0
- pulumi_gcp/config/vars.py +12 -0
- pulumi_gcp/container/_inputs.py +58 -0
- pulumi_gcp/container/node_pool.py +68 -14
- pulumi_gcp/container/outputs.py +68 -0
- pulumi_gcp/dataform/__init__.py +4 -0
- pulumi_gcp/dataform/_inputs.py +80 -0
- pulumi_gcp/dataform/get_repository_iam_policy.py +144 -0
- pulumi_gcp/dataform/outputs.py +56 -0
- pulumi_gcp/dataform/repository_iam_binding.py +325 -0
- pulumi_gcp/dataform/repository_iam_member.py +325 -0
- pulumi_gcp/dataform/repository_iam_policy.py +254 -0
- pulumi_gcp/dataloss/_inputs.py +29 -26
- pulumi_gcp/dataloss/outputs.py +28 -25
- pulumi_gcp/dataloss/prevention_job_trigger.py +78 -0
- pulumi_gcp/datastream/connection_profile.py +82 -4
- pulumi_gcp/datastream/stream.py +32 -22
- pulumi_gcp/firestore/database.py +146 -28
- pulumi_gcp/gkehub/_inputs.py +821 -3
- pulumi_gcp/gkehub/feature.py +176 -0
- pulumi_gcp/gkehub/feature_membership.py +105 -59
- pulumi_gcp/gkehub/fleet.py +70 -2
- pulumi_gcp/gkehub/outputs.py +819 -3
- pulumi_gcp/gkehub/scope.py +2 -2
- pulumi_gcp/iam/_inputs.py +72 -0
- pulumi_gcp/iam/outputs.py +79 -0
- pulumi_gcp/iam/workforce_pool.py +75 -0
- pulumi_gcp/identityplatform/project_default_config.py +4 -0
- pulumi_gcp/logging/__init__.py +3 -0
- pulumi_gcp/logging/get_folder_settings.py +197 -0
- pulumi_gcp/logging/get_organization_settings.py +197 -0
- pulumi_gcp/logging/get_project_settings.py +197 -0
- pulumi_gcp/migrationcenter/__init__.py +8 -0
- pulumi_gcp/migrationcenter/group.py +652 -0
- pulumi_gcp/netapp/__init__.py +8 -0
- pulumi_gcp/netapp/storage_pool.py +970 -0
- pulumi_gcp/projects/iam_custom_role.py +7 -7
- pulumi_gcp/provider.py +60 -0
- pulumi_gcp/securesourcemanager/__init__.py +14 -0
- pulumi_gcp/securesourcemanager/_inputs.py +94 -0
- pulumi_gcp/securesourcemanager/get_instance_iam_policy.py +168 -0
- pulumi_gcp/securesourcemanager/instance.py +607 -0
- pulumi_gcp/securesourcemanager/instance_iam_binding.py +325 -0
- pulumi_gcp/securesourcemanager/instance_iam_member.py +325 -0
- pulumi_gcp/securesourcemanager/instance_iam_policy.py +254 -0
- pulumi_gcp/securesourcemanager/outputs.py +70 -0
- pulumi_gcp/securitycenter/__init__.py +1 -0
- pulumi_gcp/securitycenter/event_threat_detection_custom_module.py +528 -0
- pulumi_gcp/sql/_inputs.py +2 -2
- pulumi_gcp/sql/database_instance.py +4 -4
- pulumi_gcp/sql/outputs.py +2 -2
- pulumi_gcp/storage/_inputs.py +16 -0
- pulumi_gcp/storage/outputs.py +21 -0
- pulumi_gcp/vertex/__init__.py +4 -0
- pulumi_gcp/vertex/_inputs.py +80 -0
- pulumi_gcp/vertex/ai_endpoint_iam_binding.py +325 -0
- pulumi_gcp/vertex/ai_endpoint_iam_member.py +325 -0
- pulumi_gcp/vertex/ai_endpoint_iam_policy.py +254 -0
- pulumi_gcp/vertex/get_ai_endpoint_iam_policy.py +140 -0
- pulumi_gcp/vertex/outputs.py +56 -0
- pulumi_gcp/vmwareengine/__init__.py +5 -0
- pulumi_gcp/vmwareengine/_inputs.py +104 -2
- pulumi_gcp/vmwareengine/get_network.py +14 -4
- pulumi_gcp/vmwareengine/get_network_peering.py +260 -0
- pulumi_gcp/vmwareengine/get_network_policy.py +228 -0
- pulumi_gcp/vmwareengine/get_nsx_credentials.py +133 -0
- pulumi_gcp/vmwareengine/get_private_cloud.py +14 -4
- pulumi_gcp/vmwareengine/network.py +41 -7
- pulumi_gcp/vmwareengine/network_peering.py +959 -0
- pulumi_gcp/vmwareengine/network_policy.py +836 -0
- pulumi_gcp/vmwareengine/outputs.py +133 -2
- pulumi_gcp/vmwareengine/private_cloud.py +20 -68
- {pulumi_gcp-7.3.0a1702567892.dist-info → pulumi_gcp-7.3.1.dist-info}/METADATA +1 -1
- {pulumi_gcp-7.3.0a1702567892.dist-info → pulumi_gcp-7.3.1.dist-info}/RECORD +101 -72
- {pulumi_gcp-7.3.0a1702567892.dist-info → pulumi_gcp-7.3.1.dist-info}/WHEEL +0 -0
- {pulumi_gcp-7.3.0a1702567892.dist-info → pulumi_gcp-7.3.1.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,959 @@
|
|
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 pulumi
|
8
|
+
import pulumi.runtime
|
9
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
10
|
+
from .. import _utilities
|
11
|
+
|
12
|
+
__all__ = ['NetworkPeeringArgs', 'NetworkPeering']
|
13
|
+
|
14
|
+
@pulumi.input_type
|
15
|
+
class NetworkPeeringArgs:
|
16
|
+
def __init__(__self__, *,
|
17
|
+
peer_network: pulumi.Input[str],
|
18
|
+
peer_network_type: pulumi.Input[str],
|
19
|
+
vmware_engine_network: pulumi.Input[str],
|
20
|
+
description: Optional[pulumi.Input[str]] = None,
|
21
|
+
export_custom_routes: Optional[pulumi.Input[bool]] = None,
|
22
|
+
export_custom_routes_with_public_ip: Optional[pulumi.Input[bool]] = None,
|
23
|
+
import_custom_routes: Optional[pulumi.Input[bool]] = None,
|
24
|
+
import_custom_routes_with_public_ip: Optional[pulumi.Input[bool]] = None,
|
25
|
+
name: Optional[pulumi.Input[str]] = None,
|
26
|
+
project: Optional[pulumi.Input[str]] = None):
|
27
|
+
"""
|
28
|
+
The set of arguments for constructing a NetworkPeering resource.
|
29
|
+
:param pulumi.Input[str] peer_network: The relative resource name of the network to peer with a standard VMware Engine network.
|
30
|
+
The provided network can be a consumer VPC network or another standard VMware Engine network.
|
31
|
+
:param pulumi.Input[str] peer_network_type: The type of the network to peer with the VMware Engine network.
|
32
|
+
Possible values are: `STANDARD`, `VMWARE_ENGINE_NETWORK`, `PRIVATE_SERVICES_ACCESS`, `NETAPP_CLOUD_VOLUMES`, `THIRD_PARTY_SERVICE`, `DELL_POWERSCALE`.
|
33
|
+
:param pulumi.Input[str] vmware_engine_network: The relative resource name of the VMware Engine network. Specify the name in the following form:
|
34
|
+
projects/{project}/locations/{location}/vmwareEngineNetworks/{vmwareEngineNetworkId} where {project}
|
35
|
+
can either be a project number or a project ID.
|
36
|
+
:param pulumi.Input[str] description: User-provided description for this network peering.
|
37
|
+
:param pulumi.Input[bool] export_custom_routes: True if custom routes are exported to the peered network; false otherwise.
|
38
|
+
:param pulumi.Input[bool] export_custom_routes_with_public_ip: True if all subnet routes with a public IP address range are exported; false otherwise.
|
39
|
+
:param pulumi.Input[bool] import_custom_routes: True if custom routes are imported from the peered network; false otherwise.
|
40
|
+
:param pulumi.Input[bool] import_custom_routes_with_public_ip: True if custom routes are imported from the peered network; false otherwise.
|
41
|
+
:param pulumi.Input[str] name: The ID of the Network Peering.
|
42
|
+
|
43
|
+
|
44
|
+
- - -
|
45
|
+
:param pulumi.Input[str] project: The ID of the project in which the resource belongs.
|
46
|
+
If it is not provided, the provider project is used.
|
47
|
+
"""
|
48
|
+
pulumi.set(__self__, "peer_network", peer_network)
|
49
|
+
pulumi.set(__self__, "peer_network_type", peer_network_type)
|
50
|
+
pulumi.set(__self__, "vmware_engine_network", vmware_engine_network)
|
51
|
+
if description is not None:
|
52
|
+
pulumi.set(__self__, "description", description)
|
53
|
+
if export_custom_routes is not None:
|
54
|
+
pulumi.set(__self__, "export_custom_routes", export_custom_routes)
|
55
|
+
if export_custom_routes_with_public_ip is not None:
|
56
|
+
pulumi.set(__self__, "export_custom_routes_with_public_ip", export_custom_routes_with_public_ip)
|
57
|
+
if import_custom_routes is not None:
|
58
|
+
pulumi.set(__self__, "import_custom_routes", import_custom_routes)
|
59
|
+
if import_custom_routes_with_public_ip is not None:
|
60
|
+
pulumi.set(__self__, "import_custom_routes_with_public_ip", import_custom_routes_with_public_ip)
|
61
|
+
if name is not None:
|
62
|
+
pulumi.set(__self__, "name", name)
|
63
|
+
if project is not None:
|
64
|
+
pulumi.set(__self__, "project", project)
|
65
|
+
|
66
|
+
@property
|
67
|
+
@pulumi.getter(name="peerNetwork")
|
68
|
+
def peer_network(self) -> pulumi.Input[str]:
|
69
|
+
"""
|
70
|
+
The relative resource name of the network to peer with a standard VMware Engine network.
|
71
|
+
The provided network can be a consumer VPC network or another standard VMware Engine network.
|
72
|
+
"""
|
73
|
+
return pulumi.get(self, "peer_network")
|
74
|
+
|
75
|
+
@peer_network.setter
|
76
|
+
def peer_network(self, value: pulumi.Input[str]):
|
77
|
+
pulumi.set(self, "peer_network", value)
|
78
|
+
|
79
|
+
@property
|
80
|
+
@pulumi.getter(name="peerNetworkType")
|
81
|
+
def peer_network_type(self) -> pulumi.Input[str]:
|
82
|
+
"""
|
83
|
+
The type of the network to peer with the VMware Engine network.
|
84
|
+
Possible values are: `STANDARD`, `VMWARE_ENGINE_NETWORK`, `PRIVATE_SERVICES_ACCESS`, `NETAPP_CLOUD_VOLUMES`, `THIRD_PARTY_SERVICE`, `DELL_POWERSCALE`.
|
85
|
+
"""
|
86
|
+
return pulumi.get(self, "peer_network_type")
|
87
|
+
|
88
|
+
@peer_network_type.setter
|
89
|
+
def peer_network_type(self, value: pulumi.Input[str]):
|
90
|
+
pulumi.set(self, "peer_network_type", value)
|
91
|
+
|
92
|
+
@property
|
93
|
+
@pulumi.getter(name="vmwareEngineNetwork")
|
94
|
+
def vmware_engine_network(self) -> pulumi.Input[str]:
|
95
|
+
"""
|
96
|
+
The relative resource name of the VMware Engine network. Specify the name in the following form:
|
97
|
+
projects/{project}/locations/{location}/vmwareEngineNetworks/{vmwareEngineNetworkId} where {project}
|
98
|
+
can either be a project number or a project ID.
|
99
|
+
"""
|
100
|
+
return pulumi.get(self, "vmware_engine_network")
|
101
|
+
|
102
|
+
@vmware_engine_network.setter
|
103
|
+
def vmware_engine_network(self, value: pulumi.Input[str]):
|
104
|
+
pulumi.set(self, "vmware_engine_network", value)
|
105
|
+
|
106
|
+
@property
|
107
|
+
@pulumi.getter
|
108
|
+
def description(self) -> Optional[pulumi.Input[str]]:
|
109
|
+
"""
|
110
|
+
User-provided description for this network peering.
|
111
|
+
"""
|
112
|
+
return pulumi.get(self, "description")
|
113
|
+
|
114
|
+
@description.setter
|
115
|
+
def description(self, value: Optional[pulumi.Input[str]]):
|
116
|
+
pulumi.set(self, "description", value)
|
117
|
+
|
118
|
+
@property
|
119
|
+
@pulumi.getter(name="exportCustomRoutes")
|
120
|
+
def export_custom_routes(self) -> Optional[pulumi.Input[bool]]:
|
121
|
+
"""
|
122
|
+
True if custom routes are exported to the peered network; false otherwise.
|
123
|
+
"""
|
124
|
+
return pulumi.get(self, "export_custom_routes")
|
125
|
+
|
126
|
+
@export_custom_routes.setter
|
127
|
+
def export_custom_routes(self, value: Optional[pulumi.Input[bool]]):
|
128
|
+
pulumi.set(self, "export_custom_routes", value)
|
129
|
+
|
130
|
+
@property
|
131
|
+
@pulumi.getter(name="exportCustomRoutesWithPublicIp")
|
132
|
+
def export_custom_routes_with_public_ip(self) -> Optional[pulumi.Input[bool]]:
|
133
|
+
"""
|
134
|
+
True if all subnet routes with a public IP address range are exported; false otherwise.
|
135
|
+
"""
|
136
|
+
return pulumi.get(self, "export_custom_routes_with_public_ip")
|
137
|
+
|
138
|
+
@export_custom_routes_with_public_ip.setter
|
139
|
+
def export_custom_routes_with_public_ip(self, value: Optional[pulumi.Input[bool]]):
|
140
|
+
pulumi.set(self, "export_custom_routes_with_public_ip", value)
|
141
|
+
|
142
|
+
@property
|
143
|
+
@pulumi.getter(name="importCustomRoutes")
|
144
|
+
def import_custom_routes(self) -> Optional[pulumi.Input[bool]]:
|
145
|
+
"""
|
146
|
+
True if custom routes are imported from the peered network; false otherwise.
|
147
|
+
"""
|
148
|
+
return pulumi.get(self, "import_custom_routes")
|
149
|
+
|
150
|
+
@import_custom_routes.setter
|
151
|
+
def import_custom_routes(self, value: Optional[pulumi.Input[bool]]):
|
152
|
+
pulumi.set(self, "import_custom_routes", value)
|
153
|
+
|
154
|
+
@property
|
155
|
+
@pulumi.getter(name="importCustomRoutesWithPublicIp")
|
156
|
+
def import_custom_routes_with_public_ip(self) -> Optional[pulumi.Input[bool]]:
|
157
|
+
"""
|
158
|
+
True if custom routes are imported from the peered network; false otherwise.
|
159
|
+
"""
|
160
|
+
return pulumi.get(self, "import_custom_routes_with_public_ip")
|
161
|
+
|
162
|
+
@import_custom_routes_with_public_ip.setter
|
163
|
+
def import_custom_routes_with_public_ip(self, value: Optional[pulumi.Input[bool]]):
|
164
|
+
pulumi.set(self, "import_custom_routes_with_public_ip", value)
|
165
|
+
|
166
|
+
@property
|
167
|
+
@pulumi.getter
|
168
|
+
def name(self) -> Optional[pulumi.Input[str]]:
|
169
|
+
"""
|
170
|
+
The ID of the Network Peering.
|
171
|
+
|
172
|
+
|
173
|
+
- - -
|
174
|
+
"""
|
175
|
+
return pulumi.get(self, "name")
|
176
|
+
|
177
|
+
@name.setter
|
178
|
+
def name(self, value: Optional[pulumi.Input[str]]):
|
179
|
+
pulumi.set(self, "name", 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
|
+
|
195
|
+
@pulumi.input_type
|
196
|
+
class _NetworkPeeringState:
|
197
|
+
def __init__(__self__, *,
|
198
|
+
create_time: Optional[pulumi.Input[str]] = None,
|
199
|
+
description: Optional[pulumi.Input[str]] = None,
|
200
|
+
export_custom_routes: Optional[pulumi.Input[bool]] = None,
|
201
|
+
export_custom_routes_with_public_ip: Optional[pulumi.Input[bool]] = None,
|
202
|
+
import_custom_routes: Optional[pulumi.Input[bool]] = None,
|
203
|
+
import_custom_routes_with_public_ip: Optional[pulumi.Input[bool]] = None,
|
204
|
+
name: Optional[pulumi.Input[str]] = None,
|
205
|
+
peer_network: Optional[pulumi.Input[str]] = None,
|
206
|
+
peer_network_type: Optional[pulumi.Input[str]] = None,
|
207
|
+
project: Optional[pulumi.Input[str]] = None,
|
208
|
+
state: Optional[pulumi.Input[str]] = None,
|
209
|
+
state_details: Optional[pulumi.Input[str]] = None,
|
210
|
+
uid: Optional[pulumi.Input[str]] = None,
|
211
|
+
update_time: Optional[pulumi.Input[str]] = None,
|
212
|
+
vmware_engine_network: Optional[pulumi.Input[str]] = None,
|
213
|
+
vmware_engine_network_canonical: Optional[pulumi.Input[str]] = None):
|
214
|
+
"""
|
215
|
+
Input properties used for looking up and filtering NetworkPeering resources.
|
216
|
+
:param pulumi.Input[str] create_time: Creation time of this resource.
|
217
|
+
A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and
|
218
|
+
up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
|
219
|
+
:param pulumi.Input[str] description: User-provided description for this network peering.
|
220
|
+
:param pulumi.Input[bool] export_custom_routes: True if custom routes are exported to the peered network; false otherwise.
|
221
|
+
:param pulumi.Input[bool] export_custom_routes_with_public_ip: True if all subnet routes with a public IP address range are exported; false otherwise.
|
222
|
+
:param pulumi.Input[bool] import_custom_routes: True if custom routes are imported from the peered network; false otherwise.
|
223
|
+
:param pulumi.Input[bool] import_custom_routes_with_public_ip: True if custom routes are imported from the peered network; false otherwise.
|
224
|
+
:param pulumi.Input[str] name: The ID of the Network Peering.
|
225
|
+
|
226
|
+
|
227
|
+
- - -
|
228
|
+
:param pulumi.Input[str] peer_network: The relative resource name of the network to peer with a standard VMware Engine network.
|
229
|
+
The provided network can be a consumer VPC network or another standard VMware Engine network.
|
230
|
+
:param pulumi.Input[str] peer_network_type: The type of the network to peer with the VMware Engine network.
|
231
|
+
Possible values are: `STANDARD`, `VMWARE_ENGINE_NETWORK`, `PRIVATE_SERVICES_ACCESS`, `NETAPP_CLOUD_VOLUMES`, `THIRD_PARTY_SERVICE`, `DELL_POWERSCALE`.
|
232
|
+
:param pulumi.Input[str] project: The ID of the project in which the resource belongs.
|
233
|
+
If it is not provided, the provider project is used.
|
234
|
+
:param pulumi.Input[str] state: State of the network peering.
|
235
|
+
This field has a value of 'ACTIVE' when there's a matching configuration in the peer network.
|
236
|
+
New values may be added to this enum when appropriate.
|
237
|
+
:param pulumi.Input[str] state_details: Details about the current state of the network peering.
|
238
|
+
:param pulumi.Input[str] uid: System-generated unique identifier for the resource.
|
239
|
+
:param pulumi.Input[str] update_time: Last updated time of this resource.
|
240
|
+
A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine
|
241
|
+
fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
|
242
|
+
:param pulumi.Input[str] vmware_engine_network: The relative resource name of the VMware Engine network. Specify the name in the following form:
|
243
|
+
projects/{project}/locations/{location}/vmwareEngineNetworks/{vmwareEngineNetworkId} where {project}
|
244
|
+
can either be a project number or a project ID.
|
245
|
+
:param pulumi.Input[str] vmware_engine_network_canonical: The canonical name of the VMware Engine network in the form:
|
246
|
+
projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmwareEngineNetworkId}
|
247
|
+
"""
|
248
|
+
if create_time is not None:
|
249
|
+
pulumi.set(__self__, "create_time", create_time)
|
250
|
+
if description is not None:
|
251
|
+
pulumi.set(__self__, "description", description)
|
252
|
+
if export_custom_routes is not None:
|
253
|
+
pulumi.set(__self__, "export_custom_routes", export_custom_routes)
|
254
|
+
if export_custom_routes_with_public_ip is not None:
|
255
|
+
pulumi.set(__self__, "export_custom_routes_with_public_ip", export_custom_routes_with_public_ip)
|
256
|
+
if import_custom_routes is not None:
|
257
|
+
pulumi.set(__self__, "import_custom_routes", import_custom_routes)
|
258
|
+
if import_custom_routes_with_public_ip is not None:
|
259
|
+
pulumi.set(__self__, "import_custom_routes_with_public_ip", import_custom_routes_with_public_ip)
|
260
|
+
if name is not None:
|
261
|
+
pulumi.set(__self__, "name", name)
|
262
|
+
if peer_network is not None:
|
263
|
+
pulumi.set(__self__, "peer_network", peer_network)
|
264
|
+
if peer_network_type is not None:
|
265
|
+
pulumi.set(__self__, "peer_network_type", peer_network_type)
|
266
|
+
if project is not None:
|
267
|
+
pulumi.set(__self__, "project", project)
|
268
|
+
if state is not None:
|
269
|
+
pulumi.set(__self__, "state", state)
|
270
|
+
if state_details is not None:
|
271
|
+
pulumi.set(__self__, "state_details", state_details)
|
272
|
+
if uid is not None:
|
273
|
+
pulumi.set(__self__, "uid", uid)
|
274
|
+
if update_time is not None:
|
275
|
+
pulumi.set(__self__, "update_time", update_time)
|
276
|
+
if vmware_engine_network is not None:
|
277
|
+
pulumi.set(__self__, "vmware_engine_network", vmware_engine_network)
|
278
|
+
if vmware_engine_network_canonical is not None:
|
279
|
+
pulumi.set(__self__, "vmware_engine_network_canonical", vmware_engine_network_canonical)
|
280
|
+
|
281
|
+
@property
|
282
|
+
@pulumi.getter(name="createTime")
|
283
|
+
def create_time(self) -> Optional[pulumi.Input[str]]:
|
284
|
+
"""
|
285
|
+
Creation time of this resource.
|
286
|
+
A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and
|
287
|
+
up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
|
288
|
+
"""
|
289
|
+
return pulumi.get(self, "create_time")
|
290
|
+
|
291
|
+
@create_time.setter
|
292
|
+
def create_time(self, value: Optional[pulumi.Input[str]]):
|
293
|
+
pulumi.set(self, "create_time", value)
|
294
|
+
|
295
|
+
@property
|
296
|
+
@pulumi.getter
|
297
|
+
def description(self) -> Optional[pulumi.Input[str]]:
|
298
|
+
"""
|
299
|
+
User-provided description for this network peering.
|
300
|
+
"""
|
301
|
+
return pulumi.get(self, "description")
|
302
|
+
|
303
|
+
@description.setter
|
304
|
+
def description(self, value: Optional[pulumi.Input[str]]):
|
305
|
+
pulumi.set(self, "description", value)
|
306
|
+
|
307
|
+
@property
|
308
|
+
@pulumi.getter(name="exportCustomRoutes")
|
309
|
+
def export_custom_routes(self) -> Optional[pulumi.Input[bool]]:
|
310
|
+
"""
|
311
|
+
True if custom routes are exported to the peered network; false otherwise.
|
312
|
+
"""
|
313
|
+
return pulumi.get(self, "export_custom_routes")
|
314
|
+
|
315
|
+
@export_custom_routes.setter
|
316
|
+
def export_custom_routes(self, value: Optional[pulumi.Input[bool]]):
|
317
|
+
pulumi.set(self, "export_custom_routes", value)
|
318
|
+
|
319
|
+
@property
|
320
|
+
@pulumi.getter(name="exportCustomRoutesWithPublicIp")
|
321
|
+
def export_custom_routes_with_public_ip(self) -> Optional[pulumi.Input[bool]]:
|
322
|
+
"""
|
323
|
+
True if all subnet routes with a public IP address range are exported; false otherwise.
|
324
|
+
"""
|
325
|
+
return pulumi.get(self, "export_custom_routes_with_public_ip")
|
326
|
+
|
327
|
+
@export_custom_routes_with_public_ip.setter
|
328
|
+
def export_custom_routes_with_public_ip(self, value: Optional[pulumi.Input[bool]]):
|
329
|
+
pulumi.set(self, "export_custom_routes_with_public_ip", value)
|
330
|
+
|
331
|
+
@property
|
332
|
+
@pulumi.getter(name="importCustomRoutes")
|
333
|
+
def import_custom_routes(self) -> Optional[pulumi.Input[bool]]:
|
334
|
+
"""
|
335
|
+
True if custom routes are imported from the peered network; false otherwise.
|
336
|
+
"""
|
337
|
+
return pulumi.get(self, "import_custom_routes")
|
338
|
+
|
339
|
+
@import_custom_routes.setter
|
340
|
+
def import_custom_routes(self, value: Optional[pulumi.Input[bool]]):
|
341
|
+
pulumi.set(self, "import_custom_routes", value)
|
342
|
+
|
343
|
+
@property
|
344
|
+
@pulumi.getter(name="importCustomRoutesWithPublicIp")
|
345
|
+
def import_custom_routes_with_public_ip(self) -> Optional[pulumi.Input[bool]]:
|
346
|
+
"""
|
347
|
+
True if custom routes are imported from the peered network; false otherwise.
|
348
|
+
"""
|
349
|
+
return pulumi.get(self, "import_custom_routes_with_public_ip")
|
350
|
+
|
351
|
+
@import_custom_routes_with_public_ip.setter
|
352
|
+
def import_custom_routes_with_public_ip(self, value: Optional[pulumi.Input[bool]]):
|
353
|
+
pulumi.set(self, "import_custom_routes_with_public_ip", value)
|
354
|
+
|
355
|
+
@property
|
356
|
+
@pulumi.getter
|
357
|
+
def name(self) -> Optional[pulumi.Input[str]]:
|
358
|
+
"""
|
359
|
+
The ID of the Network Peering.
|
360
|
+
|
361
|
+
|
362
|
+
- - -
|
363
|
+
"""
|
364
|
+
return pulumi.get(self, "name")
|
365
|
+
|
366
|
+
@name.setter
|
367
|
+
def name(self, value: Optional[pulumi.Input[str]]):
|
368
|
+
pulumi.set(self, "name", value)
|
369
|
+
|
370
|
+
@property
|
371
|
+
@pulumi.getter(name="peerNetwork")
|
372
|
+
def peer_network(self) -> Optional[pulumi.Input[str]]:
|
373
|
+
"""
|
374
|
+
The relative resource name of the network to peer with a standard VMware Engine network.
|
375
|
+
The provided network can be a consumer VPC network or another standard VMware Engine network.
|
376
|
+
"""
|
377
|
+
return pulumi.get(self, "peer_network")
|
378
|
+
|
379
|
+
@peer_network.setter
|
380
|
+
def peer_network(self, value: Optional[pulumi.Input[str]]):
|
381
|
+
pulumi.set(self, "peer_network", value)
|
382
|
+
|
383
|
+
@property
|
384
|
+
@pulumi.getter(name="peerNetworkType")
|
385
|
+
def peer_network_type(self) -> Optional[pulumi.Input[str]]:
|
386
|
+
"""
|
387
|
+
The type of the network to peer with the VMware Engine network.
|
388
|
+
Possible values are: `STANDARD`, `VMWARE_ENGINE_NETWORK`, `PRIVATE_SERVICES_ACCESS`, `NETAPP_CLOUD_VOLUMES`, `THIRD_PARTY_SERVICE`, `DELL_POWERSCALE`.
|
389
|
+
"""
|
390
|
+
return pulumi.get(self, "peer_network_type")
|
391
|
+
|
392
|
+
@peer_network_type.setter
|
393
|
+
def peer_network_type(self, value: Optional[pulumi.Input[str]]):
|
394
|
+
pulumi.set(self, "peer_network_type", value)
|
395
|
+
|
396
|
+
@property
|
397
|
+
@pulumi.getter
|
398
|
+
def project(self) -> Optional[pulumi.Input[str]]:
|
399
|
+
"""
|
400
|
+
The ID of the project in which the resource belongs.
|
401
|
+
If it is not provided, the provider project is used.
|
402
|
+
"""
|
403
|
+
return pulumi.get(self, "project")
|
404
|
+
|
405
|
+
@project.setter
|
406
|
+
def project(self, value: Optional[pulumi.Input[str]]):
|
407
|
+
pulumi.set(self, "project", value)
|
408
|
+
|
409
|
+
@property
|
410
|
+
@pulumi.getter
|
411
|
+
def state(self) -> Optional[pulumi.Input[str]]:
|
412
|
+
"""
|
413
|
+
State of the network peering.
|
414
|
+
This field has a value of 'ACTIVE' when there's a matching configuration in the peer network.
|
415
|
+
New values may be added to this enum when appropriate.
|
416
|
+
"""
|
417
|
+
return pulumi.get(self, "state")
|
418
|
+
|
419
|
+
@state.setter
|
420
|
+
def state(self, value: Optional[pulumi.Input[str]]):
|
421
|
+
pulumi.set(self, "state", value)
|
422
|
+
|
423
|
+
@property
|
424
|
+
@pulumi.getter(name="stateDetails")
|
425
|
+
def state_details(self) -> Optional[pulumi.Input[str]]:
|
426
|
+
"""
|
427
|
+
Details about the current state of the network peering.
|
428
|
+
"""
|
429
|
+
return pulumi.get(self, "state_details")
|
430
|
+
|
431
|
+
@state_details.setter
|
432
|
+
def state_details(self, value: Optional[pulumi.Input[str]]):
|
433
|
+
pulumi.set(self, "state_details", value)
|
434
|
+
|
435
|
+
@property
|
436
|
+
@pulumi.getter
|
437
|
+
def uid(self) -> Optional[pulumi.Input[str]]:
|
438
|
+
"""
|
439
|
+
System-generated unique identifier for the resource.
|
440
|
+
"""
|
441
|
+
return pulumi.get(self, "uid")
|
442
|
+
|
443
|
+
@uid.setter
|
444
|
+
def uid(self, value: Optional[pulumi.Input[str]]):
|
445
|
+
pulumi.set(self, "uid", value)
|
446
|
+
|
447
|
+
@property
|
448
|
+
@pulumi.getter(name="updateTime")
|
449
|
+
def update_time(self) -> Optional[pulumi.Input[str]]:
|
450
|
+
"""
|
451
|
+
Last updated time of this resource.
|
452
|
+
A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine
|
453
|
+
fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
|
454
|
+
"""
|
455
|
+
return pulumi.get(self, "update_time")
|
456
|
+
|
457
|
+
@update_time.setter
|
458
|
+
def update_time(self, value: Optional[pulumi.Input[str]]):
|
459
|
+
pulumi.set(self, "update_time", value)
|
460
|
+
|
461
|
+
@property
|
462
|
+
@pulumi.getter(name="vmwareEngineNetwork")
|
463
|
+
def vmware_engine_network(self) -> Optional[pulumi.Input[str]]:
|
464
|
+
"""
|
465
|
+
The relative resource name of the VMware Engine network. Specify the name in the following form:
|
466
|
+
projects/{project}/locations/{location}/vmwareEngineNetworks/{vmwareEngineNetworkId} where {project}
|
467
|
+
can either be a project number or a project ID.
|
468
|
+
"""
|
469
|
+
return pulumi.get(self, "vmware_engine_network")
|
470
|
+
|
471
|
+
@vmware_engine_network.setter
|
472
|
+
def vmware_engine_network(self, value: Optional[pulumi.Input[str]]):
|
473
|
+
pulumi.set(self, "vmware_engine_network", value)
|
474
|
+
|
475
|
+
@property
|
476
|
+
@pulumi.getter(name="vmwareEngineNetworkCanonical")
|
477
|
+
def vmware_engine_network_canonical(self) -> Optional[pulumi.Input[str]]:
|
478
|
+
"""
|
479
|
+
The canonical name of the VMware Engine network in the form:
|
480
|
+
projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmwareEngineNetworkId}
|
481
|
+
"""
|
482
|
+
return pulumi.get(self, "vmware_engine_network_canonical")
|
483
|
+
|
484
|
+
@vmware_engine_network_canonical.setter
|
485
|
+
def vmware_engine_network_canonical(self, value: Optional[pulumi.Input[str]]):
|
486
|
+
pulumi.set(self, "vmware_engine_network_canonical", value)
|
487
|
+
|
488
|
+
|
489
|
+
class NetworkPeering(pulumi.CustomResource):
|
490
|
+
@overload
|
491
|
+
def __init__(__self__,
|
492
|
+
resource_name: str,
|
493
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
494
|
+
description: Optional[pulumi.Input[str]] = None,
|
495
|
+
export_custom_routes: Optional[pulumi.Input[bool]] = None,
|
496
|
+
export_custom_routes_with_public_ip: Optional[pulumi.Input[bool]] = None,
|
497
|
+
import_custom_routes: Optional[pulumi.Input[bool]] = None,
|
498
|
+
import_custom_routes_with_public_ip: Optional[pulumi.Input[bool]] = None,
|
499
|
+
name: Optional[pulumi.Input[str]] = None,
|
500
|
+
peer_network: Optional[pulumi.Input[str]] = None,
|
501
|
+
peer_network_type: Optional[pulumi.Input[str]] = None,
|
502
|
+
project: Optional[pulumi.Input[str]] = None,
|
503
|
+
vmware_engine_network: Optional[pulumi.Input[str]] = None,
|
504
|
+
__props__=None):
|
505
|
+
"""
|
506
|
+
Represents a network peering resource. Network peerings are global resources.
|
507
|
+
|
508
|
+
To get more information about NetworkPeering, see:
|
509
|
+
|
510
|
+
* [API documentation](https://cloud.google.com/compute/docs/reference/rest/v1/networks/addPeering)
|
511
|
+
|
512
|
+
## Example Usage
|
513
|
+
### Vmware Engine Network Peering Ven
|
514
|
+
|
515
|
+
```python
|
516
|
+
import pulumi
|
517
|
+
import pulumi_gcp as gcp
|
518
|
+
|
519
|
+
network_peering_nw = gcp.vmwareengine.Network("network-peering-nw",
|
520
|
+
location="global",
|
521
|
+
type="STANDARD")
|
522
|
+
network_peering_peer_nw = gcp.vmwareengine.Network("network-peering-peer-nw",
|
523
|
+
location="global",
|
524
|
+
type="STANDARD")
|
525
|
+
vmw_engine_network_peering = gcp.vmwareengine.NetworkPeering("vmw-engine-network-peering",
|
526
|
+
description="Sample description",
|
527
|
+
vmware_engine_network=network_peering_nw.id,
|
528
|
+
peer_network=network_peering_peer_nw.id,
|
529
|
+
peer_network_type="VMWARE_ENGINE_NETWORK",
|
530
|
+
export_custom_routes=False,
|
531
|
+
import_custom_routes=False,
|
532
|
+
export_custom_routes_with_public_ip=False,
|
533
|
+
import_custom_routes_with_public_ip=False)
|
534
|
+
```
|
535
|
+
### Vmware Engine Network Peering Standard
|
536
|
+
|
537
|
+
```python
|
538
|
+
import pulumi
|
539
|
+
import pulumi_gcp as gcp
|
540
|
+
|
541
|
+
network_peering_vpc = gcp.compute.Network("network-peering-vpc")
|
542
|
+
network_peering_standard_nw = gcp.vmwareengine.Network("network-peering-standard-nw",
|
543
|
+
location="global",
|
544
|
+
type="STANDARD")
|
545
|
+
vmw_engine_network_peering = gcp.vmwareengine.NetworkPeering("vmw-engine-network-peering",
|
546
|
+
description="Sample description",
|
547
|
+
peer_network=network_peering_vpc.id,
|
548
|
+
peer_network_type="STANDARD",
|
549
|
+
vmware_engine_network=network_peering_standard_nw.id)
|
550
|
+
```
|
551
|
+
|
552
|
+
## Import
|
553
|
+
|
554
|
+
NetworkPeering can be imported using any of these accepted formats* `projects/{{project}}/locations/global/networkPeerings/{{name}}` * `{{project}}/{{name}}` * `{{name}}` In Terraform v1.5.0 and later, use an [`import` block](https://developer.hashicorp.com/terraform/language/import) to import NetworkPeering using one of the formats above. For exampletf import {
|
555
|
+
|
556
|
+
id = "projects/{{project}}/locations/global/networkPeerings/{{name}}"
|
557
|
+
|
558
|
+
to = google_vmwareengine_network_peering.default }
|
559
|
+
|
560
|
+
```sh
|
561
|
+
$ pulumi import gcp:vmwareengine/networkPeering:NetworkPeering When using the [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import), NetworkPeering can be imported using one of the formats above. For example
|
562
|
+
```
|
563
|
+
|
564
|
+
```sh
|
565
|
+
$ pulumi import gcp:vmwareengine/networkPeering:NetworkPeering default projects/{{project}}/locations/global/networkPeerings/{{name}}
|
566
|
+
```
|
567
|
+
|
568
|
+
```sh
|
569
|
+
$ pulumi import gcp:vmwareengine/networkPeering:NetworkPeering default {{project}}/{{name}}
|
570
|
+
```
|
571
|
+
|
572
|
+
```sh
|
573
|
+
$ pulumi import gcp:vmwareengine/networkPeering:NetworkPeering default {{name}}
|
574
|
+
```
|
575
|
+
|
576
|
+
:param str resource_name: The name of the resource.
|
577
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
578
|
+
:param pulumi.Input[str] description: User-provided description for this network peering.
|
579
|
+
:param pulumi.Input[bool] export_custom_routes: True if custom routes are exported to the peered network; false otherwise.
|
580
|
+
:param pulumi.Input[bool] export_custom_routes_with_public_ip: True if all subnet routes with a public IP address range are exported; false otherwise.
|
581
|
+
:param pulumi.Input[bool] import_custom_routes: True if custom routes are imported from the peered network; false otherwise.
|
582
|
+
:param pulumi.Input[bool] import_custom_routes_with_public_ip: True if custom routes are imported from the peered network; false otherwise.
|
583
|
+
:param pulumi.Input[str] name: The ID of the Network Peering.
|
584
|
+
|
585
|
+
|
586
|
+
- - -
|
587
|
+
:param pulumi.Input[str] peer_network: The relative resource name of the network to peer with a standard VMware Engine network.
|
588
|
+
The provided network can be a consumer VPC network or another standard VMware Engine network.
|
589
|
+
:param pulumi.Input[str] peer_network_type: The type of the network to peer with the VMware Engine network.
|
590
|
+
Possible values are: `STANDARD`, `VMWARE_ENGINE_NETWORK`, `PRIVATE_SERVICES_ACCESS`, `NETAPP_CLOUD_VOLUMES`, `THIRD_PARTY_SERVICE`, `DELL_POWERSCALE`.
|
591
|
+
:param pulumi.Input[str] project: The ID of the project in which the resource belongs.
|
592
|
+
If it is not provided, the provider project is used.
|
593
|
+
:param pulumi.Input[str] vmware_engine_network: The relative resource name of the VMware Engine network. Specify the name in the following form:
|
594
|
+
projects/{project}/locations/{location}/vmwareEngineNetworks/{vmwareEngineNetworkId} where {project}
|
595
|
+
can either be a project number or a project ID.
|
596
|
+
"""
|
597
|
+
...
|
598
|
+
@overload
|
599
|
+
def __init__(__self__,
|
600
|
+
resource_name: str,
|
601
|
+
args: NetworkPeeringArgs,
|
602
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
603
|
+
"""
|
604
|
+
Represents a network peering resource. Network peerings are global resources.
|
605
|
+
|
606
|
+
To get more information about NetworkPeering, see:
|
607
|
+
|
608
|
+
* [API documentation](https://cloud.google.com/compute/docs/reference/rest/v1/networks/addPeering)
|
609
|
+
|
610
|
+
## Example Usage
|
611
|
+
### Vmware Engine Network Peering Ven
|
612
|
+
|
613
|
+
```python
|
614
|
+
import pulumi
|
615
|
+
import pulumi_gcp as gcp
|
616
|
+
|
617
|
+
network_peering_nw = gcp.vmwareengine.Network("network-peering-nw",
|
618
|
+
location="global",
|
619
|
+
type="STANDARD")
|
620
|
+
network_peering_peer_nw = gcp.vmwareengine.Network("network-peering-peer-nw",
|
621
|
+
location="global",
|
622
|
+
type="STANDARD")
|
623
|
+
vmw_engine_network_peering = gcp.vmwareengine.NetworkPeering("vmw-engine-network-peering",
|
624
|
+
description="Sample description",
|
625
|
+
vmware_engine_network=network_peering_nw.id,
|
626
|
+
peer_network=network_peering_peer_nw.id,
|
627
|
+
peer_network_type="VMWARE_ENGINE_NETWORK",
|
628
|
+
export_custom_routes=False,
|
629
|
+
import_custom_routes=False,
|
630
|
+
export_custom_routes_with_public_ip=False,
|
631
|
+
import_custom_routes_with_public_ip=False)
|
632
|
+
```
|
633
|
+
### Vmware Engine Network Peering Standard
|
634
|
+
|
635
|
+
```python
|
636
|
+
import pulumi
|
637
|
+
import pulumi_gcp as gcp
|
638
|
+
|
639
|
+
network_peering_vpc = gcp.compute.Network("network-peering-vpc")
|
640
|
+
network_peering_standard_nw = gcp.vmwareengine.Network("network-peering-standard-nw",
|
641
|
+
location="global",
|
642
|
+
type="STANDARD")
|
643
|
+
vmw_engine_network_peering = gcp.vmwareengine.NetworkPeering("vmw-engine-network-peering",
|
644
|
+
description="Sample description",
|
645
|
+
peer_network=network_peering_vpc.id,
|
646
|
+
peer_network_type="STANDARD",
|
647
|
+
vmware_engine_network=network_peering_standard_nw.id)
|
648
|
+
```
|
649
|
+
|
650
|
+
## Import
|
651
|
+
|
652
|
+
NetworkPeering can be imported using any of these accepted formats* `projects/{{project}}/locations/global/networkPeerings/{{name}}` * `{{project}}/{{name}}` * `{{name}}` In Terraform v1.5.0 and later, use an [`import` block](https://developer.hashicorp.com/terraform/language/import) to import NetworkPeering using one of the formats above. For exampletf import {
|
653
|
+
|
654
|
+
id = "projects/{{project}}/locations/global/networkPeerings/{{name}}"
|
655
|
+
|
656
|
+
to = google_vmwareengine_network_peering.default }
|
657
|
+
|
658
|
+
```sh
|
659
|
+
$ pulumi import gcp:vmwareengine/networkPeering:NetworkPeering When using the [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import), NetworkPeering can be imported using one of the formats above. For example
|
660
|
+
```
|
661
|
+
|
662
|
+
```sh
|
663
|
+
$ pulumi import gcp:vmwareengine/networkPeering:NetworkPeering default projects/{{project}}/locations/global/networkPeerings/{{name}}
|
664
|
+
```
|
665
|
+
|
666
|
+
```sh
|
667
|
+
$ pulumi import gcp:vmwareengine/networkPeering:NetworkPeering default {{project}}/{{name}}
|
668
|
+
```
|
669
|
+
|
670
|
+
```sh
|
671
|
+
$ pulumi import gcp:vmwareengine/networkPeering:NetworkPeering default {{name}}
|
672
|
+
```
|
673
|
+
|
674
|
+
:param str resource_name: The name of the resource.
|
675
|
+
:param NetworkPeeringArgs args: The arguments to use to populate this resource's properties.
|
676
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
677
|
+
"""
|
678
|
+
...
|
679
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
680
|
+
resource_args, opts = _utilities.get_resource_args_opts(NetworkPeeringArgs, pulumi.ResourceOptions, *args, **kwargs)
|
681
|
+
if resource_args is not None:
|
682
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
683
|
+
else:
|
684
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
685
|
+
|
686
|
+
def _internal_init(__self__,
|
687
|
+
resource_name: str,
|
688
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
689
|
+
description: Optional[pulumi.Input[str]] = None,
|
690
|
+
export_custom_routes: Optional[pulumi.Input[bool]] = None,
|
691
|
+
export_custom_routes_with_public_ip: Optional[pulumi.Input[bool]] = None,
|
692
|
+
import_custom_routes: Optional[pulumi.Input[bool]] = None,
|
693
|
+
import_custom_routes_with_public_ip: Optional[pulumi.Input[bool]] = None,
|
694
|
+
name: Optional[pulumi.Input[str]] = None,
|
695
|
+
peer_network: Optional[pulumi.Input[str]] = None,
|
696
|
+
peer_network_type: Optional[pulumi.Input[str]] = None,
|
697
|
+
project: Optional[pulumi.Input[str]] = None,
|
698
|
+
vmware_engine_network: Optional[pulumi.Input[str]] = None,
|
699
|
+
__props__=None):
|
700
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
701
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
702
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
703
|
+
if opts.id is None:
|
704
|
+
if __props__ is not None:
|
705
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
706
|
+
__props__ = NetworkPeeringArgs.__new__(NetworkPeeringArgs)
|
707
|
+
|
708
|
+
__props__.__dict__["description"] = description
|
709
|
+
__props__.__dict__["export_custom_routes"] = export_custom_routes
|
710
|
+
__props__.__dict__["export_custom_routes_with_public_ip"] = export_custom_routes_with_public_ip
|
711
|
+
__props__.__dict__["import_custom_routes"] = import_custom_routes
|
712
|
+
__props__.__dict__["import_custom_routes_with_public_ip"] = import_custom_routes_with_public_ip
|
713
|
+
__props__.__dict__["name"] = name
|
714
|
+
if peer_network is None and not opts.urn:
|
715
|
+
raise TypeError("Missing required property 'peer_network'")
|
716
|
+
__props__.__dict__["peer_network"] = peer_network
|
717
|
+
if peer_network_type is None and not opts.urn:
|
718
|
+
raise TypeError("Missing required property 'peer_network_type'")
|
719
|
+
__props__.__dict__["peer_network_type"] = peer_network_type
|
720
|
+
__props__.__dict__["project"] = project
|
721
|
+
if vmware_engine_network is None and not opts.urn:
|
722
|
+
raise TypeError("Missing required property 'vmware_engine_network'")
|
723
|
+
__props__.__dict__["vmware_engine_network"] = vmware_engine_network
|
724
|
+
__props__.__dict__["create_time"] = None
|
725
|
+
__props__.__dict__["state"] = None
|
726
|
+
__props__.__dict__["state_details"] = None
|
727
|
+
__props__.__dict__["uid"] = None
|
728
|
+
__props__.__dict__["update_time"] = None
|
729
|
+
__props__.__dict__["vmware_engine_network_canonical"] = None
|
730
|
+
super(NetworkPeering, __self__).__init__(
|
731
|
+
'gcp:vmwareengine/networkPeering:NetworkPeering',
|
732
|
+
resource_name,
|
733
|
+
__props__,
|
734
|
+
opts)
|
735
|
+
|
736
|
+
@staticmethod
|
737
|
+
def get(resource_name: str,
|
738
|
+
id: pulumi.Input[str],
|
739
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
740
|
+
create_time: Optional[pulumi.Input[str]] = None,
|
741
|
+
description: Optional[pulumi.Input[str]] = None,
|
742
|
+
export_custom_routes: Optional[pulumi.Input[bool]] = None,
|
743
|
+
export_custom_routes_with_public_ip: Optional[pulumi.Input[bool]] = None,
|
744
|
+
import_custom_routes: Optional[pulumi.Input[bool]] = None,
|
745
|
+
import_custom_routes_with_public_ip: Optional[pulumi.Input[bool]] = None,
|
746
|
+
name: Optional[pulumi.Input[str]] = None,
|
747
|
+
peer_network: Optional[pulumi.Input[str]] = None,
|
748
|
+
peer_network_type: Optional[pulumi.Input[str]] = None,
|
749
|
+
project: Optional[pulumi.Input[str]] = None,
|
750
|
+
state: Optional[pulumi.Input[str]] = None,
|
751
|
+
state_details: Optional[pulumi.Input[str]] = None,
|
752
|
+
uid: Optional[pulumi.Input[str]] = None,
|
753
|
+
update_time: Optional[pulumi.Input[str]] = None,
|
754
|
+
vmware_engine_network: Optional[pulumi.Input[str]] = None,
|
755
|
+
vmware_engine_network_canonical: Optional[pulumi.Input[str]] = None) -> 'NetworkPeering':
|
756
|
+
"""
|
757
|
+
Get an existing NetworkPeering resource's state with the given name, id, and optional extra
|
758
|
+
properties used to qualify the lookup.
|
759
|
+
|
760
|
+
:param str resource_name: The unique name of the resulting resource.
|
761
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
762
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
763
|
+
:param pulumi.Input[str] create_time: Creation time of this resource.
|
764
|
+
A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and
|
765
|
+
up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
|
766
|
+
:param pulumi.Input[str] description: User-provided description for this network peering.
|
767
|
+
:param pulumi.Input[bool] export_custom_routes: True if custom routes are exported to the peered network; false otherwise.
|
768
|
+
:param pulumi.Input[bool] export_custom_routes_with_public_ip: True if all subnet routes with a public IP address range are exported; false otherwise.
|
769
|
+
:param pulumi.Input[bool] import_custom_routes: True if custom routes are imported from the peered network; false otherwise.
|
770
|
+
:param pulumi.Input[bool] import_custom_routes_with_public_ip: True if custom routes are imported from the peered network; false otherwise.
|
771
|
+
:param pulumi.Input[str] name: The ID of the Network Peering.
|
772
|
+
|
773
|
+
|
774
|
+
- - -
|
775
|
+
:param pulumi.Input[str] peer_network: The relative resource name of the network to peer with a standard VMware Engine network.
|
776
|
+
The provided network can be a consumer VPC network or another standard VMware Engine network.
|
777
|
+
:param pulumi.Input[str] peer_network_type: The type of the network to peer with the VMware Engine network.
|
778
|
+
Possible values are: `STANDARD`, `VMWARE_ENGINE_NETWORK`, `PRIVATE_SERVICES_ACCESS`, `NETAPP_CLOUD_VOLUMES`, `THIRD_PARTY_SERVICE`, `DELL_POWERSCALE`.
|
779
|
+
:param pulumi.Input[str] project: The ID of the project in which the resource belongs.
|
780
|
+
If it is not provided, the provider project is used.
|
781
|
+
:param pulumi.Input[str] state: State of the network peering.
|
782
|
+
This field has a value of 'ACTIVE' when there's a matching configuration in the peer network.
|
783
|
+
New values may be added to this enum when appropriate.
|
784
|
+
:param pulumi.Input[str] state_details: Details about the current state of the network peering.
|
785
|
+
:param pulumi.Input[str] uid: System-generated unique identifier for the resource.
|
786
|
+
:param pulumi.Input[str] update_time: Last updated time of this resource.
|
787
|
+
A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine
|
788
|
+
fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
|
789
|
+
:param pulumi.Input[str] vmware_engine_network: The relative resource name of the VMware Engine network. Specify the name in the following form:
|
790
|
+
projects/{project}/locations/{location}/vmwareEngineNetworks/{vmwareEngineNetworkId} where {project}
|
791
|
+
can either be a project number or a project ID.
|
792
|
+
:param pulumi.Input[str] vmware_engine_network_canonical: The canonical name of the VMware Engine network in the form:
|
793
|
+
projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmwareEngineNetworkId}
|
794
|
+
"""
|
795
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
796
|
+
|
797
|
+
__props__ = _NetworkPeeringState.__new__(_NetworkPeeringState)
|
798
|
+
|
799
|
+
__props__.__dict__["create_time"] = create_time
|
800
|
+
__props__.__dict__["description"] = description
|
801
|
+
__props__.__dict__["export_custom_routes"] = export_custom_routes
|
802
|
+
__props__.__dict__["export_custom_routes_with_public_ip"] = export_custom_routes_with_public_ip
|
803
|
+
__props__.__dict__["import_custom_routes"] = import_custom_routes
|
804
|
+
__props__.__dict__["import_custom_routes_with_public_ip"] = import_custom_routes_with_public_ip
|
805
|
+
__props__.__dict__["name"] = name
|
806
|
+
__props__.__dict__["peer_network"] = peer_network
|
807
|
+
__props__.__dict__["peer_network_type"] = peer_network_type
|
808
|
+
__props__.__dict__["project"] = project
|
809
|
+
__props__.__dict__["state"] = state
|
810
|
+
__props__.__dict__["state_details"] = state_details
|
811
|
+
__props__.__dict__["uid"] = uid
|
812
|
+
__props__.__dict__["update_time"] = update_time
|
813
|
+
__props__.__dict__["vmware_engine_network"] = vmware_engine_network
|
814
|
+
__props__.__dict__["vmware_engine_network_canonical"] = vmware_engine_network_canonical
|
815
|
+
return NetworkPeering(resource_name, opts=opts, __props__=__props__)
|
816
|
+
|
817
|
+
@property
|
818
|
+
@pulumi.getter(name="createTime")
|
819
|
+
def create_time(self) -> pulumi.Output[str]:
|
820
|
+
"""
|
821
|
+
Creation time of this resource.
|
822
|
+
A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and
|
823
|
+
up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
|
824
|
+
"""
|
825
|
+
return pulumi.get(self, "create_time")
|
826
|
+
|
827
|
+
@property
|
828
|
+
@pulumi.getter
|
829
|
+
def description(self) -> pulumi.Output[Optional[str]]:
|
830
|
+
"""
|
831
|
+
User-provided description for this network peering.
|
832
|
+
"""
|
833
|
+
return pulumi.get(self, "description")
|
834
|
+
|
835
|
+
@property
|
836
|
+
@pulumi.getter(name="exportCustomRoutes")
|
837
|
+
def export_custom_routes(self) -> pulumi.Output[Optional[bool]]:
|
838
|
+
"""
|
839
|
+
True if custom routes are exported to the peered network; false otherwise.
|
840
|
+
"""
|
841
|
+
return pulumi.get(self, "export_custom_routes")
|
842
|
+
|
843
|
+
@property
|
844
|
+
@pulumi.getter(name="exportCustomRoutesWithPublicIp")
|
845
|
+
def export_custom_routes_with_public_ip(self) -> pulumi.Output[Optional[bool]]:
|
846
|
+
"""
|
847
|
+
True if all subnet routes with a public IP address range are exported; false otherwise.
|
848
|
+
"""
|
849
|
+
return pulumi.get(self, "export_custom_routes_with_public_ip")
|
850
|
+
|
851
|
+
@property
|
852
|
+
@pulumi.getter(name="importCustomRoutes")
|
853
|
+
def import_custom_routes(self) -> pulumi.Output[Optional[bool]]:
|
854
|
+
"""
|
855
|
+
True if custom routes are imported from the peered network; false otherwise.
|
856
|
+
"""
|
857
|
+
return pulumi.get(self, "import_custom_routes")
|
858
|
+
|
859
|
+
@property
|
860
|
+
@pulumi.getter(name="importCustomRoutesWithPublicIp")
|
861
|
+
def import_custom_routes_with_public_ip(self) -> pulumi.Output[Optional[bool]]:
|
862
|
+
"""
|
863
|
+
True if custom routes are imported from the peered network; false otherwise.
|
864
|
+
"""
|
865
|
+
return pulumi.get(self, "import_custom_routes_with_public_ip")
|
866
|
+
|
867
|
+
@property
|
868
|
+
@pulumi.getter
|
869
|
+
def name(self) -> pulumi.Output[str]:
|
870
|
+
"""
|
871
|
+
The ID of the Network Peering.
|
872
|
+
|
873
|
+
|
874
|
+
- - -
|
875
|
+
"""
|
876
|
+
return pulumi.get(self, "name")
|
877
|
+
|
878
|
+
@property
|
879
|
+
@pulumi.getter(name="peerNetwork")
|
880
|
+
def peer_network(self) -> pulumi.Output[str]:
|
881
|
+
"""
|
882
|
+
The relative resource name of the network to peer with a standard VMware Engine network.
|
883
|
+
The provided network can be a consumer VPC network or another standard VMware Engine network.
|
884
|
+
"""
|
885
|
+
return pulumi.get(self, "peer_network")
|
886
|
+
|
887
|
+
@property
|
888
|
+
@pulumi.getter(name="peerNetworkType")
|
889
|
+
def peer_network_type(self) -> pulumi.Output[str]:
|
890
|
+
"""
|
891
|
+
The type of the network to peer with the VMware Engine network.
|
892
|
+
Possible values are: `STANDARD`, `VMWARE_ENGINE_NETWORK`, `PRIVATE_SERVICES_ACCESS`, `NETAPP_CLOUD_VOLUMES`, `THIRD_PARTY_SERVICE`, `DELL_POWERSCALE`.
|
893
|
+
"""
|
894
|
+
return pulumi.get(self, "peer_network_type")
|
895
|
+
|
896
|
+
@property
|
897
|
+
@pulumi.getter
|
898
|
+
def project(self) -> pulumi.Output[str]:
|
899
|
+
"""
|
900
|
+
The ID of the project in which the resource belongs.
|
901
|
+
If it is not provided, the provider project is used.
|
902
|
+
"""
|
903
|
+
return pulumi.get(self, "project")
|
904
|
+
|
905
|
+
@property
|
906
|
+
@pulumi.getter
|
907
|
+
def state(self) -> pulumi.Output[str]:
|
908
|
+
"""
|
909
|
+
State of the network peering.
|
910
|
+
This field has a value of 'ACTIVE' when there's a matching configuration in the peer network.
|
911
|
+
New values may be added to this enum when appropriate.
|
912
|
+
"""
|
913
|
+
return pulumi.get(self, "state")
|
914
|
+
|
915
|
+
@property
|
916
|
+
@pulumi.getter(name="stateDetails")
|
917
|
+
def state_details(self) -> pulumi.Output[str]:
|
918
|
+
"""
|
919
|
+
Details about the current state of the network peering.
|
920
|
+
"""
|
921
|
+
return pulumi.get(self, "state_details")
|
922
|
+
|
923
|
+
@property
|
924
|
+
@pulumi.getter
|
925
|
+
def uid(self) -> pulumi.Output[str]:
|
926
|
+
"""
|
927
|
+
System-generated unique identifier for the resource.
|
928
|
+
"""
|
929
|
+
return pulumi.get(self, "uid")
|
930
|
+
|
931
|
+
@property
|
932
|
+
@pulumi.getter(name="updateTime")
|
933
|
+
def update_time(self) -> pulumi.Output[str]:
|
934
|
+
"""
|
935
|
+
Last updated time of this resource.
|
936
|
+
A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine
|
937
|
+
fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
|
938
|
+
"""
|
939
|
+
return pulumi.get(self, "update_time")
|
940
|
+
|
941
|
+
@property
|
942
|
+
@pulumi.getter(name="vmwareEngineNetwork")
|
943
|
+
def vmware_engine_network(self) -> pulumi.Output[str]:
|
944
|
+
"""
|
945
|
+
The relative resource name of the VMware Engine network. Specify the name in the following form:
|
946
|
+
projects/{project}/locations/{location}/vmwareEngineNetworks/{vmwareEngineNetworkId} where {project}
|
947
|
+
can either be a project number or a project ID.
|
948
|
+
"""
|
949
|
+
return pulumi.get(self, "vmware_engine_network")
|
950
|
+
|
951
|
+
@property
|
952
|
+
@pulumi.getter(name="vmwareEngineNetworkCanonical")
|
953
|
+
def vmware_engine_network_canonical(self) -> pulumi.Output[str]:
|
954
|
+
"""
|
955
|
+
The canonical name of the VMware Engine network in the form:
|
956
|
+
projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmwareEngineNetworkId}
|
957
|
+
"""
|
958
|
+
return pulumi.get(self, "vmware_engine_network_canonical")
|
959
|
+
|