RegionCommitmentArgs class

The set of arguments for RegionCommitment. The set of arguments for RegionCommitment.

Constructors

RegionCommitmentArgs({Input<bool?>? autoRenew, Input<String?>? category, Input<String?>? description, Input<String?>? existingReservations, Input<RegionCommitmentLicenseResource?>? licenseResource, Input<String?>? name, Input<RegionCommitmentParams?>? params, required Input<String> plan, Input<String?>? project, Input<String?>? region, Input<List<RegionCommitmentResource>?>? resources, Input<String?>? type})
Creates a new RegionCommitmentArgs. autoRenew Specifies whether to enable automatic renewal for the commitment. category The category of the commitment. Category MACHINE specifies commitments composed of description An optional description of this resource. existingReservations Specifies the already existing reservations to attach to the Commitment. This field will suppress licenseResource The license specification required as part of a license commitment. name Name of the resource. The name must be 1-63 characters long and match params Additional params passed with the request, but not persisted as part of resource payload plan The plan for this commitment, which determines duration and discount rate. project The ID of the project in which the resource belongs. region URL of the region where this commitment may be used. resources A list of commitment amounts for particular resources. type The type of commitment, which affects the discount rate and the eligible resources.
const
RegionCommitmentArgs.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. 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<String?>?
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. Possible values are: LICENSE, MACHINE.
final
description → Input<String?>?
An optional description of this resource.
final
existingReservations → Input<String?>?
Specifies the already existing reservations to attach to the Commitment. This field will suppress diffs that change the value from empty to non-empty. To force changing this field from empty to non-empty, change another field at the same time.
final
hashCode → int
The hash code for this object.
no setterinherited
licenseResource → Input<RegionCommitmentLicenseResource?>?
The license specification required as part of a license commitment. Structure is documented below.
final
name → Input<String?>?
Name of the resource. The name must be 1-63 characters long and match the regular expression a-z? 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
params → Input<RegionCommitmentParams?>?
Additional params passed with the request, but not persisted as part of resource payload Structure is documented below.
final
plan → Input<String>
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). Possible values are: TWELVE_MONTH, THIRTY_SIX_MONTH.
final
project → Input<String?>?
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
final
region → Input<String?>?
URL of the region where this commitment may be used.
final
resources → Input<List<RegionCommitmentResource>?>?
A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together. Structure is documented below.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → Input<String?>?
The type of commitment, which affects the discount rate and the eligible resources. The type could be one of the following value: MEMORY_OPTIMIZED, ACCELERATOR_OPTIMIZED, GENERAL_PURPOSE, GENERAL_PURPOSE_N2, GENERAL_PURPOSE_N2D, GENERAL_PURPOSE_E2, GENERAL_PURPOSE_T2D, GENERAL_PURPOSE_C3, COMPUTE_OPTIMIZED_C2, COMPUTE_OPTIMIZED_C2D and GRAPHICS_OPTIMIZED_G2
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