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,198 @@
|
|
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
|
+
'GetIamCustomRoleResult',
|
19
|
+
'AwaitableGetIamCustomRoleResult',
|
20
|
+
'get_iam_custom_role',
|
21
|
+
'get_iam_custom_role_output',
|
22
|
+
]
|
23
|
+
|
24
|
+
@pulumi.output_type
|
25
|
+
class GetIamCustomRoleResult:
|
26
|
+
"""
|
27
|
+
A collection of values returned by getIamCustomRole.
|
28
|
+
"""
|
29
|
+
def __init__(__self__, deleted=None, description=None, id=None, name=None, org_id=None, permissions=None, role_id=None, stage=None, title=None):
|
30
|
+
if deleted and not isinstance(deleted, bool):
|
31
|
+
raise TypeError("Expected argument 'deleted' to be a bool")
|
32
|
+
pulumi.set(__self__, "deleted", deleted)
|
33
|
+
if description and not isinstance(description, str):
|
34
|
+
raise TypeError("Expected argument 'description' to be a str")
|
35
|
+
pulumi.set(__self__, "description", description)
|
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 name and not isinstance(name, str):
|
40
|
+
raise TypeError("Expected argument 'name' to be a str")
|
41
|
+
pulumi.set(__self__, "name", name)
|
42
|
+
if org_id and not isinstance(org_id, str):
|
43
|
+
raise TypeError("Expected argument 'org_id' to be a str")
|
44
|
+
pulumi.set(__self__, "org_id", org_id)
|
45
|
+
if permissions and not isinstance(permissions, list):
|
46
|
+
raise TypeError("Expected argument 'permissions' to be a list")
|
47
|
+
pulumi.set(__self__, "permissions", permissions)
|
48
|
+
if role_id and not isinstance(role_id, str):
|
49
|
+
raise TypeError("Expected argument 'role_id' to be a str")
|
50
|
+
pulumi.set(__self__, "role_id", role_id)
|
51
|
+
if stage and not isinstance(stage, str):
|
52
|
+
raise TypeError("Expected argument 'stage' to be a str")
|
53
|
+
pulumi.set(__self__, "stage", stage)
|
54
|
+
if title and not isinstance(title, str):
|
55
|
+
raise TypeError("Expected argument 'title' to be a str")
|
56
|
+
pulumi.set(__self__, "title", title)
|
57
|
+
|
58
|
+
@property
|
59
|
+
@pulumi.getter
|
60
|
+
def deleted(self) -> bool:
|
61
|
+
return pulumi.get(self, "deleted")
|
62
|
+
|
63
|
+
@property
|
64
|
+
@pulumi.getter
|
65
|
+
def description(self) -> str:
|
66
|
+
return pulumi.get(self, "description")
|
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 name(self) -> str:
|
79
|
+
return pulumi.get(self, "name")
|
80
|
+
|
81
|
+
@property
|
82
|
+
@pulumi.getter(name="orgId")
|
83
|
+
def org_id(self) -> str:
|
84
|
+
return pulumi.get(self, "org_id")
|
85
|
+
|
86
|
+
@property
|
87
|
+
@pulumi.getter
|
88
|
+
def permissions(self) -> Sequence[str]:
|
89
|
+
return pulumi.get(self, "permissions")
|
90
|
+
|
91
|
+
@property
|
92
|
+
@pulumi.getter(name="roleId")
|
93
|
+
def role_id(self) -> str:
|
94
|
+
return pulumi.get(self, "role_id")
|
95
|
+
|
96
|
+
@property
|
97
|
+
@pulumi.getter
|
98
|
+
def stage(self) -> str:
|
99
|
+
return pulumi.get(self, "stage")
|
100
|
+
|
101
|
+
@property
|
102
|
+
@pulumi.getter
|
103
|
+
def title(self) -> str:
|
104
|
+
return pulumi.get(self, "title")
|
105
|
+
|
106
|
+
|
107
|
+
class AwaitableGetIamCustomRoleResult(GetIamCustomRoleResult):
|
108
|
+
# pylint: disable=using-constant-test
|
109
|
+
def __await__(self):
|
110
|
+
if False:
|
111
|
+
yield self
|
112
|
+
return GetIamCustomRoleResult(
|
113
|
+
deleted=self.deleted,
|
114
|
+
description=self.description,
|
115
|
+
id=self.id,
|
116
|
+
name=self.name,
|
117
|
+
org_id=self.org_id,
|
118
|
+
permissions=self.permissions,
|
119
|
+
role_id=self.role_id,
|
120
|
+
stage=self.stage,
|
121
|
+
title=self.title)
|
122
|
+
|
123
|
+
|
124
|
+
def get_iam_custom_role(org_id: Optional[str] = None,
|
125
|
+
role_id: Optional[str] = None,
|
126
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetIamCustomRoleResult:
|
127
|
+
"""
|
128
|
+
Get information about a Google Cloud Organization IAM Custom Role. Note that you must have the `roles/iam.organizationRoleViewer` role (or equivalent permissions) at the organization level to use this datasource.
|
129
|
+
|
130
|
+
```python
|
131
|
+
import pulumi
|
132
|
+
import pulumi_gcp as gcp
|
133
|
+
|
134
|
+
example = gcp.organizations.get_iam_custom_role(org_id="1234567890",
|
135
|
+
role_id="your-role-id")
|
136
|
+
project = gcp.projects.IAMMember("project",
|
137
|
+
project="your-project-id",
|
138
|
+
role=example.name,
|
139
|
+
member="user:jane@example.com")
|
140
|
+
```
|
141
|
+
|
142
|
+
|
143
|
+
:param str org_id: The numeric ID of the organization in which you want to create a custom role.
|
144
|
+
:param str role_id: The role id that has been used for this role.
|
145
|
+
"""
|
146
|
+
__args__ = dict()
|
147
|
+
__args__['orgId'] = org_id
|
148
|
+
__args__['roleId'] = role_id
|
149
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
150
|
+
__ret__ = pulumi.runtime.invoke('gcp:organizations/getIamCustomRole:getIamCustomRole', __args__, opts=opts, typ=GetIamCustomRoleResult).value
|
151
|
+
|
152
|
+
return AwaitableGetIamCustomRoleResult(
|
153
|
+
deleted=pulumi.get(__ret__, 'deleted'),
|
154
|
+
description=pulumi.get(__ret__, 'description'),
|
155
|
+
id=pulumi.get(__ret__, 'id'),
|
156
|
+
name=pulumi.get(__ret__, 'name'),
|
157
|
+
org_id=pulumi.get(__ret__, 'org_id'),
|
158
|
+
permissions=pulumi.get(__ret__, 'permissions'),
|
159
|
+
role_id=pulumi.get(__ret__, 'role_id'),
|
160
|
+
stage=pulumi.get(__ret__, 'stage'),
|
161
|
+
title=pulumi.get(__ret__, 'title'))
|
162
|
+
def get_iam_custom_role_output(org_id: Optional[pulumi.Input[str]] = None,
|
163
|
+
role_id: Optional[pulumi.Input[str]] = None,
|
164
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetIamCustomRoleResult]:
|
165
|
+
"""
|
166
|
+
Get information about a Google Cloud Organization IAM Custom Role. Note that you must have the `roles/iam.organizationRoleViewer` role (or equivalent permissions) at the organization level to use this datasource.
|
167
|
+
|
168
|
+
```python
|
169
|
+
import pulumi
|
170
|
+
import pulumi_gcp as gcp
|
171
|
+
|
172
|
+
example = gcp.organizations.get_iam_custom_role(org_id="1234567890",
|
173
|
+
role_id="your-role-id")
|
174
|
+
project = gcp.projects.IAMMember("project",
|
175
|
+
project="your-project-id",
|
176
|
+
role=example.name,
|
177
|
+
member="user:jane@example.com")
|
178
|
+
```
|
179
|
+
|
180
|
+
|
181
|
+
:param str org_id: The numeric ID of the organization in which you want to create a custom role.
|
182
|
+
:param str role_id: The role id that has been used for this role.
|
183
|
+
"""
|
184
|
+
__args__ = dict()
|
185
|
+
__args__['orgId'] = org_id
|
186
|
+
__args__['roleId'] = role_id
|
187
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
188
|
+
__ret__ = pulumi.runtime.invoke_output('gcp:organizations/getIamCustomRole:getIamCustomRole', __args__, opts=opts, typ=GetIamCustomRoleResult)
|
189
|
+
return __ret__.apply(lambda __response__: GetIamCustomRoleResult(
|
190
|
+
deleted=pulumi.get(__response__, 'deleted'),
|
191
|
+
description=pulumi.get(__response__, 'description'),
|
192
|
+
id=pulumi.get(__response__, 'id'),
|
193
|
+
name=pulumi.get(__response__, 'name'),
|
194
|
+
org_id=pulumi.get(__response__, 'org_id'),
|
195
|
+
permissions=pulumi.get(__response__, 'permissions'),
|
196
|
+
role_id=pulumi.get(__response__, 'role_id'),
|
197
|
+
stage=pulumi.get(__response__, 'stage'),
|
198
|
+
title=pulumi.get(__response__, 'title')))
|
@@ -0,0 +1,164 @@
|
|
1
|
+
# coding=utf-8
|
2
|
+
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
|
+
|
5
|
+
import copy
|
6
|
+
import warnings
|
7
|
+
import sys
|
8
|
+
import pulumi
|
9
|
+
import pulumi.runtime
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
11
|
+
if sys.version_info >= (3, 11):
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
13
|
+
else:
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
15
|
+
from .. import _utilities
|
16
|
+
from . import outputs
|
17
|
+
|
18
|
+
__all__ = [
|
19
|
+
'GetIamCustomRolesResult',
|
20
|
+
'AwaitableGetIamCustomRolesResult',
|
21
|
+
'get_iam_custom_roles',
|
22
|
+
'get_iam_custom_roles_output',
|
23
|
+
]
|
24
|
+
|
25
|
+
@pulumi.output_type
|
26
|
+
class GetIamCustomRolesResult:
|
27
|
+
"""
|
28
|
+
A collection of values returned by getIamCustomRoles.
|
29
|
+
"""
|
30
|
+
def __init__(__self__, id=None, org_id=None, roles=None, show_deleted=None, view=None):
|
31
|
+
if id and not isinstance(id, str):
|
32
|
+
raise TypeError("Expected argument 'id' to be a str")
|
33
|
+
pulumi.set(__self__, "id", id)
|
34
|
+
if org_id and not isinstance(org_id, str):
|
35
|
+
raise TypeError("Expected argument 'org_id' to be a str")
|
36
|
+
pulumi.set(__self__, "org_id", org_id)
|
37
|
+
if roles and not isinstance(roles, list):
|
38
|
+
raise TypeError("Expected argument 'roles' to be a list")
|
39
|
+
pulumi.set(__self__, "roles", roles)
|
40
|
+
if show_deleted and not isinstance(show_deleted, bool):
|
41
|
+
raise TypeError("Expected argument 'show_deleted' to be a bool")
|
42
|
+
pulumi.set(__self__, "show_deleted", show_deleted)
|
43
|
+
if view and not isinstance(view, str):
|
44
|
+
raise TypeError("Expected argument 'view' to be a str")
|
45
|
+
pulumi.set(__self__, "view", view)
|
46
|
+
|
47
|
+
@property
|
48
|
+
@pulumi.getter
|
49
|
+
def id(self) -> str:
|
50
|
+
"""
|
51
|
+
The provider-assigned unique ID for this managed resource.
|
52
|
+
"""
|
53
|
+
return pulumi.get(self, "id")
|
54
|
+
|
55
|
+
@property
|
56
|
+
@pulumi.getter(name="orgId")
|
57
|
+
def org_id(self) -> Optional[str]:
|
58
|
+
return pulumi.get(self, "org_id")
|
59
|
+
|
60
|
+
@property
|
61
|
+
@pulumi.getter
|
62
|
+
def roles(self) -> Sequence['outputs.GetIamCustomRolesRoleResult']:
|
63
|
+
"""
|
64
|
+
A list of all retrieved custom roles roles. Structure is defined below.
|
65
|
+
"""
|
66
|
+
return pulumi.get(self, "roles")
|
67
|
+
|
68
|
+
@property
|
69
|
+
@pulumi.getter(name="showDeleted")
|
70
|
+
def show_deleted(self) -> Optional[bool]:
|
71
|
+
return pulumi.get(self, "show_deleted")
|
72
|
+
|
73
|
+
@property
|
74
|
+
@pulumi.getter
|
75
|
+
def view(self) -> Optional[str]:
|
76
|
+
return pulumi.get(self, "view")
|
77
|
+
|
78
|
+
|
79
|
+
class AwaitableGetIamCustomRolesResult(GetIamCustomRolesResult):
|
80
|
+
# pylint: disable=using-constant-test
|
81
|
+
def __await__(self):
|
82
|
+
if False:
|
83
|
+
yield self
|
84
|
+
return GetIamCustomRolesResult(
|
85
|
+
id=self.id,
|
86
|
+
org_id=self.org_id,
|
87
|
+
roles=self.roles,
|
88
|
+
show_deleted=self.show_deleted,
|
89
|
+
view=self.view)
|
90
|
+
|
91
|
+
|
92
|
+
def get_iam_custom_roles(org_id: Optional[str] = None,
|
93
|
+
show_deleted: Optional[bool] = None,
|
94
|
+
view: Optional[str] = None,
|
95
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetIamCustomRolesResult:
|
96
|
+
"""
|
97
|
+
Get information about a Google Cloud Organization IAM Custom Roles.
|
98
|
+
Note that you must have the `roles/iam.organizationRoleViewer`.
|
99
|
+
See [the official documentation](https://cloud.google.com/iam/docs/creating-custom-roles)
|
100
|
+
and [API](https://cloud.google.com/iam/docs/reference/rest/v1/organizations.roles/list).
|
101
|
+
|
102
|
+
```python
|
103
|
+
import pulumi
|
104
|
+
import pulumi_gcp as gcp
|
105
|
+
|
106
|
+
example = gcp.organizations.get_iam_custom_roles(org_id="1234567890",
|
107
|
+
show_deleted=True,
|
108
|
+
view="FULL")
|
109
|
+
```
|
110
|
+
|
111
|
+
|
112
|
+
:param str org_id: The numeric ID of the organization.
|
113
|
+
:param bool show_deleted: Include Roles that have been deleted. Defaults to `false`.
|
114
|
+
:param str view: When `"FULL"` is specified, the `permissions` field is returned, which includes a list of all permissions in the role. The default value is `"BASIC"`, which does not return the `permissions`.
|
115
|
+
"""
|
116
|
+
__args__ = dict()
|
117
|
+
__args__['orgId'] = org_id
|
118
|
+
__args__['showDeleted'] = show_deleted
|
119
|
+
__args__['view'] = view
|
120
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
121
|
+
__ret__ = pulumi.runtime.invoke('gcp:organizations/getIamCustomRoles:getIamCustomRoles', __args__, opts=opts, typ=GetIamCustomRolesResult).value
|
122
|
+
|
123
|
+
return AwaitableGetIamCustomRolesResult(
|
124
|
+
id=pulumi.get(__ret__, 'id'),
|
125
|
+
org_id=pulumi.get(__ret__, 'org_id'),
|
126
|
+
roles=pulumi.get(__ret__, 'roles'),
|
127
|
+
show_deleted=pulumi.get(__ret__, 'show_deleted'),
|
128
|
+
view=pulumi.get(__ret__, 'view'))
|
129
|
+
def get_iam_custom_roles_output(org_id: Optional[pulumi.Input[Optional[str]]] = None,
|
130
|
+
show_deleted: Optional[pulumi.Input[Optional[bool]]] = None,
|
131
|
+
view: Optional[pulumi.Input[Optional[str]]] = None,
|
132
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetIamCustomRolesResult]:
|
133
|
+
"""
|
134
|
+
Get information about a Google Cloud Organization IAM Custom Roles.
|
135
|
+
Note that you must have the `roles/iam.organizationRoleViewer`.
|
136
|
+
See [the official documentation](https://cloud.google.com/iam/docs/creating-custom-roles)
|
137
|
+
and [API](https://cloud.google.com/iam/docs/reference/rest/v1/organizations.roles/list).
|
138
|
+
|
139
|
+
```python
|
140
|
+
import pulumi
|
141
|
+
import pulumi_gcp as gcp
|
142
|
+
|
143
|
+
example = gcp.organizations.get_iam_custom_roles(org_id="1234567890",
|
144
|
+
show_deleted=True,
|
145
|
+
view="FULL")
|
146
|
+
```
|
147
|
+
|
148
|
+
|
149
|
+
:param str org_id: The numeric ID of the organization.
|
150
|
+
:param bool show_deleted: Include Roles that have been deleted. Defaults to `false`.
|
151
|
+
:param str view: When `"FULL"` is specified, the `permissions` field is returned, which includes a list of all permissions in the role. The default value is `"BASIC"`, which does not return the `permissions`.
|
152
|
+
"""
|
153
|
+
__args__ = dict()
|
154
|
+
__args__['orgId'] = org_id
|
155
|
+
__args__['showDeleted'] = show_deleted
|
156
|
+
__args__['view'] = view
|
157
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
158
|
+
__ret__ = pulumi.runtime.invoke_output('gcp:organizations/getIamCustomRoles:getIamCustomRoles', __args__, opts=opts, typ=GetIamCustomRolesResult)
|
159
|
+
return __ret__.apply(lambda __response__: GetIamCustomRolesResult(
|
160
|
+
id=pulumi.get(__response__, 'id'),
|
161
|
+
org_id=pulumi.get(__response__, 'org_id'),
|
162
|
+
roles=pulumi.get(__response__, 'roles'),
|
163
|
+
show_deleted=pulumi.get(__response__, 'show_deleted'),
|
164
|
+
view=pulumi.get(__response__, 'view')))
|
@@ -30,6 +30,7 @@ __all__ = [
|
|
30
30
|
'GetIAMPolicyAuditConfigAuditLogConfigResult',
|
31
31
|
'GetIAMPolicyBindingResult',
|
32
32
|
'GetIAMPolicyBindingConditionResult',
|
33
|
+
'GetIamCustomRolesRoleResult',
|
33
34
|
'GetSOrganizationResult',
|
34
35
|
]
|
35
36
|
|
@@ -677,6 +678,101 @@ class GetIAMPolicyBindingConditionResult(dict):
|
|
677
678
|
return pulumi.get(self, "description")
|
678
679
|
|
679
680
|
|
681
|
+
@pulumi.output_type
|
682
|
+
class GetIamCustomRolesRoleResult(dict):
|
683
|
+
def __init__(__self__, *,
|
684
|
+
deleted: bool,
|
685
|
+
description: str,
|
686
|
+
id: str,
|
687
|
+
name: str,
|
688
|
+
permissions: Sequence[str],
|
689
|
+
role_id: str,
|
690
|
+
stage: str,
|
691
|
+
title: str):
|
692
|
+
"""
|
693
|
+
:param bool deleted: The current deleted state of the role.
|
694
|
+
:param str description: A human-readable description for the role.
|
695
|
+
:param str id: an identifier for the resource with the format `organizations/{{org_id}}/roles/{{role_id}}`.
|
696
|
+
:param str name: The name of the role in the format `organizations/{{org_id}}/roles/{{role_id}}`. Like `id`, this field can be used as a reference in other resources such as IAM role bindings.
|
697
|
+
:param Sequence[str] permissions: The names of the permissions this role grants when bound in an IAM policy.
|
698
|
+
:param str role_id: The camel case role id used for this role.
|
699
|
+
:param str stage: The current launch stage of the role. List of possible stages is [here](https://cloud.google.com/iam/reference/rest/v1/organizations.roles#Role.RoleLaunchStage).
|
700
|
+
:param str title: A human-readable title for the role.
|
701
|
+
"""
|
702
|
+
pulumi.set(__self__, "deleted", deleted)
|
703
|
+
pulumi.set(__self__, "description", description)
|
704
|
+
pulumi.set(__self__, "id", id)
|
705
|
+
pulumi.set(__self__, "name", name)
|
706
|
+
pulumi.set(__self__, "permissions", permissions)
|
707
|
+
pulumi.set(__self__, "role_id", role_id)
|
708
|
+
pulumi.set(__self__, "stage", stage)
|
709
|
+
pulumi.set(__self__, "title", title)
|
710
|
+
|
711
|
+
@property
|
712
|
+
@pulumi.getter
|
713
|
+
def deleted(self) -> bool:
|
714
|
+
"""
|
715
|
+
The current deleted state of the role.
|
716
|
+
"""
|
717
|
+
return pulumi.get(self, "deleted")
|
718
|
+
|
719
|
+
@property
|
720
|
+
@pulumi.getter
|
721
|
+
def description(self) -> str:
|
722
|
+
"""
|
723
|
+
A human-readable description for the role.
|
724
|
+
"""
|
725
|
+
return pulumi.get(self, "description")
|
726
|
+
|
727
|
+
@property
|
728
|
+
@pulumi.getter
|
729
|
+
def id(self) -> str:
|
730
|
+
"""
|
731
|
+
an identifier for the resource with the format `organizations/{{org_id}}/roles/{{role_id}}`.
|
732
|
+
"""
|
733
|
+
return pulumi.get(self, "id")
|
734
|
+
|
735
|
+
@property
|
736
|
+
@pulumi.getter
|
737
|
+
def name(self) -> str:
|
738
|
+
"""
|
739
|
+
The name of the role in the format `organizations/{{org_id}}/roles/{{role_id}}`. Like `id`, this field can be used as a reference in other resources such as IAM role bindings.
|
740
|
+
"""
|
741
|
+
return pulumi.get(self, "name")
|
742
|
+
|
743
|
+
@property
|
744
|
+
@pulumi.getter
|
745
|
+
def permissions(self) -> Sequence[str]:
|
746
|
+
"""
|
747
|
+
The names of the permissions this role grants when bound in an IAM policy.
|
748
|
+
"""
|
749
|
+
return pulumi.get(self, "permissions")
|
750
|
+
|
751
|
+
@property
|
752
|
+
@pulumi.getter(name="roleId")
|
753
|
+
def role_id(self) -> str:
|
754
|
+
"""
|
755
|
+
The camel case role id used for this role.
|
756
|
+
"""
|
757
|
+
return pulumi.get(self, "role_id")
|
758
|
+
|
759
|
+
@property
|
760
|
+
@pulumi.getter
|
761
|
+
def stage(self) -> str:
|
762
|
+
"""
|
763
|
+
The current launch stage of the role. List of possible stages is [here](https://cloud.google.com/iam/reference/rest/v1/organizations.roles#Role.RoleLaunchStage).
|
764
|
+
"""
|
765
|
+
return pulumi.get(self, "stage")
|
766
|
+
|
767
|
+
@property
|
768
|
+
@pulumi.getter
|
769
|
+
def title(self) -> str:
|
770
|
+
"""
|
771
|
+
A human-readable title for the role.
|
772
|
+
"""
|
773
|
+
return pulumi.get(self, "title")
|
774
|
+
|
775
|
+
|
680
776
|
@pulumi.output_type
|
681
777
|
class GetSOrganizationResult(dict):
|
682
778
|
def __init__(__self__, *,
|