cloudvision.api.arista.lifecycle.v1 package
Module contents
- class cloudvision.api.arista.lifecycle.v1.DateAndModels(date: ~datetime.datetime = <PLACEHOLDER>, models: ~cloudvision.api.fmp.MapStringInt32 = <PLACEHOLDER>)[source]
Bases:
MessageDateAndModels has an “end of” date along with the models that has this exact “end of” date
- date: datetime = <PLACEHOLDER>
“end of” date
- models: ___fmp__.MapStringInt32 = <PLACEHOLDER>
models with this exact “end of” date mapped to its count
- class cloudvision.api.arista.lifecycle.v1.DeviceLifecycleSummary(key: ~cloudvision.api.arista.lifecycle.v1.DeviceLifecycleSummaryKey = <PLACEHOLDER>, software_eol: ~cloudvision.api.arista.lifecycle.v1.SoftwareEol = <PLACEHOLDER>, hardware_lifecycle_summary: ~cloudvision.api.arista.lifecycle.v1.HardwareLifecycleSummary = <PLACEHOLDER>)[source]
Bases:
MessageDeviceLifecycleSummary is the state model that represents the lifecycle summary of a device
- hardware_lifecycle_summary: HardwareLifecycleSummary = <PLACEHOLDER>
hardware_lifecycle_summary is the hardware lifecycle summary of a device
- key: DeviceLifecycleSummaryKey = <PLACEHOLDER>
DeviceLifecycleSummaryKey is the key of DeviceLifecycleSummary
- software_eol: SoftwareEol = <PLACEHOLDER>
software_eol is the software end of life of a device
- class cloudvision.api.arista.lifecycle.v1.DeviceLifecycleSummaryKey(device_id: str | None = <PLACEHOLDER>)[source]
Bases:
MessageDeviceLifecycleSummaryKey is the key type for DeviceLifecycleSummary model
- device_id: str | None = <PLACEHOLDER>
device_id is the device ID
- class cloudvision.api.arista.lifecycle.v1.DeviceLifecycleSummaryRequest(key: 'DeviceLifecycleSummaryKey' = <PLACEHOLDER>, time: datetime.datetime = <PLACEHOLDER>)[source]
Bases:
Message- key: DeviceLifecycleSummaryKey = <PLACEHOLDER>
Key uniquely identifies a DeviceLifecycleSummary 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.lifecycle.v1.DeviceLifecycleSummaryResponse(value: 'DeviceLifecycleSummary' = <PLACEHOLDER>, time: datetime.datetime = <PLACEHOLDER>)[source]
Bases:
Message- time: datetime = <PLACEHOLDER>
Time carries the (UTC) timestamp of the last-modification of the DeviceLifecycleSummary instance in this response.
- value: DeviceLifecycleSummary = <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.lifecycle.v1.DeviceLifecycleSummaryServiceBase[source]
Bases:
ServiceBase- async get_all(device_lifecycle_summary_stream_request: DeviceLifecycleSummaryStreamRequest) AsyncIterator[DeviceLifecycleSummaryStreamResponse][source]
- async get_meta(device_lifecycle_summary_stream_request: DeviceLifecycleSummaryStreamRequest) MetaResponse[source]
- async get_one(device_lifecycle_summary_request: DeviceLifecycleSummaryRequest) DeviceLifecycleSummaryResponse[source]
- async subscribe(device_lifecycle_summary_stream_request: DeviceLifecycleSummaryStreamRequest) AsyncIterator[DeviceLifecycleSummaryStreamResponse][source]
- async subscribe_meta(device_lifecycle_summary_stream_request: DeviceLifecycleSummaryStreamRequest) AsyncIterator[MetaResponse][source]
- class cloudvision.api.arista.lifecycle.v1.DeviceLifecycleSummaryServiceStub(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(device_lifecycle_summary_stream_request: DeviceLifecycleSummaryStreamRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) AsyncIterator[DeviceLifecycleSummaryStreamResponse][source]
- async get_meta(device_lifecycle_summary_stream_request: DeviceLifecycleSummaryStreamRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) MetaResponse[source]
- async get_one(device_lifecycle_summary_request: DeviceLifecycleSummaryRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) DeviceLifecycleSummaryResponse[source]
- async subscribe(device_lifecycle_summary_stream_request: DeviceLifecycleSummaryStreamRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) AsyncIterator[DeviceLifecycleSummaryStreamResponse][source]
- async subscribe_meta(device_lifecycle_summary_stream_request: DeviceLifecycleSummaryStreamRequest, *, timeout: float | None = None, deadline: Deadline | None = None, metadata: MetadataLike | None = None) AsyncIterator[MetaResponse][source]
- class cloudvision.api.arista.lifecycle.v1.DeviceLifecycleSummaryStreamRequest(partial_eq_filter: List[ForwardRef('DeviceLifecycleSummary')] = <PLACEHOLDER>, time: '__time__.TimeBounds' = <PLACEHOLDER>)[source]
Bases:
Message- partial_eq_filter: List[DeviceLifecycleSummary] = <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 DeviceLifecycleSummary at end. * Each DeviceLifecycleSummary response is fully-specified (all fields set).
start: Returns the state of each DeviceLifecycleSummary at start, followed by updates until now. * Each DeviceLifecycleSummary response at start is fully-specified, but updates may be partial.
start and end: Returns the state of each DeviceLifecycleSummary at start, followed by updates until end. * Each DeviceLifecycleSummary response at start is fully-specified, but updates until end may
be partial.
This field is not allowed in the Subscribe RPC.
- class cloudvision.api.arista.lifecycle.v1.DeviceLifecycleSummaryStreamResponse(value: 'DeviceLifecycleSummary' = <PLACEHOLDER>, time: datetime.datetime = <PLACEHOLDER>, type: '__subscriptions__.Operation' = <PLACEHOLDER>)[source]
Bases:
Message- time: datetime = <PLACEHOLDER>
Time holds the timestamp of this DeviceLifecycleSummary’s last modification.
- type: __subscriptions__.Operation = <PLACEHOLDER>
Operation indicates how the DeviceLifecycleSummary 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: DeviceLifecycleSummary = <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.lifecycle.v1.HardwareLifecycleSummary(end_of_life: ~cloudvision.api.arista.lifecycle.v1.DateAndModels = <PLACEHOLDER>, end_of_sale: ~cloudvision.api.arista.lifecycle.v1.DateAndModels = <PLACEHOLDER>, end_of_tac_support: ~cloudvision.api.arista.lifecycle.v1.DateAndModels = <PLACEHOLDER>, end_of_hardware_rma_requests: ~cloudvision.api.arista.lifecycle.v1.DateAndModels = <PLACEHOLDER>)[source]
Bases:
MessageHardwareLifecycleSummary represents a hardware lifecycle summary
- end_of_hardware_rma_requests: DateAndModels = <PLACEHOLDER>
end_of_hardware_rma_requests of a HardwareLifecycleSummary
- end_of_life: DateAndModels = <PLACEHOLDER>
end_of_life of a HardwareLifecycleSummary
- end_of_sale: DateAndModels = <PLACEHOLDER>
end_of_sale of a HardwareLifecycleSummary
- end_of_tac_support: DateAndModels = <PLACEHOLDER>
end_of_tac_support of a HardwareLifecycleSummary
- class cloudvision.api.arista.lifecycle.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.lifecycle.v1.SoftwareEol(version: str | None = <PLACEHOLDER>, end_of_support: ~datetime.datetime = <PLACEHOLDER>)[source]
Bases:
MessageSoftwareEOL represents a software end of life
- end_of_support: datetime = <PLACEHOLDER>
end_of_support of a SoftwareEOL
- version: str | None = <PLACEHOLDER>
version of a SoftwareEOL