Resource: Setting
The schema for settings.
JSON representation | |
---|---|
{ "name" : string , "metadata" : { object ( |
name
string
The resource name of the setting. Must be in one of the following forms:
-
projects/{project_number}/settings/{setting_name}
-
folders/{folder_id}/settings/{setting_name}
-
organizations/{organization_id}/settings/{setting_name}
For example, "/projects/123/settings/gcp-enableMyFeature"
localValue
object (
Value
)
The configured value of the setting at the given parent resource, ignoring the resource hierarchy. The data type of Value
must always be consistent with the data type defined in Setting.metadata
.
effectiveValue
object (
Value
)
Output only. The effective value of the setting at the given parent resource, evaluated based on the resource hierarchy
The effective value evaluates to one of the following options, in this order. If an option is not valid or doesn't exist, then the next option is used:
- The local setting value on the given resource:
Setting.local_value
- If one of the given resource's ancestors in the resource hierarchy have a local setting value, the local value at the nearest such ancestor.
- The setting's default value:
SettingMetadata.default_value
- An empty value, defined as a
Value
with all fields unset.
The data type of Value
must always be consistent with the data type defined in Setting.metadata
.
etag
string
A fingerprint used for optimistic concurrency. See settings.patch
for more details.
SettingMetadata
Metadata about a setting which is not editable by the end user.
JSON representation | |
---|---|
{ "displayName" : string , "description" : string , "readOnly" : boolean , "dataType" : enum ( |
Fields | |
---|---|
displayName
|
The human readable name for this setting. |
description
|
A detailed description of what this setting does. |
readOnly
|
A flag indicating that values of this setting cannot be modified. See documentation for the specific setting for updates and reasons. |
dataType
|
The data type for this setting. |
defaultValue
|
The value provided by Note: not all settings have a default value. |
DataType
The data type for setting values of this setting. See Value
for more details on the available data types.
Enums | |
---|---|
DATA_TYPE_UNSPECIFIED
|
Unspecified data type. |
BOOLEAN
|
A boolean setting. |
STRING
|
A string setting. |
STRING_SET
|
A string set setting. |
ENUM_VALUE
|
A Enum setting |
DURATION_VALUE
|
A Duration setting |
STRING_MAP
|
A string->string map setting |
Value
The data in a setting value.
JSON representation | |
---|---|
{ // Union field |
value
. Selects the data type and associated value. value
can be only one of the following:booleanValue
boolean
Defines this value as being a boolean value.
stringValue
string
Defines this value as being a string value.
stringSetValue
object (
StringSet
)
Defines this value as being a StringSet.
enumValue
object (
EnumValue
)
Defines this value as being a Enum.
durationValue
string (
Duration
format)
Defines this value as being a Duration.
A duration in seconds with up to nine fractional digits, terminated by ' s
'. Example: "3.5s"
.
stringMapValue
object (
StringMap
)
Defines this value as being a StringMap.
StringSet
A string set value that can hold a set of strings. The maximum length of each string is 200 characters and there can be a maximum of 50 strings in the string set.
JSON representation | |
---|---|
{ "values" : [ string ] } |
Fields | |
---|---|
values[]
|
The strings in the set |
EnumValue
A enum value that can hold any enum type setting values. Each enum type is represented by a number, this representation is stored in the definitions.
JSON representation | |
---|---|
{ "value" : string } |
Fields | |
---|---|
value
|
The value of this enum |
StringMap
A string->string map value that can hold a map of string keys to string values. The maximum length of each string is 200 characters and there can be a maximum of 50 key-value pairs in the map.
JSON representation | |
---|---|
{ "mappings" : { string : string , ... } } |
Fields | |
---|---|
mappings
|
The key-value pairs in the map An object containing a list of |
Methods |
|
---|---|
|
Returns a specified setting. |
|
Lists all the settings that are available on the Cloud resource parent
. |
|
Updates a specified setting. |