lifecycle

package
v0.0.0-...-1768917 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DeviceLifecycleSummaryService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "arista.lifecycle.v1.DeviceLifecycleSummaryService",
	HandlerType: (*DeviceLifecycleSummaryServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetOne",
			Handler:    _DeviceLifecycleSummaryService_GetOne_Handler,
		},
		{
			MethodName: "GetMeta",
			Handler:    _DeviceLifecycleSummaryService_GetMeta_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "GetAll",
			Handler:       _DeviceLifecycleSummaryService_GetAll_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "Subscribe",
			Handler:       _DeviceLifecycleSummaryService_Subscribe_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "SubscribeMeta",
			Handler:       _DeviceLifecycleSummaryService_SubscribeMeta_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "arista/lifecycle.v1/services.gen.proto",
}

DeviceLifecycleSummaryService_ServiceDesc is the grpc.ServiceDesc for DeviceLifecycleSummaryService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_arista_lifecycle_v1_lifecycle_proto protoreflect.FileDescriptor
View Source
var File_arista_lifecycle_v1_services_gen_proto protoreflect.FileDescriptor

Functions

func RegisterDeviceLifecycleSummaryServiceServer

func RegisterDeviceLifecycleSummaryServiceServer(s grpc.ServiceRegistrar, srv DeviceLifecycleSummaryServiceServer)

Types

type DateAndModels

type DateAndModels struct {

	// "end of" date
	Date *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=date,proto3" json:"date,omitempty"`
	// models with this exact "end of" date
	// mapped to its count
	Models *fmp.MapStringInt32 `protobuf:"bytes,2,opt,name=models,proto3" json:"models,omitempty"`
	// contains filtered or unexported fields
}

DateAndModels has an "end of" date along with the models that has this exact "end of" date

func (*DateAndModels) Descriptor deprecated

func (*DateAndModels) Descriptor() ([]byte, []int)

Deprecated: Use DateAndModels.ProtoReflect.Descriptor instead.

func (*DateAndModels) GetDate

func (x *DateAndModels) GetDate() *timestamppb.Timestamp

func (*DateAndModels) GetModels

func (x *DateAndModels) GetModels() *fmp.MapStringInt32

func (*DateAndModels) ProtoMessage

func (*DateAndModels) ProtoMessage()

func (*DateAndModels) ProtoReflect

func (x *DateAndModels) ProtoReflect() protoreflect.Message

func (*DateAndModels) Reset

func (x *DateAndModels) Reset()

func (*DateAndModels) String

func (x *DateAndModels) String() string

type DeviceLifecycleSummary

type DeviceLifecycleSummary struct {

	// DeviceLifecycleSummaryKey is the key of
	// DeviceLifecycleSummary
	Key *DeviceLifecycleSummaryKey `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// software_eol is the software end of life of
	// a device
	SoftwareEol *SoftwareEOL `protobuf:"bytes,2,opt,name=software_eol,json=softwareEol,proto3" json:"software_eol,omitempty"`
	// hardware_lifecycle_summary is the hardware lifecycle summary
	// of a device
	HardwareLifecycleSummary *HardwareLifecycleSummary `` /* 135-byte string literal not displayed */
	// contains filtered or unexported fields
}

DeviceLifecycleSummary is the state model that represents the lifecycle summary of a device

func (*DeviceLifecycleSummary) Descriptor deprecated

func (*DeviceLifecycleSummary) Descriptor() ([]byte, []int)

Deprecated: Use DeviceLifecycleSummary.ProtoReflect.Descriptor instead.

func (*DeviceLifecycleSummary) GetHardwareLifecycleSummary

func (x *DeviceLifecycleSummary) GetHardwareLifecycleSummary() *HardwareLifecycleSummary

func (*DeviceLifecycleSummary) GetKey

func (*DeviceLifecycleSummary) GetSoftwareEol

func (x *DeviceLifecycleSummary) GetSoftwareEol() *SoftwareEOL

func (*DeviceLifecycleSummary) ProtoMessage

func (*DeviceLifecycleSummary) ProtoMessage()

func (*DeviceLifecycleSummary) ProtoReflect

func (x *DeviceLifecycleSummary) ProtoReflect() protoreflect.Message

func (*DeviceLifecycleSummary) Reset

func (x *DeviceLifecycleSummary) Reset()

func (*DeviceLifecycleSummary) String

func (x *DeviceLifecycleSummary) String() string

type DeviceLifecycleSummaryKey

type DeviceLifecycleSummaryKey struct {

	// device_id is the device ID
	DeviceId *wrapperspb.StringValue `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
	// contains filtered or unexported fields
}

DeviceLifecycleSummaryKey is the key type for DeviceLifecycleSummary model

func (*DeviceLifecycleSummaryKey) Descriptor deprecated

func (*DeviceLifecycleSummaryKey) Descriptor() ([]byte, []int)

Deprecated: Use DeviceLifecycleSummaryKey.ProtoReflect.Descriptor instead.

func (*DeviceLifecycleSummaryKey) GetDeviceId

func (*DeviceLifecycleSummaryKey) ProtoMessage

func (*DeviceLifecycleSummaryKey) ProtoMessage()

func (*DeviceLifecycleSummaryKey) ProtoReflect

func (*DeviceLifecycleSummaryKey) Reset

func (x *DeviceLifecycleSummaryKey) Reset()

func (*DeviceLifecycleSummaryKey) String

func (x *DeviceLifecycleSummaryKey) String() string

type DeviceLifecycleSummaryRequest

type DeviceLifecycleSummaryRequest struct {

	// Key uniquely identifies a DeviceLifecycleSummary instance to retrieve.
	// This value must be populated.
	Key *DeviceLifecycleSummaryKey `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// 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.
	Time *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"`
	// contains filtered or unexported fields
}

func (*DeviceLifecycleSummaryRequest) Descriptor deprecated

func (*DeviceLifecycleSummaryRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeviceLifecycleSummaryRequest.ProtoReflect.Descriptor instead.

func (*DeviceLifecycleSummaryRequest) GetKey

func (*DeviceLifecycleSummaryRequest) GetTime

func (*DeviceLifecycleSummaryRequest) ProtoMessage

func (*DeviceLifecycleSummaryRequest) ProtoMessage()

func (*DeviceLifecycleSummaryRequest) ProtoReflect

func (*DeviceLifecycleSummaryRequest) Reset

func (x *DeviceLifecycleSummaryRequest) Reset()

func (*DeviceLifecycleSummaryRequest) String

type DeviceLifecycleSummaryResponse

type DeviceLifecycleSummaryResponse struct {

	// 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.
	Value *DeviceLifecycleSummary `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// Time carries the (UTC) timestamp of the last-modification of the
	// DeviceLifecycleSummary instance in this response.
	Time *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"`
	// contains filtered or unexported fields
}

func (*DeviceLifecycleSummaryResponse) Descriptor deprecated

func (*DeviceLifecycleSummaryResponse) Descriptor() ([]byte, []int)

Deprecated: Use DeviceLifecycleSummaryResponse.ProtoReflect.Descriptor instead.

func (*DeviceLifecycleSummaryResponse) GetTime

func (*DeviceLifecycleSummaryResponse) GetValue

func (*DeviceLifecycleSummaryResponse) ProtoMessage

func (*DeviceLifecycleSummaryResponse) ProtoMessage()

func (*DeviceLifecycleSummaryResponse) ProtoReflect

func (*DeviceLifecycleSummaryResponse) Reset

func (x *DeviceLifecycleSummaryResponse) Reset()

func (*DeviceLifecycleSummaryResponse) String

type DeviceLifecycleSummaryServiceClient

DeviceLifecycleSummaryServiceClient is the client API for DeviceLifecycleSummaryService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type DeviceLifecycleSummaryServiceServer

DeviceLifecycleSummaryServiceServer is the server API for DeviceLifecycleSummaryService service. All implementations must embed UnimplementedDeviceLifecycleSummaryServiceServer for forward compatibility

type DeviceLifecycleSummaryService_GetAllClient

type DeviceLifecycleSummaryService_GetAllClient interface {
	Recv() (*DeviceLifecycleSummaryStreamResponse, error)
	grpc.ClientStream
}

type DeviceLifecycleSummaryService_GetAllServer

type DeviceLifecycleSummaryService_GetAllServer interface {
	Send(*DeviceLifecycleSummaryStreamResponse) error
	grpc.ServerStream
}

type DeviceLifecycleSummaryService_SubscribeClient

type DeviceLifecycleSummaryService_SubscribeClient interface {
	Recv() (*DeviceLifecycleSummaryStreamResponse, error)
	grpc.ClientStream
}

type DeviceLifecycleSummaryService_SubscribeMetaClient

type DeviceLifecycleSummaryService_SubscribeMetaClient interface {
	Recv() (*MetaResponse, error)
	grpc.ClientStream
}

type DeviceLifecycleSummaryService_SubscribeMetaServer

type DeviceLifecycleSummaryService_SubscribeMetaServer interface {
	Send(*MetaResponse) error
	grpc.ServerStream
}

type DeviceLifecycleSummaryService_SubscribeServer

type DeviceLifecycleSummaryService_SubscribeServer interface {
	Send(*DeviceLifecycleSummaryStreamResponse) error
	grpc.ServerStream
}

type DeviceLifecycleSummaryStreamRequest

type DeviceLifecycleSummaryStreamRequest struct {

	// 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.
	PartialEqFilter []*DeviceLifecycleSummary `protobuf:"bytes,1,rep,name=partial_eq_filter,json=partialEqFilter,proto3" json:"partial_eq_filter,omitempty"`
	// 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.
	Time *time.TimeBounds `protobuf:"bytes,3,opt,name=time,proto3" json:"time,omitempty"`
	// contains filtered or unexported fields
}

func (*DeviceLifecycleSummaryStreamRequest) Descriptor deprecated

func (*DeviceLifecycleSummaryStreamRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeviceLifecycleSummaryStreamRequest.ProtoReflect.Descriptor instead.

func (*DeviceLifecycleSummaryStreamRequest) GetPartialEqFilter

func (*DeviceLifecycleSummaryStreamRequest) GetTime

func (*DeviceLifecycleSummaryStreamRequest) ProtoMessage

func (*DeviceLifecycleSummaryStreamRequest) ProtoMessage()

func (*DeviceLifecycleSummaryStreamRequest) ProtoReflect

func (*DeviceLifecycleSummaryStreamRequest) Reset

func (*DeviceLifecycleSummaryStreamRequest) String

type DeviceLifecycleSummaryStreamResponse

type DeviceLifecycleSummaryStreamResponse struct {

	// 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.
	Value *DeviceLifecycleSummary `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// Time holds the timestamp of this DeviceLifecycleSummary's last modification.
	Time *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"`
	// 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.
	Type subscriptions.Operation `protobuf:"varint,3,opt,name=type,proto3,enum=arista.subscriptions.Operation" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*DeviceLifecycleSummaryStreamResponse) Descriptor deprecated

func (*DeviceLifecycleSummaryStreamResponse) Descriptor() ([]byte, []int)

Deprecated: Use DeviceLifecycleSummaryStreamResponse.ProtoReflect.Descriptor instead.

func (*DeviceLifecycleSummaryStreamResponse) GetTime

func (*DeviceLifecycleSummaryStreamResponse) GetType

func (*DeviceLifecycleSummaryStreamResponse) GetValue

func (*DeviceLifecycleSummaryStreamResponse) ProtoMessage

func (*DeviceLifecycleSummaryStreamResponse) ProtoMessage()

func (*DeviceLifecycleSummaryStreamResponse) ProtoReflect

func (*DeviceLifecycleSummaryStreamResponse) Reset

func (*DeviceLifecycleSummaryStreamResponse) String

type HardwareLifecycleSummary

type HardwareLifecycleSummary struct {

	// end_of_life of a HardwareLifecycleSummary
	EndOfLife *DateAndModels `protobuf:"bytes,1,opt,name=end_of_life,json=endOfLife,proto3" json:"end_of_life,omitempty"`
	// end_of_sale of a HardwareLifecycleSummary
	EndOfSale *DateAndModels `protobuf:"bytes,2,opt,name=end_of_sale,json=endOfSale,proto3" json:"end_of_sale,omitempty"`
	// end_of_tac_support of a HardwareLifecycleSummary
	EndOfTacSupport *DateAndModels `protobuf:"bytes,3,opt,name=end_of_tac_support,json=endOfTacSupport,proto3" json:"end_of_tac_support,omitempty"`
	// end_of_hardware_rma_requests of a HardwareLifecycleSummary
	EndOfHardwareRmaRequests *DateAndModels `` /* 139-byte string literal not displayed */
	// contains filtered or unexported fields
}

HardwareLifecycleSummary represents a hardware lifecycle summary

func (*HardwareLifecycleSummary) Descriptor deprecated

func (*HardwareLifecycleSummary) Descriptor() ([]byte, []int)

Deprecated: Use HardwareLifecycleSummary.ProtoReflect.Descriptor instead.

func (*HardwareLifecycleSummary) GetEndOfHardwareRmaRequests

func (x *HardwareLifecycleSummary) GetEndOfHardwareRmaRequests() *DateAndModels

func (*HardwareLifecycleSummary) GetEndOfLife

func (x *HardwareLifecycleSummary) GetEndOfLife() *DateAndModels

func (*HardwareLifecycleSummary) GetEndOfSale

func (x *HardwareLifecycleSummary) GetEndOfSale() *DateAndModels

func (*HardwareLifecycleSummary) GetEndOfTacSupport

func (x *HardwareLifecycleSummary) GetEndOfTacSupport() *DateAndModels

func (*HardwareLifecycleSummary) ProtoMessage

func (*HardwareLifecycleSummary) ProtoMessage()

func (*HardwareLifecycleSummary) ProtoReflect

func (x *HardwareLifecycleSummary) ProtoReflect() protoreflect.Message

func (*HardwareLifecycleSummary) Reset

func (x *HardwareLifecycleSummary) Reset()

func (*HardwareLifecycleSummary) String

func (x *HardwareLifecycleSummary) String() string

type MetaResponse

type MetaResponse struct {

	// Time holds the timestamp of the last item included in the metadata calculation.
	Time *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"`
	// 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.
	Type subscriptions.Operation `protobuf:"varint,2,opt,name=type,proto3,enum=arista.subscriptions.Operation" json:"type,omitempty"`
	// Count is the number of items present under the conditions of the request.
	Count *wrapperspb.UInt32Value `protobuf:"bytes,3,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

func (*MetaResponse) Descriptor deprecated

func (*MetaResponse) Descriptor() ([]byte, []int)

Deprecated: Use MetaResponse.ProtoReflect.Descriptor instead.

func (*MetaResponse) GetCount

func (x *MetaResponse) GetCount() *wrapperspb.UInt32Value

func (*MetaResponse) GetTime

func (x *MetaResponse) GetTime() *timestamppb.Timestamp

func (*MetaResponse) GetType

func (x *MetaResponse) GetType() subscriptions.Operation

func (*MetaResponse) ProtoMessage

func (*MetaResponse) ProtoMessage()

func (*MetaResponse) ProtoReflect

func (x *MetaResponse) ProtoReflect() protoreflect.Message

func (*MetaResponse) Reset

func (x *MetaResponse) Reset()

func (*MetaResponse) String

func (x *MetaResponse) String() string

type SoftwareEOL

type SoftwareEOL struct {

	// version of a SoftwareEOL
	Version *wrapperspb.StringValue `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	// end_of_support of a SoftwareEOL
	EndOfSupport *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_of_support,json=endOfSupport,proto3" json:"end_of_support,omitempty"`
	// contains filtered or unexported fields
}

SoftwareEOL represents a software end of life

func (*SoftwareEOL) Descriptor deprecated

func (*SoftwareEOL) Descriptor() ([]byte, []int)

Deprecated: Use SoftwareEOL.ProtoReflect.Descriptor instead.

func (*SoftwareEOL) GetEndOfSupport

func (x *SoftwareEOL) GetEndOfSupport() *timestamppb.Timestamp

func (*SoftwareEOL) GetVersion

func (x *SoftwareEOL) GetVersion() *wrapperspb.StringValue

func (*SoftwareEOL) ProtoMessage

func (*SoftwareEOL) ProtoMessage()

func (*SoftwareEOL) ProtoReflect

func (x *SoftwareEOL) ProtoReflect() protoreflect.Message

func (*SoftwareEOL) Reset

func (x *SoftwareEOL) Reset()

func (*SoftwareEOL) String

func (x *SoftwareEOL) String() string

type UnimplementedDeviceLifecycleSummaryServiceServer

type UnimplementedDeviceLifecycleSummaryServiceServer struct {
}

UnimplementedDeviceLifecycleSummaryServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedDeviceLifecycleSummaryServiceServer) GetMeta

type UnsafeDeviceLifecycleSummaryServiceServer

type UnsafeDeviceLifecycleSummaryServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeDeviceLifecycleSummaryServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DeviceLifecycleSummaryServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL