Class LicensesResource
The "licenses" collection of methods.
Inherited Members
Namespace: Google.Apis.Compute.beta
Assembly: Google.Apis.Compute.beta.dll
Syntax
public class LicensesResource
Constructors
LicensesResource(IClientService)
Constructs a new resource.
Declaration
public LicensesResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
Delete(string, string)
Deletes the specified license. Caution This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.
Declaration
public virtual LicensesResource.DeleteRequest Delete(string project, string license)
Parameters
| Type | Name | Description |
|---|---|---|
| string | project | Project ID for this request. |
| string | license | Name of the license resource to delete. |
Returns
| Type | Description |
|---|---|
| LicensesResource.DeleteRequest |
Get(string, string)
Returns the specified License resource. Caution This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.
Declaration
public virtual LicensesResource.GetRequest Get(string project, string license)
Parameters
| Type | Name | Description |
|---|---|---|
| string | project | Project ID for this request. |
| string | license | Name of the License resource to return. |
Returns
| Type | Description |
|---|---|
| LicensesResource.GetRequest |
GetIamPolicy(string, string)
Gets the access control policy for a resource. May be empty if no such policy or resource exists. Caution This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.
Declaration
public virtual LicensesResource.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 |
|---|---|
| LicensesResource.GetIamPolicyRequest |
Insert(License, string)
Create a License resource in the specified project. Caution This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.
Declaration
public virtual LicensesResource.InsertRequest Insert(License body, string project)
Parameters
| Type | Name | Description |
|---|---|---|
| License | body | The body of the request. |
| string | project | Project ID for this request. |
Returns
| Type | Description |
|---|---|
| LicensesResource.InsertRequest |
List(string)
Retrieves the list of licenses available in the specified project. This method does not get any licenses that belong to other projects, including licenses attached to publicly-available images, like Debian 9. If you want to get a list of publicly-available licenses, use this method to make a request to the respective image project, such as debian-cloud or windows-cloud. Caution This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.
Declaration
public virtual LicensesResource.ListRequest List(string project)
Parameters
| Type | Name | Description |
|---|---|---|
| string | project | Project ID for this request. |
Returns
| Type | Description |
|---|---|
| LicensesResource.ListRequest |
SetIamPolicy(GlobalSetPolicyRequest, string, string)
Sets the access control policy on the specified resource. Replaces any existing policy. Caution This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.
Declaration
public virtual LicensesResource.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 |
|---|---|
| LicensesResource.SetIamPolicyRequest |
TestIamPermissions(TestPermissionsRequest, string, string)
Returns permissions that a caller has on the specified resource. Caution This resource is intended for use only by third-party partners who are creating Cloud Marketplace images.
Declaration
public virtual LicensesResource.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 |
|---|---|
| LicensesResource.TestIamPermissionsRequest |