target.apidocs.com.google.api.services.compute.Compute.RegionCommitments.html Maven / Gradle / Ivy
Compute.RegionCommitments (Compute Engine API v1-rev20250107-2.0.0)
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.Update
-
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.Update
update(String project,
String region,
String commitment,
Commitment content)
Updates the specified commitment with the data included in the request.
-
-
Method Detail
-
aggregatedList
public Compute.RegionCommitments.AggregatedList aggregatedList(String project)
throws IOException
Retrieves an aggregated list of commitments by region. To prevent failure, Google recommends that
you set the `returnPartialSuccess` parameter to `true`.
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.
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
-
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
Copyright © 2011–2025 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy