public class Compute.Images.GetFromFamily extends ComputeRequest<Image>
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>USER_AGENT_SUFFIX| Modifier | Constructor and Description |
|---|---|
protected |
GetFromFamily(String project,
String family)
Returns the latest image that is part of an image family and is not deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
HttpRequest |
buildHttpRequestUsingHead() |
HttpResponse |
executeUsingHead() |
String |
getFamily()
Name of the image family to search for.
|
String |
getProject()
Project ID for this request.
|
Compute.Images.GetFromFamily |
set(String parameterName,
Object value) |
Compute.Images.GetFromFamily |
setAlt(String alt)
Data format for the response.
|
Compute.Images.GetFromFamily |
setFamily(String family)
Name of the image family to search for.
|
Compute.Images.GetFromFamily |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
Compute.Images.GetFromFamily |
setKey(String key)
API key.
|
Compute.Images.GetFromFamily |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
Compute.Images.GetFromFamily |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Compute.Images.GetFromFamily |
setProject(String project)
Project ID for this request.
|
Compute.Images.GetFromFamily |
setQuotaUser(String quotaUser)
An opaque string that represents a user for quota purposes.
|
Compute.Images.GetFromFamily |
setUserIp(String userIp)
Deprecated.
|
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUserIp, setDisableGZipContent, setRequestHeadersgetJsonContent, newExceptionOnError, queuebuildHttpRequest, buildHttpRequestUrl, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queueclone, entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, toString, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllprotected GetFromFamily(String project, String family)
AbstractGoogleClientRequest.execute() method to invoke the remote operation.
GetFromFamily#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientR
equest) must be called to initialize this instance immediately after invoking the constructor.
project - Project ID for this request.family - Name of the image family to search for.public HttpResponse executeUsingHead() throws IOException
executeUsingHead in class AbstractGoogleClientRequest<Image>IOExceptionpublic HttpRequest buildHttpRequestUsingHead() throws IOException
buildHttpRequestUsingHead in class AbstractGoogleClientRequest<Image>IOExceptionpublic Compute.Images.GetFromFamily setAlt(String alt)
ComputeRequestsetAlt in class ComputeRequest<Image>public Compute.Images.GetFromFamily setFields(String fields)
ComputeRequestsetFields in class ComputeRequest<Image>public Compute.Images.GetFromFamily setKey(String key)
ComputeRequestsetKey in class ComputeRequest<Image>public Compute.Images.GetFromFamily setOauthToken(String oauthToken)
ComputeRequestsetOauthToken in class ComputeRequest<Image>public Compute.Images.GetFromFamily setPrettyPrint(Boolean prettyPrint)
ComputeRequestsetPrettyPrint in class ComputeRequest<Image>public Compute.Images.GetFromFamily setQuotaUser(String quotaUser)
ComputeRequestsetQuotaUser in class ComputeRequest<Image>public Compute.Images.GetFromFamily setUserIp(String userIp)
ComputeRequestsetUserIp in class ComputeRequest<Image>public String getProject()
public Compute.Images.GetFromFamily setProject(String project)
public String getFamily()
public Compute.Images.GetFromFamily setFamily(String family)
public Compute.Images.GetFromFamily set(String parameterName, Object value)
set in class ComputeRequest<Image>Copyright © 2011–2019 Google. All rights reserved.