class ServiceAttachments extends Resource (View source)

The "serviceAttachments" collection of methods.

Typical usage is:

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

Methods

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

Retrieves the list of all ServiceAttachment 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 $serviceAttachment, array $optParams = [])

Deletes the specified ServiceAttachment in the given scope (serviceAttachments.delete)

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

Returns the specified ServiceAttachment 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. (serviceAttachments.getIamPolicy)

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

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

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

Lists the ServiceAttachments for a project in the given scope.

patch(string $project, string $region, string $serviceAttachment, ServiceAttachment $postBody, array $optParams = [])

Patches the specified ServiceAttachment resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules. (serviceAttachments.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. (serviceAttachments.setIamPolicy)

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

Returns permissions that a caller has on the specified resource.

Details

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

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

(serviceAttachments.aggregatedList)

Parameters

string $project

Name of the project scoping this request.

array $optParams

Optional parameters.

Return Value

ServiceAttachmentAggregatedList

Exceptions

Exception

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

Deletes the specified ServiceAttachment in the given scope (serviceAttachments.delete)

Parameters

string $project

Project ID for this request.

string $region

Name of the region of this request.

string $serviceAttachment

Name of the ServiceAttachment resource to delete.

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Returns the specified ServiceAttachment resource in the given scope.

(serviceAttachments.get)

Parameters

string $project

Project ID for this request.

string $region

Name of the region of this request.

string $serviceAttachment

Name of the ServiceAttachment resource to return.

array $optParams

Optional parameters.

Return Value

ServiceAttachment

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. (serviceAttachments.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, ServiceAttachment $postBody, array $optParams = [])

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

Parameters

string $project

Project ID for this request.

string $region

Name of the region of this request.

ServiceAttachment $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Lists the ServiceAttachments for a project in the given scope.

(serviceAttachments.listServiceAttachments)

Parameters

string $project

Project ID for this request.

string $region

Name of the region of this request.

array $optParams

Optional parameters.

Return Value

ServiceAttachmentList

Exceptions

Exception

Operation patch(string $project, string $region, string $serviceAttachment, ServiceAttachment $postBody, array $optParams = [])

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

Parameters

string $project

Project ID for this request.

string $region

The region scoping this request and should conform to RFC1035.

string $serviceAttachment

The resource id of the ServiceAttachment to patch. It should conform to RFC1035 resource name or be a string form on an unsigned long number.

ServiceAttachment $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. (serviceAttachments.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.

(serviceAttachments.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