class V1 extends Resource (View source)

The "v1" collection of methods.

Typical usage is:

 $iapService = new Google\Service\CloudIAP(...);
 $v1 = $iapService->v1;

Methods

getIamPolicy(string $resource, GetIamPolicyRequest $postBody, array $optParams = [])

Gets the access control policy for an Identity-Aware Proxy protected resource. More information about managing access via IAP can be found at: https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api (v1.getIamPolicy)

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

Gets the IAP settings on a particular IAP protected resource.

setIamPolicy(string $resource, SetIamPolicyRequest $postBody, array $optParams = [])

Sets the access control policy for an Identity-Aware Proxy protected resource. Replaces any existing policy. More information about managing access via IAP can be found at: https://cloud.google.com/iap/docs/managing- access#managing_access_via_the_api (v1.setIamPolicy)

testIamPermissions(string $resource, TestIamPermissionsRequest $postBody, array $optParams = [])

Returns permissions that a caller has on the Identity-Aware Proxy protected resource. More information about managing access via IAP can be found at: https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api (v1.testIamPermissions)

updateIapSettings(string $name, IapSettings $postBody, array $optParams = [])

Updates the IAP settings on a particular IAP protected resource. It replaces all fields unless the update_mask is set. (v1.updateIapSettings)

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

Validates that a given CEL expression conforms to IAP restrictions.

Details

Policy getIamPolicy(string $resource, GetIamPolicyRequest $postBody, array $optParams = [])

Gets the access control policy for an Identity-Aware Proxy protected resource. More information about managing access via IAP can be found at: https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api (v1.getIamPolicy)

Parameters

string $resource

REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.

GetIamPolicyRequest $postBody
array $optParams

Optional parameters.

Return Value

Policy

Exceptions

Exception

IapSettings getIapSettings(string $name, array $optParams = [])

Gets the IAP settings on a particular IAP protected resource.

(v1.getIapSettings)

Parameters

string $name

Required. The resource name for which to retrieve the settings. Authorization: Requires the getSettings permission for the associated resource.

array $optParams

Optional parameters.

Return Value

IapSettings

Exceptions

Exception

Policy setIamPolicy(string $resource, SetIamPolicyRequest $postBody, array $optParams = [])

Sets the access control policy for an Identity-Aware Proxy protected resource. Replaces any existing policy. More information about managing access via IAP can be found at: https://cloud.google.com/iap/docs/managing- access#managing_access_via_the_api (v1.setIamPolicy)

Parameters

string $resource

REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field.

SetIamPolicyRequest $postBody
array $optParams

Optional parameters.

Return Value

Policy

Exceptions

Exception

TestIamPermissionsResponse testIamPermissions(string $resource, TestIamPermissionsRequest $postBody, array $optParams = [])

Returns permissions that a caller has on the Identity-Aware Proxy protected resource. More information about managing access via IAP can be found at: https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api (v1.testIamPermissions)

Parameters

string $resource

REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.

TestIamPermissionsRequest $postBody
array $optParams

Optional parameters.

Return Value

TestIamPermissionsResponse

Exceptions

Exception

IapSettings updateIapSettings(string $name, IapSettings $postBody, array $optParams = [])

Updates the IAP settings on a particular IAP protected resource. It replaces all fields unless the update_mask is set. (v1.updateIapSettings)

Parameters

string $name

Required. The resource name of the IAP protected resource.

IapSettings $postBody
array $optParams

Optional parameters.

Return Value

IapSettings

Exceptions

Exception

ValidateIapAttributeExpressionResponse validateAttributeExpression(string $name, array $optParams = [])

Validates that a given CEL expression conforms to IAP restrictions.

(v1.validateAttributeExpression)

Parameters

string $name

Required. The resource name of the IAP protected resource.

array $optParams

Optional parameters.

Return Value

ValidateIapAttributeExpressionResponse

Exceptions

Exception