class NetworkAttachments extends Resource (View source)

The "networkAttachments" collection of methods.

Typical usage is:

 $computeService = new Google\Service\Compute(...);
 $networkAttachments = $computeService->networkAttachments;

Methods

aggregatedList(string $project, array $optParams = [])

Retrieves the list of all NetworkAttachment resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.

delete(string $project, string $region, string $networkAttachment, array $optParams = [])

Deletes the specified NetworkAttachment in the given scope (networkAttachments.delete)

get(string $project, string $region, string $networkAttachment, array $optParams = [])

Returns the specified NetworkAttachment resource in the given scope.

getIamPolicy(string $project, string $region, string $resource, array $optParams = [])

Gets the access control policy for a resource. May be empty if no such policy or resource exists. (networkAttachments.getIamPolicy)

insert(string $project, string $region, NetworkAttachment $postBody, array $optParams = [])

Creates a NetworkAttachment in the specified project in the given scope using the parameters that are included in the request. (networkAttachments.insert)

listNetworkAttachments(string $project, string $region, array $optParams = [])

Lists the NetworkAttachments for a project in the given scope.

patch(string $project, string $region, string $networkAttachment, NetworkAttachment $postBody, array $optParams = [])

Patches the specified NetworkAttachment resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules. (networkAttachments.patch)

setIamPolicy(string $project, string $region, string $resource, RegionSetPolicyRequest $postBody, array $optParams = [])

Sets the access control policy on the specified resource. Replaces any existing policy. (networkAttachments.setIamPolicy)

testIamPermissions(string $project, string $region, string $resource, TestPermissionsRequest $postBody, array $optParams = [])

Returns permissions that a caller has on the specified resource.

Details

NetworkAttachmentAggregatedList aggregatedList(string $project, array $optParams = [])

Retrieves the list of all NetworkAttachment resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.

(networkAttachments.aggregatedList)

Parameters

string $project

Project ID for this request.

array $optParams

Optional parameters.

Return Value

NetworkAttachmentAggregatedList

Exceptions

Exception

Operation delete(string $project, string $region, string $networkAttachment, array $optParams = [])

Deletes the specified NetworkAttachment in the given scope (networkAttachments.delete)

Parameters

string $project

Project ID for this request.

string $region

Name of the region of this request.

string $networkAttachment

Name of the NetworkAttachment resource to delete.

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

NetworkAttachment get(string $project, string $region, string $networkAttachment, array $optParams = [])

Returns the specified NetworkAttachment resource in the given scope.

(networkAttachments.get)

Parameters

string $project

Project ID for this request.

string $region

Name of the region of this request.

string $networkAttachment

Name of the NetworkAttachment resource to return.

array $optParams

Optional parameters.

Return Value

NetworkAttachment

Exceptions

Exception

Policy getIamPolicy(string $project, string $region, string $resource, array $optParams = [])

Gets the access control policy for a resource. May be empty if no such policy or resource exists. (networkAttachments.getIamPolicy)

Parameters

string $project

Project ID for this request.

string $region

The name of the region for this request.

string $resource

Name or id of the resource for this request.

array $optParams

Optional parameters.

Return Value

Policy

Exceptions

Exception

Operation insert(string $project, string $region, NetworkAttachment $postBody, array $optParams = [])

Creates a NetworkAttachment in the specified project in the given scope using the parameters that are included in the request. (networkAttachments.insert)

Parameters

string $project

Project ID for this request.

string $region

Name of the region of this request.

NetworkAttachment $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

NetworkAttachmentList listNetworkAttachments(string $project, string $region, array $optParams = [])

Lists the NetworkAttachments for a project in the given scope.

(networkAttachments.listNetworkAttachments)

Parameters

string $project

Project ID for this request.

string $region

Name of the region of this request.

array $optParams

Optional parameters.

Return Value

NetworkAttachmentList

Exceptions

Exception

Operation patch(string $project, string $region, string $networkAttachment, NetworkAttachment $postBody, array $optParams = [])

Patches the specified NetworkAttachment resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules. (networkAttachments.patch)

Parameters

string $project

Project ID for this request.

string $region

Name of the region for this request.

string $networkAttachment

Name of the NetworkAttachment resource to patch.

NetworkAttachment $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Policy setIamPolicy(string $project, string $region, string $resource, RegionSetPolicyRequest $postBody, array $optParams = [])

Sets the access control policy on the specified resource. Replaces any existing policy. (networkAttachments.setIamPolicy)

Parameters

string $project

Project ID for this request.

string $region

The name of the region for this request.

string $resource

Name or id of the resource for this request.

RegionSetPolicyRequest $postBody
array $optParams

Optional parameters.

Return Value

Policy

Exceptions

Exception

TestPermissionsResponse testIamPermissions(string $project, string $region, string $resource, TestPermissionsRequest $postBody, array $optParams = [])

Returns permissions that a caller has on the specified resource.

(networkAttachments.testIamPermissions)

Parameters

string $project

Project ID for this request.

string $region

The name of the region for this request.

string $resource

Name or id of the resource for this request.

TestPermissionsRequest $postBody
array $optParams

Optional parameters.

Return Value

TestPermissionsResponse

Exceptions

Exception