Images
class Images extends Resource (View source)
The "images" collection of methods.
Typical usage is:
$computeService = new Google\Service\Compute(...);
$images = $computeService->images;
Methods
Deletes the specified image. (images.delete)
Sets the deprecation status of an image. If an empty request body is given, clears the deprecation status instead. (images.deprecate)
Returns the specified image. (images.get)
Returns the latest image that is part of an image family and is not deprecated. For more information on image families, see Public image families documentation. (images.getFromFamily)
Gets the access control policy for a resource. May be empty if no such policy or resource exists. (images.getIamPolicy)
Retrieves the list of custom images available to the specified project.
Sets the access control policy on the specified resource. Replaces any existing policy. (images.setIamPolicy)
Sets the labels on an image. To learn more about labels, read the Labeling Resources documentation. (images.setLabels)
Returns permissions that a caller has on the specified resource.
Details
Operation
delete(string $project, string $image, array $optParams = [])
Deletes the specified image. (images.delete)
Operation
deprecate(string $project, string $image, DeprecationStatus $postBody, array $optParams = [])
Sets the deprecation status of an image. If an empty request body is given, clears the deprecation status instead. (images.deprecate)
Image
get(string $project, string $image, array $optParams = [])
Returns the specified image. (images.get)
Image
getFromFamily(string $project, string $family, array $optParams = [])
Returns the latest image that is part of an image family and is not deprecated. For more information on image families, see Public image families documentation. (images.getFromFamily)
Policy
getIamPolicy(string $project, string $resource, array $optParams = [])
Gets the access control policy for a resource. May be empty if no such policy or resource exists. (images.getIamPolicy)
Operation
insert(string $project, Image $postBody, array $optParams = [])
Creates an image in the specified project using the data included in the request. (images.insert)
ImageList
listImages(string $project, array $optParams = [])
Retrieves the list of custom images available to the specified project.
Custom images are images you create that belong to your project. This method does not get any images that belong to other projects, including publicly- available images, like Debian 8. If you want to get a list of publicly- available images, use this method to make a request to the respective image project, such as debian-cloud or windows-cloud. (images.listImages)
Operation
patch(string $project, string $image, Image $postBody, array $optParams = [])
Patches the specified image with the data included in the request. Only the following fields can be modified: family, description, deprecation status.
(images.patch)
Policy
setIamPolicy(string $project, string $resource, GlobalSetPolicyRequest $postBody, array $optParams = [])
Sets the access control policy on the specified resource. Replaces any existing policy. (images.setIamPolicy)
Operation
setLabels(string $project, string $resource, GlobalSetLabelsRequest $postBody, array $optParams = [])
Sets the labels on an image. To learn more about labels, read the Labeling Resources documentation. (images.setLabels)
TestPermissionsResponse
testIamPermissions(string $project, string $resource, TestPermissionsRequest $postBody, array $optParams = [])
Returns permissions that a caller has on the specified resource.
(images.testIamPermissions)