class ProjectsLocationsGatewaySecurityPoliciesRules extends Resource (View source)

The "rules" collection of methods.

Typical usage is:

 $networksecurityService = new Google\Service\NetworkSecurity(...);
 $rules = $networksecurityService->projects_locations_gatewaySecurityPolicies_rules;

Methods

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

Creates a new GatewaySecurityPolicy in a given project and location.

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

Deletes a single GatewaySecurityPolicyRule. (rules.delete)

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

Gets details of a single GatewaySecurityPolicyRule. (rules.get)

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

Lists GatewaySecurityPolicyRules in a given project and location.

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

Updates the parameters of a single GatewaySecurityPolicyRule. (rules.patch)

Details

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

Creates a new GatewaySecurityPolicy in a given project and location.

(rules.create)

Parameters

string $parent

Required. The parent where this rule will be created. Format : projects/{project}/location/{location}/gatewaySecurityPolicies

GatewaySecurityPolicyRule $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Deletes a single GatewaySecurityPolicyRule. (rules.delete)

Parameters

string $name

Required. A name of the GatewaySecurityPolicyRule to delete. Must be in the format projects/{project}/locations/{location}/gatewa ySecurityPolicies/{gatewaySecurityPolicy}/rules.

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Gets details of a single GatewaySecurityPolicyRule. (rules.get)

Parameters

string $name

Required. The name of the GatewaySecurityPolicyRule to retrieve. Format: projects/{project}/location/{location}/gatewaySecurityPolicies/rules

array $optParams

Optional parameters.

Return Value

GatewaySecurityPolicyRule

Exceptions

Exception

ListGatewaySecurityPolicyRulesResponse listProjectsLocationsGatewaySecurityPoliciesRules(string $parent, array $optParams = [])

Lists GatewaySecurityPolicyRules in a given project and location.

(rules.listProjectsLocationsGatewaySecurityPoliciesRules)

Parameters

string $parent

Required. The project, location and GatewaySecurityPolicy from which the GatewaySecurityPolicyRules should be listed, specified in the format projects/{project}/locations/{location}/gate waySecurityPolicies/{gatewaySecurityPolicy}.

array $optParams

Optional parameters.

Return Value

ListGatewaySecurityPolicyRulesResponse

Exceptions

Exception

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

Updates the parameters of a single GatewaySecurityPolicyRule. (rules.patch)

Parameters

string $name

Required. Immutable. Name of the resource. ame is the full resource name so projects/{project}/locations/{location}/gatewaySecurity Policies/{gateway_security_policy}/rules/{rule} rule should match the pattern: (^a-z?$).

GatewaySecurityPolicyRule $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception