target.apidocs.com.google.api.services.dataproc.Dataproc.Projects.Locations.Sessions.html Maven / Gradle / Ivy
Dataproc.Projects.Locations.Sessions (Cloud Dataproc API v1-rev20240605-2.0.0)
com.google.api.services.dataproc
Class Dataproc.Projects.Locations.Sessions
- java.lang.Object
-
- com.google.api.services.dataproc.Dataproc.Projects.Locations.Sessions
-
- Enclosing class:
- Dataproc.Projects.Locations
public class Dataproc.Projects.Locations.Sessions
extends Object
The "sessions" collection of methods.
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
Dataproc.Projects.Locations.Sessions.Create
class
Dataproc.Projects.Locations.Sessions.Delete
class
Dataproc.Projects.Locations.Sessions.Get
class
Dataproc.Projects.Locations.Sessions.List
class
Dataproc.Projects.Locations.Sessions.Terminate
-
Constructor Summary
Constructors
Constructor and Description
Sessions()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Dataproc.Projects.Locations.Sessions.Create
create(String parent,
Session content)
Create an interactive session asynchronously.
Dataproc.Projects.Locations.Sessions.Delete
delete(String name)
Deletes the interactive session resource.
Dataproc.Projects.Locations.Sessions.Get
get(String name)
Gets the resource representation for an interactive session.
Dataproc.Projects.Locations.Sessions.List
list(String parent)
Lists interactive sessions.
Dataproc.Projects.Locations.Sessions.Terminate
terminate(String name,
TerminateSessionRequest content)
Terminates the interactive session.
-
-
Method Detail
-
create
public Dataproc.Projects.Locations.Sessions.Create create(String parent,
Session content)
throws IOException
Create an interactive session asynchronously.
Create a request for the method "sessions.create".
This request holds the parameters needed by the dataproc server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
parent
- Required. The parent resource where this session will be created.
content
- the Session
- Returns:
- the request
- Throws:
IOException
-
delete
public Dataproc.Projects.Locations.Sessions.Delete delete(String name)
throws IOException
Deletes the interactive session resource. If the session is not in terminal state, it is
terminated, and then deleted.
Create a request for the method "sessions.delete".
This request holds the parameters needed by the dataproc server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
name
- Required. The name of the session resource to delete.
- Returns:
- the request
- Throws:
IOException
-
get
public Dataproc.Projects.Locations.Sessions.Get get(String name)
throws IOException
Gets the resource representation for an interactive session.
Create a request for the method "sessions.get".
This request holds the parameters needed by the dataproc server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
name
- Required. The name of the session to retrieve.
- Returns:
- the request
- Throws:
IOException
-
list
public Dataproc.Projects.Locations.Sessions.List list(String parent)
throws IOException
Lists interactive sessions.
Create a request for the method "sessions.list".
This request holds the parameters needed by the dataproc server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
parent
- Required. The parent, which owns this collection of sessions.
- Returns:
- the request
- Throws:
IOException
-
terminate
public Dataproc.Projects.Locations.Sessions.Terminate terminate(String name,
TerminateSessionRequest content)
throws IOException
Terminates the interactive session.
Create a request for the method "sessions.terminate".
This request holds the parameters needed by the dataproc server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
name
- Required. The name of the session resource to terminate.
content
- the TerminateSessionRequest
- Returns:
- the request
- Throws:
IOException
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy