Class MachineImagesResource
The "machineImages" collection of methods.
Inherited Members
Namespace: Google.Apis.Compute.alpha
Assembly: Google.Apis.Compute.alpha.dll
Syntax
public class MachineImagesResource
Constructors
MachineImagesResource(IClientService)
Constructs a new resource.
Declaration
public MachineImagesResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Delete(string, string)
Deletes the specified machine image. Deleting a machine image is permanent and cannot be undone.
Declaration
public virtual MachineImagesResource.DeleteRequest Delete(string project, string machineImage)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
string | machineImage | The name of the machine image to delete. |
Returns
Type | Description |
---|---|
MachineImagesResource.DeleteRequest |
Get(string, string)
Returns the specified machine image.
Declaration
public virtual MachineImagesResource.GetRequest Get(string project, string machineImage)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
string | machineImage | The name of the machine image. |
Returns
Type | Description |
---|---|
MachineImagesResource.GetRequest |
GetIamPolicy(string, string)
Gets the access control policy for a resource. May be empty if no such policy or resource exists.
Declaration
public virtual MachineImagesResource.GetIamPolicyRequest GetIamPolicy(string project, string resource)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
string | resource | Name or id of the resource for this request. |
Returns
Type | Description |
---|---|
MachineImagesResource.GetIamPolicyRequest |
Insert(MachineImage, string)
Creates a machine image in the specified project using the data that is included in the request. If you are creating a new machine image to update an existing instance, your new machine image should use the same network or, if applicable, the same subnetwork as the original instance.
Declaration
public virtual MachineImagesResource.InsertRequest Insert(MachineImage body, string project)
Parameters
Type | Name | Description |
---|---|---|
MachineImage | body | The body of the request. |
string | project | Project ID for this request. |
Returns
Type | Description |
---|---|
MachineImagesResource.InsertRequest |
List(string)
Retrieves a list of machine images that are contained within the specified project.
Declaration
public virtual MachineImagesResource.ListRequest List(string project)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID for this request. |
Returns
Type | Description |
---|---|
MachineImagesResource.ListRequest |
SetIamPolicy(GlobalSetPolicyRequest, string, string)
Sets the access control policy on the specified resource. Replaces any existing policy.
Declaration
public virtual MachineImagesResource.SetIamPolicyRequest SetIamPolicy(GlobalSetPolicyRequest body, string project, string resource)
Parameters
Type | Name | Description |
---|---|---|
GlobalSetPolicyRequest | body | The body of the request. |
string | project | Project ID for this request. |
string | resource | Name or id of the resource for this request. |
Returns
Type | Description |
---|---|
MachineImagesResource.SetIamPolicyRequest |
TestIamPermissions(TestPermissionsRequest, string, string)
Returns permissions that a caller has on the specified resource.
Declaration
public virtual MachineImagesResource.TestIamPermissionsRequest TestIamPermissions(TestPermissionsRequest body, string project, string resource)
Parameters
Type | Name | Description |
---|---|---|
TestPermissionsRequest | body | The body of the request. |
string | project | Project ID for this request. |
string | resource | Name or id of the resource for this request. |
Returns
Type | Description |
---|---|
MachineImagesResource.TestIamPermissionsRequest |