
target.apidocs.com.google.api.services.compute.Compute.Projects.html Maven / Gradle / Ivy
Compute.Projects (Compute Engine API alpha-rev20200526-1.30.9)
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.SetCommonInstanceMetadata
class
Compute.Projects.SetDefaultNetworkTier
class
Compute.Projects.SetDefaultServiceAccount
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.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.SetDefaultServiceAccount
setDefaultServiceAccount(String project,
ProjectsSetDefaultServiceAccountRequest content)
Sets the default service account 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.
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.
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
-
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
-
setDefaultServiceAccount
public Compute.Projects.SetDefaultServiceAccount setDefaultServiceAccount(String project,
ProjectsSetDefaultServiceAccountRequest content)
throws IOException
Sets the default service account of the project. The default service account is used when a VM
instance is created with the service account email address set to "default".
Create a request for the method "projects.setDefaultServiceAccount".
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 ProjectsSetDefaultServiceAccountRequest
- 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–2020 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy