class ProjectsServicesResourcePolicies extends Resource (View source)

The "resourcePolicies" collection of methods.

Typical usage is:

 $firebaseappcheckService = new Google\Service\Firebaseappcheck(...);
 $resourcePolicies = $firebaseappcheckService->projects_services_resourcePolicies;

Methods

batchUpdate(string $parent, GoogleFirebaseAppcheckV1BatchUpdateResourcePoliciesRequest $postBody, array $optParams = [])

Atomically updates the specified ResourcePolicy configurations.

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

Creates the specified ResourcePolicy configuration. (resourcePolicies.create)

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

Deletes the specified ResourcePolicy configuration. (resourcePolicies.delete)

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

Gets the requested ResourcePolicy configuration. (resourcePolicies.get)

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

Lists all ResourcePolicy configurations for the specified project and service. (resourcePolicies.listProjectsServicesResourcePolicies)

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

Updates the specified ResourcePolicy configuration. (resourcePolicies.patch)

Details

GoogleFirebaseAppcheckV1BatchUpdateResourcePoliciesResponse batchUpdate(string $parent, GoogleFirebaseAppcheckV1BatchUpdateResourcePoliciesRequest $postBody, array $optParams = [])

Atomically updates the specified ResourcePolicy configurations.

(resourcePolicies.batchUpdate)

Parameters

string $parent

Required. The parent service name, in the format projects/{project_number}/services/{service_id} The parent collection in the name field of any resource being updated must match this field, or the entire batch fails.

GoogleFirebaseAppcheckV1BatchUpdateResourcePoliciesRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleFirebaseAppcheckV1BatchUpdateResourcePoliciesResponse

Exceptions

Exception

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

Creates the specified ResourcePolicy configuration. (resourcePolicies.create)

Parameters

string $parent

Required. The relative resource name of the parent Service in which the specified ResourcePolicy will be created, in the format: projects/{project_number}/services/{service_id} Note that the service_id element must be a supported service ID. Currently, the following service IDs are supported: * oauth2.googleapis.com (Google Identity for iOS)

GoogleFirebaseAppcheckV1ResourcePolicy $postBody
array $optParams

Optional parameters.

Return Value

GoogleFirebaseAppcheckV1ResourcePolicy

Exceptions

Exception

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

Deletes the specified ResourcePolicy configuration. (resourcePolicies.delete)

Parameters

string $name

Required. The relative resource name of the ResourcePolicy to delete, in the format: projects/{project_number}/servic es/{service_id}/resourcePolicies/{resource_policy_id}

array $optParams

Optional parameters.

Return Value

GoogleProtobufEmpty

Exceptions

Exception

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

Gets the requested ResourcePolicy configuration. (resourcePolicies.get)

Parameters

string $name

Required. The relative resource name of the ResourcePolicy to retrieve, in the format: projects/{project_number}/serv ices/{service_id}/resourcePolicies/{resource_policy_id} Note that the service_id element must be a supported service ID. Currently, the following service IDs are supported: * oauth2.googleapis.com (Google Identity for iOS)

array $optParams

Optional parameters.

Return Value

GoogleFirebaseAppcheckV1ResourcePolicy

Exceptions

Exception

GoogleFirebaseAppcheckV1ListResourcePoliciesResponse listProjectsServicesResourcePolicies(string $parent, array $optParams = [])

Lists all ResourcePolicy configurations for the specified project and service. (resourcePolicies.listProjectsServicesResourcePolicies)

Parameters

string $parent

Required. The relative resource name of the parent Service for which to list each associated ResourcePolicy, in the format: projects/{project_number}/services/{service_id} Note that the service_id element must be a supported service ID. Currently, the following service IDs are supported: * oauth2.googleapis.com (Google Identity for iOS)

array $optParams

Optional parameters.

Return Value

GoogleFirebaseAppcheckV1ListResourcePoliciesResponse

Exceptions

Exception

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

Updates the specified ResourcePolicy configuration. (resourcePolicies.patch)

Parameters

string $name

Required. Identifier. The relative name of the resource policy object, in the format: projects/{project_number}/services/{service _id}/resourcePolicies/{resource_policy_id} Note that the service_id element must be a supported service ID. Currently, the following service IDs are supported: * oauth2.googleapis.com (Google Identity for iOS) resource_policy_id is a system-generated UID.

GoogleFirebaseAppcheckV1ResourcePolicy $postBody
array $optParams

Optional parameters.

Return Value

GoogleFirebaseAppcheckV1ResourcePolicy

Exceptions

Exception