1. Packages
  2. Google Cloud Native
  3. API Docs
  4. compute
  5. compute/beta
  6. License

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

google-native.compute/beta.License

Explore with Pulumi AI

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

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.

Create License Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new License(name: string, args?: LicenseArgs, opts?: CustomResourceOptions);
@overload
def License(resource_name: str,
            args: Optional[LicenseArgs] = None,
            opts: Optional[ResourceOptions] = None)

@overload
def License(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            name: Optional[str] = None,
            project: Optional[str] = None,
            request_id: Optional[str] = None,
            resource_requirements: Optional[LicenseResourceRequirementsArgs] = None,
            transferable: Optional[bool] = None)
func NewLicense(ctx *Context, name string, args *LicenseArgs, opts ...ResourceOption) (*License, error)
public License(string name, LicenseArgs? args = null, CustomResourceOptions? opts = null)
public License(String name, LicenseArgs args)
public License(String name, LicenseArgs args, CustomResourceOptions options)
type: google-native:compute/beta:License
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args LicenseArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args LicenseArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args LicenseArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args LicenseArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. LicenseArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var google_nativeLicenseResource = new GoogleNative.Compute.Beta.License("google-nativeLicenseResource", new()
{
    Description = "string",
    Name = "string",
    Project = "string",
    RequestId = "string",
    ResourceRequirements = new GoogleNative.Compute.Beta.Inputs.LicenseResourceRequirementsArgs
    {
        MinGuestCpuCount = 0,
        MinMemoryMb = 0,
    },
    Transferable = false,
});
Copy
example, err := computebeta.NewLicense(ctx, "google-nativeLicenseResource", &computebeta.LicenseArgs{
	Description: pulumi.String("string"),
	Name:        pulumi.String("string"),
	Project:     pulumi.String("string"),
	RequestId:   pulumi.String("string"),
	ResourceRequirements: &compute.LicenseResourceRequirementsArgs{
		MinGuestCpuCount: pulumi.Int(0),
		MinMemoryMb:      pulumi.Int(0),
	},
	Transferable: pulumi.Bool(false),
})
Copy
var google_nativeLicenseResource = new License("google-nativeLicenseResource", LicenseArgs.builder()
    .description("string")
    .name("string")
    .project("string")
    .requestId("string")
    .resourceRequirements(LicenseResourceRequirementsArgs.builder()
        .minGuestCpuCount(0)
        .minMemoryMb(0)
        .build())
    .transferable(false)
    .build());
Copy
google_native_license_resource = google_native.compute.beta.License("google-nativeLicenseResource",
    description="string",
    name="string",
    project="string",
    request_id="string",
    resource_requirements={
        "min_guest_cpu_count": 0,
        "min_memory_mb": 0,
    },
    transferable=False)
Copy
const google_nativeLicenseResource = new google_native.compute.beta.License("google-nativeLicenseResource", {
    description: "string",
    name: "string",
    project: "string",
    requestId: "string",
    resourceRequirements: {
        minGuestCpuCount: 0,
        minMemoryMb: 0,
    },
    transferable: false,
});
Copy
type: google-native:compute/beta:License
properties:
    description: string
    name: string
    project: string
    requestId: string
    resourceRequirements:
        minGuestCpuCount: 0
        minMemoryMb: 0
    transferable: false
Copy

License Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The License resource accepts the following input properties:

Description string
An optional textual description of the resource; provided by the client when the resource is created.
Name string
Name of the resource. The name must be 1-63 characters long and comply with RFC1035.
Project Changes to this property will trigger replacement. string
RequestId string
An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
ResourceRequirements Pulumi.GoogleNative.Compute.Beta.Inputs.LicenseResourceRequirements
Transferable bool
If false, licenses will not be copied from the source resource when creating an image from a disk, disk from snapshot, or snapshot from disk.
Description string
An optional textual description of the resource; provided by the client when the resource is created.
Name string
Name of the resource. The name must be 1-63 characters long and comply with RFC1035.
Project Changes to this property will trigger replacement. string
RequestId string
An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
ResourceRequirements LicenseResourceRequirementsArgs
Transferable bool
If false, licenses will not be copied from the source resource when creating an image from a disk, disk from snapshot, or snapshot from disk.
description String
An optional textual description of the resource; provided by the client when the resource is created.
name String
Name of the resource. The name must be 1-63 characters long and comply with RFC1035.
project Changes to this property will trigger replacement. String
requestId String
An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
resourceRequirements LicenseResourceRequirements
transferable Boolean
If false, licenses will not be copied from the source resource when creating an image from a disk, disk from snapshot, or snapshot from disk.
description string
An optional textual description of the resource; provided by the client when the resource is created.
name string
Name of the resource. The name must be 1-63 characters long and comply with RFC1035.
project Changes to this property will trigger replacement. string
requestId string
An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
resourceRequirements LicenseResourceRequirements
transferable boolean
If false, licenses will not be copied from the source resource when creating an image from a disk, disk from snapshot, or snapshot from disk.
description str
An optional textual description of the resource; provided by the client when the resource is created.
name str
Name of the resource. The name must be 1-63 characters long and comply with RFC1035.
project Changes to this property will trigger replacement. str
request_id str
An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
resource_requirements LicenseResourceRequirementsArgs
transferable bool
If false, licenses will not be copied from the source resource when creating an image from a disk, disk from snapshot, or snapshot from disk.
description String
An optional textual description of the resource; provided by the client when the resource is created.
name String
Name of the resource. The name must be 1-63 characters long and comply with RFC1035.
project Changes to this property will trigger replacement. String
requestId String
An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
resourceRequirements Property Map
transferable Boolean
If false, licenses will not be copied from the source resource when creating an image from a disk, disk from snapshot, or snapshot from disk.

Outputs

All input properties are implicitly available as output properties. Additionally, the License resource produces the following output properties:

ChargesUseFee bool
Deprecated. This field no longer reflects whether a license charges a usage fee.

Deprecated: [Output Only] Deprecated. This field no longer reflects whether a license charges a usage fee.

CreationTimestamp string
Creation timestamp in RFC3339 text format.
Id string
The provider-assigned unique ID for this managed resource.
Kind string
Type of resource. Always compute#license for licenses.
LicenseCode string
The unique code used to attach this license to images, snapshots, and disks.
SelfLink string
Server-defined URL for the resource.
ChargesUseFee bool
Deprecated. This field no longer reflects whether a license charges a usage fee.

Deprecated: [Output Only] Deprecated. This field no longer reflects whether a license charges a usage fee.

CreationTimestamp string
Creation timestamp in RFC3339 text format.
Id string
The provider-assigned unique ID for this managed resource.
Kind string
Type of resource. Always compute#license for licenses.
LicenseCode string
The unique code used to attach this license to images, snapshots, and disks.
SelfLink string
Server-defined URL for the resource.
chargesUseFee Boolean
Deprecated. This field no longer reflects whether a license charges a usage fee.

Deprecated: [Output Only] Deprecated. This field no longer reflects whether a license charges a usage fee.

creationTimestamp String
Creation timestamp in RFC3339 text format.
id String
The provider-assigned unique ID for this managed resource.
kind String
Type of resource. Always compute#license for licenses.
licenseCode String
The unique code used to attach this license to images, snapshots, and disks.
selfLink String
Server-defined URL for the resource.
chargesUseFee boolean
Deprecated. This field no longer reflects whether a license charges a usage fee.

Deprecated: [Output Only] Deprecated. This field no longer reflects whether a license charges a usage fee.

creationTimestamp string
Creation timestamp in RFC3339 text format.
id string
The provider-assigned unique ID for this managed resource.
kind string
Type of resource. Always compute#license for licenses.
licenseCode string
The unique code used to attach this license to images, snapshots, and disks.
selfLink string
Server-defined URL for the resource.
charges_use_fee bool
Deprecated. This field no longer reflects whether a license charges a usage fee.

Deprecated: [Output Only] Deprecated. This field no longer reflects whether a license charges a usage fee.

creation_timestamp str
Creation timestamp in RFC3339 text format.
id str
The provider-assigned unique ID for this managed resource.
kind str
Type of resource. Always compute#license for licenses.
license_code str
The unique code used to attach this license to images, snapshots, and disks.
self_link str
Server-defined URL for the resource.
chargesUseFee Boolean
Deprecated. This field no longer reflects whether a license charges a usage fee.

Deprecated: [Output Only] Deprecated. This field no longer reflects whether a license charges a usage fee.

creationTimestamp String
Creation timestamp in RFC3339 text format.
id String
The provider-assigned unique ID for this managed resource.
kind String
Type of resource. Always compute#license for licenses.
licenseCode String
The unique code used to attach this license to images, snapshots, and disks.
selfLink String
Server-defined URL for the resource.

Supporting Types

LicenseResourceRequirements
, LicenseResourceRequirementsArgs

MinGuestCpuCount int
Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
MinMemoryMb int
Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.
MinGuestCpuCount int
Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
MinMemoryMb int
Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.
minGuestCpuCount Integer
Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
minMemoryMb Integer
Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.
minGuestCpuCount number
Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
minMemoryMb number
Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.
min_guest_cpu_count int
Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
min_memory_mb int
Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.
minGuestCpuCount Number
Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
minMemoryMb Number
Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.

LicenseResourceRequirementsResponse
, LicenseResourceRequirementsResponseArgs

MinGuestCpuCount This property is required. int
Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
MinMemoryMb This property is required. int
Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.
MinGuestCpuCount This property is required. int
Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
MinMemoryMb This property is required. int
Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.
minGuestCpuCount This property is required. Integer
Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
minMemoryMb This property is required. Integer
Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.
minGuestCpuCount This property is required. number
Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
minMemoryMb This property is required. number
Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.
min_guest_cpu_count This property is required. int
Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
min_memory_mb This property is required. int
Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.
minGuestCpuCount This property is required. Number
Minimum number of guest cpus required to use the Instance. Enforced at Instance creation and Instance start.
minMemoryMb This property is required. Number
Minimum memory required to use the Instance. Enforced at Instance creation and Instance start.

Package Details

Repository
Google Cloud Native pulumi/pulumi-google-native
License
Apache-2.0

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi