Commitment class
Represents a regional Commitment resource.
Creating a commitment resource means that you are purchasing a committed use contract with an explicit start and end time. You can create commitments based on vCPUs and memory usage and receive discounted rates. For full details, read Signing Up for Committed Use Discounts.
Constructors
-
Commitment({bool? autoRenew, String? category, String? creationTimestamp, String? description, String? endTimestamp, List<
String> ? existingReservations, String? id, String? kind, LicenseResourceCommitment? licenseResource, List<String> ? mergeSourceCommitments, String? name, String? plan, String? region, List<Reservation> ? reservations, List<ResourceCommitment> ? resources, String? selfLink, String? splitSourceCommitment, String? startTimestamp, String? status, String? statusMessage, String? type}) - Commitment.fromJson(Map json_)
Properties
- autoRenew ↔ bool?
-
Specifies whether to enable automatic renewal for the commitment.
getter/setter pair
- category ↔ String?
-
The category of the commitment.
getter/setter pair
- creationTimestamp ↔ String?
-
Creation timestamp in RFC3339 text format.
getter/setter pair
- description ↔ String?
-
An optional description of this resource.
getter/setter pair
- endTimestamp ↔ String?
-
Commitment end time in RFC3339 text format.
getter/setter pair
-
existingReservations
↔ List<
String> ? -
Specifies the already existing reservations to attach to the Commitment.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ String?
-
The unique identifier for the resource.
getter/setter pair
- kind ↔ String?
-
Type of the resource.
getter/setter pair
- licenseResource ↔ LicenseResourceCommitment?
-
The license specification required as part of a license commitment.
getter/setter pair
-
mergeSourceCommitments
↔ List<
String> ? -
List of source commitments to be merged into a new commitment.
getter/setter pair
- name ↔ String?
-
Name of the resource.
getter/setter pair
- plan ↔ String?
-
The plan for this commitment, which determines duration and discount rate.
getter/setter pair
- region ↔ String?
-
URL of the region where this commitment may be used.
getter/setter pair
-
reservations
↔ List<
Reservation> ? -
List of create-on-create reservations for this commitment.
getter/setter pair
-
resources
↔ List<
ResourceCommitment> ? -
A list of commitment amounts for particular resources.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selfLink ↔ String?
-
Server-defined URL for the resource.
getter/setter pair
- splitSourceCommitment ↔ String?
-
Source commitment to be split into a new commitment.
getter/setter pair
- startTimestamp ↔ String?
-
Commitment start time in RFC3339 text format.
getter/setter pair
- status ↔ String?
-
Status of the commitment with regards to eventual expiration (each
commitment has an end date defined).
getter/setter pair
- statusMessage ↔ String?
-
An optional, human-readable explanation of the status.
getter/setter pair
- type ↔ String?
-
The type of commitment, which affects the discount rate and the eligible
resources.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited