compute  v1
Classes | Public Member Functions | List of all members
Google.Apis.Compute.v1.ImagesResource Class Reference

The "images" collection of methods. More...

Classes

class  DeleteRequest
 Deletes the specified image. More...
 
class  DeprecateRequest
 Sets the deprecation status of an image. More...
 
class  GetFromFamilyRequest
 Returns the latest image that is part of an image family and is not deprecated. More...
 
class  GetIamPolicyRequest
 Gets the access control policy for a resource. May be empty if no such policy or resource exists. More...
 
class  GetRequest
 Returns the specified image. Gets a list of available images by making a list() request. More...
 
class  InsertRequest
 Creates an image in the specified project using the data included in the request. More...
 
class  ListRequest
 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. More...
 
class  SetIamPolicyRequest
 Sets the access control policy on the specified resource. Replaces any existing policy. More...
 
class  SetLabelsRequest
 Sets the labels on an image. To learn more about labels, read the Labeling Resources documentation. More...
 
class  TestIamPermissionsRequest
 Returns permissions that a caller has on the specified resource. More...
 

Public Member Functions

 ImagesResource (Google.Apis.Services.IClientService service)
 Constructs a new resource. More...
 
virtual DeleteRequest Delete (string project, string image)
 Deletes the specified image. More...
 
virtual DeprecateRequest Deprecate (Google.Apis.Compute.v1.Data.DeprecationStatus body, string project, string image)
 Sets the deprecation status of an image. More...
 
virtual GetRequest Get (string project, string image)
 Returns the specified image. Gets a list of available images by making a list() request. More...
 
virtual GetFromFamilyRequest GetFromFamily (string project, string family)
 Returns the latest image that is part of an image family and is not deprecated. More...
 
virtual GetIamPolicyRequest GetIamPolicy (string project, string resource)
 Gets the access control policy for a resource. May be empty if no such policy or resource exists. More...
 
virtual InsertRequest Insert (Google.Apis.Compute.v1.Data.Image body, string project)
 Creates an image in the specified project using the data included in the request. More...
 
virtual ListRequest List (string project)
 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. More...
 
virtual SetIamPolicyRequest SetIamPolicy (Google.Apis.Compute.v1.Data.GlobalSetPolicyRequest body, string project, string resource)
 Sets the access control policy on the specified resource. Replaces any existing policy. More...
 
virtual SetLabelsRequest SetLabels (Google.Apis.Compute.v1.Data.GlobalSetLabelsRequest body, string project, string resource)
 Sets the labels on an image. To learn more about labels, read the Labeling Resources documentation. More...
 
virtual TestIamPermissionsRequest TestIamPermissions (Google.Apis.Compute.v1.Data.TestPermissionsRequest body, string project, string resource)
 Returns permissions that a caller has on the specified resource. More...
 

Detailed Description

The "images" collection of methods.

Constructor & Destructor Documentation

◆ ImagesResource()

Google.Apis.Compute.v1.ImagesResource.ImagesResource ( Google.Apis.Services.IClientService  service)
inline

Constructs a new resource.

Member Function Documentation

◆ Delete()

virtual DeleteRequest Google.Apis.Compute.v1.ImagesResource.Delete ( string  project,
string  image 
)
inlinevirtual

Deletes the specified image.

Parameters
projectProject ID for this request.
imageName of the image resource to delete.

◆ Deprecate()

virtual DeprecateRequest Google.Apis.Compute.v1.ImagesResource.Deprecate ( Google.Apis.Compute.v1.Data.DeprecationStatus  body,
string  project,
string  image 
)
inlinevirtual

Sets the deprecation status of an image.

If an empty request body is given, clears the deprecation status instead.

Parameters
bodyThe body of the request.
projectProject ID for this request.
imageImage name.

◆ Get()

virtual GetRequest Google.Apis.Compute.v1.ImagesResource.Get ( string  project,
string  image 
)
inlinevirtual

Returns the specified image. Gets a list of available images by making a list() request.

Parameters
projectProject ID for this request.
imageName of the image resource to return.

◆ GetFromFamily()

virtual GetFromFamilyRequest Google.Apis.Compute.v1.ImagesResource.GetFromFamily ( string  project,
string  family 
)
inlinevirtual

Returns the latest image that is part of an image family and is not deprecated.

Parameters
projectProject ID for this request.
familyName of the image family to search for.

◆ GetIamPolicy()

virtual GetIamPolicyRequest Google.Apis.Compute.v1.ImagesResource.GetIamPolicy ( string  project,
string  resource 
)
inlinevirtual

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

Parameters
projectProject ID for this request.
resourceName or id of the resource for this request.

◆ Insert()

virtual InsertRequest Google.Apis.Compute.v1.ImagesResource.Insert ( Google.Apis.Compute.v1.Data.Image  body,
string  project 
)
inlinevirtual

Creates an image in the specified project using the data included in the request.

Parameters
bodyThe body of the request.
projectProject ID for this request.

◆ List()

virtual ListRequest Google.Apis.Compute.v1.ImagesResource.List ( string  project)
inlinevirtual

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.

Parameters
projectProject ID for this request.

◆ SetIamPolicy()

virtual SetIamPolicyRequest Google.Apis.Compute.v1.ImagesResource.SetIamPolicy ( Google.Apis.Compute.v1.Data.GlobalSetPolicyRequest  body,
string  project,
string  resource 
)
inlinevirtual

Sets the access control policy on the specified resource. Replaces any existing policy.

Parameters
bodyThe body of the request.
projectProject ID for this request.
resourceName or id of the resource for this request.

◆ SetLabels()

virtual SetLabelsRequest Google.Apis.Compute.v1.ImagesResource.SetLabels ( Google.Apis.Compute.v1.Data.GlobalSetLabelsRequest  body,
string  project,
string  resource 
)
inlinevirtual

Sets the labels on an image. To learn more about labels, read the Labeling Resources documentation.

Parameters
bodyThe body of the request.
projectProject ID for this request.
resourceName or id of the resource for this request.

◆ TestIamPermissions()

virtual TestIamPermissionsRequest Google.Apis.Compute.v1.ImagesResource.TestIamPermissions ( Google.Apis.Compute.v1.Data.TestPermissionsRequest  body,
string  project,
string  resource 
)
inlinevirtual

Returns permissions that a caller has on the specified resource.

Parameters
bodyThe body of the request.
projectProject ID for this request.
resourceName or id of the resource for this request.

The documentation for this class was generated from the following file: