pulumi-gcp 8.24.0a1743057423__py3-none-any.whl → 8.25.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pulumi_gcp/__init__.py +131 -0
- pulumi_gcp/_inputs.py +48 -0
- pulumi_gcp/accesscontextmanager/_inputs.py +324 -12
- pulumi_gcp/accesscontextmanager/outputs.py +204 -12
- pulumi_gcp/accesscontextmanager/service_perimeter.py +0 -2
- pulumi_gcp/apigee/__init__.py +1 -0
- pulumi_gcp/apigee/_inputs.py +58 -0
- pulumi_gcp/apigee/dns_zone.py +491 -0
- pulumi_gcp/apigee/outputs.py +53 -0
- pulumi_gcp/bigquery/_inputs.py +158 -0
- pulumi_gcp/bigquery/outputs.py +115 -0
- pulumi_gcp/bigquery/reservation.py +189 -1
- pulumi_gcp/bigquery/reservation_assignment.py +7 -7
- pulumi_gcp/bigqueryanalyticshub/listing_subscription.py +11 -7
- pulumi_gcp/bigtable/table.py +8 -8
- pulumi_gcp/chronicle/data_access_label.py +16 -0
- pulumi_gcp/chronicle/data_access_scope.py +16 -0
- pulumi_gcp/chronicle/reference_list.py +16 -0
- pulumi_gcp/chronicle/retrohunt.py +16 -0
- pulumi_gcp/chronicle/rule.py +16 -0
- pulumi_gcp/chronicle/rule_deployment.py +16 -0
- pulumi_gcp/chronicle/watchlist.py +16 -0
- pulumi_gcp/cloudfunctionsv2/_inputs.py +20 -0
- pulumi_gcp/cloudfunctionsv2/outputs.py +25 -0
- pulumi_gcp/cloudrunv2/_inputs.py +20 -0
- pulumi_gcp/cloudrunv2/outputs.py +25 -0
- pulumi_gcp/cloudrunv2/service.py +14 -14
- pulumi_gcp/compute/__init__.py +2 -0
- pulumi_gcp/compute/_inputs.py +2627 -61
- pulumi_gcp/compute/backend_service.py +121 -3
- pulumi_gcp/compute/get_backend_service.py +15 -4
- pulumi_gcp/compute/get_images.py +172 -0
- pulumi_gcp/compute/get_instance.py +12 -1
- pulumi_gcp/compute/get_region_backend_service.py +482 -0
- pulumi_gcp/compute/get_resource_policy.py +15 -4
- pulumi_gcp/compute/get_router.py +12 -1
- pulumi_gcp/compute/get_subnetwork.py +43 -1
- pulumi_gcp/compute/image.py +54 -0
- pulumi_gcp/compute/instance.py +47 -0
- pulumi_gcp/compute/instance_from_machine_image.py +94 -0
- pulumi_gcp/compute/instance_from_template.py +47 -0
- pulumi_gcp/compute/interconnect.py +14 -7
- pulumi_gcp/compute/outputs.py +4522 -391
- pulumi_gcp/compute/public_delegated_prefix.py +69 -15
- pulumi_gcp/compute/resource_policy.py +169 -3
- pulumi_gcp/compute/router.py +54 -0
- pulumi_gcp/compute/router_route_policy.py +16 -0
- pulumi_gcp/compute/subnetwork.py +35 -5
- pulumi_gcp/config/__init__.pyi +8 -0
- pulumi_gcp/config/outputs.py +27 -0
- pulumi_gcp/config/vars.py +16 -0
- pulumi_gcp/container/_inputs.py +274 -13
- pulumi_gcp/container/cluster.py +101 -0
- pulumi_gcp/container/get_cluster.py +23 -1
- pulumi_gcp/container/get_registry_image.py +4 -0
- pulumi_gcp/container/get_registry_repository.py +4 -0
- pulumi_gcp/container/outputs.py +305 -10
- pulumi_gcp/container/registry.py +4 -0
- pulumi_gcp/datafusion/instance.py +68 -0
- pulumi_gcp/dataproc/__init__.py +8 -0
- pulumi_gcp/dataproc/_inputs.py +219 -0
- pulumi_gcp/dataproc/get_metastore_database_iam_policy.py +193 -0
- pulumi_gcp/dataproc/get_metastore_table_iam_policy.py +210 -0
- pulumi_gcp/dataproc/metastore_database_iam_binding.py +848 -0
- pulumi_gcp/dataproc/metastore_database_iam_member.py +848 -0
- pulumi_gcp/dataproc/metastore_database_iam_policy.py +687 -0
- pulumi_gcp/dataproc/metastore_federation.py +38 -2
- pulumi_gcp/dataproc/metastore_table_iam_binding.py +895 -0
- pulumi_gcp/dataproc/metastore_table_iam_member.py +895 -0
- pulumi_gcp/dataproc/metastore_table_iam_policy.py +734 -0
- pulumi_gcp/dataproc/outputs.py +139 -0
- pulumi_gcp/datastream/_inputs.py +311 -94
- pulumi_gcp/datastream/connection_profile.py +40 -0
- pulumi_gcp/datastream/outputs.py +244 -51
- pulumi_gcp/datastream/stream.py +216 -0
- pulumi_gcp/discoveryengine/__init__.py +1 -0
- pulumi_gcp/discoveryengine/sitemap.py +504 -0
- pulumi_gcp/eventarc/__init__.py +1 -0
- pulumi_gcp/eventarc/enrollment.py +980 -0
- pulumi_gcp/firebase/__init__.py +1 -0
- pulumi_gcp/firebase/_inputs.py +484 -0
- pulumi_gcp/firebase/app_hosting_build.py +1232 -0
- pulumi_gcp/firebase/outputs.py +333 -0
- pulumi_gcp/identityplatform/_inputs.py +91 -0
- pulumi_gcp/identityplatform/outputs.py +73 -0
- pulumi_gcp/identityplatform/tenant.py +56 -0
- pulumi_gcp/lustre/__init__.py +8 -0
- pulumi_gcp/lustre/instance.py +983 -0
- pulumi_gcp/managedkafka/cluster.py +2 -2
- pulumi_gcp/memorystore/__init__.py +1 -0
- pulumi_gcp/memorystore/_inputs.py +1252 -7
- pulumi_gcp/memorystore/get_instance.py +45 -1
- pulumi_gcp/memorystore/instance.py +481 -30
- pulumi_gcp/memorystore/instance_desired_user_created_endpoints.py +843 -0
- pulumi_gcp/memorystore/outputs.py +1440 -15
- pulumi_gcp/networkmanagement/_inputs.py +422 -91
- pulumi_gcp/networkmanagement/connectivity_test.py +233 -211
- pulumi_gcp/networkmanagement/outputs.py +280 -61
- pulumi_gcp/networksecurity/_inputs.py +891 -26
- pulumi_gcp/networksecurity/intercept_deployment_group.py +44 -16
- pulumi_gcp/networksecurity/intercept_endpoint_group.py +90 -36
- pulumi_gcp/networksecurity/intercept_endpoint_group_association.py +53 -8
- pulumi_gcp/networksecurity/mirroring_deployment_group.py +44 -16
- pulumi_gcp/networksecurity/mirroring_endpoint_group.py +94 -36
- pulumi_gcp/networksecurity/mirroring_endpoint_group_association.py +53 -8
- pulumi_gcp/networksecurity/outputs.py +531 -1
- pulumi_gcp/networksecurity/security_profile.py +8 -0
- pulumi_gcp/organizations/__init__.py +2 -0
- pulumi_gcp/organizations/get_iam_custom_role.py +198 -0
- pulumi_gcp/organizations/get_iam_custom_roles.py +164 -0
- pulumi_gcp/organizations/outputs.py +96 -0
- pulumi_gcp/osconfig/__init__.py +1 -0
- pulumi_gcp/osconfig/_inputs.py +5413 -0
- pulumi_gcp/osconfig/outputs.py +3962 -0
- pulumi_gcp/osconfig/v2_policy_orchestrator.py +971 -0
- pulumi_gcp/parametermanager/get_parameter.py +16 -1
- pulumi_gcp/parametermanager/get_parameter_version.py +19 -1
- pulumi_gcp/parametermanager/get_parameter_version_render.py +4 -0
- pulumi_gcp/parametermanager/get_parameters.py +4 -0
- pulumi_gcp/parametermanager/get_regional_parameter.py +4 -0
- pulumi_gcp/parametermanager/get_regional_parameter_version.py +4 -0
- pulumi_gcp/parametermanager/get_regional_parameter_version_render.py +8 -0
- pulumi_gcp/parametermanager/get_regional_parameters.py +4 -0
- pulumi_gcp/parametermanager/outputs.py +11 -0
- pulumi_gcp/parametermanager/parameter.py +88 -0
- pulumi_gcp/parametermanager/parameter_version.py +74 -0
- pulumi_gcp/parametermanager/regional_parameter.py +12 -0
- pulumi_gcp/parametermanager/regional_parameter_version.py +12 -0
- pulumi_gcp/provider.py +75 -0
- pulumi_gcp/pulumi-plugin.json +1 -1
- pulumi_gcp/redis/_inputs.py +136 -0
- pulumi_gcp/redis/cluster.py +54 -0
- pulumi_gcp/redis/outputs.py +114 -0
- pulumi_gcp/secretmanager/regional_secret_version.py +0 -16
- pulumi_gcp/storage/__init__.py +6 -0
- pulumi_gcp/storage/_inputs.py +1322 -0
- pulumi_gcp/storage/bucket.py +7 -7
- pulumi_gcp/storage/control_folder_intelligence_config.py +420 -0
- pulumi_gcp/storage/control_organization_intelligence_config.py +420 -0
- pulumi_gcp/storage/control_project_intelligence_config.py +408 -0
- pulumi_gcp/storage/get_bucket_object_content.py +16 -1
- pulumi_gcp/storage/get_control_folder_intelligence_config.py +160 -0
- pulumi_gcp/storage/get_control_organization_intelligence_config.py +160 -0
- pulumi_gcp/storage/get_control_project_intelligence_config.py +160 -0
- pulumi_gcp/storage/outputs.py +1553 -17
- pulumi_gcp/workbench/instance.py +14 -2
- {pulumi_gcp-8.24.0a1743057423.dist-info → pulumi_gcp-8.25.0.dist-info}/METADATA +1 -1
- {pulumi_gcp-8.24.0a1743057423.dist-info → pulumi_gcp-8.25.0.dist-info}/RECORD +150 -124
- {pulumi_gcp-8.24.0a1743057423.dist-info → pulumi_gcp-8.25.0.dist-info}/WHEEL +0 -0
- {pulumi_gcp-8.24.0a1743057423.dist-info → pulumi_gcp-8.25.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,193 @@
|
|
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
|
+
'GetMetastoreDatabaseIamPolicyResult',
|
19
|
+
'AwaitableGetMetastoreDatabaseIamPolicyResult',
|
20
|
+
'get_metastore_database_iam_policy',
|
21
|
+
'get_metastore_database_iam_policy_output',
|
22
|
+
]
|
23
|
+
|
24
|
+
@pulumi.output_type
|
25
|
+
class GetMetastoreDatabaseIamPolicyResult:
|
26
|
+
"""
|
27
|
+
A collection of values returned by getMetastoreDatabaseIamPolicy.
|
28
|
+
"""
|
29
|
+
def __init__(__self__, database=None, etag=None, id=None, location=None, policy_data=None, project=None, service_id=None):
|
30
|
+
if database and not isinstance(database, str):
|
31
|
+
raise TypeError("Expected argument 'database' to be a str")
|
32
|
+
pulumi.set(__self__, "database", database)
|
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 location and not isinstance(location, str):
|
40
|
+
raise TypeError("Expected argument 'location' to be a str")
|
41
|
+
pulumi.set(__self__, "location", location)
|
42
|
+
if policy_data and not isinstance(policy_data, str):
|
43
|
+
raise TypeError("Expected argument 'policy_data' to be a str")
|
44
|
+
pulumi.set(__self__, "policy_data", policy_data)
|
45
|
+
if project and not isinstance(project, str):
|
46
|
+
raise TypeError("Expected argument 'project' to be a str")
|
47
|
+
pulumi.set(__self__, "project", project)
|
48
|
+
if service_id and not isinstance(service_id, str):
|
49
|
+
raise TypeError("Expected argument 'service_id' to be a str")
|
50
|
+
pulumi.set(__self__, "service_id", service_id)
|
51
|
+
|
52
|
+
@property
|
53
|
+
@pulumi.getter
|
54
|
+
def database(self) -> str:
|
55
|
+
return pulumi.get(self, "database")
|
56
|
+
|
57
|
+
@property
|
58
|
+
@pulumi.getter
|
59
|
+
def etag(self) -> str:
|
60
|
+
"""
|
61
|
+
(Computed) The etag of the IAM policy.
|
62
|
+
"""
|
63
|
+
return pulumi.get(self, "etag")
|
64
|
+
|
65
|
+
@property
|
66
|
+
@pulumi.getter
|
67
|
+
def id(self) -> str:
|
68
|
+
"""
|
69
|
+
The provider-assigned unique ID for this managed resource.
|
70
|
+
"""
|
71
|
+
return pulumi.get(self, "id")
|
72
|
+
|
73
|
+
@property
|
74
|
+
@pulumi.getter
|
75
|
+
def location(self) -> str:
|
76
|
+
return pulumi.get(self, "location")
|
77
|
+
|
78
|
+
@property
|
79
|
+
@pulumi.getter(name="policyData")
|
80
|
+
def policy_data(self) -> str:
|
81
|
+
"""
|
82
|
+
(Required only by `dataproc.MetastoreDatabaseIamPolicy`) The policy data generated by
|
83
|
+
a `organizations_get_iam_policy` data source.
|
84
|
+
"""
|
85
|
+
return pulumi.get(self, "policy_data")
|
86
|
+
|
87
|
+
@property
|
88
|
+
@pulumi.getter
|
89
|
+
def project(self) -> str:
|
90
|
+
return pulumi.get(self, "project")
|
91
|
+
|
92
|
+
@property
|
93
|
+
@pulumi.getter(name="serviceId")
|
94
|
+
def service_id(self) -> str:
|
95
|
+
return pulumi.get(self, "service_id")
|
96
|
+
|
97
|
+
|
98
|
+
class AwaitableGetMetastoreDatabaseIamPolicyResult(GetMetastoreDatabaseIamPolicyResult):
|
99
|
+
# pylint: disable=using-constant-test
|
100
|
+
def __await__(self):
|
101
|
+
if False:
|
102
|
+
yield self
|
103
|
+
return GetMetastoreDatabaseIamPolicyResult(
|
104
|
+
database=self.database,
|
105
|
+
etag=self.etag,
|
106
|
+
id=self.id,
|
107
|
+
location=self.location,
|
108
|
+
policy_data=self.policy_data,
|
109
|
+
project=self.project,
|
110
|
+
service_id=self.service_id)
|
111
|
+
|
112
|
+
|
113
|
+
def get_metastore_database_iam_policy(database: Optional[str] = None,
|
114
|
+
location: Optional[str] = None,
|
115
|
+
project: Optional[str] = None,
|
116
|
+
service_id: Optional[str] = None,
|
117
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetMetastoreDatabaseIamPolicyResult:
|
118
|
+
"""
|
119
|
+
Retrieves the current IAM policy data for database
|
120
|
+
|
121
|
+
## Example Usage
|
122
|
+
|
123
|
+
```python
|
124
|
+
import pulumi
|
125
|
+
import pulumi_gcp as gcp
|
126
|
+
|
127
|
+
policy = gcp.dataproc.get_metastore_database_iam_policy(project=dpms_service["project"],
|
128
|
+
location=dpms_service["location"],
|
129
|
+
service_id=dpms_service["serviceId"],
|
130
|
+
database=hive["hiveConfig"][0]["properties"]["database"])
|
131
|
+
```
|
132
|
+
|
133
|
+
|
134
|
+
:param str database: Used to find the parent resource to bind the IAM policy to
|
135
|
+
:param str project: The ID of the project in which the resource belongs.
|
136
|
+
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.
|
137
|
+
"""
|
138
|
+
__args__ = dict()
|
139
|
+
__args__['database'] = database
|
140
|
+
__args__['location'] = location
|
141
|
+
__args__['project'] = project
|
142
|
+
__args__['serviceId'] = service_id
|
143
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
144
|
+
__ret__ = pulumi.runtime.invoke('gcp:dataproc/getMetastoreDatabaseIamPolicy:getMetastoreDatabaseIamPolicy', __args__, opts=opts, typ=GetMetastoreDatabaseIamPolicyResult).value
|
145
|
+
|
146
|
+
return AwaitableGetMetastoreDatabaseIamPolicyResult(
|
147
|
+
database=pulumi.get(__ret__, 'database'),
|
148
|
+
etag=pulumi.get(__ret__, 'etag'),
|
149
|
+
id=pulumi.get(__ret__, 'id'),
|
150
|
+
location=pulumi.get(__ret__, 'location'),
|
151
|
+
policy_data=pulumi.get(__ret__, 'policy_data'),
|
152
|
+
project=pulumi.get(__ret__, 'project'),
|
153
|
+
service_id=pulumi.get(__ret__, 'service_id'))
|
154
|
+
def get_metastore_database_iam_policy_output(database: Optional[pulumi.Input[str]] = None,
|
155
|
+
location: Optional[pulumi.Input[Optional[str]]] = None,
|
156
|
+
project: Optional[pulumi.Input[Optional[str]]] = None,
|
157
|
+
service_id: Optional[pulumi.Input[str]] = None,
|
158
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetMetastoreDatabaseIamPolicyResult]:
|
159
|
+
"""
|
160
|
+
Retrieves the current IAM policy data for database
|
161
|
+
|
162
|
+
## Example Usage
|
163
|
+
|
164
|
+
```python
|
165
|
+
import pulumi
|
166
|
+
import pulumi_gcp as gcp
|
167
|
+
|
168
|
+
policy = gcp.dataproc.get_metastore_database_iam_policy(project=dpms_service["project"],
|
169
|
+
location=dpms_service["location"],
|
170
|
+
service_id=dpms_service["serviceId"],
|
171
|
+
database=hive["hiveConfig"][0]["properties"]["database"])
|
172
|
+
```
|
173
|
+
|
174
|
+
|
175
|
+
:param str database: Used to find the parent resource to bind the IAM policy to
|
176
|
+
:param str project: The ID of the project in which the resource belongs.
|
177
|
+
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.
|
178
|
+
"""
|
179
|
+
__args__ = dict()
|
180
|
+
__args__['database'] = database
|
181
|
+
__args__['location'] = location
|
182
|
+
__args__['project'] = project
|
183
|
+
__args__['serviceId'] = service_id
|
184
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
185
|
+
__ret__ = pulumi.runtime.invoke_output('gcp:dataproc/getMetastoreDatabaseIamPolicy:getMetastoreDatabaseIamPolicy', __args__, opts=opts, typ=GetMetastoreDatabaseIamPolicyResult)
|
186
|
+
return __ret__.apply(lambda __response__: GetMetastoreDatabaseIamPolicyResult(
|
187
|
+
database=pulumi.get(__response__, 'database'),
|
188
|
+
etag=pulumi.get(__response__, 'etag'),
|
189
|
+
id=pulumi.get(__response__, 'id'),
|
190
|
+
location=pulumi.get(__response__, 'location'),
|
191
|
+
policy_data=pulumi.get(__response__, 'policy_data'),
|
192
|
+
project=pulumi.get(__response__, 'project'),
|
193
|
+
service_id=pulumi.get(__response__, 'service_id')))
|
@@ -0,0 +1,210 @@
|
|
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
|
+
'GetMetastoreTableIamPolicyResult',
|
19
|
+
'AwaitableGetMetastoreTableIamPolicyResult',
|
20
|
+
'get_metastore_table_iam_policy',
|
21
|
+
'get_metastore_table_iam_policy_output',
|
22
|
+
]
|
23
|
+
|
24
|
+
@pulumi.output_type
|
25
|
+
class GetMetastoreTableIamPolicyResult:
|
26
|
+
"""
|
27
|
+
A collection of values returned by getMetastoreTableIamPolicy.
|
28
|
+
"""
|
29
|
+
def __init__(__self__, database_id=None, etag=None, id=None, location=None, policy_data=None, project=None, service_id=None, table=None):
|
30
|
+
if database_id and not isinstance(database_id, str):
|
31
|
+
raise TypeError("Expected argument 'database_id' to be a str")
|
32
|
+
pulumi.set(__self__, "database_id", database_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 location and not isinstance(location, str):
|
40
|
+
raise TypeError("Expected argument 'location' to be a str")
|
41
|
+
pulumi.set(__self__, "location", location)
|
42
|
+
if policy_data and not isinstance(policy_data, str):
|
43
|
+
raise TypeError("Expected argument 'policy_data' to be a str")
|
44
|
+
pulumi.set(__self__, "policy_data", policy_data)
|
45
|
+
if project and not isinstance(project, str):
|
46
|
+
raise TypeError("Expected argument 'project' to be a str")
|
47
|
+
pulumi.set(__self__, "project", project)
|
48
|
+
if service_id and not isinstance(service_id, str):
|
49
|
+
raise TypeError("Expected argument 'service_id' to be a str")
|
50
|
+
pulumi.set(__self__, "service_id", service_id)
|
51
|
+
if table and not isinstance(table, str):
|
52
|
+
raise TypeError("Expected argument 'table' to be a str")
|
53
|
+
pulumi.set(__self__, "table", table)
|
54
|
+
|
55
|
+
@property
|
56
|
+
@pulumi.getter(name="databaseId")
|
57
|
+
def database_id(self) -> str:
|
58
|
+
return pulumi.get(self, "database_id")
|
59
|
+
|
60
|
+
@property
|
61
|
+
@pulumi.getter
|
62
|
+
def etag(self) -> str:
|
63
|
+
"""
|
64
|
+
(Computed) The etag of the IAM policy.
|
65
|
+
"""
|
66
|
+
return pulumi.get(self, "etag")
|
67
|
+
|
68
|
+
@property
|
69
|
+
@pulumi.getter
|
70
|
+
def id(self) -> str:
|
71
|
+
"""
|
72
|
+
The provider-assigned unique ID for this managed resource.
|
73
|
+
"""
|
74
|
+
return pulumi.get(self, "id")
|
75
|
+
|
76
|
+
@property
|
77
|
+
@pulumi.getter
|
78
|
+
def location(self) -> str:
|
79
|
+
return pulumi.get(self, "location")
|
80
|
+
|
81
|
+
@property
|
82
|
+
@pulumi.getter(name="policyData")
|
83
|
+
def policy_data(self) -> str:
|
84
|
+
"""
|
85
|
+
(Required only by `dataproc.MetastoreTableIamPolicy`) The policy data generated by
|
86
|
+
a `organizations_get_iam_policy` data source.
|
87
|
+
"""
|
88
|
+
return pulumi.get(self, "policy_data")
|
89
|
+
|
90
|
+
@property
|
91
|
+
@pulumi.getter
|
92
|
+
def project(self) -> str:
|
93
|
+
return pulumi.get(self, "project")
|
94
|
+
|
95
|
+
@property
|
96
|
+
@pulumi.getter(name="serviceId")
|
97
|
+
def service_id(self) -> str:
|
98
|
+
return pulumi.get(self, "service_id")
|
99
|
+
|
100
|
+
@property
|
101
|
+
@pulumi.getter
|
102
|
+
def table(self) -> str:
|
103
|
+
return pulumi.get(self, "table")
|
104
|
+
|
105
|
+
|
106
|
+
class AwaitableGetMetastoreTableIamPolicyResult(GetMetastoreTableIamPolicyResult):
|
107
|
+
# pylint: disable=using-constant-test
|
108
|
+
def __await__(self):
|
109
|
+
if False:
|
110
|
+
yield self
|
111
|
+
return GetMetastoreTableIamPolicyResult(
|
112
|
+
database_id=self.database_id,
|
113
|
+
etag=self.etag,
|
114
|
+
id=self.id,
|
115
|
+
location=self.location,
|
116
|
+
policy_data=self.policy_data,
|
117
|
+
project=self.project,
|
118
|
+
service_id=self.service_id,
|
119
|
+
table=self.table)
|
120
|
+
|
121
|
+
|
122
|
+
def get_metastore_table_iam_policy(database_id: Optional[str] = None,
|
123
|
+
location: Optional[str] = None,
|
124
|
+
project: Optional[str] = None,
|
125
|
+
service_id: Optional[str] = None,
|
126
|
+
table: Optional[str] = None,
|
127
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetMetastoreTableIamPolicyResult:
|
128
|
+
"""
|
129
|
+
Retrieves the current IAM policy data for table
|
130
|
+
|
131
|
+
## Example Usage
|
132
|
+
|
133
|
+
```python
|
134
|
+
import pulumi
|
135
|
+
import pulumi_gcp as gcp
|
136
|
+
|
137
|
+
policy = gcp.dataproc.get_metastore_table_iam_policy(project=dpms_service["project"],
|
138
|
+
location=dpms_service["location"],
|
139
|
+
service_id=dpms_service["serviceId"],
|
140
|
+
database_id=hive["hiveConfig"][0]["properties"]["database"],
|
141
|
+
table=hive["hiveConfig"][0]["properties"]["table"])
|
142
|
+
```
|
143
|
+
|
144
|
+
|
145
|
+
:param str project: The ID of the project in which the resource belongs.
|
146
|
+
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.
|
147
|
+
:param str table: Used to find the parent resource to bind the IAM policy to
|
148
|
+
"""
|
149
|
+
__args__ = dict()
|
150
|
+
__args__['databaseId'] = database_id
|
151
|
+
__args__['location'] = location
|
152
|
+
__args__['project'] = project
|
153
|
+
__args__['serviceId'] = service_id
|
154
|
+
__args__['table'] = table
|
155
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
156
|
+
__ret__ = pulumi.runtime.invoke('gcp:dataproc/getMetastoreTableIamPolicy:getMetastoreTableIamPolicy', __args__, opts=opts, typ=GetMetastoreTableIamPolicyResult).value
|
157
|
+
|
158
|
+
return AwaitableGetMetastoreTableIamPolicyResult(
|
159
|
+
database_id=pulumi.get(__ret__, 'database_id'),
|
160
|
+
etag=pulumi.get(__ret__, 'etag'),
|
161
|
+
id=pulumi.get(__ret__, 'id'),
|
162
|
+
location=pulumi.get(__ret__, 'location'),
|
163
|
+
policy_data=pulumi.get(__ret__, 'policy_data'),
|
164
|
+
project=pulumi.get(__ret__, 'project'),
|
165
|
+
service_id=pulumi.get(__ret__, 'service_id'),
|
166
|
+
table=pulumi.get(__ret__, 'table'))
|
167
|
+
def get_metastore_table_iam_policy_output(database_id: Optional[pulumi.Input[str]] = None,
|
168
|
+
location: Optional[pulumi.Input[Optional[str]]] = None,
|
169
|
+
project: Optional[pulumi.Input[Optional[str]]] = None,
|
170
|
+
service_id: Optional[pulumi.Input[str]] = None,
|
171
|
+
table: Optional[pulumi.Input[str]] = None,
|
172
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetMetastoreTableIamPolicyResult]:
|
173
|
+
"""
|
174
|
+
Retrieves the current IAM policy data for table
|
175
|
+
|
176
|
+
## Example Usage
|
177
|
+
|
178
|
+
```python
|
179
|
+
import pulumi
|
180
|
+
import pulumi_gcp as gcp
|
181
|
+
|
182
|
+
policy = gcp.dataproc.get_metastore_table_iam_policy(project=dpms_service["project"],
|
183
|
+
location=dpms_service["location"],
|
184
|
+
service_id=dpms_service["serviceId"],
|
185
|
+
database_id=hive["hiveConfig"][0]["properties"]["database"],
|
186
|
+
table=hive["hiveConfig"][0]["properties"]["table"])
|
187
|
+
```
|
188
|
+
|
189
|
+
|
190
|
+
:param str project: The ID of the project in which the resource belongs.
|
191
|
+
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.
|
192
|
+
:param str table: Used to find the parent resource to bind the IAM policy to
|
193
|
+
"""
|
194
|
+
__args__ = dict()
|
195
|
+
__args__['databaseId'] = database_id
|
196
|
+
__args__['location'] = location
|
197
|
+
__args__['project'] = project
|
198
|
+
__args__['serviceId'] = service_id
|
199
|
+
__args__['table'] = table
|
200
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
201
|
+
__ret__ = pulumi.runtime.invoke_output('gcp:dataproc/getMetastoreTableIamPolicy:getMetastoreTableIamPolicy', __args__, opts=opts, typ=GetMetastoreTableIamPolicyResult)
|
202
|
+
return __ret__.apply(lambda __response__: GetMetastoreTableIamPolicyResult(
|
203
|
+
database_id=pulumi.get(__response__, 'database_id'),
|
204
|
+
etag=pulumi.get(__response__, 'etag'),
|
205
|
+
id=pulumi.get(__response__, 'id'),
|
206
|
+
location=pulumi.get(__response__, 'location'),
|
207
|
+
policy_data=pulumi.get(__response__, 'policy_data'),
|
208
|
+
project=pulumi.get(__response__, 'project'),
|
209
|
+
service_id=pulumi.get(__response__, 'service_id'),
|
210
|
+
table=pulumi.get(__response__, 'table')))
|