Orgpolicy_v2Functions

Functions

Link copied to clipboard

Gets a custom constraint. Returns a google.rpc.Status with google.rpc.Code.NOT_FOUND if the custom constraint does not exist.

suspend fun getCustomConstraint(customConstraintId: String, organizationId: String): GetCustomConstraintResult
Link copied to clipboard

Gets a policy on a resource. If no policy is set on the resource, NOT_FOUND is returned. The etag value can be used with UpdatePolicy() to update a policy during read-modify-write.

suspend fun getFolderPolicy(folderId: String, policyId: String): GetFolderPolicyResult
Link copied to clipboard

Gets a policy on a resource. If no policy is set on the resource, NOT_FOUND is returned. The etag value can be used with UpdatePolicy() to update a policy during read-modify-write.

suspend fun getOrganizationPolicy(organizationId: String, policyId: String): GetOrganizationPolicyResult
Link copied to clipboard

Gets a policy on a resource. If no policy is set on the resource, NOT_FOUND is returned. The etag value can be used with UpdatePolicy() to update a policy during read-modify-write.

suspend fun getPolicy(argument: suspend GetPolicyPlainArgsBuilder.() -> Unit): GetPolicyResult
suspend fun getPolicy(policyId: String, project: String? = null): GetPolicyResult