target.apidocs.com.google.api.services.compute.Compute.Projects.html Maven / Gradle / Ivy
The newest version!
Compute.Projects (Compute Engine API v1-rev20250320-2.0.0)
com.google.api.services.compute
Class Compute.Projects
- java.lang.Object
-
- com.google.api.services.compute.Compute.Projects
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
Compute.Projects.DisableXpnHost
class
Compute.Projects.DisableXpnResource
class
Compute.Projects.EnableXpnHost
class
Compute.Projects.EnableXpnResource
class
Compute.Projects.Get
class
Compute.Projects.GetXpnHost
class
Compute.Projects.GetXpnResources
class
Compute.Projects.ListXpnHosts
class
Compute.Projects.MoveDisk
class
Compute.Projects.MoveInstance
class
Compute.Projects.SetCloudArmorTier
class
Compute.Projects.SetCommonInstanceMetadata
class
Compute.Projects.SetDefaultNetworkTier
class
Compute.Projects.SetUsageExportBucket
-
Constructor Summary
Constructors
Constructor and Description
Projects()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Compute.Projects.DisableXpnHost
disableXpnHost(String project)
Disable this project as a shared VPC host project.
Compute.Projects.DisableXpnResource
disableXpnResource(String project,
ProjectsDisableXpnResourceRequest content)
Disable a service resource (also known as service project) associated with this host project.
Compute.Projects.EnableXpnHost
enableXpnHost(String project)
Enable this project as a shared VPC host project.
Compute.Projects.EnableXpnResource
enableXpnResource(String project,
ProjectsEnableXpnResourceRequest content)
Enable service resource (a.k.a service project) for a host project, so that subnets in the host
project can be used by instances in the service project.
Compute.Projects.Get
get(String project)
Returns the specified Project resource.
Compute.Projects.GetXpnHost
getXpnHost(String project)
Gets the shared VPC host project that this project links to.
Compute.Projects.GetXpnResources
getXpnResources(String project)
Gets service resources (a.k.a service project) associated with this host project.
Compute.Projects.ListXpnHosts
listXpnHosts(String project,
ProjectsListXpnHostsRequest content)
Lists all shared VPC host projects visible to the user in an organization.
Compute.Projects.MoveDisk
moveDisk(String project,
DiskMoveRequest content)
Moves a persistent disk from one zone to another.
Compute.Projects.MoveInstance
moveInstance(String project,
InstanceMoveRequest content)
Moves an instance and its attached persistent disks from one zone to another.
Compute.Projects.SetCloudArmorTier
setCloudArmorTier(String project,
ProjectsSetCloudArmorTierRequest content)
Sets the Cloud Armor tier of the project.
Compute.Projects.SetCommonInstanceMetadata
setCommonInstanceMetadata(String project,
Metadata content)
Sets metadata common to all instances within the specified project using the data included in the
request.
Compute.Projects.SetDefaultNetworkTier
setDefaultNetworkTier(String project,
ProjectsSetDefaultNetworkTierRequest content)
Sets the default network tier of the project.
Compute.Projects.SetUsageExportBucket
setUsageExportBucket(String project,
UsageExportLocation content)
Enables the usage export feature and sets the usage export bucket where reports are stored.
-
-
Method Detail
-
disableXpnHost
public Compute.Projects.DisableXpnHost disableXpnHost(String project)
throws IOException
Disable this project as a shared VPC host project.
Create a request for the method "projects.disableXpnHost".
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
-
disableXpnResource
public Compute.Projects.DisableXpnResource disableXpnResource(String project,
ProjectsDisableXpnResourceRequest content)
throws IOException
Disable a service resource (also known as service project) associated with this host project.
Create a request for the method "projects.disableXpnResource".
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.
content - the ProjectsDisableXpnResourceRequest
- Returns:
- the request
- Throws:
IOException
-
enableXpnHost
public Compute.Projects.EnableXpnHost enableXpnHost(String project)
throws IOException
Enable this project as a shared VPC host project.
Create a request for the method "projects.enableXpnHost".
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
-
enableXpnResource
public Compute.Projects.EnableXpnResource enableXpnResource(String project,
ProjectsEnableXpnResourceRequest content)
throws IOException
Enable service resource (a.k.a service project) for a host project, so that subnets in the host
project can be used by instances in the service project.
Create a request for the method "projects.enableXpnResource".
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.
content - the ProjectsEnableXpnResourceRequest
- Returns:
- the request
- Throws:
IOException
-
get
public Compute.Projects.Get get(String project)
throws IOException
Returns the specified Project resource. To decrease latency for this method, you can optionally
omit any unneeded information from the response by using a field mask. This practice is
especially recommended for unused quota information (the `quotas` field). To exclude one or more
fields, set your request's `fields` query parameter to only include the fields you need. For
example, to only include the `id` and `selfLink` fields, add the query parameter
`?fields=id,selfLink` to your request.
Create a request for the method "projects.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.
- Returns:
- the request
- Throws:
IOException
-
getXpnHost
public Compute.Projects.GetXpnHost getXpnHost(String project)
throws IOException
Gets the shared VPC host project that this project links to. May be empty if no link exists.
Create a request for the method "projects.getXpnHost".
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
-
getXpnResources
public Compute.Projects.GetXpnResources getXpnResources(String project)
throws IOException
Gets service resources (a.k.a service project) associated with this host project.
Create a request for the method "projects.getXpnResources".
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
-
listXpnHosts
public Compute.Projects.ListXpnHosts listXpnHosts(String project,
ProjectsListXpnHostsRequest content)
throws IOException
Lists all shared VPC host projects visible to the user in an organization.
Create a request for the method "projects.listXpnHosts".
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.
content - the ProjectsListXpnHostsRequest
- Returns:
- the request
- Throws:
IOException
-
moveDisk
public Compute.Projects.MoveDisk moveDisk(String project,
DiskMoveRequest content)
throws IOException
Moves a persistent disk from one zone to another.
Create a request for the method "projects.moveDisk".
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.
content - the DiskMoveRequest
- Returns:
- the request
- Throws:
IOException
-
moveInstance
public Compute.Projects.MoveInstance moveInstance(String project,
InstanceMoveRequest content)
throws IOException
Moves an instance and its attached persistent disks from one zone to another. *Note*: Moving VMs
or disks by using this method might cause unexpected behavior. For more information, see the
[known issue](/compute/docs/troubleshooting/known-
issues#moving_vms_or_disks_using_the_moveinstance_api_or_the_causes_unexpected_behavior).
[Deprecated] This method is deprecated. See [moving instance across
zones](/compute/docs/instances/moving-instance-across-zones) instead.
Create a request for the method "projects.moveInstance".
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.
content - the InstanceMoveRequest
- Returns:
- the request
- Throws:
IOException
-
setCloudArmorTier
public Compute.Projects.SetCloudArmorTier setCloudArmorTier(String project,
ProjectsSetCloudArmorTierRequest content)
throws IOException
Sets the Cloud Armor tier of the project. To set ENTERPRISE or above the billing account of the
project must be subscribed to Cloud Armor Enterprise. See Subscribing to Cloud Armor Enterprise
for more information.
Create a request for the method "projects.setCloudArmorTier".
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.
content - the ProjectsSetCloudArmorTierRequest
- Returns:
- the request
- Throws:
IOException
-
setCommonInstanceMetadata
public Compute.Projects.SetCommonInstanceMetadata setCommonInstanceMetadata(String project,
Metadata content)
throws IOException
Sets metadata common to all instances within the specified project using the data included in the
request.
Create a request for the method "projects.setCommonInstanceMetadata".
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.
content - the Metadata
- Returns:
- the request
- Throws:
IOException
-
setDefaultNetworkTier
public Compute.Projects.SetDefaultNetworkTier setDefaultNetworkTier(String project,
ProjectsSetDefaultNetworkTierRequest content)
throws IOException
Sets the default network tier of the project. The default network tier is used when an
address/forwardingRule/instance is created without specifying the network tier field.
Create a request for the method "projects.setDefaultNetworkTier".
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.
content - the ProjectsSetDefaultNetworkTierRequest
- Returns:
- the request
- Throws:
IOException
-
setUsageExportBucket
public Compute.Projects.SetUsageExportBucket setUsageExportBucket(String project,
UsageExportLocation content)
throws IOException
Enables the usage export feature and sets the usage export bucket where reports are stored. If
you provide an empty request body using this method, the usage export feature will be disabled.
Create a request for the method "projects.setUsageExportBucket".
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.
content - the UsageExportLocation
- Returns:
- the request
- Throws:
IOException
Copyright © 2011–2025 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy