Summary of entries of Methods for iam.
google.cloud.iam_admin_v1.services.iam.IAMAsyncClient
IAMAsyncClient(*, credentials: typing.Optional[google.auth.credentials.Credentials] = None, transport: typing.Optional[typing.Union[str, google.cloud.iam_admin_v1.services.iam.transports.base.IAMTransport, typing.Callable[[...], google.cloud.iam_admin_v1.services.iam.transports.base.IAMTransport]]] = 'grpc_asyncio', client_options: typing.Optional[google.api_core.client_options.ClientOptions] = None, client_info: google.api_core.gapic_v1.client_info.ClientInfo =
Instantiates the iam async client.
See more: google.cloud.iam_admin_v1.services.iam.IAMAsyncClient
google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.common_billing_account_path
common_billing_account_path(billing_account: str) -> str
Returns a fully-qualified billing_account string.
See more: google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.common_billing_account_path
google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.common_folder_path
common_folder_path(folder: str) -> str
Returns a fully-qualified folder string.
See more: google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.common_folder_path
google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.common_location_path
common_location_path(project: str, location: str) -> str
Returns a fully-qualified location string.
See more: google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.common_location_path
google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.common_organization_path
common_organization_path(organization: str) -> str
Returns a fully-qualified organization string.
See more: google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.common_organization_path
google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.common_project_path
common_project_path(project: str) -> str
Returns a fully-qualified project string.
See more: google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.common_project_path
google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.create_role
create_role(
request: typing.Optional[
typing.Union[google.cloud.iam_admin_v1.types.iam.CreateRoleRequest, dict]
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.iam_admin_v1.types.iam.Role
Creates a new custom Role][google.iam.admin.v1.Role]
.
See more: google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.create_role
google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.create_service_account
create_service_account(
request: typing.Optional[
typing.Union[
google.cloud.iam_admin_v1.types.iam.CreateServiceAccountRequest, dict
]
] = None,
*,
name: typing.Optional[str] = None,
account_id: typing.Optional[str] = None,
service_account: typing.Optional[
google.cloud.iam_admin_v1.types.iam.ServiceAccount
] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.iam_admin_v1.types.iam.ServiceAccount
Creates a ServiceAccount][google.iam.admin.v1.ServiceAccount]
.
See more: google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.create_service_account
google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.create_service_account_key
create_service_account_key(
request: typing.Optional[
typing.Union[
google.cloud.iam_admin_v1.types.iam.CreateServiceAccountKeyRequest, dict
]
] = None,
*,
name: typing.Optional[str] = None,
private_key_type: typing.Optional[
google.cloud.iam_admin_v1.types.iam.ServiceAccountPrivateKeyType
] = None,
key_algorithm: typing.Optional[
google.cloud.iam_admin_v1.types.iam.ServiceAccountKeyAlgorithm
] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.iam_admin_v1.types.iam.ServiceAccountKey
Creates a
ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]
.
See more: google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.create_service_account_key
google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.delete_role
delete_role(
request: typing.Optional[
typing.Union[google.cloud.iam_admin_v1.types.iam.DeleteRoleRequest, dict]
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.iam_admin_v1.types.iam.Role
Deletes a custom Role][google.iam.admin.v1.Role]
.
See more: google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.delete_role
google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.delete_service_account
delete_service_account(
request: typing.Optional[
typing.Union[
google.cloud.iam_admin_v1.types.iam.DeleteServiceAccountRequest, dict
]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> None
Deletes a ServiceAccount][google.iam.admin.v1.ServiceAccount]
.
See more: google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.delete_service_account
google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.delete_service_account_key
delete_service_account_key(
request: typing.Optional[
typing.Union[
google.cloud.iam_admin_v1.types.iam.DeleteServiceAccountKeyRequest, dict
]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> None
Deletes a
ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]
.
See more: google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.delete_service_account_key
google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.disable_service_account
disable_service_account(
request: typing.Optional[
typing.Union[
google.cloud.iam_admin_v1.types.iam.DisableServiceAccountRequest, dict
]
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> None
Disables a ServiceAccount][google.iam.admin.v1.ServiceAccount]
immediately.
See more: google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.disable_service_account
google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.disable_service_account_key
disable_service_account_key(
request: typing.Optional[
typing.Union[
google.cloud.iam_admin_v1.types.iam.DisableServiceAccountKeyRequest, dict
]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> None
Disable a
ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]
.
See more: google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.disable_service_account_key
google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.enable_service_account
enable_service_account(
request: typing.Optional[
typing.Union[
google.cloud.iam_admin_v1.types.iam.EnableServiceAccountRequest, dict
]
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> None
Enables a ServiceAccount][google.iam.admin.v1.ServiceAccount]
that was disabled by
DisableServiceAccount][google.iam.admin.v1.IAM.DisableServiceAccount]
.
See more: google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.enable_service_account
google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.enable_service_account_key
enable_service_account_key(
request: typing.Optional[
typing.Union[
google.cloud.iam_admin_v1.types.iam.EnableServiceAccountKeyRequest, dict
]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> None
Enable a
ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]
.
See more: google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.enable_service_account_key
google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.from_service_account_file
from_service_account_file(filename: str, *args, **kwargs)
Creates an instance of this client using the provided credentials file.
See more: google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.from_service_account_file
google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.from_service_account_info
from_service_account_info(info: dict, *args, **kwargs)
Creates an instance of this client using the provided credentials info.
See more: google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.from_service_account_info
google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.from_service_account_json
from_service_account_json(filename: str, *args, **kwargs)
Creates an instance of this client using the provided credentials file.
See more: google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.from_service_account_json
google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.get_iam_policy
get_iam_policy(
request: typing.Optional[
typing.Union[google.iam.v1.iam_policy_pb2.GetIamPolicyRequest, dict]
] = None,
*,
resource: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.iam.v1.policy_pb2.Policy
Gets the IAM policy that is attached to a
ServiceAccount][google.iam.admin.v1.ServiceAccount]
.
See more: google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.get_iam_policy
google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.get_mtls_endpoint_and_cert_source
get_mtls_endpoint_and_cert_source(
client_options: typing.Optional[
google.api_core.client_options.ClientOptions
] = None,
)
Return the API endpoint and client cert source for mutual TLS.
See more: google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.get_mtls_endpoint_and_cert_source
google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.get_role
get_role(
request: typing.Optional[
typing.Union[google.cloud.iam_admin_v1.types.iam.GetRoleRequest, dict]
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.iam_admin_v1.types.iam.Role
Gets the definition of a Role][google.iam.admin.v1.Role]
.
See more: google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.get_role
google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.get_service_account
get_service_account(
request: typing.Optional[
typing.Union[google.cloud.iam_admin_v1.types.iam.GetServiceAccountRequest, dict]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.iam_admin_v1.types.iam.ServiceAccount
Gets a ServiceAccount][google.iam.admin.v1.ServiceAccount]
.
See more: google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.get_service_account
google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.get_service_account_key
get_service_account_key(
request: typing.Optional[
typing.Union[
google.cloud.iam_admin_v1.types.iam.GetServiceAccountKeyRequest, dict
]
] = None,
*,
name: typing.Optional[str] = None,
public_key_type: typing.Optional[
google.cloud.iam_admin_v1.types.iam.ServiceAccountPublicKeyType
] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.iam_admin_v1.types.iam.ServiceAccountKey
Gets a
ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]
.
See more: google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.get_service_account_key
google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.get_transport_class
get_transport_class(
label: typing.Optional[str] = None,
) -> typing.Type[google.cloud.iam_admin_v1.services.iam.transports.base.IAMTransport]
Returns an appropriate transport class.
See more: google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.get_transport_class
google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.key_path
key_path(project: str, service_account: str, key: str) -> str
Returns a fully-qualified key string.
See more: google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.key_path
google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.lint_policy
lint_policy(
request: typing.Optional[
typing.Union[google.cloud.iam_admin_v1.types.iam.LintPolicyRequest, dict]
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.iam_admin_v1.types.iam.LintPolicyResponse
Lints, or validates, an IAM policy.
See more: google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.lint_policy
google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.list_roles
list_roles(
request: typing.Optional[
typing.Union[google.cloud.iam_admin_v1.types.iam.ListRolesRequest, dict]
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.iam_admin_v1.services.iam.pagers.ListRolesAsyncPager
Lists every predefined Role][google.iam.admin.v1.Role]
that IAM
supports, or every custom role that is defined for an
organization or project.
See more: google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.list_roles
google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.list_service_account_keys
list_service_account_keys(
request: typing.Optional[
typing.Union[
google.cloud.iam_admin_v1.types.iam.ListServiceAccountKeysRequest, dict
]
] = None,
*,
name: typing.Optional[str] = None,
key_types: typing.Optional[
typing.MutableSequence[
google.cloud.iam_admin_v1.types.iam.ListServiceAccountKeysRequest.KeyType
]
] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.iam_admin_v1.types.iam.ListServiceAccountKeysResponse
Lists every
ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]
for a
service account.
See more: google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.list_service_account_keys
google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.list_service_accounts
list_service_accounts(
request: typing.Optional[
typing.Union[
google.cloud.iam_admin_v1.types.iam.ListServiceAccountsRequest, dict
]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.iam_admin_v1.services.iam.pagers.ListServiceAccountsAsyncPager
Lists every ServiceAccount][google.iam.admin.v1.ServiceAccount]
that belongs to a specific project.
See more: google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.list_service_accounts
google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.parse_common_billing_account_path
parse_common_billing_account_path(path: str) -> typing.Dict[str, str]
Parse a billing_account path into its component segments.
See more: google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.parse_common_billing_account_path
google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.parse_common_folder_path
parse_common_folder_path(path: str) -> typing.Dict[str, str]
Parse a folder path into its component segments.
See more: google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.parse_common_folder_path
google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.parse_common_location_path
parse_common_location_path(path: str) -> typing.Dict[str, str]
Parse a location path into its component segments.
See more: google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.parse_common_location_path
google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.parse_common_organization_path
parse_common_organization_path(path: str) -> typing.Dict[str, str]
Parse a organization path into its component segments.
See more: google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.parse_common_organization_path
google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.parse_common_project_path
parse_common_project_path(path: str) -> typing.Dict[str, str]
Parse a project path into its component segments.
See more: google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.parse_common_project_path
google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.parse_key_path
parse_key_path(path: str) -> typing.Dict[str, str]
Parses a key path into its component segments.
See more: google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.parse_key_path
google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.parse_service_account_path
parse_service_account_path(path: str) -> typing.Dict[str, str]
Parses a service_account path into its component segments.
See more: google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.parse_service_account_path
google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.patch_service_account
patch_service_account(
request: typing.Optional[
typing.Union[
google.cloud.iam_admin_v1.types.iam.PatchServiceAccountRequest, dict
]
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.iam_admin_v1.types.iam.ServiceAccount
Patches a ServiceAccount][google.iam.admin.v1.ServiceAccount]
.
See more: google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.patch_service_account
google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.query_auditable_services
query_auditable_services(
request: typing.Optional[
typing.Union[
google.cloud.iam_admin_v1.types.iam.QueryAuditableServicesRequest, dict
]
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.iam_admin_v1.types.iam.QueryAuditableServicesResponse
Returns a list of services that allow you to opt into audit logs that are not generated by default.
See more: google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.query_auditable_services
google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.query_grantable_roles
query_grantable_roles(
request: typing.Optional[
typing.Union[
google.cloud.iam_admin_v1.types.iam.QueryGrantableRolesRequest, dict
]
] = None,
*,
full_resource_name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.iam_admin_v1.services.iam.pagers.QueryGrantableRolesAsyncPager
Lists roles that can be granted on a Google Cloud resource.
See more: google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.query_grantable_roles
google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.query_testable_permissions
query_testable_permissions(
request: typing.Optional[
typing.Union[
google.cloud.iam_admin_v1.types.iam.QueryTestablePermissionsRequest, dict
]
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.iam_admin_v1.services.iam.pagers.QueryTestablePermissionsAsyncPager
Lists every permission that you can test on a resource.
See more: google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.query_testable_permissions
google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.service_account_path
service_account_path(project: str, service_account: str) -> str
Returns a fully-qualified service_account string.
See more: google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.service_account_path
google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.set_iam_policy
set_iam_policy(
request: typing.Optional[
typing.Union[google.iam.v1.iam_policy_pb2.SetIamPolicyRequest, dict]
] = None,
*,
resource: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.iam.v1.policy_pb2.Policy
Sets the IAM policy that is attached to a
ServiceAccount][google.iam.admin.v1.ServiceAccount]
.
See more: google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.set_iam_policy
google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.sign_blob
sign_blob(
request: typing.Optional[
typing.Union[google.cloud.iam_admin_v1.types.iam.SignBlobRequest, dict]
] = None,
*,
name: typing.Optional[str] = None,
bytes_to_sign: typing.Optional[bytes] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.iam_admin_v1.types.iam.SignBlobResponse
Note: This method is deprecated.
See more: google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.sign_blob
google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.sign_jwt
sign_jwt(
request: typing.Optional[
typing.Union[google.cloud.iam_admin_v1.types.iam.SignJwtRequest, dict]
] = None,
*,
name: typing.Optional[str] = None,
payload: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.iam_admin_v1.types.iam.SignJwtResponse
Note: This method is deprecated.
See more: google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.sign_jwt
google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.test_iam_permissions
test_iam_permissions(
request: typing.Optional[
typing.Union[google.iam.v1.iam_policy_pb2.TestIamPermissionsRequest, dict]
] = None,
*,
resource: typing.Optional[str] = None,
permissions: typing.Optional[typing.MutableSequence[str]] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.iam.v1.iam_policy_pb2.TestIamPermissionsResponse
Tests whether the caller has the specified permissions on a
ServiceAccount][google.iam.admin.v1.ServiceAccount]
.
See more: google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.test_iam_permissions
google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.undelete_role
undelete_role(
request: typing.Optional[
typing.Union[google.cloud.iam_admin_v1.types.iam.UndeleteRoleRequest, dict]
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.iam_admin_v1.types.iam.Role
Undeletes a custom Role][google.iam.admin.v1.Role]
.
See more: google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.undelete_role
google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.undelete_service_account
undelete_service_account(
request: typing.Optional[
typing.Union[
google.cloud.iam_admin_v1.types.iam.UndeleteServiceAccountRequest, dict
]
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.iam_admin_v1.types.iam.UndeleteServiceAccountResponse
Restores a deleted
ServiceAccount][google.iam.admin.v1.ServiceAccount]
.
See more: google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.undelete_service_account
google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.update_role
update_role(
request: typing.Optional[
typing.Union[google.cloud.iam_admin_v1.types.iam.UpdateRoleRequest, dict]
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.iam_admin_v1.types.iam.Role
Updates the definition of a custom
Role][google.iam.admin.v1.Role]
.
See more: google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.update_role
google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.update_service_account
update_service_account(
request: typing.Optional[
typing.Union[google.cloud.iam_admin_v1.types.iam.ServiceAccount, dict]
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.iam_admin_v1.types.iam.ServiceAccount
Note: We are in the process of deprecating this method.
See more: google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.update_service_account
google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.upload_service_account_key
upload_service_account_key(
request: typing.Optional[
typing.Union[
google.cloud.iam_admin_v1.types.iam.UploadServiceAccountKeyRequest, dict
]
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.iam_admin_v1.types.iam.ServiceAccountKey
Uploads the public key portion of a key pair that you manage,
and associates the public key with a
ServiceAccount][google.iam.admin.v1.ServiceAccount]
.
See more: google.cloud.iam_admin_v1.services.iam.IAMAsyncClient.upload_service_account_key
google.cloud.iam_admin_v1.services.iam.IAMClient
IAMClient(*, credentials: typing.Optional[google.auth.credentials.Credentials] = None, transport: typing.Optional[typing.Union[str, google.cloud.iam_admin_v1.services.iam.transports.base.IAMTransport, typing.Callable[[...], google.cloud.iam_admin_v1.services.iam.transports.base.IAMTransport]]] = None, client_options: typing.Optional[typing.Union[google.api_core.client_options.ClientOptions, dict]] = None, client_info: google.api_core.gapic_v1.client_info.ClientInfo =
Instantiates the iam client.
google.cloud.iam_admin_v1.services.iam.IAMClient.__exit__
__exit__(type, value, traceback)
Releases underlying transport's resources.
See more: google.cloud.iam_admin_v1.services.iam.IAMClient.exit
google.cloud.iam_admin_v1.services.iam.IAMClient.common_billing_account_path
common_billing_account_path(billing_account: str) -> str
Returns a fully-qualified billing_account string.
See more: google.cloud.iam_admin_v1.services.iam.IAMClient.common_billing_account_path
google.cloud.iam_admin_v1.services.iam.IAMClient.common_folder_path
common_folder_path(folder: str) -> str
Returns a fully-qualified folder string.
See more: google.cloud.iam_admin_v1.services.iam.IAMClient.common_folder_path
google.cloud.iam_admin_v1.services.iam.IAMClient.common_location_path
common_location_path(project: str, location: str) -> str
Returns a fully-qualified location string.
See more: google.cloud.iam_admin_v1.services.iam.IAMClient.common_location_path
google.cloud.iam_admin_v1.services.iam.IAMClient.common_organization_path
common_organization_path(organization: str) -> str
Returns a fully-qualified organization string.
See more: google.cloud.iam_admin_v1.services.iam.IAMClient.common_organization_path
google.cloud.iam_admin_v1.services.iam.IAMClient.common_project_path
common_project_path(project: str) -> str
Returns a fully-qualified project string.
See more: google.cloud.iam_admin_v1.services.iam.IAMClient.common_project_path
google.cloud.iam_admin_v1.services.iam.IAMClient.create_role
create_role(
request: typing.Optional[
typing.Union[google.cloud.iam_admin_v1.types.iam.CreateRoleRequest, dict]
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.iam_admin_v1.types.iam.Role
Creates a new custom Role][google.iam.admin.v1.Role]
.
See more: google.cloud.iam_admin_v1.services.iam.IAMClient.create_role
google.cloud.iam_admin_v1.services.iam.IAMClient.create_service_account
create_service_account(
request: typing.Optional[
typing.Union[
google.cloud.iam_admin_v1.types.iam.CreateServiceAccountRequest, dict
]
] = None,
*,
name: typing.Optional[str] = None,
account_id: typing.Optional[str] = None,
service_account: typing.Optional[
google.cloud.iam_admin_v1.types.iam.ServiceAccount
] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.iam_admin_v1.types.iam.ServiceAccount
Creates a ServiceAccount][google.iam.admin.v1.ServiceAccount]
.
See more: google.cloud.iam_admin_v1.services.iam.IAMClient.create_service_account
google.cloud.iam_admin_v1.services.iam.IAMClient.create_service_account_key
create_service_account_key(
request: typing.Optional[
typing.Union[
google.cloud.iam_admin_v1.types.iam.CreateServiceAccountKeyRequest, dict
]
] = None,
*,
name: typing.Optional[str] = None,
private_key_type: typing.Optional[
google.cloud.iam_admin_v1.types.iam.ServiceAccountPrivateKeyType
] = None,
key_algorithm: typing.Optional[
google.cloud.iam_admin_v1.types.iam.ServiceAccountKeyAlgorithm
] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.iam_admin_v1.types.iam.ServiceAccountKey
Creates a
ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]
.
See more: google.cloud.iam_admin_v1.services.iam.IAMClient.create_service_account_key
google.cloud.iam_admin_v1.services.iam.IAMClient.delete_role
delete_role(
request: typing.Optional[
typing.Union[google.cloud.iam_admin_v1.types.iam.DeleteRoleRequest, dict]
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.iam_admin_v1.types.iam.Role
Deletes a custom Role][google.iam.admin.v1.Role]
.
See more: google.cloud.iam_admin_v1.services.iam.IAMClient.delete_role
google.cloud.iam_admin_v1.services.iam.IAMClient.delete_service_account
delete_service_account(
request: typing.Optional[
typing.Union[
google.cloud.iam_admin_v1.types.iam.DeleteServiceAccountRequest, dict
]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> None
Deletes a ServiceAccount][google.iam.admin.v1.ServiceAccount]
.
See more: google.cloud.iam_admin_v1.services.iam.IAMClient.delete_service_account
google.cloud.iam_admin_v1.services.iam.IAMClient.delete_service_account_key
delete_service_account_key(
request: typing.Optional[
typing.Union[
google.cloud.iam_admin_v1.types.iam.DeleteServiceAccountKeyRequest, dict
]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> None
Deletes a
ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]
.
See more: google.cloud.iam_admin_v1.services.iam.IAMClient.delete_service_account_key
google.cloud.iam_admin_v1.services.iam.IAMClient.disable_service_account
disable_service_account(
request: typing.Optional[
typing.Union[
google.cloud.iam_admin_v1.types.iam.DisableServiceAccountRequest, dict
]
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> None
Disables a ServiceAccount][google.iam.admin.v1.ServiceAccount]
immediately.
See more: google.cloud.iam_admin_v1.services.iam.IAMClient.disable_service_account
google.cloud.iam_admin_v1.services.iam.IAMClient.disable_service_account_key
disable_service_account_key(
request: typing.Optional[
typing.Union[
google.cloud.iam_admin_v1.types.iam.DisableServiceAccountKeyRequest, dict
]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> None
Disable a
ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]
.
See more: google.cloud.iam_admin_v1.services.iam.IAMClient.disable_service_account_key
google.cloud.iam_admin_v1.services.iam.IAMClient.enable_service_account
enable_service_account(
request: typing.Optional[
typing.Union[
google.cloud.iam_admin_v1.types.iam.EnableServiceAccountRequest, dict
]
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> None
Enables a ServiceAccount][google.iam.admin.v1.ServiceAccount]
that was disabled by
DisableServiceAccount][google.iam.admin.v1.IAM.DisableServiceAccount]
.
See more: google.cloud.iam_admin_v1.services.iam.IAMClient.enable_service_account
google.cloud.iam_admin_v1.services.iam.IAMClient.enable_service_account_key
enable_service_account_key(
request: typing.Optional[
typing.Union[
google.cloud.iam_admin_v1.types.iam.EnableServiceAccountKeyRequest, dict
]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> None
Enable a
ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]
.
See more: google.cloud.iam_admin_v1.services.iam.IAMClient.enable_service_account_key
google.cloud.iam_admin_v1.services.iam.IAMClient.from_service_account_file
from_service_account_file(filename: str, *args, **kwargs)
Creates an instance of this client using the provided credentials file.
See more: google.cloud.iam_admin_v1.services.iam.IAMClient.from_service_account_file
google.cloud.iam_admin_v1.services.iam.IAMClient.from_service_account_info
from_service_account_info(info: dict, *args, **kwargs)
Creates an instance of this client using the provided credentials info.
See more: google.cloud.iam_admin_v1.services.iam.IAMClient.from_service_account_info
google.cloud.iam_admin_v1.services.iam.IAMClient.from_service_account_json
from_service_account_json(filename: str, *args, **kwargs)
Creates an instance of this client using the provided credentials file.
See more: google.cloud.iam_admin_v1.services.iam.IAMClient.from_service_account_json
google.cloud.iam_admin_v1.services.iam.IAMClient.get_iam_policy
get_iam_policy(
request: typing.Optional[
typing.Union[google.iam.v1.iam_policy_pb2.GetIamPolicyRequest, dict]
] = None,
*,
resource: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.iam.v1.policy_pb2.Policy
Gets the IAM policy that is attached to a
ServiceAccount][google.iam.admin.v1.ServiceAccount]
.
See more: google.cloud.iam_admin_v1.services.iam.IAMClient.get_iam_policy
google.cloud.iam_admin_v1.services.iam.IAMClient.get_mtls_endpoint_and_cert_source
get_mtls_endpoint_and_cert_source(
client_options: typing.Optional[
google.api_core.client_options.ClientOptions
] = None,
)
Deprecated.
See more: google.cloud.iam_admin_v1.services.iam.IAMClient.get_mtls_endpoint_and_cert_source
google.cloud.iam_admin_v1.services.iam.IAMClient.get_role
get_role(
request: typing.Optional[
typing.Union[google.cloud.iam_admin_v1.types.iam.GetRoleRequest, dict]
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.iam_admin_v1.types.iam.Role
Gets the definition of a Role][google.iam.admin.v1.Role]
.
See more: google.cloud.iam_admin_v1.services.iam.IAMClient.get_role
google.cloud.iam_admin_v1.services.iam.IAMClient.get_service_account
get_service_account(
request: typing.Optional[
typing.Union[google.cloud.iam_admin_v1.types.iam.GetServiceAccountRequest, dict]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.iam_admin_v1.types.iam.ServiceAccount
Gets a ServiceAccount][google.iam.admin.v1.ServiceAccount]
.
See more: google.cloud.iam_admin_v1.services.iam.IAMClient.get_service_account
google.cloud.iam_admin_v1.services.iam.IAMClient.get_service_account_key
get_service_account_key(
request: typing.Optional[
typing.Union[
google.cloud.iam_admin_v1.types.iam.GetServiceAccountKeyRequest, dict
]
] = None,
*,
name: typing.Optional[str] = None,
public_key_type: typing.Optional[
google.cloud.iam_admin_v1.types.iam.ServiceAccountPublicKeyType
] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.iam_admin_v1.types.iam.ServiceAccountKey
Gets a
ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]
.
See more: google.cloud.iam_admin_v1.services.iam.IAMClient.get_service_account_key
google.cloud.iam_admin_v1.services.iam.IAMClient.key_path
key_path(project: str, service_account: str, key: str) -> str
Returns a fully-qualified key string.
See more: google.cloud.iam_admin_v1.services.iam.IAMClient.key_path
google.cloud.iam_admin_v1.services.iam.IAMClient.lint_policy
lint_policy(
request: typing.Optional[
typing.Union[google.cloud.iam_admin_v1.types.iam.LintPolicyRequest, dict]
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.iam_admin_v1.types.iam.LintPolicyResponse
Lints, or validates, an IAM policy.
See more: google.cloud.iam_admin_v1.services.iam.IAMClient.lint_policy
google.cloud.iam_admin_v1.services.iam.IAMClient.list_roles
list_roles(
request: typing.Optional[
typing.Union[google.cloud.iam_admin_v1.types.iam.ListRolesRequest, dict]
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.iam_admin_v1.services.iam.pagers.ListRolesPager
Lists every predefined Role][google.iam.admin.v1.Role]
that IAM
supports, or every custom role that is defined for an
organization or project.
See more: google.cloud.iam_admin_v1.services.iam.IAMClient.list_roles
google.cloud.iam_admin_v1.services.iam.IAMClient.list_service_account_keys
list_service_account_keys(
request: typing.Optional[
typing.Union[
google.cloud.iam_admin_v1.types.iam.ListServiceAccountKeysRequest, dict
]
] = None,
*,
name: typing.Optional[str] = None,
key_types: typing.Optional[
typing.MutableSequence[
google.cloud.iam_admin_v1.types.iam.ListServiceAccountKeysRequest.KeyType
]
] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.iam_admin_v1.types.iam.ListServiceAccountKeysResponse
Lists every
ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]
for a
service account.
See more: google.cloud.iam_admin_v1.services.iam.IAMClient.list_service_account_keys
google.cloud.iam_admin_v1.services.iam.IAMClient.list_service_accounts
list_service_accounts(
request: typing.Optional[
typing.Union[
google.cloud.iam_admin_v1.types.iam.ListServiceAccountsRequest, dict
]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.iam_admin_v1.services.iam.pagers.ListServiceAccountsPager
Lists every ServiceAccount][google.iam.admin.v1.ServiceAccount]
that belongs to a specific project.
See more: google.cloud.iam_admin_v1.services.iam.IAMClient.list_service_accounts
google.cloud.iam_admin_v1.services.iam.IAMClient.parse_common_billing_account_path
parse_common_billing_account_path(path: str) -> typing.Dict[str, str]
Parse a billing_account path into its component segments.
See more: google.cloud.iam_admin_v1.services.iam.IAMClient.parse_common_billing_account_path
google.cloud.iam_admin_v1.services.iam.IAMClient.parse_common_folder_path
parse_common_folder_path(path: str) -> typing.Dict[str, str]
Parse a folder path into its component segments.
See more: google.cloud.iam_admin_v1.services.iam.IAMClient.parse_common_folder_path
google.cloud.iam_admin_v1.services.iam.IAMClient.parse_common_location_path
parse_common_location_path(path: str) -> typing.Dict[str, str]
Parse a location path into its component segments.
See more: google.cloud.iam_admin_v1.services.iam.IAMClient.parse_common_location_path
google.cloud.iam_admin_v1.services.iam.IAMClient.parse_common_organization_path
parse_common_organization_path(path: str) -> typing.Dict[str, str]
Parse a organization path into its component segments.
See more: google.cloud.iam_admin_v1.services.iam.IAMClient.parse_common_organization_path
google.cloud.iam_admin_v1.services.iam.IAMClient.parse_common_project_path
parse_common_project_path(path: str) -> typing.Dict[str, str]
Parse a project path into its component segments.
See more: google.cloud.iam_admin_v1.services.iam.IAMClient.parse_common_project_path
google.cloud.iam_admin_v1.services.iam.IAMClient.parse_key_path
parse_key_path(path: str) -> typing.Dict[str, str]
Parses a key path into its component segments.
See more: google.cloud.iam_admin_v1.services.iam.IAMClient.parse_key_path
google.cloud.iam_admin_v1.services.iam.IAMClient.parse_service_account_path
parse_service_account_path(path: str) -> typing.Dict[str, str]
Parses a service_account path into its component segments.
See more: google.cloud.iam_admin_v1.services.iam.IAMClient.parse_service_account_path
google.cloud.iam_admin_v1.services.iam.IAMClient.patch_service_account
patch_service_account(
request: typing.Optional[
typing.Union[
google.cloud.iam_admin_v1.types.iam.PatchServiceAccountRequest, dict
]
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.iam_admin_v1.types.iam.ServiceAccount
Patches a ServiceAccount][google.iam.admin.v1.ServiceAccount]
.
See more: google.cloud.iam_admin_v1.services.iam.IAMClient.patch_service_account
google.cloud.iam_admin_v1.services.iam.IAMClient.query_auditable_services
query_auditable_services(
request: typing.Optional[
typing.Union[
google.cloud.iam_admin_v1.types.iam.QueryAuditableServicesRequest, dict
]
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.iam_admin_v1.types.iam.QueryAuditableServicesResponse
Returns a list of services that allow you to opt into audit logs that are not generated by default.
See more: google.cloud.iam_admin_v1.services.iam.IAMClient.query_auditable_services
google.cloud.iam_admin_v1.services.iam.IAMClient.query_grantable_roles
query_grantable_roles(
request: typing.Optional[
typing.Union[
google.cloud.iam_admin_v1.types.iam.QueryGrantableRolesRequest, dict
]
] = None,
*,
full_resource_name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.iam_admin_v1.services.iam.pagers.QueryGrantableRolesPager
Lists roles that can be granted on a Google Cloud resource.
See more: google.cloud.iam_admin_v1.services.iam.IAMClient.query_grantable_roles
google.cloud.iam_admin_v1.services.iam.IAMClient.query_testable_permissions
query_testable_permissions(
request: typing.Optional[
typing.Union[
google.cloud.iam_admin_v1.types.iam.QueryTestablePermissionsRequest, dict
]
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.iam_admin_v1.services.iam.pagers.QueryTestablePermissionsPager
Lists every permission that you can test on a resource.
See more: google.cloud.iam_admin_v1.services.iam.IAMClient.query_testable_permissions
google.cloud.iam_admin_v1.services.iam.IAMClient.service_account_path
service_account_path(project: str, service_account: str) -> str
Returns a fully-qualified service_account string.
See more: google.cloud.iam_admin_v1.services.iam.IAMClient.service_account_path
google.cloud.iam_admin_v1.services.iam.IAMClient.set_iam_policy
set_iam_policy(
request: typing.Optional[
typing.Union[google.iam.v1.iam_policy_pb2.SetIamPolicyRequest, dict]
] = None,
*,
resource: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.iam.v1.policy_pb2.Policy
Sets the IAM policy that is attached to a
ServiceAccount][google.iam.admin.v1.ServiceAccount]
.
See more: google.cloud.iam_admin_v1.services.iam.IAMClient.set_iam_policy
google.cloud.iam_admin_v1.services.iam.IAMClient.sign_blob
sign_blob(
request: typing.Optional[
typing.Union[google.cloud.iam_admin_v1.types.iam.SignBlobRequest, dict]
] = None,
*,
name: typing.Optional[str] = None,
bytes_to_sign: typing.Optional[bytes] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.iam_admin_v1.types.iam.SignBlobResponse
Note: This method is deprecated.
See more: google.cloud.iam_admin_v1.services.iam.IAMClient.sign_blob
google.cloud.iam_admin_v1.services.iam.IAMClient.sign_jwt
sign_jwt(
request: typing.Optional[
typing.Union[google.cloud.iam_admin_v1.types.iam.SignJwtRequest, dict]
] = None,
*,
name: typing.Optional[str] = None,
payload: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.iam_admin_v1.types.iam.SignJwtResponse
Note: This method is deprecated.
See more: google.cloud.iam_admin_v1.services.iam.IAMClient.sign_jwt
google.cloud.iam_admin_v1.services.iam.IAMClient.test_iam_permissions
test_iam_permissions(
request: typing.Optional[
typing.Union[google.iam.v1.iam_policy_pb2.TestIamPermissionsRequest, dict]
] = None,
*,
resource: typing.Optional[str] = None,
permissions: typing.Optional[typing.MutableSequence[str]] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.iam.v1.iam_policy_pb2.TestIamPermissionsResponse
Tests whether the caller has the specified permissions on a
ServiceAccount][google.iam.admin.v1.ServiceAccount]
.
See more: google.cloud.iam_admin_v1.services.iam.IAMClient.test_iam_permissions
google.cloud.iam_admin_v1.services.iam.IAMClient.undelete_role
undelete_role(
request: typing.Optional[
typing.Union[google.cloud.iam_admin_v1.types.iam.UndeleteRoleRequest, dict]
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.iam_admin_v1.types.iam.Role
Undeletes a custom Role][google.iam.admin.v1.Role]
.
See more: google.cloud.iam_admin_v1.services.iam.IAMClient.undelete_role
google.cloud.iam_admin_v1.services.iam.IAMClient.undelete_service_account
undelete_service_account(
request: typing.Optional[
typing.Union[
google.cloud.iam_admin_v1.types.iam.UndeleteServiceAccountRequest, dict
]
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.iam_admin_v1.types.iam.UndeleteServiceAccountResponse
Restores a deleted
ServiceAccount][google.iam.admin.v1.ServiceAccount]
.
See more: google.cloud.iam_admin_v1.services.iam.IAMClient.undelete_service_account
google.cloud.iam_admin_v1.services.iam.IAMClient.update_role
update_role(
request: typing.Optional[
typing.Union[google.cloud.iam_admin_v1.types.iam.UpdateRoleRequest, dict]
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.iam_admin_v1.types.iam.Role
Updates the definition of a custom
Role][google.iam.admin.v1.Role]
.
See more: google.cloud.iam_admin_v1.services.iam.IAMClient.update_role
google.cloud.iam_admin_v1.services.iam.IAMClient.update_service_account
update_service_account(
request: typing.Optional[
typing.Union[google.cloud.iam_admin_v1.types.iam.ServiceAccount, dict]
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.iam_admin_v1.types.iam.ServiceAccount
Note: We are in the process of deprecating this method.
See more: google.cloud.iam_admin_v1.services.iam.IAMClient.update_service_account
google.cloud.iam_admin_v1.services.iam.IAMClient.upload_service_account_key
upload_service_account_key(
request: typing.Optional[
typing.Union[
google.cloud.iam_admin_v1.types.iam.UploadServiceAccountKeyRequest, dict
]
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.iam_admin_v1.types.iam.ServiceAccountKey
Uploads the public key portion of a key pair that you manage,
and associates the public key with a
ServiceAccount][google.iam.admin.v1.ServiceAccount]
.
See more: google.cloud.iam_admin_v1.services.iam.IAMClient.upload_service_account_key
google.cloud.iam_admin_v1.services.iam.pagers.ListRolesAsyncPager
ListRolesAsyncPager(
method: typing.Callable[
[...], typing.Awaitable[google.cloud.iam_admin_v1.types.iam.ListRolesResponse]
],
request: google.cloud.iam_admin_v1.types.iam.ListRolesRequest,
response: google.cloud.iam_admin_v1.types.iam.ListRolesResponse,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
)
Instantiates the pager.
See more: google.cloud.iam_admin_v1.services.iam.pagers.ListRolesAsyncPager
google.cloud.iam_admin_v1.services.iam.pagers.ListRolesPager
ListRolesPager(
method: typing.Callable[
[...], google.cloud.iam_admin_v1.types.iam.ListRolesResponse
],
request: google.cloud.iam_admin_v1.types.iam.ListRolesRequest,
response: google.cloud.iam_admin_v1.types.iam.ListRolesResponse,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
)
Instantiate the pager.
See more: google.cloud.iam_admin_v1.services.iam.pagers.ListRolesPager
google.cloud.iam_admin_v1.services.iam.pagers.ListServiceAccountsAsyncPager
ListServiceAccountsAsyncPager(
method: typing.Callable[
[...],
typing.Awaitable[
google.cloud.iam_admin_v1.types.iam.ListServiceAccountsResponse
],
],
request: google.cloud.iam_admin_v1.types.iam.ListServiceAccountsRequest,
response: google.cloud.iam_admin_v1.types.iam.ListServiceAccountsResponse,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
)
Instantiates the pager.
See more: google.cloud.iam_admin_v1.services.iam.pagers.ListServiceAccountsAsyncPager
google.cloud.iam_admin_v1.services.iam.pagers.ListServiceAccountsPager
ListServiceAccountsPager(
method: typing.Callable[
[...], google.cloud.iam_admin_v1.types.iam.ListServiceAccountsResponse
],
request: google.cloud.iam_admin_v1.types.iam.ListServiceAccountsRequest,
response: google.cloud.iam_admin_v1.types.iam.ListServiceAccountsResponse,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
)
Instantiate the pager.
See more: google.cloud.iam_admin_v1.services.iam.pagers.ListServiceAccountsPager
google.cloud.iam_admin_v1.services.iam.pagers.QueryGrantableRolesAsyncPager
QueryGrantableRolesAsyncPager(
method: typing.Callable[
[...],
typing.Awaitable[
google.cloud.iam_admin_v1.types.iam.QueryGrantableRolesResponse
],
],
request: google.cloud.iam_admin_v1.types.iam.QueryGrantableRolesRequest,
response: google.cloud.iam_admin_v1.types.iam.QueryGrantableRolesResponse,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
)
Instantiates the pager.
See more: google.cloud.iam_admin_v1.services.iam.pagers.QueryGrantableRolesAsyncPager
google.cloud.iam_admin_v1.services.iam.pagers.QueryGrantableRolesPager
QueryGrantableRolesPager(
method: typing.Callable[
[...], google.cloud.iam_admin_v1.types.iam.QueryGrantableRolesResponse
],
request: google.cloud.iam_admin_v1.types.iam.QueryGrantableRolesRequest,
response: google.cloud.iam_admin_v1.types.iam.QueryGrantableRolesResponse,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
)
Instantiate the pager.
See more: google.cloud.iam_admin_v1.services.iam.pagers.QueryGrantableRolesPager
google.cloud.iam_admin_v1.services.iam.pagers.QueryTestablePermissionsAsyncPager
QueryTestablePermissionsAsyncPager(
method: typing.Callable[
[...],
typing.Awaitable[
google.cloud.iam_admin_v1.types.iam.QueryTestablePermissionsResponse
],
],
request: google.cloud.iam_admin_v1.types.iam.QueryTestablePermissionsRequest,
response: google.cloud.iam_admin_v1.types.iam.QueryTestablePermissionsResponse,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
)
Instantiates the pager.
See more: google.cloud.iam_admin_v1.services.iam.pagers.QueryTestablePermissionsAsyncPager
google.cloud.iam_admin_v1.services.iam.pagers.QueryTestablePermissionsPager
QueryTestablePermissionsPager(
method: typing.Callable[
[...], google.cloud.iam_admin_v1.types.iam.QueryTestablePermissionsResponse
],
request: google.cloud.iam_admin_v1.types.iam.QueryTestablePermissionsRequest,
response: google.cloud.iam_admin_v1.types.iam.QueryTestablePermissionsResponse,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
)
Instantiate the pager.
See more: google.cloud.iam_admin_v1.services.iam.pagers.QueryTestablePermissionsPager
google.cloud.iam_credentials_v1.services.iam_credentials.IAMCredentialsAsyncClient
IAMCredentialsAsyncClient(*, credentials: typing.Optional[google.auth.credentials.Credentials] = None, transport: typing.Optional[typing.Union[str, google.cloud.iam_credentials_v1.services.iam_credentials.transports.base.IAMCredentialsTransport, typing.Callable[[...], google.cloud.iam_credentials_v1.services.iam_credentials.transports.base.IAMCredentialsTransport]]] = 'grpc_asyncio', client_options: typing.Optional[google.api_core.client_options.ClientOptions] = None, client_info: google.api_core.gapic_v1.client_info.ClientInfo =
Instantiates the iam credentials async client.
See more: google.cloud.iam_credentials_v1.services.iam_credentials.IAMCredentialsAsyncClient
google.cloud.iam_credentials_v1.services.iam_credentials.IAMCredentialsAsyncClient.common_billing_account_path
common_billing_account_path(billing_account: str) -> str
Returns a fully-qualified billing_account string.
google.cloud.iam_credentials_v1.services.iam_credentials.IAMCredentialsAsyncClient.common_folder_path
common_folder_path(folder: str) -> str
Returns a fully-qualified folder string.
google.cloud.iam_credentials_v1.services.iam_credentials.IAMCredentialsAsyncClient.common_location_path
common_location_path(project: str, location: str) -> str
Returns a fully-qualified location string.
google.cloud.iam_credentials_v1.services.iam_credentials.IAMCredentialsAsyncClient.common_organization_path
common_organization_path(organization: str) -> str
Returns a fully-qualified organization string.
google.cloud.iam_credentials_v1.services.iam_credentials.IAMCredentialsAsyncClient.common_project_path
common_project_path(project: str) -> str
Returns a fully-qualified project string.
google.cloud.iam_credentials_v1.services.iam_credentials.IAMCredentialsAsyncClient.from_service_account_file
from_service_account_file(filename: str, *args, **kwargs)
Creates an instance of this client using the provided credentials file.
google.cloud.iam_credentials_v1.services.iam_credentials.IAMCredentialsAsyncClient.from_service_account_info
from_service_account_info(info: dict, *args, **kwargs)
Creates an instance of this client using the provided credentials info.
google.cloud.iam_credentials_v1.services.iam_credentials.IAMCredentialsAsyncClient.from_service_account_json
from_service_account_json(filename: str, *args, **kwargs)
Creates an instance of this client using the provided credentials file.
google.cloud.iam_credentials_v1.services.iam_credentials.IAMCredentialsAsyncClient.generate_access_token
generate_access_token(
request: typing.Optional[
typing.Union[
google.cloud.iam_credentials_v1.types.common.GenerateAccessTokenRequest,
dict,
]
] = None,
*,
name: typing.Optional[str] = None,
delegates: typing.Optional[typing.MutableSequence[str]] = None,
scope: typing.Optional[typing.MutableSequence[str]] = None,
lifetime: typing.Optional[google.protobuf.duration_pb2.Duration] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.iam_credentials_v1.types.common.GenerateAccessTokenResponse
Generates an OAuth 2.0 access token for a service account.
google.cloud.iam_credentials_v1.services.iam_credentials.IAMCredentialsAsyncClient.generate_id_token
generate_id_token(
request: typing.Optional[
typing.Union[
google.cloud.iam_credentials_v1.types.common.GenerateIdTokenRequest, dict
]
] = None,
*,
name: typing.Optional[str] = None,
delegates: typing.Optional[typing.MutableSequence[str]] = None,
audience: typing.Optional[str] = None,
include_email: typing.Optional[bool] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.iam_credentials_v1.types.common.GenerateIdTokenResponse
Generates an OpenID Connect ID token for a service account.
See more: google.cloud.iam_credentials_v1.services.iam_credentials.IAMCredentialsAsyncClient.generate_id_token
google.cloud.iam_credentials_v1.services.iam_credentials.IAMCredentialsAsyncClient.get_mtls_endpoint_and_cert_source
get_mtls_endpoint_and_cert_source(
client_options: typing.Optional[
google.api_core.client_options.ClientOptions
] = None,
)
Return the API endpoint and client cert source for mutual TLS.
google.cloud.iam_credentials_v1.services.iam_credentials.IAMCredentialsAsyncClient.get_transport_class
get_transport_class(
label: typing.Optional[str] = None,
) -> typing.Type[
google.cloud.iam_credentials_v1.services.iam_credentials.transports.base.IAMCredentialsTransport
]
Returns an appropriate transport class.
google.cloud.iam_credentials_v1.services.iam_credentials.IAMCredentialsAsyncClient.parse_common_billing_account_path
parse_common_billing_account_path(path: str) -> typing.Dict[str, str]
Parse a billing_account path into its component segments.
google.cloud.iam_credentials_v1.services.iam_credentials.IAMCredentialsAsyncClient.parse_common_folder_path
parse_common_folder_path(path: str) -> typing.Dict[str, str]
Parse a folder path into its component segments.
google.cloud.iam_credentials_v1.services.iam_credentials.IAMCredentialsAsyncClient.parse_common_location_path
parse_common_location_path(path: str) -> typing.Dict[str, str]
Parse a location path into its component segments.
google.cloud.iam_credentials_v1.services.iam_credentials.IAMCredentialsAsyncClient.parse_common_organization_path
parse_common_organization_path(path: str) -> typing.Dict[str, str]
Parse a organization path into its component segments.
google.cloud.iam_credentials_v1.services.iam_credentials.IAMCredentialsAsyncClient.parse_common_project_path
parse_common_project_path(path: str) -> typing.Dict[str, str]
Parse a project path into its component segments.
google.cloud.iam_credentials_v1.services.iam_credentials.IAMCredentialsAsyncClient.parse_service_account_path
parse_service_account_path(path: str) -> typing.Dict[str, str]
Parses a service_account path into its component segments.
google.cloud.iam_credentials_v1.services.iam_credentials.IAMCredentialsAsyncClient.service_account_path
service_account_path(project: str, service_account: str) -> str
Returns a fully-qualified service_account string.
google.cloud.iam_credentials_v1.services.iam_credentials.IAMCredentialsAsyncClient.sign_blob
sign_blob(
request: typing.Optional[
typing.Union[google.cloud.iam_credentials_v1.types.common.SignBlobRequest, dict]
] = None,
*,
name: typing.Optional[str] = None,
delegates: typing.Optional[typing.MutableSequence[str]] = None,
payload: typing.Optional[bytes] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.iam_credentials_v1.types.common.SignBlobResponse
Signs a blob using a service account's system-managed private key.
See more: google.cloud.iam_credentials_v1.services.iam_credentials.IAMCredentialsAsyncClient.sign_blob
google.cloud.iam_credentials_v1.services.iam_credentials.IAMCredentialsAsyncClient.sign_jwt
sign_jwt(
request: typing.Optional[
typing.Union[google.cloud.iam_credentials_v1.types.common.SignJwtRequest, dict]
] = None,
*,
name: typing.Optional[str] = None,
delegates: typing.Optional[typing.MutableSequence[str]] = None,
payload: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.iam_credentials_v1.types.common.SignJwtResponse
Signs a JWT using a service account's system-managed private key.
See more: google.cloud.iam_credentials_v1.services.iam_credentials.IAMCredentialsAsyncClient.sign_jwt
google.cloud.iam_credentials_v1.services.iam_credentials.IAMCredentialsClient
IAMCredentialsClient(*, credentials: typing.Optional[google.auth.credentials.Credentials] = None, transport: typing.Optional[typing.Union[str, google.cloud.iam_credentials_v1.services.iam_credentials.transports.base.IAMCredentialsTransport, typing.Callable[[...], google.cloud.iam_credentials_v1.services.iam_credentials.transports.base.IAMCredentialsTransport]]] = None, client_options: typing.Optional[typing.Union[google.api_core.client_options.ClientOptions, dict]] = None, client_info: google.api_core.gapic_v1.client_info.ClientInfo =
Instantiates the iam credentials client.
See more: google.cloud.iam_credentials_v1.services.iam_credentials.IAMCredentialsClient
google.cloud.iam_credentials_v1.services.iam_credentials.IAMCredentialsClient.__exit__
__exit__(type, value, traceback)
Releases underlying transport's resources.
See more: google.cloud.iam_credentials_v1.services.iam_credentials.IAMCredentialsClient.exit
google.cloud.iam_credentials_v1.services.iam_credentials.IAMCredentialsClient.common_billing_account_path
common_billing_account_path(billing_account: str) -> str
Returns a fully-qualified billing_account string.
google.cloud.iam_credentials_v1.services.iam_credentials.IAMCredentialsClient.common_folder_path
common_folder_path(folder: str) -> str
Returns a fully-qualified folder string.
See more: google.cloud.iam_credentials_v1.services.iam_credentials.IAMCredentialsClient.common_folder_path
google.cloud.iam_credentials_v1.services.iam_credentials.IAMCredentialsClient.common_location_path
common_location_path(project: str, location: str) -> str
Returns a fully-qualified location string.
See more: google.cloud.iam_credentials_v1.services.iam_credentials.IAMCredentialsClient.common_location_path
google.cloud.iam_credentials_v1.services.iam_credentials.IAMCredentialsClient.common_organization_path
common_organization_path(organization: str) -> str
Returns a fully-qualified organization string.
google.cloud.iam_credentials_v1.services.iam_credentials.IAMCredentialsClient.common_project_path
common_project_path(project: str) -> str
Returns a fully-qualified project string.
See more: google.cloud.iam_credentials_v1.services.iam_credentials.IAMCredentialsClient.common_project_path
google.cloud.iam_credentials_v1.services.iam_credentials.IAMCredentialsClient.from_service_account_file
from_service_account_file(filename: str, *args, **kwargs)
Creates an instance of this client using the provided credentials file.
google.cloud.iam_credentials_v1.services.iam_credentials.IAMCredentialsClient.from_service_account_info
from_service_account_info(info: dict, *args, **kwargs)
Creates an instance of this client using the provided credentials info.
google.cloud.iam_credentials_v1.services.iam_credentials.IAMCredentialsClient.from_service_account_json
from_service_account_json(filename: str, *args, **kwargs)
Creates an instance of this client using the provided credentials file.
google.cloud.iam_credentials_v1.services.iam_credentials.IAMCredentialsClient.generate_access_token
generate_access_token(
request: typing.Optional[
typing.Union[
google.cloud.iam_credentials_v1.types.common.GenerateAccessTokenRequest,
dict,
]
] = None,
*,
name: typing.Optional[str] = None,
delegates: typing.Optional[typing.MutableSequence[str]] = None,
scope: typing.Optional[typing.MutableSequence[str]] = None,
lifetime: typing.Optional[google.protobuf.duration_pb2.Duration] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.iam_credentials_v1.types.common.GenerateAccessTokenResponse
Generates an OAuth 2.0 access token for a service account.
See more: google.cloud.iam_credentials_v1.services.iam_credentials.IAMCredentialsClient.generate_access_token
google.cloud.iam_credentials_v1.services.iam_credentials.IAMCredentialsClient.generate_id_token
generate_id_token(
request: typing.Optional[
typing.Union[
google.cloud.iam_credentials_v1.types.common.GenerateIdTokenRequest, dict
]
] = None,
*,
name: typing.Optional[str] = None,
delegates: typing.Optional[typing.MutableSequence[str]] = None,
audience: typing.Optional[str] = None,
include_email: typing.Optional[bool] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.iam_credentials_v1.types.common.GenerateIdTokenResponse
Generates an OpenID Connect ID token for a service account.
See more: google.cloud.iam_credentials_v1.services.iam_credentials.IAMCredentialsClient.generate_id_token
google.cloud.iam_credentials_v1.services.iam_credentials.IAMCredentialsClient.get_mtls_endpoint_and_cert_source
get_mtls_endpoint_and_cert_source(
client_options: typing.Optional[
google.api_core.client_options.ClientOptions
] = None,
)
Deprecated.
google.cloud.iam_credentials_v1.services.iam_credentials.IAMCredentialsClient.parse_common_billing_account_path
parse_common_billing_account_path(path: str) -> typing.Dict[str, str]
Parse a billing_account path into its component segments.
google.cloud.iam_credentials_v1.services.iam_credentials.IAMCredentialsClient.parse_common_folder_path
parse_common_folder_path(path: str) -> typing.Dict[str, str]
Parse a folder path into its component segments.
google.cloud.iam_credentials_v1.services.iam_credentials.IAMCredentialsClient.parse_common_location_path
parse_common_location_path(path: str) -> typing.Dict[str, str]
Parse a location path into its component segments.
google.cloud.iam_credentials_v1.services.iam_credentials.IAMCredentialsClient.parse_common_organization_path
parse_common_organization_path(path: str) -> typing.Dict[str, str]
Parse a organization path into its component segments.
google.cloud.iam_credentials_v1.services.iam_credentials.IAMCredentialsClient.parse_common_project_path
parse_common_project_path(path: str) -> typing.Dict[str, str]
Parse a project path into its component segments.
google.cloud.iam_credentials_v1.services.iam_credentials.IAMCredentialsClient.parse_service_account_path
parse_service_account_path(path: str) -> typing.Dict[str, str]
Parses a service_account path into its component segments.
google.cloud.iam_credentials_v1.services.iam_credentials.IAMCredentialsClient.service_account_path
service_account_path(project: str, service_account: str) -> str
Returns a fully-qualified service_account string.
See more: google.cloud.iam_credentials_v1.services.iam_credentials.IAMCredentialsClient.service_account_path
google.cloud.iam_credentials_v1.services.iam_credentials.IAMCredentialsClient.sign_blob
sign_blob(
request: typing.Optional[
typing.Union[google.cloud.iam_credentials_v1.types.common.SignBlobRequest, dict]
] = None,
*,
name: typing.Optional[str] = None,
delegates: typing.Optional[typing.MutableSequence[str]] = None,
payload: typing.Optional[bytes] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.iam_credentials_v1.types.common.SignBlobResponse
Signs a blob using a service account's system-managed private key.
See more: google.cloud.iam_credentials_v1.services.iam_credentials.IAMCredentialsClient.sign_blob
google.cloud.iam_credentials_v1.services.iam_credentials.IAMCredentialsClient.sign_jwt
sign_jwt(
request: typing.Optional[
typing.Union[google.cloud.iam_credentials_v1.types.common.SignJwtRequest, dict]
] = None,
*,
name: typing.Optional[str] = None,
delegates: typing.Optional[typing.MutableSequence[str]] = None,
payload: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.iam_credentials_v1.types.common.SignJwtResponse
Signs a JWT using a service account's system-managed private key.
See more: google.cloud.iam_credentials_v1.services.iam_credentials.IAMCredentialsClient.sign_jwt
google.cloud.iam_v2.services.policies.PoliciesAsyncClient
PoliciesAsyncClient(*, credentials: typing.Optional[google.auth.credentials.Credentials] = None, transport: typing.Optional[typing.Union[str, google.cloud.iam_v2.services.policies.transports.base.PoliciesTransport, typing.Callable[[...], google.cloud.iam_v2.services.policies.transports.base.PoliciesTransport]]] = 'grpc_asyncio', client_options: typing.Optional[google.api_core.client_options.ClientOptions] = None, client_info: google.api_core.gapic_v1.client_info.ClientInfo =
Instantiates the policies async client.
See more: google.cloud.iam_v2.services.policies.PoliciesAsyncClient
google.cloud.iam_v2.services.policies.PoliciesAsyncClient.common_billing_account_path
common_billing_account_path(billing_account: str) -> str
Returns a fully-qualified billing_account string.
See more: google.cloud.iam_v2.services.policies.PoliciesAsyncClient.common_billing_account_path
google.cloud.iam_v2.services.policies.PoliciesAsyncClient.common_folder_path
common_folder_path(folder: str) -> str
Returns a fully-qualified folder string.
See more: google.cloud.iam_v2.services.policies.PoliciesAsyncClient.common_folder_path
google.cloud.iam_v2.services.policies.PoliciesAsyncClient.common_location_path
common_location_path(project: str, location: str) -> str
Returns a fully-qualified location string.
See more: google.cloud.iam_v2.services.policies.PoliciesAsyncClient.common_location_path
google.cloud.iam_v2.services.policies.PoliciesAsyncClient.common_organization_path
common_organization_path(organization: str) -> str
Returns a fully-qualified organization string.
See more: google.cloud.iam_v2.services.policies.PoliciesAsyncClient.common_organization_path
google.cloud.iam_v2.services.policies.PoliciesAsyncClient.common_project_path
common_project_path(project: str) -> str
Returns a fully-qualified project string.
See more: google.cloud.iam_v2.services.policies.PoliciesAsyncClient.common_project_path
google.cloud.iam_v2.services.policies.PoliciesAsyncClient.create_policy
create_policy(
request: typing.Optional[
typing.Union[google.cloud.iam_v2.types.policy.CreatePolicyRequest, dict]
] = None,
*,
parent: typing.Optional[str] = None,
policy: typing.Optional[google.cloud.iam_v2.types.policy.Policy] = None,
policy_id: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.api_core.operation_async.AsyncOperation
Creates a policy.
See more: google.cloud.iam_v2.services.policies.PoliciesAsyncClient.create_policy
google.cloud.iam_v2.services.policies.PoliciesAsyncClient.delete_policy
delete_policy(
request: typing.Optional[
typing.Union[google.cloud.iam_v2.types.policy.DeletePolicyRequest, dict]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.api_core.operation_async.AsyncOperation
Deletes a policy.
See more: google.cloud.iam_v2.services.policies.PoliciesAsyncClient.delete_policy
google.cloud.iam_v2.services.policies.PoliciesAsyncClient.from_service_account_file
from_service_account_file(filename: str, *args, **kwargs)
Creates an instance of this client using the provided credentials file.
See more: google.cloud.iam_v2.services.policies.PoliciesAsyncClient.from_service_account_file
google.cloud.iam_v2.services.policies.PoliciesAsyncClient.from_service_account_info
from_service_account_info(info: dict, *args, **kwargs)
Creates an instance of this client using the provided credentials info.
See more: google.cloud.iam_v2.services.policies.PoliciesAsyncClient.from_service_account_info
google.cloud.iam_v2.services.policies.PoliciesAsyncClient.from_service_account_json
from_service_account_json(filename: str, *args, **kwargs)
Creates an instance of this client using the provided credentials file.
See more: google.cloud.iam_v2.services.policies.PoliciesAsyncClient.from_service_account_json
google.cloud.iam_v2.services.policies.PoliciesAsyncClient.get_mtls_endpoint_and_cert_source
get_mtls_endpoint_and_cert_source(
client_options: typing.Optional[
google.api_core.client_options.ClientOptions
] = None,
)
Return the API endpoint and client cert source for mutual TLS.
See more: google.cloud.iam_v2.services.policies.PoliciesAsyncClient.get_mtls_endpoint_and_cert_source
google.cloud.iam_v2.services.policies.PoliciesAsyncClient.get_operation
get_operation(
request: typing.Optional[
google.longrunning.operations_pb2.GetOperationRequest
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.longrunning.operations_pb2.Operation
Gets the latest state of a long-running operation.
See more: google.cloud.iam_v2.services.policies.PoliciesAsyncClient.get_operation
google.cloud.iam_v2.services.policies.PoliciesAsyncClient.get_policy
get_policy(
request: typing.Optional[
typing.Union[google.cloud.iam_v2.types.policy.GetPolicyRequest, dict]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.iam_v2.types.policy.Policy
Gets a policy.
See more: google.cloud.iam_v2.services.policies.PoliciesAsyncClient.get_policy
google.cloud.iam_v2.services.policies.PoliciesAsyncClient.get_transport_class
get_transport_class(
label: typing.Optional[str] = None,
) -> typing.Type[
google.cloud.iam_v2.services.policies.transports.base.PoliciesTransport
]
Returns an appropriate transport class.
See more: google.cloud.iam_v2.services.policies.PoliciesAsyncClient.get_transport_class
google.cloud.iam_v2.services.policies.PoliciesAsyncClient.list_policies
list_policies(
request: typing.Optional[
typing.Union[google.cloud.iam_v2.types.policy.ListPoliciesRequest, dict]
] = None,
*,
parent: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.iam_v2.services.policies.pagers.ListPoliciesAsyncPager
Retrieves the policies of the specified kind that are attached to a resource.
See more: google.cloud.iam_v2.services.policies.PoliciesAsyncClient.list_policies
google.cloud.iam_v2.services.policies.PoliciesAsyncClient.parse_common_billing_account_path
parse_common_billing_account_path(path: str) -> typing.Dict[str, str]
Parse a billing_account path into its component segments.
See more: google.cloud.iam_v2.services.policies.PoliciesAsyncClient.parse_common_billing_account_path
google.cloud.iam_v2.services.policies.PoliciesAsyncClient.parse_common_folder_path
parse_common_folder_path(path: str) -> typing.Dict[str, str]
Parse a folder path into its component segments.
See more: google.cloud.iam_v2.services.policies.PoliciesAsyncClient.parse_common_folder_path
google.cloud.iam_v2.services.policies.PoliciesAsyncClient.parse_common_location_path
parse_common_location_path(path: str) -> typing.Dict[str, str]
Parse a location path into its component segments.
See more: google.cloud.iam_v2.services.policies.PoliciesAsyncClient.parse_common_location_path
google.cloud.iam_v2.services.policies.PoliciesAsyncClient.parse_common_organization_path
parse_common_organization_path(path: str) -> typing.Dict[str, str]
Parse a organization path into its component segments.
See more: google.cloud.iam_v2.services.policies.PoliciesAsyncClient.parse_common_organization_path
google.cloud.iam_v2.services.policies.PoliciesAsyncClient.parse_common_project_path
parse_common_project_path(path: str) -> typing.Dict[str, str]
Parse a project path into its component segments.
See more: google.cloud.iam_v2.services.policies.PoliciesAsyncClient.parse_common_project_path
google.cloud.iam_v2.services.policies.PoliciesAsyncClient.update_policy
update_policy(
request: typing.Optional[
typing.Union[google.cloud.iam_v2.types.policy.UpdatePolicyRequest, dict]
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.api_core.operation_async.AsyncOperation
Updates the specified policy.
See more: google.cloud.iam_v2.services.policies.PoliciesAsyncClient.update_policy
google.cloud.iam_v2.services.policies.PoliciesClient
PoliciesClient(*, credentials: typing.Optional[google.auth.credentials.Credentials] = None, transport: typing.Optional[typing.Union[str, google.cloud.iam_v2.services.policies.transports.base.PoliciesTransport, typing.Callable[[...], google.cloud.iam_v2.services.policies.transports.base.PoliciesTransport]]] = None, client_options: typing.Optional[typing.Union[google.api_core.client_options.ClientOptions, dict]] = None, client_info: google.api_core.gapic_v1.client_info.ClientInfo =
Instantiates the policies client.
See more: google.cloud.iam_v2.services.policies.PoliciesClient
google.cloud.iam_v2.services.policies.PoliciesClient.__exit__
__exit__(type, value, traceback)
Releases underlying transport's resources.
See more: google.cloud.iam_v2.services.policies.PoliciesClient.exit
google.cloud.iam_v2.services.policies.PoliciesClient.common_billing_account_path
common_billing_account_path(billing_account: str) -> str
Returns a fully-qualified billing_account string.
See more: google.cloud.iam_v2.services.policies.PoliciesClient.common_billing_account_path
google.cloud.iam_v2.services.policies.PoliciesClient.common_folder_path
common_folder_path(folder: str) -> str
Returns a fully-qualified folder string.
See more: google.cloud.iam_v2.services.policies.PoliciesClient.common_folder_path
google.cloud.iam_v2.services.policies.PoliciesClient.common_location_path
common_location_path(project: str, location: str) -> str
Returns a fully-qualified location string.
See more: google.cloud.iam_v2.services.policies.PoliciesClient.common_location_path
google.cloud.iam_v2.services.policies.PoliciesClient.common_organization_path
common_organization_path(organization: str) -> str
Returns a fully-qualified organization string.
See more: google.cloud.iam_v2.services.policies.PoliciesClient.common_organization_path
google.cloud.iam_v2.services.policies.PoliciesClient.common_project_path
common_project_path(project: str) -> str
Returns a fully-qualified project string.
See more: google.cloud.iam_v2.services.policies.PoliciesClient.common_project_path
google.cloud.iam_v2.services.policies.PoliciesClient.create_policy
create_policy(
request: typing.Optional[
typing.Union[google.cloud.iam_v2.types.policy.CreatePolicyRequest, dict]
] = None,
*,
parent: typing.Optional[str] = None,
policy: typing.Optional[google.cloud.iam_v2.types.policy.Policy] = None,
policy_id: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.api_core.operation.Operation
Creates a policy.
See more: google.cloud.iam_v2.services.policies.PoliciesClient.create_policy
google.cloud.iam_v2.services.policies.PoliciesClient.delete_policy
delete_policy(
request: typing.Optional[
typing.Union[google.cloud.iam_v2.types.policy.DeletePolicyRequest, dict]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.api_core.operation.Operation
Deletes a policy.
See more: google.cloud.iam_v2.services.policies.PoliciesClient.delete_policy
google.cloud.iam_v2.services.policies.PoliciesClient.from_service_account_file
from_service_account_file(filename: str, *args, **kwargs)
Creates an instance of this client using the provided credentials file.
See more: google.cloud.iam_v2.services.policies.PoliciesClient.from_service_account_file
google.cloud.iam_v2.services.policies.PoliciesClient.from_service_account_info
from_service_account_info(info: dict, *args, **kwargs)
Creates an instance of this client using the provided credentials info.
See more: google.cloud.iam_v2.services.policies.PoliciesClient.from_service_account_info
google.cloud.iam_v2.services.policies.PoliciesClient.from_service_account_json
from_service_account_json(filename: str, *args, **kwargs)
Creates an instance of this client using the provided credentials file.
See more: google.cloud.iam_v2.services.policies.PoliciesClient.from_service_account_json
google.cloud.iam_v2.services.policies.PoliciesClient.get_mtls_endpoint_and_cert_source
get_mtls_endpoint_and_cert_source(
client_options: typing.Optional[
google.api_core.client_options.ClientOptions
] = None,
)
Deprecated.
See more: google.cloud.iam_v2.services.policies.PoliciesClient.get_mtls_endpoint_and_cert_source
google.cloud.iam_v2.services.policies.PoliciesClient.get_operation
get_operation(
request: typing.Optional[
google.longrunning.operations_pb2.GetOperationRequest
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.longrunning.operations_pb2.Operation
Gets the latest state of a long-running operation.
See more: google.cloud.iam_v2.services.policies.PoliciesClient.get_operation
google.cloud.iam_v2.services.policies.PoliciesClient.get_policy
get_policy(
request: typing.Optional[
typing.Union[google.cloud.iam_v2.types.policy.GetPolicyRequest, dict]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.iam_v2.types.policy.Policy
Gets a policy.
See more: google.cloud.iam_v2.services.policies.PoliciesClient.get_policy
google.cloud.iam_v2.services.policies.PoliciesClient.list_policies
list_policies(
request: typing.Optional[
typing.Union[google.cloud.iam_v2.types.policy.ListPoliciesRequest, dict]
] = None,
*,
parent: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.iam_v2.services.policies.pagers.ListPoliciesPager
Retrieves the policies of the specified kind that are attached to a resource.
See more: google.cloud.iam_v2.services.policies.PoliciesClient.list_policies
google.cloud.iam_v2.services.policies.PoliciesClient.parse_common_billing_account_path
parse_common_billing_account_path(path: str) -> typing.Dict[str, str]
Parse a billing_account path into its component segments.
See more: google.cloud.iam_v2.services.policies.PoliciesClient.parse_common_billing_account_path
google.cloud.iam_v2.services.policies.PoliciesClient.parse_common_folder_path
parse_common_folder_path(path: str) -> typing.Dict[str, str]
Parse a folder path into its component segments.
See more: google.cloud.iam_v2.services.policies.PoliciesClient.parse_common_folder_path
google.cloud.iam_v2.services.policies.PoliciesClient.parse_common_location_path
parse_common_location_path(path: str) -> typing.Dict[str, str]
Parse a location path into its component segments.
See more: google.cloud.iam_v2.services.policies.PoliciesClient.parse_common_location_path
google.cloud.iam_v2.services.policies.PoliciesClient.parse_common_organization_path
parse_common_organization_path(path: str) -> typing.Dict[str, str]
Parse a organization path into its component segments.
See more: google.cloud.iam_v2.services.policies.PoliciesClient.parse_common_organization_path
google.cloud.iam_v2.services.policies.PoliciesClient.parse_common_project_path
parse_common_project_path(path: str) -> typing.Dict[str, str]
Parse a project path into its component segments.
See more: google.cloud.iam_v2.services.policies.PoliciesClient.parse_common_project_path
google.cloud.iam_v2.services.policies.PoliciesClient.update_policy
update_policy(
request: typing.Optional[
typing.Union[google.cloud.iam_v2.types.policy.UpdatePolicyRequest, dict]
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.api_core.operation.Operation
Updates the specified policy.
See more: google.cloud.iam_v2.services.policies.PoliciesClient.update_policy
google.cloud.iam_v2.services.policies.pagers.ListPoliciesAsyncPager
ListPoliciesAsyncPager(
method: typing.Callable[
[...], typing.Awaitable[google.cloud.iam_v2.types.policy.ListPoliciesResponse]
],
request: google.cloud.iam_v2.types.policy.ListPoliciesRequest,
response: google.cloud.iam_v2.types.policy.ListPoliciesResponse,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
)
Instantiates the pager.
See more: google.cloud.iam_v2.services.policies.pagers.ListPoliciesAsyncPager
google.cloud.iam_v2.services.policies.pagers.ListPoliciesPager
ListPoliciesPager(
method: typing.Callable[
[...], google.cloud.iam_v2.types.policy.ListPoliciesResponse
],
request: google.cloud.iam_v2.types.policy.ListPoliciesRequest,
response: google.cloud.iam_v2.types.policy.ListPoliciesResponse,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
)
Instantiate the pager.
See more: google.cloud.iam_v2.services.policies.pagers.ListPoliciesPager
google.cloud.iam_v2beta.services.policies.PoliciesAsyncClient
PoliciesAsyncClient(*, credentials: typing.Optional[google.auth.credentials.Credentials] = None, transport: typing.Optional[typing.Union[str, google.cloud.iam_v2beta.services.policies.transports.base.PoliciesTransport, typing.Callable[[...], google.cloud.iam_v2beta.services.policies.transports.base.PoliciesTransport]]] = 'grpc_asyncio', client_options: typing.Optional[google.api_core.client_options.ClientOptions] = None, client_info: google.api_core.gapic_v1.client_info.ClientInfo =
Instantiates the policies async client.
See more: google.cloud.iam_v2beta.services.policies.PoliciesAsyncClient
google.cloud.iam_v2beta.services.policies.PoliciesAsyncClient.common_billing_account_path
common_billing_account_path(billing_account: str) -> str
Returns a fully-qualified billing_account string.
See more: google.cloud.iam_v2beta.services.policies.PoliciesAsyncClient.common_billing_account_path
google.cloud.iam_v2beta.services.policies.PoliciesAsyncClient.common_folder_path
common_folder_path(folder: str) -> str
Returns a fully-qualified folder string.
See more: google.cloud.iam_v2beta.services.policies.PoliciesAsyncClient.common_folder_path
google.cloud.iam_v2beta.services.policies.PoliciesAsyncClient.common_location_path
common_location_path(project: str, location: str) -> str
Returns a fully-qualified location string.
See more: google.cloud.iam_v2beta.services.policies.PoliciesAsyncClient.common_location_path
google.cloud.iam_v2beta.services.policies.PoliciesAsyncClient.common_organization_path
common_organization_path(organization: str) -> str
Returns a fully-qualified organization string.
See more: google.cloud.iam_v2beta.services.policies.PoliciesAsyncClient.common_organization_path
google.cloud.iam_v2beta.services.policies.PoliciesAsyncClient.common_project_path
common_project_path(project: str) -> str
Returns a fully-qualified project string.
See more: google.cloud.iam_v2beta.services.policies.PoliciesAsyncClient.common_project_path
google.cloud.iam_v2beta.services.policies.PoliciesAsyncClient.create_policy
create_policy(
request: typing.Optional[
typing.Union[google.cloud.iam_v2beta.types.policy.CreatePolicyRequest, dict]
] = None,
*,
parent: typing.Optional[str] = None,
policy: typing.Optional[google.cloud.iam_v2beta.types.policy.Policy] = None,
policy_id: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.api_core.operation_async.AsyncOperation
Creates a policy.
See more: google.cloud.iam_v2beta.services.policies.PoliciesAsyncClient.create_policy
google.cloud.iam_v2beta.services.policies.PoliciesAsyncClient.delete_policy
delete_policy(
request: typing.Optional[
typing.Union[google.cloud.iam_v2beta.types.policy.DeletePolicyRequest, dict]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.api_core.operation_async.AsyncOperation
Deletes a policy.
See more: google.cloud.iam_v2beta.services.policies.PoliciesAsyncClient.delete_policy
google.cloud.iam_v2beta.services.policies.PoliciesAsyncClient.from_service_account_file
from_service_account_file(filename: str, *args, **kwargs)
Creates an instance of this client using the provided credentials file.
See more: google.cloud.iam_v2beta.services.policies.PoliciesAsyncClient.from_service_account_file
google.cloud.iam_v2beta.services.policies.PoliciesAsyncClient.from_service_account_info
from_service_account_info(info: dict, *args, **kwargs)
Creates an instance of this client using the provided credentials info.
See more: google.cloud.iam_v2beta.services.policies.PoliciesAsyncClient.from_service_account_info
google.cloud.iam_v2beta.services.policies.PoliciesAsyncClient.from_service_account_json
from_service_account_json(filename: str, *args, **kwargs)
Creates an instance of this client using the provided credentials file.
See more: google.cloud.iam_v2beta.services.policies.PoliciesAsyncClient.from_service_account_json
google.cloud.iam_v2beta.services.policies.PoliciesAsyncClient.get_mtls_endpoint_and_cert_source
get_mtls_endpoint_and_cert_source(
client_options: typing.Optional[
google.api_core.client_options.ClientOptions
] = None,
)
Return the API endpoint and client cert source for mutual TLS.
See more: google.cloud.iam_v2beta.services.policies.PoliciesAsyncClient.get_mtls_endpoint_and_cert_source
google.cloud.iam_v2beta.services.policies.PoliciesAsyncClient.get_operation
get_operation(
request: typing.Optional[
google.longrunning.operations_pb2.GetOperationRequest
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.longrunning.operations_pb2.Operation
Gets the latest state of a long-running operation.
See more: google.cloud.iam_v2beta.services.policies.PoliciesAsyncClient.get_operation
google.cloud.iam_v2beta.services.policies.PoliciesAsyncClient.get_policy
get_policy(
request: typing.Optional[
typing.Union[google.cloud.iam_v2beta.types.policy.GetPolicyRequest, dict]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.iam_v2beta.types.policy.Policy
Gets a policy.
See more: google.cloud.iam_v2beta.services.policies.PoliciesAsyncClient.get_policy
google.cloud.iam_v2beta.services.policies.PoliciesAsyncClient.get_transport_class
get_transport_class(
label: typing.Optional[str] = None,
) -> typing.Type[
google.cloud.iam_v2beta.services.policies.transports.base.PoliciesTransport
]
Returns an appropriate transport class.
See more: google.cloud.iam_v2beta.services.policies.PoliciesAsyncClient.get_transport_class
google.cloud.iam_v2beta.services.policies.PoliciesAsyncClient.list_policies
list_policies(
request: typing.Optional[
typing.Union[google.cloud.iam_v2beta.types.policy.ListPoliciesRequest, dict]
] = None,
*,
parent: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.iam_v2beta.services.policies.pagers.ListPoliciesAsyncPager
Retrieves the policies of the specified kind that are attached to a resource.
See more: google.cloud.iam_v2beta.services.policies.PoliciesAsyncClient.list_policies
google.cloud.iam_v2beta.services.policies.PoliciesAsyncClient.parse_common_billing_account_path
parse_common_billing_account_path(path: str) -> typing.Dict[str, str]
Parse a billing_account path into its component segments.
See more: google.cloud.iam_v2beta.services.policies.PoliciesAsyncClient.parse_common_billing_account_path
google.cloud.iam_v2beta.services.policies.PoliciesAsyncClient.parse_common_folder_path
parse_common_folder_path(path: str) -> typing.Dict[str, str]
Parse a folder path into its component segments.
See more: google.cloud.iam_v2beta.services.policies.PoliciesAsyncClient.parse_common_folder_path
google.cloud.iam_v2beta.services.policies.PoliciesAsyncClient.parse_common_location_path
parse_common_location_path(path: str) -> typing.Dict[str, str]
Parse a location path into its component segments.
See more: google.cloud.iam_v2beta.services.policies.PoliciesAsyncClient.parse_common_location_path
google.cloud.iam_v2beta.services.policies.PoliciesAsyncClient.parse_common_organization_path
parse_common_organization_path(path: str) -> typing.Dict[str, str]
Parse a organization path into its component segments.
See more: google.cloud.iam_v2beta.services.policies.PoliciesAsyncClient.parse_common_organization_path
google.cloud.iam_v2beta.services.policies.PoliciesAsyncClient.parse_common_project_path
parse_common_project_path(path: str) -> typing.Dict[str, str]
Parse a project path into its component segments.
See more: google.cloud.iam_v2beta.services.policies.PoliciesAsyncClient.parse_common_project_path
google.cloud.iam_v2beta.services.policies.PoliciesAsyncClient.update_policy
update_policy(
request: typing.Optional[
typing.Union[google.cloud.iam_v2beta.types.policy.UpdatePolicyRequest, dict]
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.api_core.operation_async.AsyncOperation
Updates the specified policy.
See more: google.cloud.iam_v2beta.services.policies.PoliciesAsyncClient.update_policy
google.cloud.iam_v2beta.services.policies.PoliciesClient
PoliciesClient(*, credentials: typing.Optional[google.auth.credentials.Credentials] = None, transport: typing.Optional[typing.Union[str, google.cloud.iam_v2beta.services.policies.transports.base.PoliciesTransport, typing.Callable[[...], google.cloud.iam_v2beta.services.policies.transports.base.PoliciesTransport]]] = None, client_options: typing.Optional[typing.Union[google.api_core.client_options.ClientOptions, dict]] = None, client_info: google.api_core.gapic_v1.client_info.ClientInfo =
Instantiates the policies client.
See more: google.cloud.iam_v2beta.services.policies.PoliciesClient
google.cloud.iam_v2beta.services.policies.PoliciesClient.__exit__
__exit__(type, value, traceback)
Releases underlying transport's resources.
See more: google.cloud.iam_v2beta.services.policies.PoliciesClient.exit
google.cloud.iam_v2beta.services.policies.PoliciesClient.common_billing_account_path
common_billing_account_path(billing_account: str) -> str
Returns a fully-qualified billing_account string.
See more: google.cloud.iam_v2beta.services.policies.PoliciesClient.common_billing_account_path
google.cloud.iam_v2beta.services.policies.PoliciesClient.common_folder_path
common_folder_path(folder: str) -> str
Returns a fully-qualified folder string.
See more: google.cloud.iam_v2beta.services.policies.PoliciesClient.common_folder_path
google.cloud.iam_v2beta.services.policies.PoliciesClient.common_location_path
common_location_path(project: str, location: str) -> str
Returns a fully-qualified location string.
See more: google.cloud.iam_v2beta.services.policies.PoliciesClient.common_location_path
google.cloud.iam_v2beta.services.policies.PoliciesClient.common_organization_path
common_organization_path(organization: str) -> str
Returns a fully-qualified organization string.
See more: google.cloud.iam_v2beta.services.policies.PoliciesClient.common_organization_path
google.cloud.iam_v2beta.services.policies.PoliciesClient.common_project_path
common_project_path(project: str) -> str
Returns a fully-qualified project string.
See more: google.cloud.iam_v2beta.services.policies.PoliciesClient.common_project_path
google.cloud.iam_v2beta.services.policies.PoliciesClient.create_policy
create_policy(
request: typing.Optional[
typing.Union[google.cloud.iam_v2beta.types.policy.CreatePolicyRequest, dict]
] = None,
*,
parent: typing.Optional[str] = None,
policy: typing.Optional[google.cloud.iam_v2beta.types.policy.Policy] = None,
policy_id: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.api_core.operation.Operation
Creates a policy.
See more: google.cloud.iam_v2beta.services.policies.PoliciesClient.create_policy
google.cloud.iam_v2beta.services.policies.PoliciesClient.delete_policy
delete_policy(
request: typing.Optional[
typing.Union[google.cloud.iam_v2beta.types.policy.DeletePolicyRequest, dict]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.api_core.operation.Operation
Deletes a policy.
See more: google.cloud.iam_v2beta.services.policies.PoliciesClient.delete_policy
google.cloud.iam_v2beta.services.policies.PoliciesClient.from_service_account_file
from_service_account_file(filename: str, *args, **kwargs)
Creates an instance of this client using the provided credentials file.
See more: google.cloud.iam_v2beta.services.policies.PoliciesClient.from_service_account_file
google.cloud.iam_v2beta.services.policies.PoliciesClient.from_service_account_info
from_service_account_info(info: dict, *args, **kwargs)
Creates an instance of this client using the provided credentials info.
See more: google.cloud.iam_v2beta.services.policies.PoliciesClient.from_service_account_info
google.cloud.iam_v2beta.services.policies.PoliciesClient.from_service_account_json
from_service_account_json(filename: str, *args, **kwargs)
Creates an instance of this client using the provided credentials file.
See more: google.cloud.iam_v2beta.services.policies.PoliciesClient.from_service_account_json
google.cloud.iam_v2beta.services.policies.PoliciesClient.get_mtls_endpoint_and_cert_source
get_mtls_endpoint_and_cert_source(
client_options: typing.Optional[
google.api_core.client_options.ClientOptions
] = None,
)
Deprecated.
See more: google.cloud.iam_v2beta.services.policies.PoliciesClient.get_mtls_endpoint_and_cert_source
google.cloud.iam_v2beta.services.policies.PoliciesClient.get_operation
get_operation(
request: typing.Optional[
google.longrunning.operations_pb2.GetOperationRequest
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.longrunning.operations_pb2.Operation
Gets the latest state of a long-running operation.
See more: google.cloud.iam_v2beta.services.policies.PoliciesClient.get_operation
google.cloud.iam_v2beta.services.policies.PoliciesClient.get_policy
get_policy(
request: typing.Optional[
typing.Union[google.cloud.iam_v2beta.types.policy.GetPolicyRequest, dict]
] = None,
*,
name: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.iam_v2beta.types.policy.Policy
Gets a policy.
See more: google.cloud.iam_v2beta.services.policies.PoliciesClient.get_policy
google.cloud.iam_v2beta.services.policies.PoliciesClient.list_policies
list_policies(
request: typing.Optional[
typing.Union[google.cloud.iam_v2beta.types.policy.ListPoliciesRequest, dict]
] = None,
*,
parent: typing.Optional[str] = None,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.cloud.iam_v2beta.services.policies.pagers.ListPoliciesPager
Retrieves the policies of the specified kind that are attached to a resource.
See more: google.cloud.iam_v2beta.services.policies.PoliciesClient.list_policies
google.cloud.iam_v2beta.services.policies.PoliciesClient.parse_common_billing_account_path
parse_common_billing_account_path(path: str) -> typing.Dict[str, str]
Parse a billing_account path into its component segments.
See more: google.cloud.iam_v2beta.services.policies.PoliciesClient.parse_common_billing_account_path
google.cloud.iam_v2beta.services.policies.PoliciesClient.parse_common_folder_path
parse_common_folder_path(path: str) -> typing.Dict[str, str]
Parse a folder path into its component segments.
See more: google.cloud.iam_v2beta.services.policies.PoliciesClient.parse_common_folder_path
google.cloud.iam_v2beta.services.policies.PoliciesClient.parse_common_location_path
parse_common_location_path(path: str) -> typing.Dict[str, str]
Parse a location path into its component segments.
See more: google.cloud.iam_v2beta.services.policies.PoliciesClient.parse_common_location_path
google.cloud.iam_v2beta.services.policies.PoliciesClient.parse_common_organization_path
parse_common_organization_path(path: str) -> typing.Dict[str, str]
Parse a organization path into its component segments.
See more: google.cloud.iam_v2beta.services.policies.PoliciesClient.parse_common_organization_path
google.cloud.iam_v2beta.services.policies.PoliciesClient.parse_common_project_path
parse_common_project_path(path: str) -> typing.Dict[str, str]
Parse a project path into its component segments.
See more: google.cloud.iam_v2beta.services.policies.PoliciesClient.parse_common_project_path
google.cloud.iam_v2beta.services.policies.PoliciesClient.update_policy
update_policy(
request: typing.Optional[
typing.Union[google.cloud.iam_v2beta.types.policy.UpdatePolicyRequest, dict]
] = None,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
) -> google.api_core.operation.Operation
Updates the specified policy.
See more: google.cloud.iam_v2beta.services.policies.PoliciesClient.update_policy
google.cloud.iam_v2beta.services.policies.pagers.ListPoliciesAsyncPager
ListPoliciesAsyncPager(
method: typing.Callable[
[...],
typing.Awaitable[google.cloud.iam_v2beta.types.policy.ListPoliciesResponse],
],
request: google.cloud.iam_v2beta.types.policy.ListPoliciesRequest,
response: google.cloud.iam_v2beta.types.policy.ListPoliciesResponse,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary_async.AsyncRetry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
)
Instantiates the pager.
See more: google.cloud.iam_v2beta.services.policies.pagers.ListPoliciesAsyncPager
google.cloud.iam_v2beta.services.policies.pagers.ListPoliciesPager
ListPoliciesPager(
method: typing.Callable[
[...], google.cloud.iam_v2beta.types.policy.ListPoliciesResponse
],
request: google.cloud.iam_v2beta.types.policy.ListPoliciesRequest,
response: google.cloud.iam_v2beta.types.policy.ListPoliciesResponse,
*,
retry: typing.Optional[
typing.Union[
google.api_core.retry.retry_unary.Retry,
google.api_core.gapic_v1.method._MethodDefault,
]
] = _MethodDefault._DEFAULT_VALUE,
timeout: typing.Union[float, object] = _MethodDefault._DEFAULT_VALUE,
metadata: typing.Sequence[typing.Tuple[str, typing.Union[str, bytes]]] = ()
)
Instantiate the pager.
See more: google.cloud.iam_v2beta.services.policies.pagers.ListPoliciesPager