pulumi-gcp 8.42.0a1756925793__py3-none-any.whl → 9.0.0a1__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 +35 -48
- pulumi_gcp/alloydb/backup.py +8 -4
- pulumi_gcp/alloydb/cluster.py +56 -10
- pulumi_gcp/alloydb/get_cluster.py +12 -1
- pulumi_gcp/alloydb/instance.py +10 -4
- pulumi_gcp/alloydb/user.py +8 -4
- pulumi_gcp/apigee/_inputs.py +151 -108
- pulumi_gcp/apigee/keystores_aliases_key_cert_file.py +52 -40
- pulumi_gcp/apigee/outputs.py +92 -88
- pulumi_gcp/artifactregistry/__init__.py +1 -0
- pulumi_gcp/artifactregistry/_inputs.py +0 -12
- pulumi_gcp/artifactregistry/get_npm_package.py +251 -0
- pulumi_gcp/artifactregistry/outputs.py +8 -16
- pulumi_gcp/beyondcorp/__init__.py +0 -5
- pulumi_gcp/beyondcorp/_inputs.py +0 -312
- pulumi_gcp/beyondcorp/outputs.py +0 -200
- pulumi_gcp/bigquery/_inputs.py +114 -4
- pulumi_gcp/bigquery/app_profile.py +52 -19
- pulumi_gcp/bigquery/dataset_access.py +8 -4
- pulumi_gcp/bigquery/outputs.py +75 -5
- pulumi_gcp/bigquery/table.py +21 -7
- pulumi_gcp/bigtable/app_profile.py +50 -15
- pulumi_gcp/bigtable/get_table_iam_policy.py +16 -18
- pulumi_gcp/bigtable/table.py +42 -42
- pulumi_gcp/bigtable/table_iam_binding.py +43 -43
- pulumi_gcp/bigtable/table_iam_member.py +43 -43
- pulumi_gcp/bigtable/table_iam_policy.py +43 -43
- pulumi_gcp/billing/_inputs.py +0 -6
- pulumi_gcp/billing/outputs.py +0 -4
- pulumi_gcp/certificatemanager/__init__.py +1 -0
- pulumi_gcp/certificatemanager/get_dns_authorization.py +229 -0
- pulumi_gcp/certificatemanager/outputs.py +41 -0
- pulumi_gcp/cloudbuild/_inputs.py +289 -45
- pulumi_gcp/cloudbuild/bitbucket_server_config.py +2 -6
- pulumi_gcp/cloudbuild/get_trigger.py +12 -1
- pulumi_gcp/cloudbuild/outputs.py +366 -30
- pulumi_gcp/cloudbuild/trigger.py +156 -0
- pulumi_gcp/cloudbuild/worker_pool.py +23 -34
- pulumi_gcp/cloudfunctions/function.py +8 -4
- pulumi_gcp/cloudfunctionsv2/_inputs.py +23 -21
- pulumi_gcp/cloudfunctionsv2/outputs.py +17 -16
- pulumi_gcp/cloudrunv2/_inputs.py +23 -26
- pulumi_gcp/cloudrunv2/outputs.py +28 -30
- pulumi_gcp/cloudrunv2/service.py +18 -12
- pulumi_gcp/cloudtasks/queue.py +98 -2
- pulumi_gcp/colab/_inputs.py +1 -114
- pulumi_gcp/colab/outputs.py +1 -106
- pulumi_gcp/composer/environment.py +49 -28
- pulumi_gcp/compute/_inputs.py +80 -0
- pulumi_gcp/compute/backend_bucket.py +54 -0
- pulumi_gcp/compute/backend_service.py +54 -0
- pulumi_gcp/compute/get_backend_bucket.py +12 -1
- pulumi_gcp/compute/get_backend_service.py +12 -1
- pulumi_gcp/compute/instance_from_machine_image.py +110 -75
- pulumi_gcp/compute/instance_from_template.py +110 -75
- pulumi_gcp/compute/instance_group_manager.py +14 -7
- pulumi_gcp/compute/instance_template.py +14 -7
- pulumi_gcp/compute/interconnect.py +8 -4
- pulumi_gcp/compute/network_peering_routes_config.py +0 -100
- pulumi_gcp/compute/organization_security_policy.py +83 -51
- pulumi_gcp/compute/outputs.py +128 -0
- pulumi_gcp/compute/packet_mirroring.py +6 -0
- pulumi_gcp/compute/region_instance_group_manager.py +14 -7
- pulumi_gcp/compute/subnetwork.py +0 -98
- pulumi_gcp/config/__init__.pyi +2 -2
- pulumi_gcp/config/vars.py +4 -4
- pulumi_gcp/container/_inputs.py +20 -0
- pulumi_gcp/container/aws_cluster.py +42 -28
- pulumi_gcp/container/aws_node_pool.py +42 -28
- pulumi_gcp/container/azure_cluster.py +70 -35
- pulumi_gcp/container/azure_node_pool.py +42 -28
- pulumi_gcp/container/outputs.py +25 -0
- pulumi_gcp/databasemigrationservice/connection_profile.py +4 -2
- pulumi_gcp/databasemigrationservice/migration_job.py +4 -2
- pulumi_gcp/dataplex/asset.py +21 -28
- pulumi_gcp/dataplex/zone.py +21 -28
- pulumi_gcp/dataproc/cluster.py +14 -21
- pulumi_gcp/dataproc/workflow_template.py +105 -42
- pulumi_gcp/diagflow/_inputs.py +152 -0
- pulumi_gcp/diagflow/cx_agent.py +425 -0
- pulumi_gcp/diagflow/outputs.py +143 -0
- pulumi_gcp/firebase/app_check_play_integrity_config.py +4 -8
- pulumi_gcp/firebase/app_check_recaptcha_enterprise_config.py +2 -4
- pulumi_gcp/firebase/app_check_service_config.py +6 -12
- pulumi_gcp/firebase/app_hosting_backend.py +4 -8
- pulumi_gcp/firebase/app_hosting_build.py +4 -8
- pulumi_gcp/firebase/app_hosting_traffic.py +6 -12
- pulumi_gcp/firebase/data_connect_service.py +4 -8
- pulumi_gcp/firebase/database_instance.py +4 -8
- pulumi_gcp/gkehub/_inputs.py +0 -60
- pulumi_gcp/gkehub/get_membership.py +1 -12
- pulumi_gcp/gkehub/membership.py +0 -70
- pulumi_gcp/gkehub/outputs.py +0 -36
- pulumi_gcp/iap/__init__.py +4 -0
- pulumi_gcp/iap/_inputs.py +130 -0
- pulumi_gcp/iap/get_web_region_forwarding_rule_service_iam_policy.py +182 -0
- pulumi_gcp/iap/outputs.py +76 -0
- pulumi_gcp/{beyondcorp/application_iam_binding.py → iap/web_region_forwarding_rule_service_iam_binding.py} +321 -314
- pulumi_gcp/{beyondcorp/application_iam_member.py → iap/web_region_forwarding_rule_service_iam_member.py} +321 -314
- pulumi_gcp/iap/web_region_forwarding_rule_service_iam_policy.py +910 -0
- pulumi_gcp/kms/autokey_config.py +0 -2
- pulumi_gcp/kms/key_handle.py +0 -2
- pulumi_gcp/logging/billing_account_bucket_config.py +21 -7
- pulumi_gcp/logging/folder_bucket_config.py +21 -7
- pulumi_gcp/logging/organization_bucket_config.py +21 -7
- pulumi_gcp/memorystore/get_instance.py +1 -12
- pulumi_gcp/memorystore/instance.py +0 -70
- pulumi_gcp/monitoring/dashboard.py +14 -7
- pulumi_gcp/networkservices/lb_traffic_extension.py +24 -23
- pulumi_gcp/notebooks/__init__.py +0 -1
- pulumi_gcp/oracledatabase/cloud_vm_cluster.py +3 -3
- pulumi_gcp/organizations/project.py +21 -7
- pulumi_gcp/projects/service.py +2 -4
- pulumi_gcp/provider.py +20 -20
- pulumi_gcp/pulumi-plugin.json +1 -1
- pulumi_gcp/redis/cluster.py +0 -70
- pulumi_gcp/redis/get_cluster.py +1 -12
- pulumi_gcp/saasruntime/__init__.py +11 -0
- pulumi_gcp/saasruntime/_inputs.py +55 -0
- pulumi_gcp/saasruntime/outputs.py +39 -0
- pulumi_gcp/saasruntime/saa_s.py +815 -0
- pulumi_gcp/securesourcemanager/_inputs.py +20 -19
- pulumi_gcp/securesourcemanager/outputs.py +15 -14
- pulumi_gcp/serviceaccount/get_account_key.py +1 -21
- pulumi_gcp/sql/database_instance.py +61 -7
- pulumi_gcp/sql/get_database_instance.py +12 -1
- pulumi_gcp/sql/outputs.py +11 -0
- pulumi_gcp/sql/user.py +61 -0
- pulumi_gcp/storage/_inputs.py +7 -7
- pulumi_gcp/storage/bucket.py +14 -7
- pulumi_gcp/storage/outputs.py +7 -7
- pulumi_gcp/tpu/__init__.py +0 -2
- pulumi_gcp/tpu/_inputs.py +0 -93
- pulumi_gcp/tpu/outputs.py +0 -72
- pulumi_gcp/vertex/_inputs.py +8 -9
- pulumi_gcp/vertex/ai_endpoint.py +2 -4
- pulumi_gcp/vertex/ai_feature_online_store_featureview.py +0 -2
- pulumi_gcp/vertex/ai_index.py +24 -23
- pulumi_gcp/vertex/outputs.py +7 -8
- {pulumi_gcp-8.42.0a1756925793.dist-info → pulumi_gcp-9.0.0a1.dist-info}/METADATA +1 -1
- {pulumi_gcp-8.42.0a1756925793.dist-info → pulumi_gcp-9.0.0a1.dist-info}/RECORD +143 -141
- pulumi_gcp/beyondcorp/application.py +0 -746
- pulumi_gcp/beyondcorp/application_iam_policy.py +0 -903
- pulumi_gcp/beyondcorp/get_application_iam_policy.py +0 -182
- pulumi_gcp/notebooks/location.py +0 -285
- pulumi_gcp/tpu/get_tensorflow_versions.py +0 -184
- pulumi_gcp/tpu/node.py +0 -1062
- {pulumi_gcp-8.42.0a1756925793.dist-info → pulumi_gcp-9.0.0a1.dist-info}/WHEEL +0 -0
- {pulumi_gcp-8.42.0a1756925793.dist-info → pulumi_gcp-9.0.0a1.dist-info}/top_level.txt +0 -0
@@ -1,182 +0,0 @@
|
|
1
|
-
# coding=utf-8
|
2
|
-
# *** WARNING: this file was generated by pulumi-language-python. ***
|
3
|
-
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
|
-
|
5
|
-
import builtins as _builtins
|
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
|
-
'GetApplicationIamPolicyResult',
|
19
|
-
'AwaitableGetApplicationIamPolicyResult',
|
20
|
-
'get_application_iam_policy',
|
21
|
-
'get_application_iam_policy_output',
|
22
|
-
]
|
23
|
-
|
24
|
-
@pulumi.output_type
|
25
|
-
class GetApplicationIamPolicyResult:
|
26
|
-
"""
|
27
|
-
A collection of values returned by getApplicationIamPolicy.
|
28
|
-
"""
|
29
|
-
def __init__(__self__, application_id=None, etag=None, id=None, policy_data=None, project=None, security_gateways_id=None):
|
30
|
-
if application_id and not isinstance(application_id, str):
|
31
|
-
raise TypeError("Expected argument 'application_id' to be a str")
|
32
|
-
pulumi.set(__self__, "application_id", application_id)
|
33
|
-
if etag and not isinstance(etag, str):
|
34
|
-
raise TypeError("Expected argument 'etag' to be a str")
|
35
|
-
pulumi.set(__self__, "etag", etag)
|
36
|
-
if id and not isinstance(id, str):
|
37
|
-
raise TypeError("Expected argument 'id' to be a str")
|
38
|
-
pulumi.set(__self__, "id", id)
|
39
|
-
if policy_data and not isinstance(policy_data, str):
|
40
|
-
raise TypeError("Expected argument 'policy_data' to be a str")
|
41
|
-
pulumi.set(__self__, "policy_data", policy_data)
|
42
|
-
if project and not isinstance(project, str):
|
43
|
-
raise TypeError("Expected argument 'project' to be a str")
|
44
|
-
pulumi.set(__self__, "project", project)
|
45
|
-
if security_gateways_id and not isinstance(security_gateways_id, str):
|
46
|
-
raise TypeError("Expected argument 'security_gateways_id' to be a str")
|
47
|
-
pulumi.set(__self__, "security_gateways_id", security_gateways_id)
|
48
|
-
|
49
|
-
@_builtins.property
|
50
|
-
@pulumi.getter(name="applicationId")
|
51
|
-
def application_id(self) -> _builtins.str:
|
52
|
-
return pulumi.get(self, "application_id")
|
53
|
-
|
54
|
-
@_builtins.property
|
55
|
-
@pulumi.getter
|
56
|
-
def etag(self) -> _builtins.str:
|
57
|
-
"""
|
58
|
-
(Computed) The etag of the IAM policy.
|
59
|
-
"""
|
60
|
-
return pulumi.get(self, "etag")
|
61
|
-
|
62
|
-
@_builtins.property
|
63
|
-
@pulumi.getter
|
64
|
-
def id(self) -> _builtins.str:
|
65
|
-
"""
|
66
|
-
The provider-assigned unique ID for this managed resource.
|
67
|
-
"""
|
68
|
-
return pulumi.get(self, "id")
|
69
|
-
|
70
|
-
@_builtins.property
|
71
|
-
@pulumi.getter(name="policyData")
|
72
|
-
def policy_data(self) -> _builtins.str:
|
73
|
-
"""
|
74
|
-
(Required only by `beyondcorp.ApplicationIamPolicy`) The policy data generated by
|
75
|
-
a `organizations_get_iam_policy` data source.
|
76
|
-
"""
|
77
|
-
return pulumi.get(self, "policy_data")
|
78
|
-
|
79
|
-
@_builtins.property
|
80
|
-
@pulumi.getter
|
81
|
-
def project(self) -> _builtins.str:
|
82
|
-
return pulumi.get(self, "project")
|
83
|
-
|
84
|
-
@_builtins.property
|
85
|
-
@pulumi.getter(name="securityGatewaysId")
|
86
|
-
def security_gateways_id(self) -> _builtins.str:
|
87
|
-
return pulumi.get(self, "security_gateways_id")
|
88
|
-
|
89
|
-
|
90
|
-
class AwaitableGetApplicationIamPolicyResult(GetApplicationIamPolicyResult):
|
91
|
-
# pylint: disable=using-constant-test
|
92
|
-
def __await__(self):
|
93
|
-
if False:
|
94
|
-
yield self
|
95
|
-
return GetApplicationIamPolicyResult(
|
96
|
-
application_id=self.application_id,
|
97
|
-
etag=self.etag,
|
98
|
-
id=self.id,
|
99
|
-
policy_data=self.policy_data,
|
100
|
-
project=self.project,
|
101
|
-
security_gateways_id=self.security_gateways_id)
|
102
|
-
|
103
|
-
|
104
|
-
def get_application_iam_policy(application_id: Optional[_builtins.str] = None,
|
105
|
-
project: Optional[_builtins.str] = None,
|
106
|
-
security_gateways_id: Optional[_builtins.str] = None,
|
107
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetApplicationIamPolicyResult:
|
108
|
-
"""
|
109
|
-
> **Warning:** `beyondcorp.Application` and associated IAM resources are deprecated. Use `beyondcorp.SecurityGatewayApplication` instead.
|
110
|
-
|
111
|
-
Retrieves the current IAM policy data for application
|
112
|
-
|
113
|
-
## Example Usage
|
114
|
-
|
115
|
-
```python
|
116
|
-
import pulumi
|
117
|
-
import pulumi_gcp as gcp
|
118
|
-
|
119
|
-
policy = gcp.beyondcorp.get_application_iam_policy(project=example["project"],
|
120
|
-
security_gateways_id=example["securityGatewaysId"],
|
121
|
-
application_id=example["applicationId"])
|
122
|
-
```
|
123
|
-
|
124
|
-
|
125
|
-
:param _builtins.str application_id: Used to find the parent resource to bind the IAM policy to
|
126
|
-
:param _builtins.str project: The ID of the project in which the resource belongs.
|
127
|
-
If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
|
128
|
-
:param _builtins.str security_gateways_id: Part of `parent`. See documentation of `projectsId`. Used to find the parent resource to bind the IAM policy to
|
129
|
-
"""
|
130
|
-
__args__ = dict()
|
131
|
-
__args__['applicationId'] = application_id
|
132
|
-
__args__['project'] = project
|
133
|
-
__args__['securityGatewaysId'] = security_gateways_id
|
134
|
-
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
135
|
-
__ret__ = pulumi.runtime.invoke('gcp:beyondcorp/getApplicationIamPolicy:getApplicationIamPolicy', __args__, opts=opts, typ=GetApplicationIamPolicyResult).value
|
136
|
-
|
137
|
-
return AwaitableGetApplicationIamPolicyResult(
|
138
|
-
application_id=pulumi.get(__ret__, 'application_id'),
|
139
|
-
etag=pulumi.get(__ret__, 'etag'),
|
140
|
-
id=pulumi.get(__ret__, 'id'),
|
141
|
-
policy_data=pulumi.get(__ret__, 'policy_data'),
|
142
|
-
project=pulumi.get(__ret__, 'project'),
|
143
|
-
security_gateways_id=pulumi.get(__ret__, 'security_gateways_id'))
|
144
|
-
def get_application_iam_policy_output(application_id: Optional[pulumi.Input[_builtins.str]] = None,
|
145
|
-
project: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
146
|
-
security_gateways_id: Optional[pulumi.Input[_builtins.str]] = None,
|
147
|
-
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetApplicationIamPolicyResult]:
|
148
|
-
"""
|
149
|
-
> **Warning:** `beyondcorp.Application` and associated IAM resources are deprecated. Use `beyondcorp.SecurityGatewayApplication` instead.
|
150
|
-
|
151
|
-
Retrieves the current IAM policy data for application
|
152
|
-
|
153
|
-
## Example Usage
|
154
|
-
|
155
|
-
```python
|
156
|
-
import pulumi
|
157
|
-
import pulumi_gcp as gcp
|
158
|
-
|
159
|
-
policy = gcp.beyondcorp.get_application_iam_policy(project=example["project"],
|
160
|
-
security_gateways_id=example["securityGatewaysId"],
|
161
|
-
application_id=example["applicationId"])
|
162
|
-
```
|
163
|
-
|
164
|
-
|
165
|
-
:param _builtins.str application_id: Used to find the parent resource to bind the IAM policy to
|
166
|
-
:param _builtins.str project: The ID of the project in which the resource belongs.
|
167
|
-
If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
|
168
|
-
:param _builtins.str security_gateways_id: Part of `parent`. See documentation of `projectsId`. Used to find the parent resource to bind the IAM policy to
|
169
|
-
"""
|
170
|
-
__args__ = dict()
|
171
|
-
__args__['applicationId'] = application_id
|
172
|
-
__args__['project'] = project
|
173
|
-
__args__['securityGatewaysId'] = security_gateways_id
|
174
|
-
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
175
|
-
__ret__ = pulumi.runtime.invoke_output('gcp:beyondcorp/getApplicationIamPolicy:getApplicationIamPolicy', __args__, opts=opts, typ=GetApplicationIamPolicyResult)
|
176
|
-
return __ret__.apply(lambda __response__: GetApplicationIamPolicyResult(
|
177
|
-
application_id=pulumi.get(__response__, 'application_id'),
|
178
|
-
etag=pulumi.get(__response__, 'etag'),
|
179
|
-
id=pulumi.get(__response__, 'id'),
|
180
|
-
policy_data=pulumi.get(__response__, 'policy_data'),
|
181
|
-
project=pulumi.get(__response__, 'project'),
|
182
|
-
security_gateways_id=pulumi.get(__response__, 'security_gateways_id')))
|
pulumi_gcp/notebooks/location.py
DELETED
@@ -1,285 +0,0 @@
|
|
1
|
-
# coding=utf-8
|
2
|
-
# *** WARNING: this file was generated by pulumi-language-python. ***
|
3
|
-
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
|
-
|
5
|
-
import builtins as _builtins
|
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__ = ['LocationArgs', 'Location']
|
18
|
-
|
19
|
-
@pulumi.input_type
|
20
|
-
class LocationArgs:
|
21
|
-
def __init__(__self__, *,
|
22
|
-
name: Optional[pulumi.Input[_builtins.str]] = None,
|
23
|
-
project: Optional[pulumi.Input[_builtins.str]] = None):
|
24
|
-
"""
|
25
|
-
The set of arguments for constructing a Location resource.
|
26
|
-
:param pulumi.Input[_builtins.str] name: Name of the Location resource.
|
27
|
-
:param pulumi.Input[_builtins.str] project: The ID of the project in which the resource belongs.
|
28
|
-
If it is not provided, the provider project is used.
|
29
|
-
"""
|
30
|
-
if name is not None:
|
31
|
-
pulumi.set(__self__, "name", name)
|
32
|
-
if project is not None:
|
33
|
-
pulumi.set(__self__, "project", project)
|
34
|
-
|
35
|
-
@_builtins.property
|
36
|
-
@pulumi.getter
|
37
|
-
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
38
|
-
"""
|
39
|
-
Name of the Location resource.
|
40
|
-
"""
|
41
|
-
return pulumi.get(self, "name")
|
42
|
-
|
43
|
-
@name.setter
|
44
|
-
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
45
|
-
pulumi.set(self, "name", value)
|
46
|
-
|
47
|
-
@_builtins.property
|
48
|
-
@pulumi.getter
|
49
|
-
def project(self) -> Optional[pulumi.Input[_builtins.str]]:
|
50
|
-
"""
|
51
|
-
The ID of the project in which the resource belongs.
|
52
|
-
If it is not provided, the provider project is used.
|
53
|
-
"""
|
54
|
-
return pulumi.get(self, "project")
|
55
|
-
|
56
|
-
@project.setter
|
57
|
-
def project(self, value: Optional[pulumi.Input[_builtins.str]]):
|
58
|
-
pulumi.set(self, "project", value)
|
59
|
-
|
60
|
-
|
61
|
-
@pulumi.input_type
|
62
|
-
class _LocationState:
|
63
|
-
def __init__(__self__, *,
|
64
|
-
name: Optional[pulumi.Input[_builtins.str]] = None,
|
65
|
-
project: Optional[pulumi.Input[_builtins.str]] = None,
|
66
|
-
self_link: Optional[pulumi.Input[_builtins.str]] = None):
|
67
|
-
"""
|
68
|
-
Input properties used for looking up and filtering Location resources.
|
69
|
-
:param pulumi.Input[_builtins.str] name: Name of the Location resource.
|
70
|
-
:param pulumi.Input[_builtins.str] project: The ID of the project in which the resource belongs.
|
71
|
-
If it is not provided, the provider project is used.
|
72
|
-
:param pulumi.Input[_builtins.str] self_link: The URI of the created resource.
|
73
|
-
"""
|
74
|
-
if name is not None:
|
75
|
-
pulumi.set(__self__, "name", name)
|
76
|
-
if project is not None:
|
77
|
-
pulumi.set(__self__, "project", project)
|
78
|
-
if self_link is not None:
|
79
|
-
pulumi.set(__self__, "self_link", self_link)
|
80
|
-
|
81
|
-
@_builtins.property
|
82
|
-
@pulumi.getter
|
83
|
-
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
84
|
-
"""
|
85
|
-
Name of the Location resource.
|
86
|
-
"""
|
87
|
-
return pulumi.get(self, "name")
|
88
|
-
|
89
|
-
@name.setter
|
90
|
-
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
91
|
-
pulumi.set(self, "name", value)
|
92
|
-
|
93
|
-
@_builtins.property
|
94
|
-
@pulumi.getter
|
95
|
-
def project(self) -> Optional[pulumi.Input[_builtins.str]]:
|
96
|
-
"""
|
97
|
-
The ID of the project in which the resource belongs.
|
98
|
-
If it is not provided, the provider project is used.
|
99
|
-
"""
|
100
|
-
return pulumi.get(self, "project")
|
101
|
-
|
102
|
-
@project.setter
|
103
|
-
def project(self, value: Optional[pulumi.Input[_builtins.str]]):
|
104
|
-
pulumi.set(self, "project", value)
|
105
|
-
|
106
|
-
@_builtins.property
|
107
|
-
@pulumi.getter(name="selfLink")
|
108
|
-
def self_link(self) -> Optional[pulumi.Input[_builtins.str]]:
|
109
|
-
"""
|
110
|
-
The URI of the created resource.
|
111
|
-
"""
|
112
|
-
return pulumi.get(self, "self_link")
|
113
|
-
|
114
|
-
@self_link.setter
|
115
|
-
def self_link(self, value: Optional[pulumi.Input[_builtins.str]]):
|
116
|
-
pulumi.set(self, "self_link", value)
|
117
|
-
|
118
|
-
|
119
|
-
@pulumi.type_token("gcp:notebooks/location:Location")
|
120
|
-
class Location(pulumi.CustomResource):
|
121
|
-
@overload
|
122
|
-
def __init__(__self__,
|
123
|
-
resource_name: str,
|
124
|
-
opts: Optional[pulumi.ResourceOptions] = None,
|
125
|
-
name: Optional[pulumi.Input[_builtins.str]] = None,
|
126
|
-
project: Optional[pulumi.Input[_builtins.str]] = None,
|
127
|
-
__props__=None):
|
128
|
-
"""
|
129
|
-
> **Warning:** `notebooks.Location` is deprecated and will be removed in a future major release. This resource is not functional.
|
130
|
-
|
131
|
-
Represents a Location resource.
|
132
|
-
|
133
|
-
## Import
|
134
|
-
|
135
|
-
Location can be imported using any of these accepted formats:
|
136
|
-
|
137
|
-
* `projects/{{project}}/locations/{{name}}`
|
138
|
-
|
139
|
-
* `{{project}}/{{name}}`
|
140
|
-
|
141
|
-
* `{{name}}`
|
142
|
-
|
143
|
-
When using the `pulumi import` command, Location can be imported using one of the formats above. For example:
|
144
|
-
|
145
|
-
```sh
|
146
|
-
$ pulumi import gcp:notebooks/location:Location default projects/{{project}}/locations/{{name}}
|
147
|
-
```
|
148
|
-
|
149
|
-
```sh
|
150
|
-
$ pulumi import gcp:notebooks/location:Location default {{project}}/{{name}}
|
151
|
-
```
|
152
|
-
|
153
|
-
```sh
|
154
|
-
$ pulumi import gcp:notebooks/location:Location default {{name}}
|
155
|
-
```
|
156
|
-
|
157
|
-
:param str resource_name: The name of the resource.
|
158
|
-
:param pulumi.ResourceOptions opts: Options for the resource.
|
159
|
-
:param pulumi.Input[_builtins.str] name: Name of the Location resource.
|
160
|
-
:param pulumi.Input[_builtins.str] project: The ID of the project in which the resource belongs.
|
161
|
-
If it is not provided, the provider project is used.
|
162
|
-
"""
|
163
|
-
...
|
164
|
-
@overload
|
165
|
-
def __init__(__self__,
|
166
|
-
resource_name: str,
|
167
|
-
args: Optional[LocationArgs] = None,
|
168
|
-
opts: Optional[pulumi.ResourceOptions] = None):
|
169
|
-
"""
|
170
|
-
> **Warning:** `notebooks.Location` is deprecated and will be removed in a future major release. This resource is not functional.
|
171
|
-
|
172
|
-
Represents a Location resource.
|
173
|
-
|
174
|
-
## Import
|
175
|
-
|
176
|
-
Location can be imported using any of these accepted formats:
|
177
|
-
|
178
|
-
* `projects/{{project}}/locations/{{name}}`
|
179
|
-
|
180
|
-
* `{{project}}/{{name}}`
|
181
|
-
|
182
|
-
* `{{name}}`
|
183
|
-
|
184
|
-
When using the `pulumi import` command, Location can be imported using one of the formats above. For example:
|
185
|
-
|
186
|
-
```sh
|
187
|
-
$ pulumi import gcp:notebooks/location:Location default projects/{{project}}/locations/{{name}}
|
188
|
-
```
|
189
|
-
|
190
|
-
```sh
|
191
|
-
$ pulumi import gcp:notebooks/location:Location default {{project}}/{{name}}
|
192
|
-
```
|
193
|
-
|
194
|
-
```sh
|
195
|
-
$ pulumi import gcp:notebooks/location:Location default {{name}}
|
196
|
-
```
|
197
|
-
|
198
|
-
:param str resource_name: The name of the resource.
|
199
|
-
:param LocationArgs args: The arguments to use to populate this resource's properties.
|
200
|
-
:param pulumi.ResourceOptions opts: Options for the resource.
|
201
|
-
"""
|
202
|
-
...
|
203
|
-
def __init__(__self__, resource_name: str, *args, **kwargs):
|
204
|
-
resource_args, opts = _utilities.get_resource_args_opts(LocationArgs, pulumi.ResourceOptions, *args, **kwargs)
|
205
|
-
if resource_args is not None:
|
206
|
-
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
207
|
-
else:
|
208
|
-
__self__._internal_init(resource_name, *args, **kwargs)
|
209
|
-
|
210
|
-
def _internal_init(__self__,
|
211
|
-
resource_name: str,
|
212
|
-
opts: Optional[pulumi.ResourceOptions] = None,
|
213
|
-
name: Optional[pulumi.Input[_builtins.str]] = None,
|
214
|
-
project: Optional[pulumi.Input[_builtins.str]] = None,
|
215
|
-
__props__=None):
|
216
|
-
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
217
|
-
if not isinstance(opts, pulumi.ResourceOptions):
|
218
|
-
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
219
|
-
if opts.id is None:
|
220
|
-
if __props__ is not None:
|
221
|
-
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
222
|
-
__props__ = LocationArgs.__new__(LocationArgs)
|
223
|
-
|
224
|
-
__props__.__dict__["name"] = name
|
225
|
-
__props__.__dict__["project"] = project
|
226
|
-
__props__.__dict__["self_link"] = None
|
227
|
-
super(Location, __self__).__init__(
|
228
|
-
'gcp:notebooks/location:Location',
|
229
|
-
resource_name,
|
230
|
-
__props__,
|
231
|
-
opts)
|
232
|
-
|
233
|
-
@staticmethod
|
234
|
-
def get(resource_name: str,
|
235
|
-
id: pulumi.Input[str],
|
236
|
-
opts: Optional[pulumi.ResourceOptions] = None,
|
237
|
-
name: Optional[pulumi.Input[_builtins.str]] = None,
|
238
|
-
project: Optional[pulumi.Input[_builtins.str]] = None,
|
239
|
-
self_link: Optional[pulumi.Input[_builtins.str]] = None) -> 'Location':
|
240
|
-
"""
|
241
|
-
Get an existing Location resource's state with the given name, id, and optional extra
|
242
|
-
properties used to qualify the lookup.
|
243
|
-
|
244
|
-
:param str resource_name: The unique name of the resulting resource.
|
245
|
-
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
246
|
-
:param pulumi.ResourceOptions opts: Options for the resource.
|
247
|
-
:param pulumi.Input[_builtins.str] name: Name of the Location resource.
|
248
|
-
:param pulumi.Input[_builtins.str] project: The ID of the project in which the resource belongs.
|
249
|
-
If it is not provided, the provider project is used.
|
250
|
-
:param pulumi.Input[_builtins.str] self_link: The URI of the created resource.
|
251
|
-
"""
|
252
|
-
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
253
|
-
|
254
|
-
__props__ = _LocationState.__new__(_LocationState)
|
255
|
-
|
256
|
-
__props__.__dict__["name"] = name
|
257
|
-
__props__.__dict__["project"] = project
|
258
|
-
__props__.__dict__["self_link"] = self_link
|
259
|
-
return Location(resource_name, opts=opts, __props__=__props__)
|
260
|
-
|
261
|
-
@_builtins.property
|
262
|
-
@pulumi.getter
|
263
|
-
def name(self) -> pulumi.Output[_builtins.str]:
|
264
|
-
"""
|
265
|
-
Name of the Location resource.
|
266
|
-
"""
|
267
|
-
return pulumi.get(self, "name")
|
268
|
-
|
269
|
-
@_builtins.property
|
270
|
-
@pulumi.getter
|
271
|
-
def project(self) -> pulumi.Output[_builtins.str]:
|
272
|
-
"""
|
273
|
-
The ID of the project in which the resource belongs.
|
274
|
-
If it is not provided, the provider project is used.
|
275
|
-
"""
|
276
|
-
return pulumi.get(self, "project")
|
277
|
-
|
278
|
-
@_builtins.property
|
279
|
-
@pulumi.getter(name="selfLink")
|
280
|
-
def self_link(self) -> pulumi.Output[_builtins.str]:
|
281
|
-
"""
|
282
|
-
The URI of the created resource.
|
283
|
-
"""
|
284
|
-
return pulumi.get(self, "self_link")
|
285
|
-
|
@@ -1,184 +0,0 @@
|
|
1
|
-
# coding=utf-8
|
2
|
-
# *** WARNING: this file was generated by pulumi-language-python. ***
|
3
|
-
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
|
-
|
5
|
-
import builtins as _builtins
|
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
|
-
'GetTensorflowVersionsResult',
|
19
|
-
'AwaitableGetTensorflowVersionsResult',
|
20
|
-
'get_tensorflow_versions',
|
21
|
-
'get_tensorflow_versions_output',
|
22
|
-
]
|
23
|
-
|
24
|
-
@pulumi.output_type
|
25
|
-
class GetTensorflowVersionsResult:
|
26
|
-
"""
|
27
|
-
A collection of values returned by getTensorflowVersions.
|
28
|
-
"""
|
29
|
-
def __init__(__self__, id=None, project=None, versions=None, zone=None):
|
30
|
-
if id and not isinstance(id, str):
|
31
|
-
raise TypeError("Expected argument 'id' to be a str")
|
32
|
-
pulumi.set(__self__, "id", id)
|
33
|
-
if project and not isinstance(project, str):
|
34
|
-
raise TypeError("Expected argument 'project' to be a str")
|
35
|
-
pulumi.set(__self__, "project", project)
|
36
|
-
if versions and not isinstance(versions, list):
|
37
|
-
raise TypeError("Expected argument 'versions' to be a list")
|
38
|
-
pulumi.set(__self__, "versions", versions)
|
39
|
-
if zone and not isinstance(zone, str):
|
40
|
-
raise TypeError("Expected argument 'zone' to be a str")
|
41
|
-
pulumi.set(__self__, "zone", zone)
|
42
|
-
|
43
|
-
@_builtins.property
|
44
|
-
@pulumi.getter
|
45
|
-
def id(self) -> _builtins.str:
|
46
|
-
"""
|
47
|
-
The provider-assigned unique ID for this managed resource.
|
48
|
-
"""
|
49
|
-
return pulumi.get(self, "id")
|
50
|
-
|
51
|
-
@_builtins.property
|
52
|
-
@pulumi.getter
|
53
|
-
def project(self) -> _builtins.str:
|
54
|
-
return pulumi.get(self, "project")
|
55
|
-
|
56
|
-
@_builtins.property
|
57
|
-
@pulumi.getter
|
58
|
-
def versions(self) -> Sequence[_builtins.str]:
|
59
|
-
"""
|
60
|
-
The list of TensorFlow versions available for the given project and zone.
|
61
|
-
"""
|
62
|
-
return pulumi.get(self, "versions")
|
63
|
-
|
64
|
-
@_builtins.property
|
65
|
-
@pulumi.getter
|
66
|
-
def zone(self) -> _builtins.str:
|
67
|
-
return pulumi.get(self, "zone")
|
68
|
-
|
69
|
-
|
70
|
-
class AwaitableGetTensorflowVersionsResult(GetTensorflowVersionsResult):
|
71
|
-
# pylint: disable=using-constant-test
|
72
|
-
def __await__(self):
|
73
|
-
if False:
|
74
|
-
yield self
|
75
|
-
return GetTensorflowVersionsResult(
|
76
|
-
id=self.id,
|
77
|
-
project=self.project,
|
78
|
-
versions=self.versions,
|
79
|
-
zone=self.zone)
|
80
|
-
|
81
|
-
|
82
|
-
def get_tensorflow_versions(project: Optional[_builtins.str] = None,
|
83
|
-
zone: Optional[_builtins.str] = None,
|
84
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetTensorflowVersionsResult:
|
85
|
-
"""
|
86
|
-
> **Warning:**
|
87
|
-
`tpu_get_tensorflow_versions` is deprecated and will be removed in a future major release.
|
88
|
-
Use `tpu_get_v2_runtime_versions` instead. For moving from TPU Node to TPU VM architecture, see
|
89
|
-
https://cloud.google.com/tpu/docs/system-architecture-tpu-vm#from-tpu-node-to-tpu-vm.
|
90
|
-
|
91
|
-
Get TensorFlow versions available for a project. For more information see the [official documentation](https://cloud.google.com/tpu/docs/) and [API](https://cloud.google.com/tpu/docs/reference/rest/v1/projects.locations.tensorflowVersions).
|
92
|
-
|
93
|
-
## Example Usage
|
94
|
-
|
95
|
-
```python
|
96
|
-
import pulumi
|
97
|
-
import pulumi_gcp as gcp
|
98
|
-
|
99
|
-
available = gcp.tpu.get_tensorflow_versions()
|
100
|
-
```
|
101
|
-
|
102
|
-
### Configure Basic TPU Node With Available Version
|
103
|
-
|
104
|
-
```python
|
105
|
-
import pulumi
|
106
|
-
import pulumi_gcp as gcp
|
107
|
-
|
108
|
-
available = gcp.tpu.get_tensorflow_versions()
|
109
|
-
tpu = gcp.tpu.Node("tpu",
|
110
|
-
name="test-tpu",
|
111
|
-
zone="us-central1-b",
|
112
|
-
accelerator_type="v3-8",
|
113
|
-
tensorflow_version=available.versions[0],
|
114
|
-
cidr_block="10.2.0.0/29")
|
115
|
-
```
|
116
|
-
|
117
|
-
|
118
|
-
:param _builtins.str project: The project to list versions for. If it
|
119
|
-
is not provided, the provider project is used.
|
120
|
-
:param _builtins.str zone: The zone to list versions for. If it
|
121
|
-
is not provided, the provider zone is used.
|
122
|
-
"""
|
123
|
-
__args__ = dict()
|
124
|
-
__args__['project'] = project
|
125
|
-
__args__['zone'] = zone
|
126
|
-
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
127
|
-
__ret__ = pulumi.runtime.invoke('gcp:tpu/getTensorflowVersions:getTensorflowVersions', __args__, opts=opts, typ=GetTensorflowVersionsResult).value
|
128
|
-
|
129
|
-
return AwaitableGetTensorflowVersionsResult(
|
130
|
-
id=pulumi.get(__ret__, 'id'),
|
131
|
-
project=pulumi.get(__ret__, 'project'),
|
132
|
-
versions=pulumi.get(__ret__, 'versions'),
|
133
|
-
zone=pulumi.get(__ret__, 'zone'))
|
134
|
-
def get_tensorflow_versions_output(project: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
135
|
-
zone: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
136
|
-
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetTensorflowVersionsResult]:
|
137
|
-
"""
|
138
|
-
> **Warning:**
|
139
|
-
`tpu_get_tensorflow_versions` is deprecated and will be removed in a future major release.
|
140
|
-
Use `tpu_get_v2_runtime_versions` instead. For moving from TPU Node to TPU VM architecture, see
|
141
|
-
https://cloud.google.com/tpu/docs/system-architecture-tpu-vm#from-tpu-node-to-tpu-vm.
|
142
|
-
|
143
|
-
Get TensorFlow versions available for a project. For more information see the [official documentation](https://cloud.google.com/tpu/docs/) and [API](https://cloud.google.com/tpu/docs/reference/rest/v1/projects.locations.tensorflowVersions).
|
144
|
-
|
145
|
-
## Example Usage
|
146
|
-
|
147
|
-
```python
|
148
|
-
import pulumi
|
149
|
-
import pulumi_gcp as gcp
|
150
|
-
|
151
|
-
available = gcp.tpu.get_tensorflow_versions()
|
152
|
-
```
|
153
|
-
|
154
|
-
### Configure Basic TPU Node With Available Version
|
155
|
-
|
156
|
-
```python
|
157
|
-
import pulumi
|
158
|
-
import pulumi_gcp as gcp
|
159
|
-
|
160
|
-
available = gcp.tpu.get_tensorflow_versions()
|
161
|
-
tpu = gcp.tpu.Node("tpu",
|
162
|
-
name="test-tpu",
|
163
|
-
zone="us-central1-b",
|
164
|
-
accelerator_type="v3-8",
|
165
|
-
tensorflow_version=available.versions[0],
|
166
|
-
cidr_block="10.2.0.0/29")
|
167
|
-
```
|
168
|
-
|
169
|
-
|
170
|
-
:param _builtins.str project: The project to list versions for. If it
|
171
|
-
is not provided, the provider project is used.
|
172
|
-
:param _builtins.str zone: The zone to list versions for. If it
|
173
|
-
is not provided, the provider zone is used.
|
174
|
-
"""
|
175
|
-
__args__ = dict()
|
176
|
-
__args__['project'] = project
|
177
|
-
__args__['zone'] = zone
|
178
|
-
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
179
|
-
__ret__ = pulumi.runtime.invoke_output('gcp:tpu/getTensorflowVersions:getTensorflowVersions', __args__, opts=opts, typ=GetTensorflowVersionsResult)
|
180
|
-
return __ret__.apply(lambda __response__: GetTensorflowVersionsResult(
|
181
|
-
id=pulumi.get(__response__, 'id'),
|
182
|
-
project=pulumi.get(__response__, 'project'),
|
183
|
-
versions=pulumi.get(__response__, 'versions'),
|
184
|
-
zone=pulumi.get(__response__, 'zone')))
|