![JAR search and dependency download from the Maven repository](/logo.png)
target.apidocs.com.google.api.services.compute.Compute.RegionCommitments.html Maven / Gradle / Ivy
Compute.RegionCommitments (Compute Engine API beta-rev20220312-1.32.1)
com.google.api.services.compute
Class Compute.RegionCommitments
- java.lang.Object
-
- com.google.api.services.compute.Compute.RegionCommitments
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
Compute.RegionCommitments.AggregatedList
class
Compute.RegionCommitments.Get
class
Compute.RegionCommitments.Insert
class
Compute.RegionCommitments.List
class
Compute.RegionCommitments.TestIamPermissions
class
Compute.RegionCommitments.Update
class
Compute.RegionCommitments.UpdateReservations
-
Constructor Summary
Constructors
Constructor and Description
RegionCommitments()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Compute.RegionCommitments.AggregatedList
aggregatedList(String project)
Retrieves an aggregated list of commitments by region.
Compute.RegionCommitments.Get
get(String project,
String region,
String commitment)
Returns the specified commitment resource.
Compute.RegionCommitments.Insert
insert(String project,
String region,
Commitment content)
Creates a commitment in the specified project using the data included in the request.
Compute.RegionCommitments.List
list(String project,
String region)
Retrieves a list of commitments contained within the specified region.
Compute.RegionCommitments.TestIamPermissions
testIamPermissions(String project,
String region,
String resource,
TestPermissionsRequest content)
Returns permissions that a caller has on the specified resource.
Compute.RegionCommitments.Update
update(String project,
String region,
String commitment,
Commitment content)
Updates the specified commitment with the data included in the request.
Compute.RegionCommitments.UpdateReservations
updateReservations(String project,
String region,
String commitment,
RegionCommitmentsUpdateReservationsRequest content)
Transfers GPUs or local SSDs between reservations within commitments.
-
-
Method Detail
-
aggregatedList
public Compute.RegionCommitments.AggregatedList aggregatedList(String project)
throws IOException
Retrieves an aggregated list of commitments by region.
Create a request for the method "regionCommitments.aggregatedList".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID for this request.
- Returns:
- the request
- Throws:
IOException
-
get
public Compute.RegionCommitments.Get get(String project,
String region,
String commitment)
throws IOException
Returns the specified commitment resource. Gets a list of available commitments by making a
list() request.
Create a request for the method "regionCommitments.get".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID for this request.
region
- Name of the region for this request.
commitment
- Name of the commitment to return.
- Returns:
- the request
- Throws:
IOException
-
insert
public Compute.RegionCommitments.Insert insert(String project,
String region,
Commitment content)
throws IOException
Creates a commitment in the specified project using the data included in the request.
Create a request for the method "regionCommitments.insert".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID for this request.
region
- Name of the region for this request.
content
- the Commitment
- Returns:
- the request
- Throws:
IOException
-
list
public Compute.RegionCommitments.List list(String project,
String region)
throws IOException
Retrieves a list of commitments contained within the specified region.
Create a request for the method "regionCommitments.list".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID for this request.
region
- Name of the region for this request.
- Returns:
- the request
- Throws:
IOException
-
testIamPermissions
public Compute.RegionCommitments.TestIamPermissions testIamPermissions(String project,
String region,
String resource,
TestPermissionsRequest content)
throws IOException
Returns permissions that a caller has on the specified resource.
Create a request for the method "regionCommitments.testIamPermissions".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID for this request.
region
- The name of the region for this request.
resource
- Name or id of the resource for this request.
content
- the TestPermissionsRequest
- Returns:
- the request
- Throws:
IOException
-
update
public Compute.RegionCommitments.Update update(String project,
String region,
String commitment,
Commitment content)
throws IOException
Updates the specified commitment with the data included in the request. Update is performed only
on selected fields included as part of update-mask. Only the following fields can be modified:
auto_renew.
Create a request for the method "regionCommitments.update".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID for this request.
region
- Name of the region for this request.
commitment
- Name of the commitment for which auto renew is being updated.
content
- the Commitment
- Returns:
- the request
- Throws:
IOException
-
updateReservations
public Compute.RegionCommitments.UpdateReservations updateReservations(String project,
String region,
String commitment,
RegionCommitmentsUpdateReservationsRequest content)
throws IOException
Transfers GPUs or local SSDs between reservations within commitments.
Create a request for the method "regionCommitments.updateReservations".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID for this request.
region
- Name of the region for this request.
commitment
- Name of the commitment for which the reservation is being updated.
content
- the RegionCommitmentsUpdateReservationsRequest
- Returns:
- the request
- Throws:
IOException
Copyright © 2011–2022 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy