class ProjectsLocationsGatewaySecurityPolicies extends Resource (View source)

The "gatewaySecurityPolicies" collection of methods.

Typical usage is:

 $networksecurityService = new Google\Service\NetworkSecurity(...);
 $gatewaySecurityPolicies = $networksecurityService->projects_locations_gatewaySecurityPolicies;

Methods

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

Creates a new GatewaySecurityPolicy in a given project and location.

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

Deletes a single GatewaySecurityPolicy. (gatewaySecurityPolicies.delete)

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

Gets details of a single GatewaySecurityPolicy. (gatewaySecurityPolicies.get)

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

Lists GatewaySecurityPolicies in a given project and location.

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

Updates the parameters of a single GatewaySecurityPolicy.

Details

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

Creates a new GatewaySecurityPolicy in a given project and location.

(gatewaySecurityPolicies.create)

Parameters

string $parent

Required. The parent resource of the GatewaySecurityPolicy. Must be in the format projects/{project}/locations/{location}.

GatewaySecurityPolicy $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Deletes a single GatewaySecurityPolicy. (gatewaySecurityPolicies.delete)

Parameters

string $name

Required. A name of the GatewaySecurityPolicy to delete. Must be in the format projects/{project}/locations/{location}/gatewaySecurityPolicies.

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Gets details of a single GatewaySecurityPolicy. (gatewaySecurityPolicies.get)

Parameters

string $name

Required. A name of the GatewaySecurityPolicy to get. Must be in the format projects/{project}/locations/{location}/gatewaySecurityPolicies.

array $optParams

Optional parameters.

Return Value

GatewaySecurityPolicy

Exceptions

Exception

ListGatewaySecurityPoliciesResponse listProjectsLocationsGatewaySecurityPolicies(string $parent, array $optParams = [])

Lists GatewaySecurityPolicies in a given project and location.

(gatewaySecurityPolicies.listProjectsLocationsGatewaySecurityPolicies)

Parameters

string $parent

Required. The project and location from which the GatewaySecurityPolicies should be listed, specified in the format projects/{project}/locations/{location}.

array $optParams

Optional parameters.

Return Value

ListGatewaySecurityPoliciesResponse

Exceptions

Exception

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

Updates the parameters of a single GatewaySecurityPolicy.

(gatewaySecurityPolicies.patch)

Parameters

string $name

Required. Name of the resource. Name is of the form proje cts/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaysecurity policy} gateway_security_policy should match the pattern:(^a-z?$).

GatewaySecurityPolicy $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception