Skip to content

Commit

Permalink
release/arista: Update GetSome, SetSome, DeleteSome REST endpoints
Browse files Browse the repository at this point in the history
[GENERATED_COMMIT]

Change-Id: Iab4f1fb8bfe5a53e6fc00b77da3c63f34505bc42
  • Loading branch information
Arista-Jenkins authored and oumichae1 committed May 31, 2024
1 parent 01e3020 commit 6a2f73d
Show file tree
Hide file tree
Showing 40 changed files with 7,938 additions and 804 deletions.
4 changes: 2 additions & 2 deletions arista/alert/v1/alert_pb2.py

Large diffs are not rendered by default.

148 changes: 82 additions & 66 deletions arista/alert/v1/services/gen_pb2.py

Large diffs are not rendered by default.

232 changes: 231 additions & 1 deletion arista/alert/v1/services/gen_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,63 @@ class AlertStreamResponse(google.protobuf.message.Message):
def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ...
global___AlertStreamResponse = AlertStreamResponse

class AlertBatchedStreamRequest(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
TIME_FIELD_NUMBER: builtins.int
MAX_MESSAGES_FIELD_NUMBER: builtins.int
@property
def time(self) -> arista.time.time_pb2.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.
For GetAll, the fields start and end can be used as follows:
* end: Returns the state of each Alert at end.
* Each Alert response is fully-specified (all fields set).
* start: Returns the state of each Alert at start, followed by updates until now.
* Each Alert response at start is fully-specified, but updates may be partial.
* start and end: Returns the state of each Alert at start, followed by updates
until end.
* Each Alert response at start is fully-specified, but updates until end may
be partial.
This field is not allowed in the Subscribe RPC.
"""
pass
@property
def max_messages(self) -> google.protobuf.wrappers_pb2.UInt32Value:
"""MaxMessages limits the maximum number of messages that can be contained in one batch.
MaxMessages is required to be at least 1.
The maximum number of messages in a batch is min(max_messages, INTERNAL_BATCH_LIMIT)
INTERNAL_BATCH_LIMIT is set based on the maximum message size.
"""
pass
def __init__(self,
*,
time: typing.Optional[arista.time.time_pb2.TimeBounds] = ...,
max_messages: typing.Optional[google.protobuf.wrappers_pb2.UInt32Value] = ...,
) -> None: ...
def HasField(self, field_name: typing_extensions.Literal["max_messages",b"max_messages","time",b"time"]) -> builtins.bool: ...
def ClearField(self, field_name: typing_extensions.Literal["max_messages",b"max_messages","time",b"time"]) -> None: ...
global___AlertBatchedStreamRequest = AlertBatchedStreamRequest

class AlertBatchedStreamResponse(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
RESPONSES_FIELD_NUMBER: builtins.int
@property
def responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___AlertStreamResponse]:
"""Values are the values deemed relevant to the initiating request.
The length of this structure is guaranteed to be between (inclusive) 1 and
min(req.max_messages, INTERNAL_BATCH_LIMIT).
"""
pass
def __init__(self,
*,
responses: typing.Optional[typing.Iterable[global___AlertStreamResponse]] = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["responses",b"responses"]) -> None: ...
global___AlertBatchedStreamResponse = AlertBatchedStreamResponse

class AlertConfigRequest(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
TIME_FIELD_NUMBER: builtins.int
Expand Down Expand Up @@ -261,6 +318,63 @@ class AlertConfigStreamResponse(google.protobuf.message.Message):
def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ...
global___AlertConfigStreamResponse = AlertConfigStreamResponse

class AlertConfigBatchedStreamRequest(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
TIME_FIELD_NUMBER: builtins.int
MAX_MESSAGES_FIELD_NUMBER: builtins.int
@property
def time(self) -> arista.time.time_pb2.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.
For GetAll, the fields start and end can be used as follows:
* end: Returns the state of each AlertConfig at end.
* Each AlertConfig response is fully-specified (all fields set).
* start: Returns the state of each AlertConfig at start, followed by updates until now.
* Each AlertConfig response at start is fully-specified, but updates may be partial.
* start and end: Returns the state of each AlertConfig at start, followed by updates
until end.
* Each AlertConfig response at start is fully-specified, but updates until end may
be partial.
This field is not allowed in the Subscribe RPC.
"""
pass
@property
def max_messages(self) -> google.protobuf.wrappers_pb2.UInt32Value:
"""MaxMessages limits the maximum number of messages that can be contained in one batch.
MaxMessages is required to be at least 1.
The maximum number of messages in a batch is min(max_messages, INTERNAL_BATCH_LIMIT)
INTERNAL_BATCH_LIMIT is set based on the maximum message size.
"""
pass
def __init__(self,
*,
time: typing.Optional[arista.time.time_pb2.TimeBounds] = ...,
max_messages: typing.Optional[google.protobuf.wrappers_pb2.UInt32Value] = ...,
) -> None: ...
def HasField(self, field_name: typing_extensions.Literal["max_messages",b"max_messages","time",b"time"]) -> builtins.bool: ...
def ClearField(self, field_name: typing_extensions.Literal["max_messages",b"max_messages","time",b"time"]) -> None: ...
global___AlertConfigBatchedStreamRequest = AlertConfigBatchedStreamRequest

class AlertConfigBatchedStreamResponse(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
RESPONSES_FIELD_NUMBER: builtins.int
@property
def responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___AlertConfigStreamResponse]:
"""Values are the values deemed relevant to the initiating request.
The length of this structure is guaranteed to be between (inclusive) 1 and
min(req.max_messages, INTERNAL_BATCH_LIMIT).
"""
pass
def __init__(self,
*,
responses: typing.Optional[typing.Iterable[global___AlertConfigStreamResponse]] = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["responses",b"responses"]) -> None: ...
global___AlertConfigBatchedStreamResponse = AlertConfigBatchedStreamResponse

class AlertConfigSetRequest(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
VALUE_FIELD_NUMBER: builtins.int
Expand Down Expand Up @@ -473,6 +587,63 @@ class DefaultTemplateStreamResponse(google.protobuf.message.Message):
def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ...
global___DefaultTemplateStreamResponse = DefaultTemplateStreamResponse

class DefaultTemplateBatchedStreamRequest(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
TIME_FIELD_NUMBER: builtins.int
MAX_MESSAGES_FIELD_NUMBER: builtins.int
@property
def time(self) -> arista.time.time_pb2.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.
For GetAll, the fields start and end can be used as follows:
* end: Returns the state of each DefaultTemplate at end.
* Each DefaultTemplate response is fully-specified (all fields set).
* start: Returns the state of each DefaultTemplate at start, followed by updates until now.
* Each DefaultTemplate response at start is fully-specified, but updates may be partial.
* start and end: Returns the state of each DefaultTemplate at start, followed by updates
until end.
* Each DefaultTemplate response at start is fully-specified, but updates until end may
be partial.
This field is not allowed in the Subscribe RPC.
"""
pass
@property
def max_messages(self) -> google.protobuf.wrappers_pb2.UInt32Value:
"""MaxMessages limits the maximum number of messages that can be contained in one batch.
MaxMessages is required to be at least 1.
The maximum number of messages in a batch is min(max_messages, INTERNAL_BATCH_LIMIT)
INTERNAL_BATCH_LIMIT is set based on the maximum message size.
"""
pass
def __init__(self,
*,
time: typing.Optional[arista.time.time_pb2.TimeBounds] = ...,
max_messages: typing.Optional[google.protobuf.wrappers_pb2.UInt32Value] = ...,
) -> None: ...
def HasField(self, field_name: typing_extensions.Literal["max_messages",b"max_messages","time",b"time"]) -> builtins.bool: ...
def ClearField(self, field_name: typing_extensions.Literal["max_messages",b"max_messages","time",b"time"]) -> None: ...
global___DefaultTemplateBatchedStreamRequest = DefaultTemplateBatchedStreamRequest

class DefaultTemplateBatchedStreamResponse(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
RESPONSES_FIELD_NUMBER: builtins.int
@property
def responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___DefaultTemplateStreamResponse]:
"""Values are the values deemed relevant to the initiating request.
The length of this structure is guaranteed to be between (inclusive) 1 and
min(req.max_messages, INTERNAL_BATCH_LIMIT).
"""
pass
def __init__(self,
*,
responses: typing.Optional[typing.Iterable[global___DefaultTemplateStreamResponse]] = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["responses",b"responses"]) -> None: ...
global___DefaultTemplateBatchedStreamResponse = DefaultTemplateBatchedStreamResponse

class TemplateConfigRequest(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
KEY_FIELD_NUMBER: builtins.int
Expand Down Expand Up @@ -640,6 +811,63 @@ class TemplateConfigStreamResponse(google.protobuf.message.Message):
def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ...
global___TemplateConfigStreamResponse = TemplateConfigStreamResponse

class TemplateConfigBatchedStreamRequest(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
TIME_FIELD_NUMBER: builtins.int
MAX_MESSAGES_FIELD_NUMBER: builtins.int
@property
def time(self) -> arista.time.time_pb2.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.
For GetAll, the fields start and end can be used as follows:
* end: Returns the state of each TemplateConfig at end.
* Each TemplateConfig response is fully-specified (all fields set).
* start: Returns the state of each TemplateConfig at start, followed by updates until now.
* Each TemplateConfig response at start is fully-specified, but updates may be partial.
* start and end: Returns the state of each TemplateConfig at start, followed by updates
until end.
* Each TemplateConfig response at start is fully-specified, but updates until end may
be partial.
This field is not allowed in the Subscribe RPC.
"""
pass
@property
def max_messages(self) -> google.protobuf.wrappers_pb2.UInt32Value:
"""MaxMessages limits the maximum number of messages that can be contained in one batch.
MaxMessages is required to be at least 1.
The maximum number of messages in a batch is min(max_messages, INTERNAL_BATCH_LIMIT)
INTERNAL_BATCH_LIMIT is set based on the maximum message size.
"""
pass
def __init__(self,
*,
time: typing.Optional[arista.time.time_pb2.TimeBounds] = ...,
max_messages: typing.Optional[google.protobuf.wrappers_pb2.UInt32Value] = ...,
) -> None: ...
def HasField(self, field_name: typing_extensions.Literal["max_messages",b"max_messages","time",b"time"]) -> builtins.bool: ...
def ClearField(self, field_name: typing_extensions.Literal["max_messages",b"max_messages","time",b"time"]) -> None: ...
global___TemplateConfigBatchedStreamRequest = TemplateConfigBatchedStreamRequest

class TemplateConfigBatchedStreamResponse(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
RESPONSES_FIELD_NUMBER: builtins.int
@property
def responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___TemplateConfigStreamResponse]:
"""Values are the values deemed relevant to the initiating request.
The length of this structure is guaranteed to be between (inclusive) 1 and
min(req.max_messages, INTERNAL_BATCH_LIMIT).
"""
pass
def __init__(self,
*,
responses: typing.Optional[typing.Iterable[global___TemplateConfigStreamResponse]] = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["responses",b"responses"]) -> None: ...
global___TemplateConfigBatchedStreamResponse = TemplateConfigBatchedStreamResponse

class TemplateConfigSetRequest(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
VALUE_FIELD_NUMBER: builtins.int
Expand Down Expand Up @@ -808,7 +1036,9 @@ class TemplateConfigDeleteAllResponse(google.protobuf.message.Message):
KEY_FIELD_NUMBER: builtins.int
TIME_FIELD_NUMBER: builtins.int
type: fmp.deletes_pb2.DeleteError.ValueType
"""This describes the class of delete error."""
"""This describes the class of delete error.
A DeleteAllResponse is only sent when there is an error.
"""

@property
def error(self) -> google.protobuf.wrappers_pb2.StringValue:
Expand Down
Loading

0 comments on commit 6a2f73d

Please sign in to comment.