GetRegionCommitmentComputeV1Result class

Result data returned by getRegionCommitment.

Constructors

GetRegionCommitmentComputeV1Result({required bool autoRenew, required String category, required String creationTimestamp, required String description, required String endTimestamp, required String kind, required LicenseResourceCommitmentResponseComputeV1 licenseResource, required List<String> mergeSourceCommitments, required String name, required String plan, required String region, required List<ReservationResponseComputeV1> reservations, required List<ResourceCommitmentResponseComputeV1> resources, required String selfLink, required String splitSourceCommitment, required String startTimestamp, required String status, required String statusMessage, required String type})
Creates a new GetRegionCommitmentComputeV1Result. autoRenew 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. category 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. creationTimestamp Creation timestamp in RFC3339 text format. description An optional description of this resource. Provide this property when you create the resource. endTimestamp Commitment end time in RFC3339 text format. kind Type of the resource. Always compute#commitment for commitments. licenseResource The license specification required as part of a license commitment. mergeSourceCommitments List of source commitments to be merged into a new commitment. name 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. plan 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). region URL of the region where this commitment may be used. reservations List of create-on-create reseravtions for this commitment. resources A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together. selfLink Server-defined URL for the resource. splitSourceCommitment Source commitment to be split into a new commitment. startTimestamp Commitment start time in RFC3339 text format. status 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. statusMessage An optional, human-readable explanation of the status. type 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.
const
GetRegionCommitmentComputeV1Result.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 → LicenseResourceCommitmentResponseComputeV1
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<ReservationResponseComputeV1>
List of create-on-create reseravtions for this commitment.
final
resources → List<ResourceCommitmentResponseComputeV1>
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
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