ProjectsLocationsCapacityCommitmentsResource class

Constructors

ProjectsLocationsCapacityCommitmentsResource(ApiRequester client)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

create(CapacityCommitment request, String parent, {String? capacityCommitmentId, bool? enforceSingleAdminProjectPerOrg, String? $fields}) Future<CapacityCommitment>
Creates a new capacity commitment resource.
delete(String name, {bool? force, String? $fields}) Future<Empty>
Deletes a capacity commitment.
get(String name, {String? $fields}) Future<CapacityCommitment>
Returns information about the capacity commitment.
list(String parent, {int? pageSize, String? pageToken, String? $fields}) Future<ListCapacityCommitmentsResponse>
Lists all the capacity commitments for the admin project.
merge(MergeCapacityCommitmentsRequest request, String parent, {String? $fields}) Future<CapacityCommitment>
Merges capacity commitments of the same plan into a single commitment.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
patch(CapacityCommitment request, String name, {String? updateMask, String? $fields}) Future<CapacityCommitment>
Updates an existing capacity commitment.
split(SplitCapacityCommitmentRequest request, String name, {String? $fields}) Future<SplitCapacityCommitmentResponse>
Splits capacity commitment to two commitments of the same plan and commitment_end_time.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited