KeyValue Class

The key-value resource along with all resource properties.

Variables are only populated by the server, and will be ignored when sending a request.

Inheritance
KeyValue

Constructor

KeyValue(*, value: Optional[str] = None, content_type: Optional[str] = None, tags: Optional[Dict[str, str]] = None, **kwargs)

Variables

id
str

The resource ID.

name
str

The name of the resource.

type
str

The type of the resource.

key
str

The primary identifier of a key-value. The key is used in unison with the label to uniquely identify a key-value.

label
str

A value used to group key-values. The label is used in unison with the key to uniquely identify a key-value.

value
str

The value of the key-value.

content_type
str

The content type of the key-value's value. Providing a proper content-type can enable transformations of values when they are retrieved by applications.

e_tag
str

An ETag indicating the state of a key-value within a configuration store.

last_modified
datetime

The last time a modifying operation was performed on the given key-value.

locked
bool

A value indicating whether the key-value is locked. A locked key-value may not be modified until it is unlocked.

tags
dict[str, str]

A set of tags. A dictionary of tags that can help identify what a key-value may be applicable for.