class ProjectsLocationsNetworkPoliciesExternalAccessRules extends Resource (View source)

The "externalAccessRules" collection of methods.

Typical usage is:

 $vmwareengineService = new Google\Service\VMwareEngine(...);
 $externalAccessRules = $vmwareengineService->projects_locations_networkPolicies_externalAccessRules;

Methods

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

Creates a new external access rule in a given network policy.

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

Deletes a single external access rule. (externalAccessRules.delete)

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

Gets details of a single external access rule. (externalAccessRules.get)

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

Lists ExternalAccessRule resources in the specified network policy.

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

Updates the parameters of a single external access rule. Only fields specified in update_mask are applied. (externalAccessRules.patch)

Details

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

Creates a new external access rule in a given network policy.

(externalAccessRules.create)

Parameters

string $parent

Required. The resource name of the network policy to create a new external access firewall rule in. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/us-central1/networkPolicies/my-policy

ExternalAccessRule $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Deletes a single external access rule. (externalAccessRules.delete)

Parameters

string $name

Required. The resource name of the external access firewall rule to delete. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/us-central1/networkPolicies/my- policy/externalAccessRules/my-rule

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Gets details of a single external access rule. (externalAccessRules.get)

Parameters

string $name

Required. The resource name of the external access firewall rule to retrieve. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/us-central1/networkPolicies/my- policy/externalAccessRules/my-rule

array $optParams

Optional parameters.

Return Value

ExternalAccessRule

Exceptions

Exception

ListExternalAccessRulesResponse listProjectsLocationsNetworkPoliciesExternalAccessRules(string $parent, array $optParams = [])

Lists ExternalAccessRule resources in the specified network policy.

(externalAccessRules.listProjectsLocationsNetworkPoliciesExternalAccessRules)

Parameters

string $parent

Required. The resource name of the network policy to query for external access firewall rules. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/us-central1/networkPolicies/my-policy

array $optParams

Optional parameters.

Return Value

ListExternalAccessRulesResponse

Exceptions

Exception

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

Updates the parameters of a single external access rule. Only fields specified in update_mask are applied. (externalAccessRules.patch)

Parameters

string $name

Output only. The resource name of this external access rule. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/us-central1/networkPolicies/my- policy/externalAccessRules/my-rule

ExternalAccessRule $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception