cloudvision.api.arista.serviceaccount.v1 package

Module contents

class cloudvision.api.arista.serviceaccount.v1.Account(key: ~cloudvision.api.arista.serviceaccount.v1.AccountKey = <PLACEHOLDER>, status: ~cloudvision.api.arista.serviceaccount.v1.AccountStatus = <PLACEHOLDER>, description: str | None = <PLACEHOLDER>, groups: ~cloudvision.api.fmp.RepeatedString = <PLACEHOLDER>, created_by: str | None = <PLACEHOLDER>, last_access: ~datetime.datetime = <PLACEHOLDER>, allow_token_refresh: bool | None = <PLACEHOLDER>)[source]

Bases: Message

Account describes a service account.

allow_token_refresh: bool | None = <PLACEHOLDER>

allow_token_refresh determines whether or not the service account can refresh any of its own active tokens, including preexisting ones.

created_by: str | None = <PLACEHOLDER>

created_by is the name of the entity that created the service account.

description: str | None = <PLACEHOLDER>

description is a comment describing the service account.

groups: ___fmp__.RepeatedString = <PLACEHOLDER>

groups is a list of roles that the service account inherits permissions from.

key: AccountKey = <PLACEHOLDER>

key uniquely identifies the service account.

last_access: datetime = <PLACEHOLDER>

last_access is the time when the service account was last fetched.

status: AccountStatus = <PLACEHOLDER>

status determines whether the service account is enabled or disabled.

class cloudvision.api.arista.serviceaccount.v1.AccountConfig(key: ~cloudvision.api.arista.serviceaccount.v1.AccountKey = <PLACEHOLDER>, status: ~cloudvision.api.arista.serviceaccount.v1.AccountStatus = <PLACEHOLDER>, description: str | None = <PLACEHOLDER>, groups: ~cloudvision.api.fmp.RepeatedString = <PLACEHOLDER>, allow_token_refresh: bool | None = <PLACEHOLDER>)[source]

Bases: Message

AccountConfig holds the configuration for a service account.

allow_token_refresh: bool | None = <PLACEHOLDER>

allow_token_refresh determines whether or not the service account can refresh any of its own active tokens, including preexisting ones.

description: str | None = <PLACEHOLDER>

description is a comment describing the service account.

groups: ___fmp__.RepeatedString = <PLACEHOLDER>

groups is a list of roles that the service account inherits permissions from.

key: AccountKey = <PLACEHOLDER>

key contains the name of the service account.

status: AccountStatus = <PLACEHOLDER>

status determines if the service account is enabled or disabled. New service accounts are enabled by default.

class cloudvision.api.arista.serviceaccount.v1.AccountConfigDeleteAllRequest(partial_eq_filter: List[ForwardRef('AccountConfig')] = <PLACEHOLDER>)[source]

Bases: Message

partial_eq_filter: List[AccountConfig] = <PLACEHOLDER>

PartialEqFilter provides a way to server-side filter a DeleteAll. This requires all provided fields to be equal to the response. A filtered DeleteAll will use GetAll with filter to find things to delete.

class cloudvision.api.arista.serviceaccount.v1.AccountConfigDeleteAllResponse(type: '___fmp__.DeleteError' = <PLACEHOLDER>, error: str | None = <PLACEHOLDER>, key: 'AccountKey' = <PLACEHOLDER>, time: datetime.datetime = <PLACEHOLDER>)[source]

Bases: Message

error: str | None = <PLACEHOLDER>

This indicates the error message from the delete failure.

key: AccountKey = <PLACEHOLDER>

This is the key of the AccountConfig instance that failed to be deleted.

time: datetime = <PLACEHOLDER>

Time indicates the (UTC) timestamp when the key was being deleted.

type: ___fmp__.DeleteError = <PLACEHOLDER>

This describes the class of delete error. A DeleteAllResponse is only sent when there is an error.

class cloudvision.api.arista.serviceaccount.v1.AccountConfigDeleteRequest(key: 'AccountKey' = <PLACEHOLDER>)[source]

Bases: Message

key: AccountKey = <PLACEHOLDER>

Key indicates which AccountConfig instance to remove. This field must always be set.

class cloudvision.api.arista.serviceaccount.v1.AccountConfigDeleteResponse(key: 'AccountKey' = <PLACEHOLDER>, time: datetime.datetime = <PLACEHOLDER>)[source]

Bases: Message

key: AccountKey = <PLACEHOLDER>

Key echoes back the key of the deleted AccountConfig instance.

time: datetime = <PLACEHOLDER>

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.

class cloudvision.api.arista.serviceaccount.v1.AccountConfigDeleteSomeRequest(keys: List[ForwardRef('AccountKey')] = <PLACEHOLDER>)[source]

Bases: Message

keys: List[AccountKey] = <PLACEHOLDER>

key contains a list of AccountConfig keys to delete

class cloudvision.api.arista.serviceaccount.v1.AccountConfigDeleteSomeResponse(key: ~cloudvision.api.arista.serviceaccount.v1.AccountKey = <PLACEHOLDER>, error: str = <PLACEHOLDER>)[source]

Bases: Message

AccountConfigDeleteSomeResponse is only sent when there is an error.

error: str = <PLACEHOLDER>
key: AccountKey = <PLACEHOLDER>
class cloudvision.api.arista.serviceaccount.v1.AccountConfigRequest(key: 'AccountKey' = <PLACEHOLDER>, time: datetime.datetime = <PLACEHOLDER>)[source]

Bases: Message

key: AccountKey = <PLACEHOLDER>

Key uniquely identifies a AccountConfig instance to retrieve. This value must be populated.

time: datetime = <PLACEHOLDER>

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.

class cloudvision.api.arista.serviceaccount.v1.AccountConfigResponse(value: 'AccountConfig' = <PLACEHOLDER>, time: datetime.datetime = <PLACEHOLDER>)[source]

Bases: Message

time: datetime = <PLACEHOLDER>

Time carries the (UTC) timestamp of the last-modification of the AccountConfig instance in this response.

value: AccountConfig = <PLACEHOLDER>

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.

class cloudvision.api.arista.serviceaccount.v1.AccountConfigServiceBase[source]

Bases: ServiceBase

async delete(account_config_delete_request: AccountConfigDeleteRequest) AccountConfigDeleteResponse[source]
async delete_all(account_config_delete_all_request: AccountConfigDeleteAllRequest) AsyncIterator[AccountConfigDeleteAllResponse][source]
async delete_some(account_config_delete_some_request: AccountConfigDeleteSomeRequest) AsyncIterator[AccountConfigDeleteSomeResponse][source]
async get_all(account_config_stream_request: AccountConfigStreamRequest) AsyncIterator[AccountConfigStreamResponse][source]
async get_meta(account_config_stream_request: AccountConfigStreamRequest) MetaResponse[source]
async get_one(account_config_request: AccountConfigRequest) AccountConfigResponse[source]
async get_some(account_config_some_request: AccountConfigSomeRequest) AsyncIterator[AccountConfigSomeResponse][source]
async set(account_config_set_request: AccountConfigSetRequest) AccountConfigSetResponse[source]
async set_some(account_config_set_some_request: AccountConfigSetSomeRequest) AsyncIterator[AccountConfigSetSomeResponse][source]
async subscribe(account_config_stream_request: AccountConfigStreamRequest) AsyncIterator[AccountConfigStreamResponse][source]
async subscribe_meta(account_config_stream_request: AccountConfigStreamRequest) AsyncIterator[MetaResponse][source]
class cloudvision.api.arista.serviceaccount.v1.AccountConfigServiceStub(channel: Channel, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: Mapping[str, str | bytes] | Collection[Tuple[str, str | bytes]] | None = None)[source]

Bases: ServiceStub

async delete(account_config_delete_request: AccountConfigDeleteRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) AccountConfigDeleteResponse[source]
async delete_all(account_config_delete_all_request: AccountConfigDeleteAllRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) AsyncIterator[AccountConfigDeleteAllResponse][source]
async delete_some(account_config_delete_some_request: AccountConfigDeleteSomeRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) AsyncIterator[AccountConfigDeleteSomeResponse][source]
async get_all(account_config_stream_request: AccountConfigStreamRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) AsyncIterator[AccountConfigStreamResponse][source]
async get_meta(account_config_stream_request: AccountConfigStreamRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) MetaResponse[source]
async get_one(account_config_request: AccountConfigRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) AccountConfigResponse[source]
async get_some(account_config_some_request: AccountConfigSomeRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) AsyncIterator[AccountConfigSomeResponse][source]
async set(account_config_set_request: AccountConfigSetRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) AccountConfigSetResponse[source]
async set_some(account_config_set_some_request: AccountConfigSetSomeRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) AsyncIterator[AccountConfigSetSomeResponse][source]
async subscribe(account_config_stream_request: AccountConfigStreamRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) AsyncIterator[AccountConfigStreamResponse][source]
async subscribe_meta(account_config_stream_request: AccountConfigStreamRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) AsyncIterator[MetaResponse][source]
class cloudvision.api.arista.serviceaccount.v1.AccountConfigSetRequest(value: 'AccountConfig' = <PLACEHOLDER>)[source]

Bases: Message

value: AccountConfig = <PLACEHOLDER>

AccountConfig carries the value to set into the datastore. See the documentation on the AccountConfig struct for which fields are required.

class cloudvision.api.arista.serviceaccount.v1.AccountConfigSetResponse(value: 'AccountConfig' = <PLACEHOLDER>, time: datetime.datetime = <PLACEHOLDER>)[source]

Bases: Message

time: datetime = <PLACEHOLDER>

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.

value: AccountConfig = <PLACEHOLDER>

Value carries all the values given in the AccountConfigSetRequest as well as any server-generated values.

class cloudvision.api.arista.serviceaccount.v1.AccountConfigSetSomeRequest(values: List[ForwardRef('AccountConfig')] = <PLACEHOLDER>)[source]

Bases: Message

values: List[AccountConfig] = <PLACEHOLDER>

value contains a list of AccountConfig values to write. It is possible to provide more values than can fit within either:

  • the maxiumum send size of the client

  • the maximum receive size of the server

If this error occurs you must reduce the number of values sent. See gRPC “maximum message size” documentation for more information.

class cloudvision.api.arista.serviceaccount.v1.AccountConfigSetSomeResponse(key: 'AccountKey' = <PLACEHOLDER>, error: str = <PLACEHOLDER>)[source]

Bases: Message

error: str = <PLACEHOLDER>
key: AccountKey = <PLACEHOLDER>
class cloudvision.api.arista.serviceaccount.v1.AccountConfigSomeRequest(keys: List[ForwardRef('AccountKey')] = <PLACEHOLDER>, time: datetime.datetime = <PLACEHOLDER>)[source]

Bases: Message

keys: List[AccountKey] = <PLACEHOLDER>
time: datetime = <PLACEHOLDER>

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.

class cloudvision.api.arista.serviceaccount.v1.AccountConfigSomeResponse(value: 'AccountConfig' = <PLACEHOLDER>, error: str | None = <PLACEHOLDER>, time: datetime.datetime = <PLACEHOLDER>)[source]

Bases: Message

error: str | None = <PLACEHOLDER>

Error is an optional field. It should be filled when there is an error in the GetSome process.

time: datetime = <PLACEHOLDER>

Time carries the (UTC) timestamp of the last-modification of the AccountConfig instance in this response.

value: AccountConfig = <PLACEHOLDER>

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.

class cloudvision.api.arista.serviceaccount.v1.AccountConfigStreamRequest(partial_eq_filter: List[ForwardRef('AccountConfig')] = <PLACEHOLDER>, time: '__time__.TimeBounds' = <PLACEHOLDER>)[source]

Bases: Message

partial_eq_filter: List[AccountConfig] = <PLACEHOLDER>

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.

time: __time__.TimeBounds = <PLACEHOLDER>

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.

For GetAll, the fields start and end can be used as follows:

  • end: Returns the state of each AccountConfig at end. * Each AccountConfig response is fully-specified (all fields set).

  • start: Returns the state of each AccountConfig at start, followed by updates until now. * Each AccountConfig response at start is fully-specified, but updates may be partial.

  • start and end: Returns the state of each AccountConfig at start, followed by updates until end. * Each AccountConfig response at start is fully-specified, but updates until end may

    be partial.

class cloudvision.api.arista.serviceaccount.v1.AccountConfigStreamResponse(value: 'AccountConfig' = <PLACEHOLDER>, time: datetime.datetime = <PLACEHOLDER>, type: '__subscriptions__.Operation' = <PLACEHOLDER>)[source]

Bases: Message

time: datetime = <PLACEHOLDER>

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

type: __subscriptions__.Operation = <PLACEHOLDER>

Operation indicates how the AccountConfig 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.

value: AccountConfig = <PLACEHOLDER>

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.

class cloudvision.api.arista.serviceaccount.v1.AccountKey(name: str | None = <PLACEHOLDER>)[source]

Bases: Message

AccountKey contains the name of the service account.

name: str | None = <PLACEHOLDER>

name is the unique identifier of the service account.

class cloudvision.api.arista.serviceaccount.v1.AccountRequest(key: 'AccountKey' = <PLACEHOLDER>, time: datetime.datetime = <PLACEHOLDER>)[source]

Bases: Message

key: AccountKey = <PLACEHOLDER>

Key uniquely identifies a Account instance to retrieve. This value must be populated.

time: datetime = <PLACEHOLDER>

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.

class cloudvision.api.arista.serviceaccount.v1.AccountResponse(value: 'Account' = <PLACEHOLDER>, time: datetime.datetime = <PLACEHOLDER>)[source]

Bases: Message

time: datetime = <PLACEHOLDER>

Time carries the (UTC) timestamp of the last-modification of the Account instance in this response.

value: Account = <PLACEHOLDER>

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.

class cloudvision.api.arista.serviceaccount.v1.AccountServiceBase[source]

Bases: ServiceBase

async get_all(account_stream_request: AccountStreamRequest) AsyncIterator[AccountStreamResponse][source]
async get_meta(account_stream_request: AccountStreamRequest) MetaResponse[source]
async get_one(account_request: AccountRequest) AccountResponse[source]
async get_some(account_some_request: AccountSomeRequest) AsyncIterator[AccountSomeResponse][source]
async subscribe(account_stream_request: AccountStreamRequest) AsyncIterator[AccountStreamResponse][source]
async subscribe_meta(account_stream_request: AccountStreamRequest) AsyncIterator[MetaResponse][source]
class cloudvision.api.arista.serviceaccount.v1.AccountServiceStub(channel: Channel, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: Mapping[str, str | bytes] | Collection[Tuple[str, str | bytes]] | None = None)[source]

Bases: ServiceStub

async get_all(account_stream_request: AccountStreamRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) AsyncIterator[AccountStreamResponse][source]
async get_meta(account_stream_request: AccountStreamRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) MetaResponse[source]
async get_one(account_request: AccountRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) AccountResponse[source]
async get_some(account_some_request: AccountSomeRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) AsyncIterator[AccountSomeResponse][source]
async subscribe(account_stream_request: AccountStreamRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) AsyncIterator[AccountStreamResponse][source]
async subscribe_meta(account_stream_request: AccountStreamRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) AsyncIterator[MetaResponse][source]
class cloudvision.api.arista.serviceaccount.v1.AccountSomeRequest(keys: List[ForwardRef('AccountKey')] = <PLACEHOLDER>, time: datetime.datetime = <PLACEHOLDER>)[source]

Bases: Message

keys: List[AccountKey] = <PLACEHOLDER>
time: datetime = <PLACEHOLDER>

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.

class cloudvision.api.arista.serviceaccount.v1.AccountSomeResponse(value: 'Account' = <PLACEHOLDER>, error: str | None = <PLACEHOLDER>, time: datetime.datetime = <PLACEHOLDER>)[source]

Bases: Message

error: str | None = <PLACEHOLDER>

Error is an optional field. It should be filled when there is an error in the GetSome process.

time: datetime = <PLACEHOLDER>

Time carries the (UTC) timestamp of the last-modification of the Account instance in this response.

value: Account = <PLACEHOLDER>

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.

class cloudvision.api.arista.serviceaccount.v1.AccountStatus(value: int)[source]

Bases: Enum

AccountStatus determines whether an service account is enabled or disabled.

DISABLED = AccountStatus.DISABLED

ACCOUNT_STATUS_DISABLED indicates the service account is disabled.

ENABLED = AccountStatus.ENABLED

ACCOUNT_STATUS_ENABLED indicates the service account is enabled.

UNSPECIFIED = AccountStatus.UNSPECIFIED

ACCOUNT_STATUS_UNSPECIFIED indicates the service account status is unspecified.

name: str | None
value: int
class cloudvision.api.arista.serviceaccount.v1.AccountStreamRequest(partial_eq_filter: List[ForwardRef('Account')] = <PLACEHOLDER>, time: '__time__.TimeBounds' = <PLACEHOLDER>)[source]

Bases: Message

partial_eq_filter: List[Account] = <PLACEHOLDER>

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.

time: __time__.TimeBounds = <PLACEHOLDER>

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.

For GetAll, the fields start and end can be used as follows:

  • end: Returns the state of each Account at end. * Each Account response is fully-specified (all fields set).

  • start: Returns the state of each Account at start, followed by updates until now. * Each Account response at start is fully-specified, but updates may be partial.

  • start and end: Returns the state of each Account at start, followed by updates until end. * Each Account response at start is fully-specified, but updates until end may

    be partial.

class cloudvision.api.arista.serviceaccount.v1.AccountStreamResponse(value: 'Account' = <PLACEHOLDER>, time: datetime.datetime = <PLACEHOLDER>, type: '__subscriptions__.Operation' = <PLACEHOLDER>)[source]

Bases: Message

time: datetime = <PLACEHOLDER>

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

type: __subscriptions__.Operation = <PLACEHOLDER>

Operation indicates how the Account 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.

value: Account = <PLACEHOLDER>

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.

class cloudvision.api.arista.serviceaccount.v1.MetaResponse(time: datetime.datetime = <PLACEHOLDER>, type: '__subscriptions__.Operation' = <PLACEHOLDER>, count: int | None = <PLACEHOLDER>)[source]

Bases: Message

count: int | None = <PLACEHOLDER>

Count is the number of items present under the conditions of the request.

time: datetime = <PLACEHOLDER>

Time holds the timestamp of the last item included in the metadata calculation.

type: __subscriptions__.Operation = <PLACEHOLDER>

Operation indicates how the 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.

class cloudvision.api.arista.serviceaccount.v1.Token(key: ~cloudvision.api.arista.serviceaccount.v1.TokenKey = <PLACEHOLDER>, user: str | None = <PLACEHOLDER>, description: str | None = <PLACEHOLDER>, valid_until: ~datetime.datetime = <PLACEHOLDER>, created_by: str | None = <PLACEHOLDER>, last_used: ~datetime.datetime = <PLACEHOLDER>, replaced_at: ~datetime.datetime = <PLACEHOLDER>)[source]

Bases: Message

Token describes a service account token.

created_by: str | None = <PLACEHOLDER>

created_by is the name of the entity that created the service account token.

description: str | None = <PLACEHOLDER>

description is a short name or comment used to identify the service account token.

key: TokenKey = <PLACEHOLDER>

key uniquely identifies the service account token.

last_used: datetime = <PLACEHOLDER>

last_used is the time when the service account token was last used to authenticate.

replaced_at: datetime = <PLACEHOLDER>

replaced_at is the time which the token has been replaced. It is only populated when the token is refreshed.

user: str | None = <PLACEHOLDER>

user is the name of the service account that the token is generated for.

valid_until: datetime = <PLACEHOLDER>

valid_until is the time that the service account token will be valid until.

class cloudvision.api.arista.serviceaccount.v1.TokenConfig(key: ~cloudvision.api.arista.serviceaccount.v1.TokenKey = <PLACEHOLDER>, user: str | None = <PLACEHOLDER>, description: str | None = <PLACEHOLDER>, valid_for: ~datetime.timedelta = <PLACEHOLDER>, token: str | None = <PLACEHOLDER>)[source]

Bases: Message

TokenConfig holds the configuration for a service account token. The token is a signed JWT which can be used as a credential for REST and WRPC endpoints.

description: str | None = <PLACEHOLDER>

description is a short name or comment used to identify the service account token.

key: TokenKey = <PLACEHOLDER>

key uniquely identifies the service account token.

token: str | None = <PLACEHOLDER>

token is the JWT generated for a service account token. It is only populated in Set response.

user: str | None = <PLACEHOLDER>

user is the name of the service account that the token is generated for.

valid_for: timedelta = <PLACEHOLDER>

valid_for determines the duration that the service account token will be valid for.

class cloudvision.api.arista.serviceaccount.v1.TokenConfigDeleteAllRequest(partial_eq_filter: List[ForwardRef('TokenConfig')] = <PLACEHOLDER>)[source]

Bases: Message

partial_eq_filter: List[TokenConfig] = <PLACEHOLDER>

PartialEqFilter provides a way to server-side filter a DeleteAll. This requires all provided fields to be equal to the response. A filtered DeleteAll will use GetAll with filter to find things to delete.

class cloudvision.api.arista.serviceaccount.v1.TokenConfigDeleteAllResponse(type: '___fmp__.DeleteError' = <PLACEHOLDER>, error: str | None = <PLACEHOLDER>, key: 'TokenKey' = <PLACEHOLDER>, time: datetime.datetime = <PLACEHOLDER>)[source]

Bases: Message

error: str | None = <PLACEHOLDER>

This indicates the error message from the delete failure.

key: TokenKey = <PLACEHOLDER>

This is the key of the TokenConfig instance that failed to be deleted.

time: datetime = <PLACEHOLDER>

Time indicates the (UTC) timestamp when the key was being deleted.

type: ___fmp__.DeleteError = <PLACEHOLDER>

This describes the class of delete error. A DeleteAllResponse is only sent when there is an error.

class cloudvision.api.arista.serviceaccount.v1.TokenConfigDeleteRequest(key: 'TokenKey' = <PLACEHOLDER>)[source]

Bases: Message

key: TokenKey = <PLACEHOLDER>

Key indicates which TokenConfig instance to remove. This field must always be set.

class cloudvision.api.arista.serviceaccount.v1.TokenConfigDeleteResponse(key: 'TokenKey' = <PLACEHOLDER>, time: datetime.datetime = <PLACEHOLDER>)[source]

Bases: Message

key: TokenKey = <PLACEHOLDER>

Key echoes back the key of the deleted TokenConfig instance.

time: datetime = <PLACEHOLDER>

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.

class cloudvision.api.arista.serviceaccount.v1.TokenConfigDeleteSomeRequest(keys: List[ForwardRef('TokenKey')] = <PLACEHOLDER>)[source]

Bases: Message

keys: List[TokenKey] = <PLACEHOLDER>

key contains a list of TokenConfig keys to delete

class cloudvision.api.arista.serviceaccount.v1.TokenConfigDeleteSomeResponse(key: ~cloudvision.api.arista.serviceaccount.v1.TokenKey = <PLACEHOLDER>, error: str = <PLACEHOLDER>)[source]

Bases: Message

TokenConfigDeleteSomeResponse is only sent when there is an error.

error: str = <PLACEHOLDER>
key: TokenKey = <PLACEHOLDER>
class cloudvision.api.arista.serviceaccount.v1.TokenConfigRequest(key: 'TokenKey' = <PLACEHOLDER>, time: datetime.datetime = <PLACEHOLDER>)[source]

Bases: Message

key: TokenKey = <PLACEHOLDER>

Key uniquely identifies a TokenConfig instance to retrieve. This value must be populated.

time: datetime = <PLACEHOLDER>

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.

class cloudvision.api.arista.serviceaccount.v1.TokenConfigResponse(value: 'TokenConfig' = <PLACEHOLDER>, time: datetime.datetime = <PLACEHOLDER>)[source]

Bases: Message

time: datetime = <PLACEHOLDER>

Time carries the (UTC) timestamp of the last-modification of the TokenConfig instance in this response.

value: TokenConfig = <PLACEHOLDER>

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.

class cloudvision.api.arista.serviceaccount.v1.TokenConfigServiceBase[source]

Bases: ServiceBase

async delete(token_config_delete_request: TokenConfigDeleteRequest) TokenConfigDeleteResponse[source]
async delete_all(token_config_delete_all_request: TokenConfigDeleteAllRequest) AsyncIterator[TokenConfigDeleteAllResponse][source]
async delete_some(token_config_delete_some_request: TokenConfigDeleteSomeRequest) AsyncIterator[TokenConfigDeleteSomeResponse][source]
async get_all(token_config_stream_request: TokenConfigStreamRequest) AsyncIterator[TokenConfigStreamResponse][source]
async get_meta(token_config_stream_request: TokenConfigStreamRequest) MetaResponse[source]
async get_one(token_config_request: TokenConfigRequest) TokenConfigResponse[source]
async get_some(token_config_some_request: TokenConfigSomeRequest) AsyncIterator[TokenConfigSomeResponse][source]
async set(token_config_set_request: TokenConfigSetRequest) TokenConfigSetResponse[source]
async set_some(token_config_set_some_request: TokenConfigSetSomeRequest) AsyncIterator[TokenConfigSetSomeResponse][source]
async subscribe(token_config_stream_request: TokenConfigStreamRequest) AsyncIterator[TokenConfigStreamResponse][source]
async subscribe_meta(token_config_stream_request: TokenConfigStreamRequest) AsyncIterator[MetaResponse][source]
class cloudvision.api.arista.serviceaccount.v1.TokenConfigServiceStub(channel: Channel, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: Mapping[str, str | bytes] | Collection[Tuple[str, str | bytes]] | None = None)[source]

Bases: ServiceStub

async delete(token_config_delete_request: TokenConfigDeleteRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) TokenConfigDeleteResponse[source]
async delete_all(token_config_delete_all_request: TokenConfigDeleteAllRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) AsyncIterator[TokenConfigDeleteAllResponse][source]
async delete_some(token_config_delete_some_request: TokenConfigDeleteSomeRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) AsyncIterator[TokenConfigDeleteSomeResponse][source]
async get_all(token_config_stream_request: TokenConfigStreamRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) AsyncIterator[TokenConfigStreamResponse][source]
async get_meta(token_config_stream_request: TokenConfigStreamRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) MetaResponse[source]
async get_one(token_config_request: TokenConfigRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) TokenConfigResponse[source]
async get_some(token_config_some_request: TokenConfigSomeRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) AsyncIterator[TokenConfigSomeResponse][source]
async set(token_config_set_request: TokenConfigSetRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) TokenConfigSetResponse[source]
async set_some(token_config_set_some_request: TokenConfigSetSomeRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) AsyncIterator[TokenConfigSetSomeResponse][source]
async subscribe(token_config_stream_request: TokenConfigStreamRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) AsyncIterator[TokenConfigStreamResponse][source]
async subscribe_meta(token_config_stream_request: TokenConfigStreamRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) AsyncIterator[MetaResponse][source]
class cloudvision.api.arista.serviceaccount.v1.TokenConfigSetRequest(value: 'TokenConfig' = <PLACEHOLDER>)[source]

Bases: Message

value: TokenConfig = <PLACEHOLDER>

TokenConfig carries the value to set into the datastore. See the documentation on the TokenConfig struct for which fields are required.

class cloudvision.api.arista.serviceaccount.v1.TokenConfigSetResponse(value: 'TokenConfig' = <PLACEHOLDER>, time: datetime.datetime = <PLACEHOLDER>)[source]

Bases: Message

time: datetime = <PLACEHOLDER>

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.

value: TokenConfig = <PLACEHOLDER>

Value carries all the values given in the TokenConfigSetRequest as well as any server-generated values.

class cloudvision.api.arista.serviceaccount.v1.TokenConfigSetSomeRequest(values: List[ForwardRef('TokenConfig')] = <PLACEHOLDER>)[source]

Bases: Message

values: List[TokenConfig] = <PLACEHOLDER>

value contains a list of TokenConfig values to write. It is possible to provide more values than can fit within either:

  • the maxiumum send size of the client

  • the maximum receive size of the server

If this error occurs you must reduce the number of values sent. See gRPC “maximum message size” documentation for more information.

class cloudvision.api.arista.serviceaccount.v1.TokenConfigSetSomeResponse(key: 'TokenKey' = <PLACEHOLDER>, error: str = <PLACEHOLDER>)[source]

Bases: Message

error: str = <PLACEHOLDER>
key: TokenKey = <PLACEHOLDER>
class cloudvision.api.arista.serviceaccount.v1.TokenConfigSomeRequest(keys: List[ForwardRef('TokenKey')] = <PLACEHOLDER>, time: datetime.datetime = <PLACEHOLDER>)[source]

Bases: Message

keys: List[TokenKey] = <PLACEHOLDER>
time: datetime = <PLACEHOLDER>

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.

class cloudvision.api.arista.serviceaccount.v1.TokenConfigSomeResponse(value: 'TokenConfig' = <PLACEHOLDER>, error: str | None = <PLACEHOLDER>, time: datetime.datetime = <PLACEHOLDER>)[source]

Bases: Message

error: str | None = <PLACEHOLDER>

Error is an optional field. It should be filled when there is an error in the GetSome process.

time: datetime = <PLACEHOLDER>

Time carries the (UTC) timestamp of the last-modification of the TokenConfig instance in this response.

value: TokenConfig = <PLACEHOLDER>

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.

class cloudvision.api.arista.serviceaccount.v1.TokenConfigStreamRequest(partial_eq_filter: List[ForwardRef('TokenConfig')] = <PLACEHOLDER>, time: '__time__.TimeBounds' = <PLACEHOLDER>)[source]

Bases: Message

partial_eq_filter: List[TokenConfig] = <PLACEHOLDER>

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.

time: __time__.TimeBounds = <PLACEHOLDER>

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.

For GetAll, the fields start and end can be used as follows:

  • end: Returns the state of each TokenConfig at end. * Each TokenConfig response is fully-specified (all fields set).

  • start: Returns the state of each TokenConfig at start, followed by updates until now. * Each TokenConfig response at start is fully-specified, but updates may be partial.

  • start and end: Returns the state of each TokenConfig at start, followed by updates until end. * Each TokenConfig response at start is fully-specified, but updates until end may

    be partial.

class cloudvision.api.arista.serviceaccount.v1.TokenConfigStreamResponse(value: 'TokenConfig' = <PLACEHOLDER>, time: datetime.datetime = <PLACEHOLDER>, type: '__subscriptions__.Operation' = <PLACEHOLDER>)[source]

Bases: Message

time: datetime = <PLACEHOLDER>

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

type: __subscriptions__.Operation = <PLACEHOLDER>

Operation indicates how the TokenConfig 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.

value: TokenConfig = <PLACEHOLDER>

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.

class cloudvision.api.arista.serviceaccount.v1.TokenKey(id: str | None = <PLACEHOLDER>)[source]

Bases: Message

TokenKey contains service account token ID.

id: str | None = <PLACEHOLDER>

id is the unique identifier of the service account token.

class cloudvision.api.arista.serviceaccount.v1.TokenRequest(key: 'TokenKey' = <PLACEHOLDER>, time: datetime.datetime = <PLACEHOLDER>)[source]

Bases: Message

key: TokenKey = <PLACEHOLDER>

Key uniquely identifies a Token instance to retrieve. This value must be populated.

time: datetime = <PLACEHOLDER>

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.

class cloudvision.api.arista.serviceaccount.v1.TokenResponse(value: 'Token' = <PLACEHOLDER>, time: datetime.datetime = <PLACEHOLDER>)[source]

Bases: Message

time: datetime = <PLACEHOLDER>

Time carries the (UTC) timestamp of the last-modification of the Token instance in this response.

value: Token = <PLACEHOLDER>

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.

class cloudvision.api.arista.serviceaccount.v1.TokenSelfRefreshConfig(valid_for: ~datetime.timedelta = <PLACEHOLDER>, new_token: str | None = <PLACEHOLDER>)[source]

Bases: Message

TokenSelfRefreshConfig describes the response a service account gets when they refresh their token

new_token: str | None = <PLACEHOLDER>

new_token is the JWT token generated for a service account token. This is populated in the response of a Set() request.

valid_for: timedelta = <PLACEHOLDER>

valid_for is the duration that the service account token will be valid for. Default value will be the original token duration.

class cloudvision.api.arista.serviceaccount.v1.TokenSelfRefreshConfigRequest(time: datetime.datetime = <PLACEHOLDER>)[source]

Bases: Message

time: datetime = <PLACEHOLDER>

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.

class cloudvision.api.arista.serviceaccount.v1.TokenSelfRefreshConfigResponse(value: 'TokenSelfRefreshConfig' = <PLACEHOLDER>, time: datetime.datetime = <PLACEHOLDER>)[source]

Bases: Message

time: datetime = <PLACEHOLDER>

Time carries the (UTC) timestamp of the last-modification of the TokenSelfRefreshConfig instance in this response.

value: TokenSelfRefreshConfig = <PLACEHOLDER>

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.

class cloudvision.api.arista.serviceaccount.v1.TokenSelfRefreshConfigServiceBase[source]

Bases: ServiceBase

async get_all(token_self_refresh_config_stream_request: TokenSelfRefreshConfigStreamRequest) AsyncIterator[TokenSelfRefreshConfigStreamResponse][source]
async get_one(token_self_refresh_config_request: TokenSelfRefreshConfigRequest) TokenSelfRefreshConfigResponse[source]
async set(token_self_refresh_config_set_request: TokenSelfRefreshConfigSetRequest) TokenSelfRefreshConfigSetResponse[source]
async subscribe(token_self_refresh_config_stream_request: TokenSelfRefreshConfigStreamRequest) AsyncIterator[TokenSelfRefreshConfigStreamResponse][source]
async subscribe_meta(token_self_refresh_config_stream_request: TokenSelfRefreshConfigStreamRequest) AsyncIterator[MetaResponse][source]
class cloudvision.api.arista.serviceaccount.v1.TokenSelfRefreshConfigServiceStub(channel: Channel, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: Mapping[str, str | bytes] | Collection[Tuple[str, str | bytes]] | None = None)[source]

Bases: ServiceStub

async get_all(token_self_refresh_config_stream_request: TokenSelfRefreshConfigStreamRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) AsyncIterator[TokenSelfRefreshConfigStreamResponse][source]
async get_one(token_self_refresh_config_request: TokenSelfRefreshConfigRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) TokenSelfRefreshConfigResponse[source]
async set(token_self_refresh_config_set_request: TokenSelfRefreshConfigSetRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) TokenSelfRefreshConfigSetResponse[source]
async subscribe(token_self_refresh_config_stream_request: TokenSelfRefreshConfigStreamRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) AsyncIterator[TokenSelfRefreshConfigStreamResponse][source]
async subscribe_meta(token_self_refresh_config_stream_request: TokenSelfRefreshConfigStreamRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) AsyncIterator[MetaResponse][source]
class cloudvision.api.arista.serviceaccount.v1.TokenSelfRefreshConfigSetRequest(value: 'TokenSelfRefreshConfig' = <PLACEHOLDER>)[source]

Bases: Message

value: TokenSelfRefreshConfig = <PLACEHOLDER>

TokenSelfRefreshConfig carries the value to set into the datastore. See the documentation on the TokenSelfRefreshConfig struct for which fields are required.

class cloudvision.api.arista.serviceaccount.v1.TokenSelfRefreshConfigSetResponse(value: 'TokenSelfRefreshConfig' = <PLACEHOLDER>, time: datetime.datetime = <PLACEHOLDER>)[source]

Bases: Message

time: datetime = <PLACEHOLDER>

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.

value: TokenSelfRefreshConfig = <PLACEHOLDER>

Value carries all the values given in the TokenSelfRefreshConfigSetRequest as well as any server-generated values.

class cloudvision.api.arista.serviceaccount.v1.TokenSelfRefreshConfigStreamRequest(partial_eq_filter: List[ForwardRef('TokenSelfRefreshConfig')] = <PLACEHOLDER>, time: '__time__.TimeBounds' = <PLACEHOLDER>)[source]

Bases: Message

partial_eq_filter: List[TokenSelfRefreshConfig] = <PLACEHOLDER>

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.

time: __time__.TimeBounds = <PLACEHOLDER>

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.

For GetAll, the fields start and end can be used as follows:

  • end: Returns the state of each TokenSelfRefreshConfig at end. * Each TokenSelfRefreshConfig response is fully-specified (all fields set).

  • start: Returns the state of each TokenSelfRefreshConfig at start, followed by updates until now. * Each TokenSelfRefreshConfig response at start is fully-specified, but updates may be partial.

  • start and end: Returns the state of each TokenSelfRefreshConfig at start, followed by updates until end. * Each TokenSelfRefreshConfig response at start is fully-specified, but updates until end may

    be partial.

class cloudvision.api.arista.serviceaccount.v1.TokenSelfRefreshConfigStreamResponse(value: 'TokenSelfRefreshConfig' = <PLACEHOLDER>, time: datetime.datetime = <PLACEHOLDER>, type: '__subscriptions__.Operation' = <PLACEHOLDER>)[source]

Bases: Message

time: datetime = <PLACEHOLDER>

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

type: __subscriptions__.Operation = <PLACEHOLDER>

Operation indicates how the TokenSelfRefreshConfig 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.

value: TokenSelfRefreshConfig = <PLACEHOLDER>

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.

class cloudvision.api.arista.serviceaccount.v1.TokenServiceBase[source]

Bases: ServiceBase

async get_all(token_stream_request: TokenStreamRequest) AsyncIterator[TokenStreamResponse][source]
async get_meta(token_stream_request: TokenStreamRequest) MetaResponse[source]
async get_one(token_request: TokenRequest) TokenResponse[source]
async get_some(token_some_request: TokenSomeRequest) AsyncIterator[TokenSomeResponse][source]
async subscribe(token_stream_request: TokenStreamRequest) AsyncIterator[TokenStreamResponse][source]
async subscribe_meta(token_stream_request: TokenStreamRequest) AsyncIterator[MetaResponse][source]
class cloudvision.api.arista.serviceaccount.v1.TokenServiceStub(channel: Channel, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: Mapping[str, str | bytes] | Collection[Tuple[str, str | bytes]] | None = None)[source]

Bases: ServiceStub

async get_all(token_stream_request: TokenStreamRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) AsyncIterator[TokenStreamResponse][source]
async get_meta(token_stream_request: TokenStreamRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) MetaResponse[source]
async get_one(token_request: TokenRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) TokenResponse[source]
async get_some(token_some_request: TokenSomeRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) AsyncIterator[TokenSomeResponse][source]
async subscribe(token_stream_request: TokenStreamRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) AsyncIterator[TokenStreamResponse][source]
async subscribe_meta(token_stream_request: TokenStreamRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) AsyncIterator[MetaResponse][source]
class cloudvision.api.arista.serviceaccount.v1.TokenSomeRequest(keys: List[ForwardRef('TokenKey')] = <PLACEHOLDER>, time: datetime.datetime = <PLACEHOLDER>)[source]

Bases: Message

keys: List[TokenKey] = <PLACEHOLDER>
time: datetime = <PLACEHOLDER>

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.

class cloudvision.api.arista.serviceaccount.v1.TokenSomeResponse(value: 'Token' = <PLACEHOLDER>, error: str | None = <PLACEHOLDER>, time: datetime.datetime = <PLACEHOLDER>)[source]

Bases: Message

error: str | None = <PLACEHOLDER>

Error is an optional field. It should be filled when there is an error in the GetSome process.

time: datetime = <PLACEHOLDER>

Time carries the (UTC) timestamp of the last-modification of the Token instance in this response.

value: Token = <PLACEHOLDER>

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.

class cloudvision.api.arista.serviceaccount.v1.TokenStreamRequest(partial_eq_filter: List[ForwardRef('Token')] = <PLACEHOLDER>, time: '__time__.TimeBounds' = <PLACEHOLDER>)[source]

Bases: Message

partial_eq_filter: List[Token] = <PLACEHOLDER>

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.

time: __time__.TimeBounds = <PLACEHOLDER>

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.

For GetAll, the fields start and end can be used as follows:

  • end: Returns the state of each Token at end. * Each Token response is fully-specified (all fields set).

  • start: Returns the state of each Token at start, followed by updates until now. * Each Token response at start is fully-specified, but updates may be partial.

  • start and end: Returns the state of each Token at start, followed by updates until end. * Each Token response at start is fully-specified, but updates until end may

    be partial.

class cloudvision.api.arista.serviceaccount.v1.TokenStreamResponse(value: 'Token' = <PLACEHOLDER>, time: datetime.datetime = <PLACEHOLDER>, type: '__subscriptions__.Operation' = <PLACEHOLDER>)[source]

Bases: Message

time: datetime = <PLACEHOLDER>

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

type: __subscriptions__.Operation = <PLACEHOLDER>

Operation indicates how the Token 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.

value: Token = <PLACEHOLDER>

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.