tag.v2

Top

arista/tag.v2/tag.proto

Tag

Tag holds a merge-preview or the existing merged state (if the workspace ID is “”) of a tag.

Field NameTypeDescription
keyTagKey

key identifies a tag.

creator_typeCreatorType

creator_type is the creator type of the tag.

TagAssignment

TagAssignment holds a merge-preview or the existing merged state (if the workspace ID is “”) of an assignment between a tag and a network element.

Field NameTypeDescription
keyTagAssignmentKey

key identifies an assignment.

TagAssignmentConfig

TagAssignmentConfig holds a configuration for an assignment between a tag and a network element.

Field NameTypeDescription
keyTagAssignmentKey

key identifies an assignment. The special workspace ID “"

for merged assignments should not be set here.

removegoogle.protobuf.BoolValue

remove indicates whether to remove (true) or add (false,

unset) the assignment identified by the key if the

encompassing workspace merges.

TagAssignmentKey

TagAssignmentKey uniquely identifies an assignment between a tag and a network element.

Field NameTypeDescription
workspace_idgoogle.protobuf.StringValue

workspace_id is the ID of a workspace. The special ID “"

identifies the location where merged assignments reside.

element_typeElementType

element_type is the element type of a tag. What should

be set per element type:

ELEMENT_TYPE_DEVICE: device_id

ELEMENT_TYPE_INTERFACE: device_id, interface_id

labelgoogle.protobuf.StringValue

label is the label of a tag.

valuegoogle.protobuf.StringValue

value is the value of a tag.

device_idgoogle.protobuf.StringValue

device_id identifies a device.

interface_idgoogle.protobuf.StringValue

interface_id identifies an interface on a device.

TagConfig

TagConfig holds a configuration for a user tag.

Field NameTypeDescription
keyTagKey

key identifies a tag. The special workspace ID "” for

merged tags should not be set here.

removegoogle.protobuf.BoolValue

remove indicates whether to remove (true) or add (false,

unset) the tag identified by the key if the encompassing

workspace merges.

TagKey

TagKey uniquely identifies a tag.

Field NameTypeDescription
workspace_idgoogle.protobuf.StringValue

workspace_id is the ID of a workspace. The special ID “"

identifies the location where merged tags reside.

element_typeElementType

element_type is the category of network element to which

this tag can be assigned.

labelgoogle.protobuf.StringValue

label is an arbitrary label.

valuegoogle.protobuf.StringValue

value is an arbitrary value.

CreatorType

CreatorType enumerates the types of entities that can create a tag.

NameNumberDescription
CREATOR_TYPE_UNSPECIFIED0

CREATOR_TYPE_SYSTEM1

CREATOR_TYPE_SYSTEM is used for system tags.

CREATOR_TYPE_USER2

CREATOR_TYPE_USER is used for user tags.

ElementType

ElementType enumerates the types of network elements that can be associated with tags.

NameNumberDescription
ELEMENT_TYPE_UNSPECIFIED0

ELEMENT_TYPE_DEVICE1

ELEMENT_TYPE_DEVICE is used for device tags.

ELEMENT_TYPE_INTERFACE2

ELEMENT_TYPE_INTERFACE is used for interface tags.

Top

arista/tag.v2/services.gen.proto

TagAssignmentConfigDeleteRequest

Field NameTypeDescription
keyTagAssignmentKey

Key indicates which TagAssignmentConfig instance to remove.

This field must always be set.

TagAssignmentConfigDeleteResponse

Field NameTypeDescription
keyTagAssignmentKey

Key echoes back the key of the deleted TagAssignmentConfig instance.

timegoogle.protobuf.Timestamp

Time indicates the (UTC) timestamp at which the system recognizes the

deletion. The only guarantees made about this timestamp are:

- it is after the time the request was received

- a time-ranged query with StartTime==DeletedAt will not include this instance.

TagAssignmentConfigRequest

Field NameTypeDescription
keyTagAssignmentKey

Key uniquely identifies a TagAssignmentConfig instance to retrieve.

This value must be populated.

timegoogle.protobuf.Timestamp

Time indicates the time for which you are interested in the data.

If no time is given, the server will use the time at which it makes the request.

TagAssignmentConfigResponse

Field NameTypeDescription
valueTagAssignmentConfig

Value is the value requested.

This structure will be fully-populated as it exists in the datastore. If

optional fields were not given at creation, these fields will be empty or

set to default values.

timegoogle.protobuf.Timestamp

Time carries the (UTC) timestamp of the last-modification of the

TagAssignmentConfig instance in this response.

TagAssignmentConfigSetRequest

Field NameTypeDescription
valueTagAssignmentConfig

TagAssignmentConfig carries the value to set into the datastore.

See the documentation on the TagAssignmentConfig struct for which fields are required.

TagAssignmentConfigSetResponse

Field NameTypeDescription
valueTagAssignmentConfig

Value carries all the values given in the TagAssignmentConfigSetRequest as well

as any server-generated values.

timegoogle.protobuf.Timestamp

Time indicates the (UTC) timestamp at which the system recognizes the

creation. The only guarantees made about this timestamp are:

- it is after the time the request was received

- a time-ranged query with StartTime==CreatedAt will include this instance.

TagAssignmentConfigStreamRequest

Field NameTypeDescription
partial_eq_filterTagAssignmentConfig[…]

PartialEqFilter provides a way to server-side filter a GetAll/Subscribe.

This requires all provided fields to be equal to the response.

While transparent to users, this field also allows services to optimize internal

subscriptions if filter(s) are sufficiently specific.

timearista.time.TimeBounds

TimeRange allows limiting response data to within a specified time window.

If this field is populated, at least one of the two time fields are required.

This field is not allowed in the Subscribe RPC.

TagAssignmentConfigStreamResponse

Field NameTypeDescription
valueTagAssignmentConfig

Value is a value deemed relevant to the initiating request.

This structure will always have its key-field populated. Which other fields are

populated, and why, depends on the value of Operation and what triggered this notification.

timegoogle.protobuf.Timestamp

Time holds the timestamp of this TagAssignmentConfig’s last modification.

typearista.subscriptions.Operation

Operation indicates how the TagAssignmentConfig value in this response should be considered.

Under non-subscribe requests, this value should always be INITIAL. In a subscription,

once all initial data is streamed and the client begins to receive modification updates,

you should not see INITIAL again.

TagAssignmentRequest

Field NameTypeDescription
keyTagAssignmentKey

Key uniquely identifies a TagAssignment instance to retrieve.

This value must be populated.

timegoogle.protobuf.Timestamp

Time indicates the time for which you are interested in the data.

If no time is given, the server will use the time at which it makes the request.

TagAssignmentResponse

Field NameTypeDescription
valueTagAssignment

Value is the value requested.

This structure will be fully-populated as it exists in the datastore. If

optional fields were not given at creation, these fields will be empty or

set to default values.

timegoogle.protobuf.Timestamp

Time carries the (UTC) timestamp of the last-modification of the

TagAssignment instance in this response.

TagAssignmentStreamRequest

Field NameTypeDescription
partial_eq_filterTagAssignment[…]

PartialEqFilter provides a way to server-side filter a GetAll/Subscribe.

This requires all provided fields to be equal to the response.

While transparent to users, this field also allows services to optimize internal

subscriptions if filter(s) are sufficiently specific.

timearista.time.TimeBounds

TimeRange allows limiting response data to within a specified time window.

If this field is populated, at least one of the two time fields are required.

This field is not allowed in the Subscribe RPC.

TagAssignmentStreamResponse

Field NameTypeDescription
valueTagAssignment

Value is a value deemed relevant to the initiating request.

This structure will always have its key-field populated. Which other fields are

populated, and why, depends on the value of Operation and what triggered this notification.

timegoogle.protobuf.Timestamp

Time holds the timestamp of this TagAssignment’s last modification.

typearista.subscriptions.Operation

Operation indicates how the TagAssignment value in this response should be considered.

Under non-subscribe requests, this value should always be INITIAL. In a subscription,

once all initial data is streamed and the client begins to receive modification updates,

you should not see INITIAL again.

TagConfigDeleteRequest

Field NameTypeDescription
keyTagKey

Key indicates which TagConfig instance to remove.

This field must always be set.

TagConfigDeleteResponse

Field NameTypeDescription
keyTagKey

Key echoes back the key of the deleted TagConfig instance.

timegoogle.protobuf.Timestamp

Time indicates the (UTC) timestamp at which the system recognizes the

deletion. The only guarantees made about this timestamp are:

- it is after the time the request was received

- a time-ranged query with StartTime==DeletedAt will not include this instance.

TagConfigRequest

Field NameTypeDescription
keyTagKey

Key uniquely identifies a TagConfig instance to retrieve.

This value must be populated.

timegoogle.protobuf.Timestamp

Time indicates the time for which you are interested in the data.

If no time is given, the server will use the time at which it makes the request.

TagConfigResponse

Field NameTypeDescription
valueTagConfig

Value is the value requested.

This structure will be fully-populated as it exists in the datastore. If

optional fields were not given at creation, these fields will be empty or

set to default values.

timegoogle.protobuf.Timestamp

Time carries the (UTC) timestamp of the last-modification of the

TagConfig instance in this response.

TagConfigSetRequest

Field NameTypeDescription
valueTagConfig

TagConfig carries the value to set into the datastore.

See the documentation on the TagConfig struct for which fields are required.

TagConfigSetResponse

Field NameTypeDescription
valueTagConfig

Value carries all the values given in the TagConfigSetRequest as well

as any server-generated values.

timegoogle.protobuf.Timestamp

Time indicates the (UTC) timestamp at which the system recognizes the

creation. The only guarantees made about this timestamp are:

- it is after the time the request was received

- a time-ranged query with StartTime==CreatedAt will include this instance.

TagConfigStreamRequest

Field NameTypeDescription
partial_eq_filterTagConfig[…]

PartialEqFilter provides a way to server-side filter a GetAll/Subscribe.

This requires all provided fields to be equal to the response.

While transparent to users, this field also allows services to optimize internal

subscriptions if filter(s) are sufficiently specific.

timearista.time.TimeBounds

TimeRange allows limiting response data to within a specified time window.

If this field is populated, at least one of the two time fields are required.

This field is not allowed in the Subscribe RPC.

TagConfigStreamResponse

Field NameTypeDescription
valueTagConfig

Value is a value deemed relevant to the initiating request.

This structure will always have its key-field populated. Which other fields are

populated, and why, depends on the value of Operation and what triggered this notification.

timegoogle.protobuf.Timestamp

Time holds the timestamp of this TagConfig’s last modification.

typearista.subscriptions.Operation

Operation indicates how the TagConfig value in this response should be considered.

Under non-subscribe requests, this value should always be INITIAL. In a subscription,

once all initial data is streamed and the client begins to receive modification updates,

you should not see INITIAL again.

TagRequest

Field NameTypeDescription
keyTagKey

Key uniquely identifies a Tag instance to retrieve.

This value must be populated.

timegoogle.protobuf.Timestamp

Time indicates the time for which you are interested in the data.

If no time is given, the server will use the time at which it makes the request.

TagResponse

Field NameTypeDescription
valueTag

Value is the value requested.

This structure will be fully-populated as it exists in the datastore. If

optional fields were not given at creation, these fields will be empty or

set to default values.

timegoogle.protobuf.Timestamp

Time carries the (UTC) timestamp of the last-modification of the

Tag instance in this response.

TagStreamRequest

Field NameTypeDescription
partial_eq_filterTag[…]

PartialEqFilter provides a way to server-side filter a GetAll/Subscribe.

This requires all provided fields to be equal to the response.

While transparent to users, this field also allows services to optimize internal

subscriptions if filter(s) are sufficiently specific.

timearista.time.TimeBounds

TimeRange allows limiting response data to within a specified time window.

If this field is populated, at least one of the two time fields are required.

This field is not allowed in the Subscribe RPC.

TagStreamResponse

Field NameTypeDescription
valueTag

Value is a value deemed relevant to the initiating request.

This structure will always have its key-field populated. Which other fields are

populated, and why, depends on the value of Operation and what triggered this notification.

timegoogle.protobuf.Timestamp

Time holds the timestamp of this Tag’s last modification.

typearista.subscriptions.Operation

Operation indicates how the Tag value in this response should be considered.

Under non-subscribe requests, this value should always be INITIAL. In a subscription,

once all initial data is streamed and the client begins to receive modification updates,

you should not see INITIAL again.

TagAssignmentConfigService

Method NameRequest TypeResponse TypeDescription
GetOneTagAssignmentConfigRequestTagAssignmentConfigResponse

GetAllTagAssignmentConfigStreamRequestTagAssignmentConfigStreamResponse stream

SubscribeTagAssignmentConfigStreamRequestTagAssignmentConfigStreamResponse stream

SetTagAssignmentConfigSetRequestTagAssignmentConfigSetResponse

DeleteTagAssignmentConfigDeleteRequestTagAssignmentConfigDeleteResponse

TagAssignmentService

Method NameRequest TypeResponse TypeDescription
GetOneTagAssignmentRequestTagAssignmentResponse

GetAllTagAssignmentStreamRequestTagAssignmentStreamResponse stream

SubscribeTagAssignmentStreamRequestTagAssignmentStreamResponse stream

TagConfigService

Method NameRequest TypeResponse TypeDescription
GetOneTagConfigRequestTagConfigResponse

GetAllTagConfigStreamRequestTagConfigStreamResponse stream

SubscribeTagConfigStreamRequestTagConfigStreamResponse stream

SetTagConfigSetRequestTagConfigSetResponse

DeleteTagConfigDeleteRequestTagConfigDeleteResponse

TagService

Method NameRequest TypeResponse TypeDescription
GetOneTagRequestTagResponse

GetAllTagStreamRequestTagStreamResponse stream

SubscribeTagStreamRequestTagStreamResponse stream