class AccessPoliciesAuthorizedOrgsDescs extends Resource (View source)

The "authorizedOrgsDescs" collection of methods.

Typical usage is:

 $accesscontextmanagerService = new Google\Service\AccessContextManager(...);
 $authorizedOrgsDescs = $accesscontextmanagerService->accessPolicies_authorizedOrgsDescs;

Methods

create(string $parent, AuthorizedOrgsDesc $postBody, array $optParams = [])

Creates an authorized orgs desc. The long-running operation from this RPC has a successful status after the authorized orgs desc propagates to long-lasting storage. If a authorized orgs desc contains errors, an error response is returned for the first error encountered. The name of this AuthorizedOrgsDesc will be assigned during creation.

delete(string $name, array $optParams = [])

Deletes an authorized orgs desc based on the resource name. The long-running operation from this RPC has a successful status after the authorized orgs desc is removed from long-lasting storage. (authorizedOrgsDescs.delete)

get(string $name, array $optParams = [])

Gets an authorized orgs desc based on the resource name.

listAccessPoliciesAuthorizedOrgsDescs(string $parent, array $optParams = [])

Lists all authorized orgs descs for an access policy.

patch(string $name, AuthorizedOrgsDesc $postBody, array $optParams = [])

Updates an authorized orgs desc. The long-running operation from this RPC has a successful status after the authorized orgs desc propagates to long-lasting storage. If a authorized orgs desc contains errors, an error response is returned for the first error encountered. Only the organization list in AuthorizedOrgsDesc can be updated. The name, authorization_type, asset_type and authorization_direction cannot be updated. (authorizedOrgsDescs.patch)

Details

Operation create(string $parent, AuthorizedOrgsDesc $postBody, array $optParams = [])

Creates an authorized orgs desc. The long-running operation from this RPC has a successful status after the authorized orgs desc propagates to long-lasting storage. If a authorized orgs desc contains errors, an error response is returned for the first error encountered. The name of this AuthorizedOrgsDesc will be assigned during creation.

(authorizedOrgsDescs.create)

Parameters

string $parent

Required. Resource name for the access policy which owns this Authorized Orgs Desc. Format: accessPolicies/{policy_id}

AuthorizedOrgsDesc $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Operation delete(string $name, array $optParams = [])

Deletes an authorized orgs desc based on the resource name. The long-running operation from this RPC has a successful status after the authorized orgs desc is removed from long-lasting storage. (authorizedOrgsDescs.delete)

Parameters

string $name

Required. Resource name for the Authorized Orgs Desc. Format: accessPolicies/{policy_id}/authorizedOrgsDesc/{authorized_orgs_desc_id}

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

AuthorizedOrgsDesc get(string $name, array $optParams = [])

Gets an authorized orgs desc based on the resource name.

(authorizedOrgsDescs.get)

Parameters

string $name

Required. Resource name for the Authorized Orgs Desc. Format: accessPolicies/{policy_id}/authorizedOrgsDescs/{authorized_orgs_descs_id}

array $optParams

Optional parameters.

Return Value

AuthorizedOrgsDesc

Exceptions

Exception

ListAuthorizedOrgsDescsResponse listAccessPoliciesAuthorizedOrgsDescs(string $parent, array $optParams = [])

Lists all authorized orgs descs for an access policy.

(authorizedOrgsDescs.listAccessPoliciesAuthorizedOrgsDescs)

Parameters

string $parent

Required. Resource name for the access policy to list Authorized Orgs Desc from. Format: accessPolicies/{policy_id}

array $optParams

Optional parameters.

Return Value

ListAuthorizedOrgsDescsResponse

Exceptions

Exception

Operation patch(string $name, AuthorizedOrgsDesc $postBody, array $optParams = [])

Updates an authorized orgs desc. The long-running operation from this RPC has a successful status after the authorized orgs desc propagates to long-lasting storage. If a authorized orgs desc contains errors, an error response is returned for the first error encountered. Only the organization list in AuthorizedOrgsDesc can be updated. The name, authorization_type, asset_type and authorization_direction cannot be updated. (authorizedOrgsDescs.patch)

Parameters

string $name

Identifier. Resource name for the AuthorizedOrgsDesc. Format: accessPolicies/{access_policy}/authorizedOrgsDescs/{authorized_orgs_desc}. The authorized_orgs_desc component must begin with a letter, followed by alphanumeric characters or _. After you create an AuthorizedOrgsDesc, you cannot change its name.

AuthorizedOrgsDesc $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception