![JAR search and dependency download from the Maven repository](/logo.png)
target.apidocs.com.google.api.services.compute.model.DeprecationStatus.html Maven / Gradle / Ivy
DeprecationStatus (Compute Engine API beta-rev20220726-2.0.0)
com.google.api.services.compute.model
Class DeprecationStatus
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.compute.model.DeprecationStatus
-
public final class DeprecationStatus
extends GenericJson
Deprecation status for a public resource.
This is the Java data model class that specifies how to parse/serialize into the JSON that is
transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see:
https://developers.google.com/api-client-library/java/google-http-java-client/json
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
DeprecationStatus()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
DeprecationStatus
clone()
String
getDeleted()
An optional RFC3339 timestamp on or after which the state of this resource is intended to
change to DELETED.
String
getDeprecated()
An optional RFC3339 timestamp on or after which the state of this resource is intended to
change to DEPRECATED.
String
getObsolete()
An optional RFC3339 timestamp on or after which the state of this resource is intended to
change to OBSOLETE.
String
getReplacement()
The URL of the suggested replacement for a deprecated resource.
String
getState()
The deprecation state of this resource.
RolloutPolicy
getStateOverride()
The rollout policy for this deprecation.
DeprecationStatus
set(String fieldName,
Object value)
DeprecationStatus
setDeleted(String deleted)
An optional RFC3339 timestamp on or after which the state of this resource is intended to
change to DELETED.
DeprecationStatus
setDeprecated(String deprecated)
An optional RFC3339 timestamp on or after which the state of this resource is intended to
change to DEPRECATED.
DeprecationStatus
setObsolete(String obsolete)
An optional RFC3339 timestamp on or after which the state of this resource is intended to
change to OBSOLETE.
DeprecationStatus
setReplacement(String replacement)
The URL of the suggested replacement for a deprecated resource.
DeprecationStatus
setState(String state)
The deprecation state of this resource.
DeprecationStatus
setStateOverride(RolloutPolicy stateOverride)
The rollout policy for this deprecation.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getDeleted
public String getDeleted()
An optional RFC3339 timestamp on or after which the state of this resource is intended to
change to DELETED. This is only informational and the status will not change unless the client
explicitly changes it.
- Returns:
- value or
null
for none
-
setDeleted
public DeprecationStatus setDeleted(String deleted)
An optional RFC3339 timestamp on or after which the state of this resource is intended to
change to DELETED. This is only informational and the status will not change unless the client
explicitly changes it.
- Parameters:
deleted
- deleted or null
for none
-
getDeprecated
public String getDeprecated()
An optional RFC3339 timestamp on or after which the state of this resource is intended to
change to DEPRECATED. This is only informational and the status will not change unless the
client explicitly changes it.
- Returns:
- value or
null
for none
-
setDeprecated
public DeprecationStatus setDeprecated(String deprecated)
An optional RFC3339 timestamp on or after which the state of this resource is intended to
change to DEPRECATED. This is only informational and the status will not change unless the
client explicitly changes it.
- Parameters:
deprecated
- deprecated or null
for none
-
getObsolete
public String getObsolete()
An optional RFC3339 timestamp on or after which the state of this resource is intended to
change to OBSOLETE. This is only informational and the status will not change unless the client
explicitly changes it.
- Returns:
- value or
null
for none
-
setObsolete
public DeprecationStatus setObsolete(String obsolete)
An optional RFC3339 timestamp on or after which the state of this resource is intended to
change to OBSOLETE. This is only informational and the status will not change unless the client
explicitly changes it.
- Parameters:
obsolete
- obsolete or null
for none
-
getReplacement
public String getReplacement()
The URL of the suggested replacement for a deprecated resource. The suggested replacement
resource must be the same kind of resource as the deprecated resource.
- Returns:
- value or
null
for none
-
setReplacement
public DeprecationStatus setReplacement(String replacement)
The URL of the suggested replacement for a deprecated resource. The suggested replacement
resource must be the same kind of resource as the deprecated resource.
- Parameters:
replacement
- replacement or null
for none
-
getState
public String getState()
The deprecation state of this resource. This can be ACTIVE, DEPRECATED, OBSOLETE, or DELETED.
Operations which communicate the end of life date for an image, can use ACTIVE. Operations
which create a new resource using a DEPRECATED resource will return successfully, but with a
warning indicating the deprecated resource and recommending its replacement. Operations which
use OBSOLETE or DELETED resources will be rejected and result in an error.
- Returns:
- value or
null
for none
-
setState
public DeprecationStatus setState(String state)
The deprecation state of this resource. This can be ACTIVE, DEPRECATED, OBSOLETE, or DELETED.
Operations which communicate the end of life date for an image, can use ACTIVE. Operations
which create a new resource using a DEPRECATED resource will return successfully, but with a
warning indicating the deprecated resource and recommending its replacement. Operations which
use OBSOLETE or DELETED resources will be rejected and result in an error.
- Parameters:
state
- state or null
for none
-
getStateOverride
public RolloutPolicy getStateOverride()
The rollout policy for this deprecation. This policy is only enforced by image family views.
The rollout policy restricts the zones where the associated resource is considered in a
deprecated state. When the rollout policy does not include the user specified zone, or if the
zone is rolled out, the associated resource is considered in a deprecated state. The rollout
policy for this deprecation is read-only, except for allowlisted users. This field might not be
configured. To view the latest non-deprecated image in a specific zone, use the
imageFamilyViews.get method.
- Returns:
- value or
null
for none
-
setStateOverride
public DeprecationStatus setStateOverride(RolloutPolicy stateOverride)
The rollout policy for this deprecation. This policy is only enforced by image family views.
The rollout policy restricts the zones where the associated resource is considered in a
deprecated state. When the rollout policy does not include the user specified zone, or if the
zone is rolled out, the associated resource is considered in a deprecated state. The rollout
policy for this deprecation is read-only, except for allowlisted users. This field might not be
configured. To view the latest non-deprecated image in a specific zone, use the
imageFamilyViews.get method.
- Parameters:
stateOverride
- stateOverride or null
for none
-
set
public DeprecationStatus set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public DeprecationStatus clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2022 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy