public class Compute.Kernels.Get extends ComputeRequest<Kernel>
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier | Constructor and Description |
---|---|
protected |
Compute.Kernels.Get(String project,
String kernel)
Returns the specified kernel resource.
|
Modifier and Type | Method and Description |
---|---|
HttpRequest |
buildHttpRequestUsingHead() |
HttpResponse |
executeUsingHead() |
String |
getKernel()
Name of the kernel resource to return.
|
String |
getProject()
Name of the project scoping this request.
|
Compute.Kernels.Get |
setAlt(String alt)
Data format for the response.
|
Compute.Kernels.Get |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
Compute.Kernels.Get |
setKernel(String kernel)
Name of the kernel resource to return.
|
Compute.Kernels.Get |
setKey(String key)
API key.
|
Compute.Kernels.Get |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
Compute.Kernels.Get |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Compute.Kernels.Get |
setProject(String project)
Name of the project scoping this request.
|
Compute.Kernels.Get |
setQuotaUser(String quotaUser)
Available to use for quota purposes for server-side applications.
|
Compute.Kernels.Get |
setUserIp(String userIp)
IP address of the site where the request originates.
|
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUserIp, setDisableGZipContent, setRequestHeaders
getJsonContent, newExceptionOnError, queue
buildHttpRequest, buildHttpRequestUrl, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue
clone, entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, set, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, toString, values
protected Compute.Kernels.Get(String project, String kernel)
AbstractGoogleClientRequest.execute()
method to invoke the remote operation. Compute.initialize(AbstractGoogleClientRequest)
must be called to initialize this instance
immediately after invoking the constructor.
project
- Name of the project scoping this request.kernel
- Name of the kernel resource to return.public HttpResponse executeUsingHead() throws IOException
executeUsingHead
in class AbstractGoogleClientRequest<Kernel>
IOException
public HttpRequest buildHttpRequestUsingHead() throws IOException
buildHttpRequestUsingHead
in class AbstractGoogleClientRequest<Kernel>
IOException
public Compute.Kernels.Get setAlt(String alt)
ComputeRequest
setAlt
in class ComputeRequest<Kernel>
public Compute.Kernels.Get setFields(String fields)
ComputeRequest
setFields
in class ComputeRequest<Kernel>
public Compute.Kernels.Get setKey(String key)
ComputeRequest
setKey
in class ComputeRequest<Kernel>
public Compute.Kernels.Get setOauthToken(String oauthToken)
ComputeRequest
setOauthToken
in class ComputeRequest<Kernel>
public Compute.Kernels.Get setPrettyPrint(Boolean prettyPrint)
ComputeRequest
setPrettyPrint
in class ComputeRequest<Kernel>
public Compute.Kernels.Get setQuotaUser(String quotaUser)
ComputeRequest
setQuotaUser
in class ComputeRequest<Kernel>
public Compute.Kernels.Get setUserIp(String userIp)
ComputeRequest
setUserIp
in class ComputeRequest<Kernel>
public String getProject()
public Compute.Kernels.Get setProject(String project)
public String getKernel()
public Compute.Kernels.Get setKernel(String kernel)