RegionCommitmentComputeV1Args class
The set of arguments for RegionCommitment. The set of arguments for RegionCommitment.
Constructors
-
RegionCommitmentComputeV1Args({Input<
bool> ? autoRenew, Input<RegionCommitmentCategoryComputeV1> ? category, Input<String> ? description, Input<LicenseResourceCommitmentComputeV1> ? licenseResource, Input<List< ? mergeSourceCommitments, Input<String> >String> ? name, Input<RegionCommitmentPlanComputeV1> ? plan, Input<String> ? project, required Input<String> region, Input<String> ? requestId, Input<List< ? reservations, Input<ReservationComputeV1Resource> >List< ? resources, Input<ResourceCommitmentComputeV1> >String> ? splitSourceCommitment, Input<RegionCommitmentTypeComputeV1> ? type}) -
Creates a new RegionCommitmentComputeV1Args.
autoRenewSpecifies whether to enable automatic renewal for the commitment. The default value is false if not specified. The field can be updated until the day of the commitment expiration at 12:00am PST. If the field is set to true, the commitment will be automatically renewed for either one or three years according to the terms of the existing commitment.categoryThe category of the commitment. Category MACHINE specifies commitments composed of machine resources such as VCPU or MEMORY, listed in resources. Category LICENSE specifies commitments composed of software licenses, listed in licenseResources. Note that only MACHINE commitments should have a Type specified.descriptionAn optional description of this resource. Provide this property when you create the resource.licenseResourceThe license specification required as part of a license commitment.mergeSourceCommitmentsList of source commitments to be merged into a new commitment.nameName of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression[a-z]([-a-z0-9]*[a-z0-9])?which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.planThe plan for this commitment, which determines duration and discount rate. The currently supported plans are TWELVE_MONTH (1 year), and THIRTY_SIX_MONTH (3 years).projectOptional.regionRequired.requestIdAn 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).reservationsList of create-on-create reseravtions for this commitment.resourcesA list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together.splitSourceCommitmentSource commitment to be split into a new commitment.typeThe type of commitment, which affects the discount rate and the eligible resources. Type MEMORY_OPTIMIZED specifies a commitment that will only apply to memory optimized machines. Type ACCELERATOR_OPTIMIZED specifies a commitment that will only apply to accelerator optimized machines.const -
RegionCommitmentComputeV1Args.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
autoRenew
→ Input<
bool> ? -
Specifies whether to enable automatic renewal for the commitment. The default value is false if not specified. The field can be updated until the day of the commitment expiration at 12:00am PST. If the field is set to true, the commitment will be automatically renewed for either one or three years according to the terms of the existing commitment.
final
-
category
→ Input<
RegionCommitmentCategoryComputeV1> ? -
The category of the commitment. Category MACHINE specifies commitments composed of machine resources such as VCPU or MEMORY, listed in resources. Category LICENSE specifies commitments composed of software licenses, listed in licenseResources. Note that only MACHINE commitments should have a Type specified.
final
-
description
→ Input<
String> ? -
An optional description of this resource. Provide this property when you create the resource.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
licenseResource
→ Input<
LicenseResourceCommitmentComputeV1> ? -
The license specification required as part of a license commitment.
final
-
mergeSourceCommitments
→ Input<
List< ?String> > -
List of source commitments to be merged into a new commitment.
final
-
name
→ Input<
String> ? -
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression
[a-z]([-a-z0-9]*[a-z0-9])?which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.final -
plan
→ Input<
RegionCommitmentPlanComputeV1> ? -
The plan for this commitment, which determines duration and discount rate. The currently supported plans are TWELVE_MONTH (1 year), and THIRTY_SIX_MONTH (3 years).
final
-
project
→ Input<
String> ? -
final
-
region
→ Input<
String> -
final
-
requestId
→ Input<
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).
final
-
reservations
→ Input<
List< ?ReservationComputeV1Resource> > -
List of create-on-create reseravtions for this commitment.
final
-
resources
→ Input<
List< ?ResourceCommitmentComputeV1> > -
A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
splitSourceCommitment
→ Input<
String> ? -
Source commitment to be split into a new commitment.
final
-
type
→ Input<
RegionCommitmentTypeComputeV1> ? -
The type of commitment, which affects the discount rate and the eligible resources. Type MEMORY_OPTIMIZED specifies a commitment that will only apply to memory optimized machines. Type ACCELERATOR_OPTIMIZED specifies a commitment that will only apply to accelerator optimized machines.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited