class ProjectsLocationsEndpointPolicies extends Resource (View source)

The "endpointPolicies" collection of methods.

Typical usage is:

 $networkservicesService = new Google\Service\NetworkServices(...);
 $endpointPolicies = $networkservicesService->projects_locations_endpointPolicies;

Methods

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

Creates a new EndpointPolicy in a given project and location.

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

Deletes a single EndpointPolicy. (endpointPolicies.delete)

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

Gets details of a single EndpointPolicy. (endpointPolicies.get)

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

Lists EndpointPolicies in a given project and location.

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

Updates the parameters of a single EndpointPolicy. (endpointPolicies.patch)

Details

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

Creates a new EndpointPolicy in a given project and location.

(endpointPolicies.create)

Parameters

string $parent

Required. The parent resource of the EndpointPolicy. Must be in the format projects/locations/global.

EndpointPolicy $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Deletes a single EndpointPolicy. (endpointPolicies.delete)

Parameters

string $name

Required. A name of the EndpointPolicy to delete. Must be in the format projects/locations/global/endpointPolicies.

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Gets details of a single EndpointPolicy. (endpointPolicies.get)

Parameters

string $name

Required. A name of the EndpointPolicy to get. Must be in the format projects/locations/global/endpointPolicies.

array $optParams

Optional parameters.

Return Value

EndpointPolicy

Exceptions

Exception

ListEndpointPoliciesResponse listProjectsLocationsEndpointPolicies(string $parent, array $optParams = [])

Lists EndpointPolicies in a given project and location.

(endpointPolicies.listProjectsLocationsEndpointPolicies)

Parameters

string $parent

Required. The project and location from which the EndpointPolicies should be listed, specified in the format projects/locations/global.

array $optParams

Optional parameters.

Return Value

ListEndpointPoliciesResponse

Exceptions

Exception

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

Updates the parameters of a single EndpointPolicy. (endpointPolicies.patch)

Parameters

string $name

Identifier. Name of the EndpointPolicy resource. It matches pattern projects/{project}/locations/global/endpointPolicies/{endpoint_policy}.

EndpointPolicy $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception