target.apidocs.com.google.api.services.tpu.v2.TPU.Projects.Locations.Nodes.html Maven / Gradle / Ivy
TPU.Projects.Locations.Nodes (Cloud TPU API v2-rev20240321-2.0.0)
com.google.api.services.tpu.v2
Class TPU.Projects.Locations.Nodes
- java.lang.Object
-
- com.google.api.services.tpu.v2.TPU.Projects.Locations.Nodes
-
- Enclosing class:
- TPU.Projects.Locations
public class TPU.Projects.Locations.Nodes
extends Object
The "nodes" collection of methods.
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
TPU.Projects.Locations.Nodes.Create
class
TPU.Projects.Locations.Nodes.Delete
class
TPU.Projects.Locations.Nodes.Get
class
TPU.Projects.Locations.Nodes.GetGuestAttributes
class
TPU.Projects.Locations.Nodes.List
class
TPU.Projects.Locations.Nodes.Patch
class
TPU.Projects.Locations.Nodes.Start
class
TPU.Projects.Locations.Nodes.Stop
-
Constructor Summary
Constructors
Constructor and Description
Nodes()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
TPU.Projects.Locations.Nodes.Create
create(String parent,
Node content)
Creates a node.
TPU.Projects.Locations.Nodes.Delete
delete(String name)
Deletes a node.
TPU.Projects.Locations.Nodes.Get
get(String name)
Gets the details of a node.
TPU.Projects.Locations.Nodes.GetGuestAttributes
getGuestAttributes(String name,
GetGuestAttributesRequest content)
Retrieves the guest attributes for the node.
TPU.Projects.Locations.Nodes.List
list(String parent)
Lists nodes.
TPU.Projects.Locations.Nodes.Patch
patch(String name,
Node content)
Updates the configurations of a node.
TPU.Projects.Locations.Nodes.Start
start(String name,
StartNodeRequest content)
Starts a node.
TPU.Projects.Locations.Nodes.Stop
stop(String name,
StopNodeRequest content)
Stops a node.
-
-
Method Detail
-
create
public TPU.Projects.Locations.Nodes.Create create(String parent,
Node content)
throws IOException
Creates a node.
Create a request for the method "nodes.create".
This request holds the parameters needed by the tpu server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
parent
- Required. The parent resource name.
content
- the Node
- Returns:
- the request
- Throws:
IOException
-
delete
public TPU.Projects.Locations.Nodes.Delete delete(String name)
throws IOException
Deletes a node.
Create a request for the method "nodes.delete".
This request holds the parameters needed by the tpu server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
name
- Required. The resource name.
- Returns:
- the request
- Throws:
IOException
-
get
public TPU.Projects.Locations.Nodes.Get get(String name)
throws IOException
Gets the details of a node.
Create a request for the method "nodes.get".
This request holds the parameters needed by the tpu server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
name
- Required. The resource name.
- Returns:
- the request
- Throws:
IOException
-
getGuestAttributes
public TPU.Projects.Locations.Nodes.GetGuestAttributes getGuestAttributes(String name,
GetGuestAttributesRequest content)
throws IOException
Retrieves the guest attributes for the node.
Create a request for the method "nodes.getGuestAttributes".
This request holds the parameters needed by the tpu server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
name
- Required. The resource name.
content
- the GetGuestAttributesRequest
- Returns:
- the request
- Throws:
IOException
-
list
public TPU.Projects.Locations.Nodes.List list(String parent)
throws IOException
Lists nodes.
Create a request for the method "nodes.list".
This request holds the parameters needed by the tpu server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
parent
- Required. The parent resource name.
- Returns:
- the request
- Throws:
IOException
-
patch
public TPU.Projects.Locations.Nodes.Patch patch(String name,
Node content)
throws IOException
Updates the configurations of a node.
Create a request for the method "nodes.patch".
This request holds the parameters needed by the tpu server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
name
- Output only. Immutable. The name of the TPU.
content
- the Node
- Returns:
- the request
- Throws:
IOException
-
start
public TPU.Projects.Locations.Nodes.Start start(String name,
StartNodeRequest content)
throws IOException
Starts a node.
Create a request for the method "nodes.start".
This request holds the parameters needed by the tpu server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
name
- Required. The resource name.
content
- the StartNodeRequest
- Returns:
- the request
- Throws:
IOException
-
stop
public TPU.Projects.Locations.Nodes.Stop stop(String name,
StopNodeRequest content)
throws IOException
Stops a node. This operation is only available with single TPU nodes.
Create a request for the method "nodes.stop".
This request holds the parameters needed by the tpu server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
name
- Required. The resource name.
content
- the StopNodeRequest
- Returns:
- the request
- Throws:
IOException
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy