target.apidocs.com.google.api.services.servicemanagement.model.ConfigChange.html Maven / Gradle / Ivy
ConfigChange (Service Management API v1-rev20240823-2.0.0)
com.google.api.services.servicemanagement.model
Class ConfigChange
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.servicemanagement.model.ConfigChange
-
public final class ConfigChange
extends com.google.api.client.json.GenericJson
Output generated from semantically comparing two versions of a service configuration. Includes
detailed information about a field that have changed with applicable advice about potential
consequences for the change, such as backwards-incompatibility.
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 Service Management 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
com.google.api.client.util.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
ConfigChange()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
ConfigChange
clone()
List<Advice>
getAdvices()
Collection of advice provided for this change, useful for determining the possible impact of
this change.
String
getChangeType()
The type for this change, either ADDED, REMOVED, or MODIFIED.
String
getElement()
Object hierarchy path to the change, with levels separated by a '.' character.
String
getNewValue()
Value of the changed object in the new Service configuration, in JSON format.
String
getOldValue()
Value of the changed object in the old Service configuration, in JSON format.
ConfigChange
set(String fieldName,
Object value)
ConfigChange
setAdvices(List<Advice> advices)
Collection of advice provided for this change, useful for determining the possible impact of
this change.
ConfigChange
setChangeType(String changeType)
The type for this change, either ADDED, REMOVED, or MODIFIED.
ConfigChange
setElement(String element)
Object hierarchy path to the change, with levels separated by a '.' character.
ConfigChange
setNewValue(String newValue)
Value of the changed object in the new Service configuration, in JSON format.
ConfigChange
setOldValue(String oldValue)
Value of the changed object in the old Service configuration, in JSON format.
-
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
-
getAdvices
public List<Advice> getAdvices()
Collection of advice provided for this change, useful for determining the possible impact of
this change.
- Returns:
- value or
null
for none
-
setAdvices
public ConfigChange setAdvices(List<Advice> advices)
Collection of advice provided for this change, useful for determining the possible impact of
this change.
- Parameters:
advices
- advices or null
for none
-
getChangeType
public String getChangeType()
The type for this change, either ADDED, REMOVED, or MODIFIED.
- Returns:
- value or
null
for none
-
setChangeType
public ConfigChange setChangeType(String changeType)
The type for this change, either ADDED, REMOVED, or MODIFIED.
- Parameters:
changeType
- changeType or null
for none
-
getElement
public String getElement()
Object hierarchy path to the change, with levels separated by a '.' character. For repeated
fields, an applicable unique identifier field is used for the index (usually selector, name, or
id). For maps, the term 'key' is used. If the field has no unique identifier, the numeric index
is used. Examples: - visibility.rules[selector=="google.LibraryService.ListBooks"].restriction
- quota.metric_rules[selector=="google"].metric_costs[key=="reads"].value -
logging.producer_destinations[0]
- Returns:
- value or
null
for none
-
setElement
public ConfigChange setElement(String element)
Object hierarchy path to the change, with levels separated by a '.' character. For repeated
fields, an applicable unique identifier field is used for the index (usually selector, name, or
id). For maps, the term 'key' is used. If the field has no unique identifier, the numeric index
is used. Examples: - visibility.rules[selector=="google.LibraryService.ListBooks"].restriction
- quota.metric_rules[selector=="google"].metric_costs[key=="reads"].value -
logging.producer_destinations[0]
- Parameters:
element
- element or null
for none
-
getNewValue
public String getNewValue()
Value of the changed object in the new Service configuration, in JSON format. This field will
not be populated if ChangeType == REMOVED.
- Returns:
- value or
null
for none
-
setNewValue
public ConfigChange setNewValue(String newValue)
Value of the changed object in the new Service configuration, in JSON format. This field will
not be populated if ChangeType == REMOVED.
- Parameters:
newValue
- newValue or null
for none
-
getOldValue
public String getOldValue()
Value of the changed object in the old Service configuration, in JSON format. This field will
not be populated if ChangeType == ADDED.
- Returns:
- value or
null
for none
-
setOldValue
public ConfigChange setOldValue(String oldValue)
Value of the changed object in the old Service configuration, in JSON format. This field will
not be populated if ChangeType == ADDED.
- Parameters:
oldValue
- oldValue or null
for none
-
set
public ConfigChange set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public ConfigChange clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2024 Weber Informatics LLC | Privacy Policy