GetRegionCommitmentComputeBetaResult class
Result data returned by getRegionCommitment.
Constructors
-
GetRegionCommitmentComputeBetaResult({required bool autoRenew, required String category, required String creationTimestamp, required String description, required String endTimestamp, required String kind, required LicenseResourceCommitmentResponseComputeBeta licenseResource, required List<
String> mergeSourceCommitments, required String name, required String plan, required String region, required List<ReservationResponseComputeBeta> reservations, required List<ResourceCommitmentResponseComputeBeta> resources, required String selfLink, required String splitSourceCommitment, required String startTimestamp, required String status, required String statusMessage, required String type}) -
Creates a new GetRegionCommitmentComputeBetaResult.
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.creationTimestampCreation timestamp in RFC3339 text format.descriptionAn optional description of this resource. Provide this property when you create the resource.endTimestampCommitment end time in RFC3339 text format.kindType of the resource. Always compute#commitment for commitments.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).regionURL of the region where this commitment may be used.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.selfLinkServer-defined URL for the resource.splitSourceCommitmentSource commitment to be split into a new commitment.startTimestampCommitment start time in RFC3339 text format.statusStatus of the commitment with regards to eventual expiration (each commitment has an end date defined). One of the following values: NOT_YET_ACTIVE, ACTIVE, EXPIRED.statusMessageAn optional, human-readable explanation of the status.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 -
GetRegionCommitmentComputeBetaResult.fromMap(Map<
String, dynamic> map) -
factory
Properties
- autoRenew → 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 → 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.
final
- creationTimestamp → String
-
Creation timestamp in RFC3339 text format.
final
- description → String
-
An optional description of this resource. Provide this property when you create the resource.
final
- endTimestamp → String
-
Commitment end time in RFC3339 text format.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- kind → String
-
Type of the resource. Always compute#commitment for commitments.
final
- licenseResource → LicenseResourceCommitmentResponseComputeBeta
-
The license specification required as part of a license commitment.
final
-
mergeSourceCommitments
→ List<
String> -
List of source commitments to be merged into a new commitment.
final
- name → 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 → 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).
final
- region → String
-
URL of the region where this commitment may be used.
final
-
reservations
→ List<
ReservationResponseComputeBeta> -
List of create-on-create reseravtions for this commitment.
final
-
resources
→ List<
ResourceCommitmentResponseComputeBeta> -
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
- selfLink → String
-
Server-defined URL for the resource.
final
- splitSourceCommitment → String
-
Source commitment to be split into a new commitment.
final
- startTimestamp → String
-
Commitment start time in RFC3339 text format.
final
- status → String
-
Status of the commitment with regards to eventual expiration (each commitment has an end date defined). One of the following values: NOT_YET_ACTIVE, ACTIVE, EXPIRED.
final
- statusMessage → String
-
An optional, human-readable explanation of the status.
final
- type → String
-
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