diff --git a/arista/alert/v1/alert_pb2.pyi b/arista/alert/v1/alert_pb2.pyi index a3a763d..b2de723 100644 --- a/arista/alert/v1/alert_pb2.pyi +++ b/arista/alert/v1/alert_pb2.pyi @@ -1,8 +1,13 @@ """ @generated by mypy-protobuf. Do not edit manually! isort:skip_file +Copyright (c) 2023 Arista Networks, Inc. All rights reserved. +Use of this source code is governed by the Apache License 2.0 +that can be found in the COPYING file. """ + import builtins +import collections.abc import fmp.wrappers_pb2 import google.protobuf.descriptor import google.protobuf.duration_pb2 @@ -11,111 +16,92 @@ import google.protobuf.internal.enum_type_wrapper import google.protobuf.message import google.protobuf.timestamp_pb2 import google.protobuf.wrappers_pb2 +import sys import typing -import typing_extensions + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor class _ConfigErrorType: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _ConfigErrorTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ConfigErrorType.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor CONFIG_ERROR_TYPE_UNSPECIFIED: _ConfigErrorType.ValueType # 0 """CONFIG_ERROR_TYPE_UNSPECIFIED is the unspecified enum value""" - CONFIG_ERROR_TYPE_INVALID_FORMAT: _ConfigErrorType.ValueType # 2 """CONFIG_ERROR_TYPE_INVALID_FORMAT is caused by invalid format for value (eg: url)""" - CONFIG_ERROR_TYPE_INVALID_SYNTAX: _ConfigErrorType.ValueType # 3 """CONFIG_ERROR_TYPE_INVALID_SYNTAX is caused by invalid syntax for value (eg: regex)""" - CONFIG_ERROR_TYPE_TEMPLATE_INVALID: _ConfigErrorType.ValueType # 4 """CONFIG_ERROR_TYPE_TEMPLATE_INVALID is caused by failure to parse a template""" - CONFIG_ERROR_TYPE_ILLEGAL_VALUE: _ConfigErrorType.ValueType # 5 """CONFIG_ERROR_TYPE_ILLEGAL_VALUE is caused by a value outside of its bounds""" - CONFIG_ERROR_TYPE_MISSING_REQUIRED: _ConfigErrorType.ValueType # 6 """CONFIG_ERROR_TYPE_MISSING_REQUIRED is caused by a missing required attribute""" - CONFIG_ERROR_TYPE_INVALID_TYPE: _ConfigErrorType.ValueType # 7 """CONFIG_ERROR_TYPE_INVALID_TYPE is caused by the wrong type found in backing store""" class ConfigErrorType(_ConfigErrorType, metaclass=_ConfigErrorTypeEnumTypeWrapper): """ConfigErrorType describes the set of possible config error types""" - pass CONFIG_ERROR_TYPE_UNSPECIFIED: ConfigErrorType.ValueType # 0 """CONFIG_ERROR_TYPE_UNSPECIFIED is the unspecified enum value""" - CONFIG_ERROR_TYPE_INVALID_FORMAT: ConfigErrorType.ValueType # 2 """CONFIG_ERROR_TYPE_INVALID_FORMAT is caused by invalid format for value (eg: url)""" - CONFIG_ERROR_TYPE_INVALID_SYNTAX: ConfigErrorType.ValueType # 3 """CONFIG_ERROR_TYPE_INVALID_SYNTAX is caused by invalid syntax for value (eg: regex)""" - CONFIG_ERROR_TYPE_TEMPLATE_INVALID: ConfigErrorType.ValueType # 4 """CONFIG_ERROR_TYPE_TEMPLATE_INVALID is caused by failure to parse a template""" - CONFIG_ERROR_TYPE_ILLEGAL_VALUE: ConfigErrorType.ValueType # 5 """CONFIG_ERROR_TYPE_ILLEGAL_VALUE is caused by a value outside of its bounds""" - CONFIG_ERROR_TYPE_MISSING_REQUIRED: ConfigErrorType.ValueType # 6 """CONFIG_ERROR_TYPE_MISSING_REQUIRED is caused by a missing required attribute""" - CONFIG_ERROR_TYPE_INVALID_TYPE: ConfigErrorType.ValueType # 7 """CONFIG_ERROR_TYPE_INVALID_TYPE is caused by the wrong type found in backing store""" - global___ConfigErrorType = ConfigErrorType - class _EndpointErrorType: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _EndpointErrorTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_EndpointErrorType.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor ENDPOINT_ERROR_TYPE_UNSPECIFIED: _EndpointErrorType.ValueType # 0 """ENDPOINT_ERROR_TYPE_UNSPECIFIED is the unspecified enum value""" - ENDPOINT_ERROR_TYPE_HTTP_POST_ERROR: _EndpointErrorType.ValueType # 1 """ENDPOINT_ERROR_TYPE_HTTP_POST_ERROR an error in sending HTTP request or reading a HTTP response """ - ENDPOINT_ERROR_TYPE_JSON_MARSHAL_ERROR: _EndpointErrorType.ValueType # 2 """ENDPOINT_ERROR_TYPE_JSON_MARSHAL_ERROR is caused by errors while encoding json""" - ENDPOINT_ERROR_TYPE_INVALID_CONFIG_ERROR: _EndpointErrorType.ValueType # 3 """ENDPOINT_ERROR_TYPE_INVALID_CONFIG_ERROR is an error caused by invalid config (missing, bad format, etc) """ - ENDPOINT_ERROR_TYPE_TEMPLATE_ERROR: _EndpointErrorType.ValueType # 4 """ENDPOINT_ERROR_TYPE_TEMPLATE_ERROR is caused by errors while executing templates""" - ENDPOINT_ERROR_TYPE_BAD_RESPONSE_ERROR: _EndpointErrorType.ValueType # 5 """ENDPOINT_ERROR_TYPE_BAD_RESPONSE_ERROR is caused by receiving a negative response from an endpoint indicating that the alert was not sent """ - ENDPOINT_ERROR_TYPE_SMTP_ERROR: _EndpointErrorType.ValueType # 6 """ENDPOINT_ERROR_TYPE_SMTP_ERROR is caused by errors with SMTP""" - ENDPOINT_ERROR_TYPE_CONNECTION_ERROR: _EndpointErrorType.ValueType # 7 """ENDPOINT_ERROR_TYPE_CONNECTION_ERROR is caused by errors with a connection""" - ENDPOINT_ERROR_TYPE_TIMEOUT_ERROR: _EndpointErrorType.ValueType # 8 """ENDPOINT_ERROR_TYPE_TIMEOUT_ERROR is caused by errors with a connection""" - ENDPOINT_ERROR_TYPE_RATE_LIMIT_ERROR: _EndpointErrorType.ValueType # 9 """ENDPOINT_ERROR_TYPE_RATE_LIMIT_ERROR is caused by an Alerter rate limit being exceeded""" - ENDPOINT_ERROR_TYPE_ALERT_CAP_ERROR: _EndpointErrorType.ValueType # 10 """ENDPOINT_ERROR_TYPE_ALERT_CAP_ERROR is caused by the number of alerts sent to a sender exceeding the built-in limit """ - ENDPOINT_ERROR_TYPE_O_AUTH_ERROR: _EndpointErrorType.ValueType # 11 """ENDPOINT_ERROR_TYPE_O_AUTH_ERROR is caused when we failed authenticating using the OAuth apis @@ -123,68 +109,53 @@ class _EndpointErrorTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapp class EndpointErrorType(_EndpointErrorType, metaclass=_EndpointErrorTypeEnumTypeWrapper): """EndpointErrorType describe the set of possible endpoint types""" - pass ENDPOINT_ERROR_TYPE_UNSPECIFIED: EndpointErrorType.ValueType # 0 """ENDPOINT_ERROR_TYPE_UNSPECIFIED is the unspecified enum value""" - ENDPOINT_ERROR_TYPE_HTTP_POST_ERROR: EndpointErrorType.ValueType # 1 """ENDPOINT_ERROR_TYPE_HTTP_POST_ERROR an error in sending HTTP request or reading a HTTP response """ - ENDPOINT_ERROR_TYPE_JSON_MARSHAL_ERROR: EndpointErrorType.ValueType # 2 """ENDPOINT_ERROR_TYPE_JSON_MARSHAL_ERROR is caused by errors while encoding json""" - ENDPOINT_ERROR_TYPE_INVALID_CONFIG_ERROR: EndpointErrorType.ValueType # 3 """ENDPOINT_ERROR_TYPE_INVALID_CONFIG_ERROR is an error caused by invalid config (missing, bad format, etc) """ - ENDPOINT_ERROR_TYPE_TEMPLATE_ERROR: EndpointErrorType.ValueType # 4 """ENDPOINT_ERROR_TYPE_TEMPLATE_ERROR is caused by errors while executing templates""" - ENDPOINT_ERROR_TYPE_BAD_RESPONSE_ERROR: EndpointErrorType.ValueType # 5 """ENDPOINT_ERROR_TYPE_BAD_RESPONSE_ERROR is caused by receiving a negative response from an endpoint indicating that the alert was not sent """ - ENDPOINT_ERROR_TYPE_SMTP_ERROR: EndpointErrorType.ValueType # 6 """ENDPOINT_ERROR_TYPE_SMTP_ERROR is caused by errors with SMTP""" - ENDPOINT_ERROR_TYPE_CONNECTION_ERROR: EndpointErrorType.ValueType # 7 """ENDPOINT_ERROR_TYPE_CONNECTION_ERROR is caused by errors with a connection""" - ENDPOINT_ERROR_TYPE_TIMEOUT_ERROR: EndpointErrorType.ValueType # 8 """ENDPOINT_ERROR_TYPE_TIMEOUT_ERROR is caused by errors with a connection""" - ENDPOINT_ERROR_TYPE_RATE_LIMIT_ERROR: EndpointErrorType.ValueType # 9 """ENDPOINT_ERROR_TYPE_RATE_LIMIT_ERROR is caused by an Alerter rate limit being exceeded""" - ENDPOINT_ERROR_TYPE_ALERT_CAP_ERROR: EndpointErrorType.ValueType # 10 """ENDPOINT_ERROR_TYPE_ALERT_CAP_ERROR is caused by the number of alerts sent to a sender exceeding the built-in limit """ - ENDPOINT_ERROR_TYPE_O_AUTH_ERROR: EndpointErrorType.ValueType # 11 """ENDPOINT_ERROR_TYPE_O_AUTH_ERROR is caused when we failed authenticating using the OAuth apis """ - global___EndpointErrorType = EndpointErrorType - class _CueSyslogMessageFormat: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _CueSyslogMessageFormatEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_CueSyslogMessageFormat.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor CUE_SYSLOG_MESSAGE_FORMAT_UNSPECIFIED: _CueSyslogMessageFormat.ValueType # 0 """CUE_SYSLOG_MESSAGE_FORMAT_UNSPECIFIED is the unspecified enum value""" - CUE_SYSLOG_MESSAGE_FORMAT_PLAIN: _CueSyslogMessageFormat.ValueType # 1 """CUE_SYSLOG_MESSAGE_FORMAT_PLAIN format uses the text format for constructing the syslog message""" - CUE_SYSLOG_MESSAGE_FORMAT_IDMEF: _CueSyslogMessageFormat.ValueType # 2 """CUE_SYSLOG_MESSAGE_FORMAT_IDMEF uses IDMEF message format as described here: https://datatracker.ietf.org/doc/html/rfc4765 @@ -192,301 +163,231 @@ class _CueSyslogMessageFormatEnumTypeWrapper(google.protobuf.internal.enum_type_ class CueSyslogMessageFormat(_CueSyslogMessageFormat, metaclass=_CueSyslogMessageFormatEnumTypeWrapper): """CueSyslogMessageFormat is the message format for cue syslog messages""" - pass CUE_SYSLOG_MESSAGE_FORMAT_UNSPECIFIED: CueSyslogMessageFormat.ValueType # 0 """CUE_SYSLOG_MESSAGE_FORMAT_UNSPECIFIED is the unspecified enum value""" - CUE_SYSLOG_MESSAGE_FORMAT_PLAIN: CueSyslogMessageFormat.ValueType # 1 """CUE_SYSLOG_MESSAGE_FORMAT_PLAIN format uses the text format for constructing the syslog message""" - CUE_SYSLOG_MESSAGE_FORMAT_IDMEF: CueSyslogMessageFormat.ValueType # 2 """CUE_SYSLOG_MESSAGE_FORMAT_IDMEF uses IDMEF message format as described here: https://datatracker.ietf.org/doc/html/rfc4765 """ - global___CueSyslogMessageFormat = CueSyslogMessageFormat - class _SNMPSecurityLevel: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _SNMPSecurityLevelEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_SNMPSecurityLevel.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor SNMP_SECURITY_LEVEL_UNSPECIFIED: _SNMPSecurityLevel.ValueType # 0 """SNMP_SECURITY_LEVEL_UNSPECIFIED is the unspecified enum value""" - SNMP_SECURITY_LEVEL_NO_AUTH_NO_PRIV: _SNMPSecurityLevel.ValueType # 1 """SNMP_SECURITY_LEVEL_NO_AUTH_NO_PRIV use no security""" - SNMP_SECURITY_LEVEL_AUTH_NO_PRIV: _SNMPSecurityLevel.ValueType # 2 """SNMP_SECURITY_LEVEL_AUTH_NO_PRIV use authentication without privacy""" - SNMP_SECURITY_LEVEL_AUTH_PRIV: _SNMPSecurityLevel.ValueType # 3 """SNMP_SECURITY_LEVEL_AUTH_PRIV use both authentication and privacy""" class SNMPSecurityLevel(_SNMPSecurityLevel, metaclass=_SNMPSecurityLevelEnumTypeWrapper): """SNMPSecurityLevel indicates what level of security should be used""" - pass SNMP_SECURITY_LEVEL_UNSPECIFIED: SNMPSecurityLevel.ValueType # 0 """SNMP_SECURITY_LEVEL_UNSPECIFIED is the unspecified enum value""" - SNMP_SECURITY_LEVEL_NO_AUTH_NO_PRIV: SNMPSecurityLevel.ValueType # 1 """SNMP_SECURITY_LEVEL_NO_AUTH_NO_PRIV use no security""" - SNMP_SECURITY_LEVEL_AUTH_NO_PRIV: SNMPSecurityLevel.ValueType # 2 """SNMP_SECURITY_LEVEL_AUTH_NO_PRIV use authentication without privacy""" - SNMP_SECURITY_LEVEL_AUTH_PRIV: SNMPSecurityLevel.ValueType # 3 """SNMP_SECURITY_LEVEL_AUTH_PRIV use both authentication and privacy""" - global___SNMPSecurityLevel = SNMPSecurityLevel - class _SNMPAuthProtocol: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _SNMPAuthProtocolEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_SNMPAuthProtocol.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor SNMP_AUTH_PROTOCOL_UNSPECIFIED: _SNMPAuthProtocol.ValueType # 0 """SNMP_AUTH_PROTOCOL_UNSPECIFIED is the unspecified enum value""" - SNMP_AUTH_PROTOCOL_MD5: _SNMPAuthProtocol.ValueType # 1 """SNMP_AUTH_PROTOCOL_MD5 use the md5 protocol""" - SNMP_AUTH_PROTOCOL_SHA: _SNMPAuthProtocol.ValueType # 2 """SNMP_AUTH_PROTOCOL_SHA use the sha protocol""" - SNMP_AUTH_PROTOCOL_SHA_224: _SNMPAuthProtocol.ValueType # 3 """SNMP_AUTH_PROTOCOL_SHA_224 use the sha224 protocol""" - SNMP_AUTH_PROTOCOL_SHA_256: _SNMPAuthProtocol.ValueType # 4 """SNMP_AUTH_PROTOCOL_SHA_256 use the sha256 protocol""" - SNMP_AUTH_PROTOCOL_SHA_384: _SNMPAuthProtocol.ValueType # 5 """SNMP_AUTH_PROTOCOL_SHA_384 use the sha384 protocol""" - SNMP_AUTH_PROTOCOL_SHA_512: _SNMPAuthProtocol.ValueType # 6 """SNMP_AUTH_PROTOCOL_SHA_512 use the sha512 protocol""" class SNMPAuthProtocol(_SNMPAuthProtocol, metaclass=_SNMPAuthProtocolEnumTypeWrapper): """SNMPAuthProtocol represents the authentication protocol to be used""" - pass SNMP_AUTH_PROTOCOL_UNSPECIFIED: SNMPAuthProtocol.ValueType # 0 """SNMP_AUTH_PROTOCOL_UNSPECIFIED is the unspecified enum value""" - SNMP_AUTH_PROTOCOL_MD5: SNMPAuthProtocol.ValueType # 1 """SNMP_AUTH_PROTOCOL_MD5 use the md5 protocol""" - SNMP_AUTH_PROTOCOL_SHA: SNMPAuthProtocol.ValueType # 2 """SNMP_AUTH_PROTOCOL_SHA use the sha protocol""" - SNMP_AUTH_PROTOCOL_SHA_224: SNMPAuthProtocol.ValueType # 3 """SNMP_AUTH_PROTOCOL_SHA_224 use the sha224 protocol""" - SNMP_AUTH_PROTOCOL_SHA_256: SNMPAuthProtocol.ValueType # 4 """SNMP_AUTH_PROTOCOL_SHA_256 use the sha256 protocol""" - SNMP_AUTH_PROTOCOL_SHA_384: SNMPAuthProtocol.ValueType # 5 """SNMP_AUTH_PROTOCOL_SHA_384 use the sha384 protocol""" - SNMP_AUTH_PROTOCOL_SHA_512: SNMPAuthProtocol.ValueType # 6 """SNMP_AUTH_PROTOCOL_SHA_512 use the sha512 protocol""" - global___SNMPAuthProtocol = SNMPAuthProtocol - class _SNMPPrivProtocol: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _SNMPPrivProtocolEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_SNMPPrivProtocol.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor SNMP_PRIV_PROTOCOL_UNSPECIFIED: _SNMPPrivProtocol.ValueType # 0 """SNMP_PRIV_PROTOCOL_UNSPECIFIED is the unspecified enum value""" - SNMP_PRIV_PROTOCOL_DES: _SNMPPrivProtocol.ValueType # 1 """SNMP_PRIV_PROTOCOL_DES use the des protocol""" - SNMP_PRIV_PROTOCOL_AES: _SNMPPrivProtocol.ValueType # 2 """SNMP_PRIV_PROTOCOL_AES use the aes protocol""" - SNMP_PRIV_PROTOCOL_AES_192: _SNMPPrivProtocol.ValueType # 3 """SNMP_PRIV_PROTOCOL_AES_192 use the aes192 protocol""" - SNMP_PRIV_PROTOCOL_AES_256: _SNMPPrivProtocol.ValueType # 4 """SNMP_PRIV_PROTOCOL_AES_256 use the aes256 protocol""" - SNMP_PRIV_PROTOCOL_AES_192C: _SNMPPrivProtocol.ValueType # 5 """SNMP_PRIV_PROTOCOL_AES_192C use the aes192c protocol""" - SNMP_PRIV_PROTOCOL_AES_256C: _SNMPPrivProtocol.ValueType # 6 """SNMP_PRIV_PROTOCOL_AES_256C use the aes256c protocol""" class SNMPPrivProtocol(_SNMPPrivProtocol, metaclass=_SNMPPrivProtocolEnumTypeWrapper): """SNMPPrivProtocol represents the privacy protocol to be used""" - pass SNMP_PRIV_PROTOCOL_UNSPECIFIED: SNMPPrivProtocol.ValueType # 0 """SNMP_PRIV_PROTOCOL_UNSPECIFIED is the unspecified enum value""" - SNMP_PRIV_PROTOCOL_DES: SNMPPrivProtocol.ValueType # 1 """SNMP_PRIV_PROTOCOL_DES use the des protocol""" - SNMP_PRIV_PROTOCOL_AES: SNMPPrivProtocol.ValueType # 2 """SNMP_PRIV_PROTOCOL_AES use the aes protocol""" - SNMP_PRIV_PROTOCOL_AES_192: SNMPPrivProtocol.ValueType # 3 """SNMP_PRIV_PROTOCOL_AES_192 use the aes192 protocol""" - SNMP_PRIV_PROTOCOL_AES_256: SNMPPrivProtocol.ValueType # 4 """SNMP_PRIV_PROTOCOL_AES_256 use the aes256 protocol""" - SNMP_PRIV_PROTOCOL_AES_192C: SNMPPrivProtocol.ValueType # 5 """SNMP_PRIV_PROTOCOL_AES_192C use the aes192c protocol""" - SNMP_PRIV_PROTOCOL_AES_256C: SNMPPrivProtocol.ValueType # 6 """SNMP_PRIV_PROTOCOL_AES_256C use the aes256c protocol""" - global___SNMPPrivProtocol = SNMPPrivProtocol - class _CueSNMPAuthProtocol: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _CueSNMPAuthProtocolEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_CueSNMPAuthProtocol.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor CUE_SNMP_AUTH_PROTOCOL_UNSPECIFIED: _CueSNMPAuthProtocol.ValueType # 0 """CUE_SNMP_AUTH_PROTOCOL_UNSPECIFIED is the unspecified enum value""" - CUE_SNMP_AUTH_PROTOCOL_MD5: _CueSNMPAuthProtocol.ValueType # 1 """CUE_SNMP_AUTH_PROTOCOL_MD5 use the md5 protocol""" - CUE_SNMP_AUTH_PROTOCOL_SHA: _CueSNMPAuthProtocol.ValueType # 2 """CUE_SNMP_AUTH_PROTOCOL_SHA use the sha protocol""" class CueSNMPAuthProtocol(_CueSNMPAuthProtocol, metaclass=_CueSNMPAuthProtocolEnumTypeWrapper): """CueSNMPAuthProtocol represents the authentication protocol to be used""" - pass CUE_SNMP_AUTH_PROTOCOL_UNSPECIFIED: CueSNMPAuthProtocol.ValueType # 0 """CUE_SNMP_AUTH_PROTOCOL_UNSPECIFIED is the unspecified enum value""" - CUE_SNMP_AUTH_PROTOCOL_MD5: CueSNMPAuthProtocol.ValueType # 1 """CUE_SNMP_AUTH_PROTOCOL_MD5 use the md5 protocol""" - CUE_SNMP_AUTH_PROTOCOL_SHA: CueSNMPAuthProtocol.ValueType # 2 """CUE_SNMP_AUTH_PROTOCOL_SHA use the sha protocol""" - global___CueSNMPAuthProtocol = CueSNMPAuthProtocol - class _CueSNMPPrivProtocol: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _CueSNMPPrivProtocolEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_CueSNMPPrivProtocol.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor CUE_SNMP_PRIV_PROTOCOL_UNSPECIFIED: _CueSNMPPrivProtocol.ValueType # 0 """CUE_SNMP_PRIV_PROTOCOL_UNSPECIFIED is the unspecified enum value""" - CUE_SNMP_PRIV_PROTOCOL_DES: _CueSNMPPrivProtocol.ValueType # 1 """CUE_SNMP_PRIV_PROTOCOL_DES use the des protocol""" - CUE_SNMP_PRIV_PROTOCOL_AES: _CueSNMPPrivProtocol.ValueType # 2 """CUE_SNMP_PRIV_PROTOCOL_AES use the aes protocol""" class CueSNMPPrivProtocol(_CueSNMPPrivProtocol, metaclass=_CueSNMPPrivProtocolEnumTypeWrapper): """CueSNMPPrivProtocol represents the privacy protocol to be used""" - pass CUE_SNMP_PRIV_PROTOCOL_UNSPECIFIED: CueSNMPPrivProtocol.ValueType # 0 """CUE_SNMP_PRIV_PROTOCOL_UNSPECIFIED is the unspecified enum value""" - CUE_SNMP_PRIV_PROTOCOL_DES: CueSNMPPrivProtocol.ValueType # 1 """CUE_SNMP_PRIV_PROTOCOL_DES use the des protocol""" - CUE_SNMP_PRIV_PROTOCOL_AES: CueSNMPPrivProtocol.ValueType # 2 """CUE_SNMP_PRIV_PROTOCOL_AES use the aes protocol""" - global___CueSNMPPrivProtocol = CueSNMPPrivProtocol - class _TemplateType: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _TemplateTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_TemplateType.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor TEMPLATE_TYPE_UNSPECIFIED: _TemplateType.ValueType # 0 """TEMPLATE_TYPE_UNSPECIFIED is the unspecified enum value""" - TEMPLATE_TYPE_EMAIL_HTML: _TemplateType.ValueType # 1 """TEMPLATE_TYPE_EMAIL_HTML is the key of the html template for sent emails""" - TEMPLATE_TYPE_EMAIL_TEXT: _TemplateType.ValueType # 2 """TEMPLATE_TYPE_EMAIL_TEXT is the key of the text template for sent emails""" - TEMPLATE_TYPE_SLACK_MESSAGE: _TemplateType.ValueType # 3 """TEMPLATE_TYPE_SLACK_MESSAGE is the key of the message template for sent slack messages""" - TEMPLATE_TYPE_PUSHOVER_MESSAGE: _TemplateType.ValueType # 4 """TEMPLATE_TYPE_PUSHOVER_MESSAGE is the key of the message template for sent pushover messages""" - TEMPLATE_TYPE_PAGERDUTY_SUMMARY: _TemplateType.ValueType # 5 """TEMPLATE_TYPE_PAGERDUTY_SUMMARY is the key of the summary template for sent pagerduty messages""" - TEMPLATE_TYPE_VICTOROPS_DISPLAY_NAME: _TemplateType.ValueType # 6 """TEMPLATE_TYPE_VICTOROPS_DISPLAY_NAME is the key of the display name template for sent victorops messages """ - TEMPLATE_TYPE_VICTOROPS_STATE_MESSAGE: _TemplateType.ValueType # 7 """TEMPLATE_TYPE_VICTOROPS_STATE_MESSAGE is the key of the state message template for sent victorops messages """ - TEMPLATE_TYPE_GOOGLE_CHAT_MESSAGE: _TemplateType.ValueType # 8 """TEMPLATE_TYPE_GOOGLE_CHAT_MESSAGE is the key of the message template for sent Google chat messages """ - TEMPLATE_TYPE_MICROSOFT_TEAMS_MESSAGE: _TemplateType.ValueType # 9 """TEMPLATE_TYPE_MICROSOFT_TEAMS_MESSAGE is the key of the message template for sent Microsoft teams messages """ - TEMPLATE_TYPE_EMAIL_SUBJECT: _TemplateType.ValueType # 10 """TEMPLATE_TYPE_EMAIL_SUBJECT is the key of the subject line template of a sent email""" - TEMPLATE_TYPE_SYSLOG_MESSAGE: _TemplateType.ValueType # 11 """TEMPLATE_TYPE_SYSLOG_MESSAGE is the key of the message template for a syslog message part""" - TEMPLATE_TYPE_OPSGENIE_MESSAGE: _TemplateType.ValueType # 12 """TEMPLATE_TYPE_OPSGENIE_MESSAGE is the key of the message template for a opsgenie alert""" - TEMPLATE_TYPE_ZOOM_MESSAGE: _TemplateType.ValueType # 13 """TEMPLATE_TYPE_ZOOM_MESSAGE is the key of the message template for sent Zoom messages""" - TEMPLATE_TYPE_EMAIL_SINGLE_HTML: _TemplateType.ValueType # 14 """TEMPLATE_TYPE_EMAIL_SINGLE_HTML is the key of the html template for sent emails when the single alert per email option is selected """ - TEMPLATE_TYPE_EMAIL_SINGLE_TEXT: _TemplateType.ValueType # 15 """TEMPLATE_TYPE_EMAIL_SINGLE_TEXT is the key of the text template for sent emails when the single alert per email option is selected """ - TEMPLATE_TYPE_EMAIL_SINGLE_SUBJECT: _TemplateType.ValueType # 16 """TEMPLATE_TYPE_EMAIL_SINGLE_SUBJECT is the key of the subject line template of a sent email when the single alert per email option is selected """ - TEMPLATE_TYPE_WEBHOOK_SINGLE: _TemplateType.ValueType # 17 """TEMPLATE_TYPE_WEBHOOK_SINGLE is the key of the template for webhook message body when the single_alert option is true """ - TEMPLATE_TYPE_WEBHOOK_MULTIPLE: _TemplateType.ValueType # 18 """TEMPLATE_TYPE_WEBHOOK_MULTIPLE is the key of the template for webhook message body when the single_alert option is false @@ -494,100 +395,77 @@ class _TemplateTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._E class TemplateType(_TemplateType, metaclass=_TemplateTypeEnumTypeWrapper): """TemplateType describes the types of Templates that are usable""" - pass TEMPLATE_TYPE_UNSPECIFIED: TemplateType.ValueType # 0 """TEMPLATE_TYPE_UNSPECIFIED is the unspecified enum value""" - TEMPLATE_TYPE_EMAIL_HTML: TemplateType.ValueType # 1 """TEMPLATE_TYPE_EMAIL_HTML is the key of the html template for sent emails""" - TEMPLATE_TYPE_EMAIL_TEXT: TemplateType.ValueType # 2 """TEMPLATE_TYPE_EMAIL_TEXT is the key of the text template for sent emails""" - TEMPLATE_TYPE_SLACK_MESSAGE: TemplateType.ValueType # 3 """TEMPLATE_TYPE_SLACK_MESSAGE is the key of the message template for sent slack messages""" - TEMPLATE_TYPE_PUSHOVER_MESSAGE: TemplateType.ValueType # 4 """TEMPLATE_TYPE_PUSHOVER_MESSAGE is the key of the message template for sent pushover messages""" - TEMPLATE_TYPE_PAGERDUTY_SUMMARY: TemplateType.ValueType # 5 """TEMPLATE_TYPE_PAGERDUTY_SUMMARY is the key of the summary template for sent pagerduty messages""" - TEMPLATE_TYPE_VICTOROPS_DISPLAY_NAME: TemplateType.ValueType # 6 """TEMPLATE_TYPE_VICTOROPS_DISPLAY_NAME is the key of the display name template for sent victorops messages """ - TEMPLATE_TYPE_VICTOROPS_STATE_MESSAGE: TemplateType.ValueType # 7 """TEMPLATE_TYPE_VICTOROPS_STATE_MESSAGE is the key of the state message template for sent victorops messages """ - TEMPLATE_TYPE_GOOGLE_CHAT_MESSAGE: TemplateType.ValueType # 8 """TEMPLATE_TYPE_GOOGLE_CHAT_MESSAGE is the key of the message template for sent Google chat messages """ - TEMPLATE_TYPE_MICROSOFT_TEAMS_MESSAGE: TemplateType.ValueType # 9 """TEMPLATE_TYPE_MICROSOFT_TEAMS_MESSAGE is the key of the message template for sent Microsoft teams messages """ - TEMPLATE_TYPE_EMAIL_SUBJECT: TemplateType.ValueType # 10 """TEMPLATE_TYPE_EMAIL_SUBJECT is the key of the subject line template of a sent email""" - TEMPLATE_TYPE_SYSLOG_MESSAGE: TemplateType.ValueType # 11 """TEMPLATE_TYPE_SYSLOG_MESSAGE is the key of the message template for a syslog message part""" - TEMPLATE_TYPE_OPSGENIE_MESSAGE: TemplateType.ValueType # 12 """TEMPLATE_TYPE_OPSGENIE_MESSAGE is the key of the message template for a opsgenie alert""" - TEMPLATE_TYPE_ZOOM_MESSAGE: TemplateType.ValueType # 13 """TEMPLATE_TYPE_ZOOM_MESSAGE is the key of the message template for sent Zoom messages""" - TEMPLATE_TYPE_EMAIL_SINGLE_HTML: TemplateType.ValueType # 14 """TEMPLATE_TYPE_EMAIL_SINGLE_HTML is the key of the html template for sent emails when the single alert per email option is selected """ - TEMPLATE_TYPE_EMAIL_SINGLE_TEXT: TemplateType.ValueType # 15 """TEMPLATE_TYPE_EMAIL_SINGLE_TEXT is the key of the text template for sent emails when the single alert per email option is selected """ - TEMPLATE_TYPE_EMAIL_SINGLE_SUBJECT: TemplateType.ValueType # 16 """TEMPLATE_TYPE_EMAIL_SINGLE_SUBJECT is the key of the subject line template of a sent email when the single alert per email option is selected """ - TEMPLATE_TYPE_WEBHOOK_SINGLE: TemplateType.ValueType # 17 """TEMPLATE_TYPE_WEBHOOK_SINGLE is the key of the template for webhook message body when the single_alert option is true """ - TEMPLATE_TYPE_WEBHOOK_MULTIPLE: TemplateType.ValueType # 18 """TEMPLATE_TYPE_WEBHOOK_MULTIPLE is the key of the template for webhook message body when the single_alert option is false """ - global___TemplateType = TemplateType - class _TemplateOutput: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _TemplateOutputEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_TemplateOutput.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor TEMPLATE_OUTPUT_UNSPECIFIED: _TemplateOutput.ValueType # 0 """TEMPLATE_OUTPUT_UNSPECIFIED is the unspecfied value.""" - TEMPLATE_OUTPUT_TEXT: _TemplateOutput.ValueType # 1 """TEMPLATE_OUTPUT_TEXT indicates the the template outputs plain text.""" - TEMPLATE_OUTPUT_JSON: _TemplateOutput.ValueType # 2 """TEMPLATE_OUTPUT_JSON indicates the the template outputs JSON.""" - TEMPLATE_OUTPUT_HTML: _TemplateOutput.ValueType # 3 """TEMPLATE_OUTPUT_HTML indicates the the template outputs HTML. This also indicates that "html/templates" will be used instead of "text/templates" so that @@ -596,29 +474,26 @@ class _TemplateOutputEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper. class TemplateOutput(_TemplateOutput, metaclass=_TemplateOutputEnumTypeWrapper): """TemplateOutput is an enum of all of the possible output formats for templates""" - pass TEMPLATE_OUTPUT_UNSPECIFIED: TemplateOutput.ValueType # 0 """TEMPLATE_OUTPUT_UNSPECIFIED is the unspecfied value.""" - TEMPLATE_OUTPUT_TEXT: TemplateOutput.ValueType # 1 """TEMPLATE_OUTPUT_TEXT indicates the the template outputs plain text.""" - TEMPLATE_OUTPUT_JSON: TemplateOutput.ValueType # 2 """TEMPLATE_OUTPUT_JSON indicates the the template outputs JSON.""" - TEMPLATE_OUTPUT_HTML: TemplateOutput.ValueType # 3 """TEMPLATE_OUTPUT_HTML indicates the the template outputs HTML. This also indicates that "html/templates" will be used instead of "text/templates" so that html characters are automatically escaped from input. """ - global___TemplateOutput = TemplateOutput - +@typing.final class AlertConfig(google.protobuf.message.Message): """AlertConfig is the configuration for sending alerts""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + SETTINGS_FIELD_NUMBER: builtins.int RULES_FIELD_NUMBER: builtins.int BROADCAST_GROUPS_FIELD_NUMBER: builtins.int @@ -627,28 +502,33 @@ class AlertConfig(google.protobuf.message.Message): """settings is the global default settings for various endpoints used in broadcast groups. Can be overwritten in individual endpoint settings """ - pass + @property def rules(self) -> global___Rules: """rules define how we route alerts to broadcast groups""" - pass + @property def broadcast_groups(self) -> global___BroadcastGroups: """broadcast_groups are groups of endpoints that alerts are sent to""" - pass - def __init__(self, + + def __init__( + self, *, - settings: typing.Optional[global___Settings] = ..., - rules: typing.Optional[global___Rules] = ..., - broadcast_groups: typing.Optional[global___BroadcastGroups] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["broadcast_groups",b"broadcast_groups","rules",b"rules","settings",b"settings"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["broadcast_groups",b"broadcast_groups","rules",b"rules","settings",b"settings"]) -> None: ... + settings: global___Settings | None = ..., + rules: global___Rules | None = ..., + broadcast_groups: global___BroadcastGroups | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["broadcast_groups", b"broadcast_groups", "rules", b"rules", "settings", b"settings"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["broadcast_groups", b"broadcast_groups", "rules", b"rules", "settings", b"settings"]) -> None: ... + global___AlertConfig = AlertConfig +@typing.final class Alert(google.protobuf.message.Message): """Alert is the current status of the alert system""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + CONFIGURATION_ERRORS_FIELD_NUMBER: builtins.int ENDPOINT_ERRORS_FIELD_NUMBER: builtins.int LAST_MODIFIED_AT_FIELD_NUMBER: builtins.int @@ -656,139 +536,162 @@ class Alert(google.protobuf.message.Message): @property def configuration_errors(self) -> global___ConfigErrors: """configuration_errors contain any configuration errors reported by the backend""" - pass + @property def endpoint_errors(self) -> global___EndpointErrors: """endpoint_errors contain any failed attempts to send alerts""" - pass + @property def last_modified_at(self) -> google.protobuf.timestamp_pb2.Timestamp: """last_modified_at is the time at which the configuration was last modified""" - pass + @property def last_modified_by(self) -> google.protobuf.wrappers_pb2.StringValue: """last_modified_by is the user who last modified the configuration""" - pass - def __init__(self, + + def __init__( + self, *, - configuration_errors: typing.Optional[global___ConfigErrors] = ..., - endpoint_errors: typing.Optional[global___EndpointErrors] = ..., - last_modified_at: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - last_modified_by: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["configuration_errors",b"configuration_errors","endpoint_errors",b"endpoint_errors","last_modified_at",b"last_modified_at","last_modified_by",b"last_modified_by"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["configuration_errors",b"configuration_errors","endpoint_errors",b"endpoint_errors","last_modified_at",b"last_modified_at","last_modified_by",b"last_modified_by"]) -> None: ... + configuration_errors: global___ConfigErrors | None = ..., + endpoint_errors: global___EndpointErrors | None = ..., + last_modified_at: google.protobuf.timestamp_pb2.Timestamp | None = ..., + last_modified_by: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["configuration_errors", b"configuration_errors", "endpoint_errors", b"endpoint_errors", "last_modified_at", b"last_modified_at", "last_modified_by", b"last_modified_by"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["configuration_errors", b"configuration_errors", "endpoint_errors", b"endpoint_errors", "last_modified_at", b"last_modified_at", "last_modified_by", b"last_modified_by"]) -> None: ... + global___Alert = Alert +@typing.final class ConfigErrors(google.protobuf.message.Message): """ConfigErrors is a list of configuration-related errors""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ConfigError]: """values is a list of errors""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[global___ConfigError]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[global___ConfigError] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___ConfigErrors = ConfigErrors +@typing.final class ConfigError(google.protobuf.message.Message): """ConfigError is an error caused by an invalid config being rejected by the backend""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + PATH_FIELD_NUMBER: builtins.int ERROR_TYPE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int + error_type: global___ConfigErrorType.ValueType + """error_type is the type of error, this allows custom handling of different error types""" @property def path(self) -> google.protobuf.wrappers_pb2.StringValue: """path is the 'path' to the invalid config element, eg: path.userPathName.email_configs[1].to = the 'to' field of the second email config of the 'userPathName' broadcast_group """ - pass - error_type: global___ConfigErrorType.ValueType - """error_type is the type of error, this allows custom handling of different error types""" @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """error is a user-friendly error message""" - pass - def __init__(self, + + def __init__( + self, *, - path: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., + path: google.protobuf.wrappers_pb2.StringValue | None = ..., error_type: global___ConfigErrorType.ValueType = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","path",b"path"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","error_type",b"error_type","path",b"path"]) -> None: ... + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "path", b"path"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "error_type", b"error_type", "path", b"path"]) -> None: ... + global___ConfigError = ConfigError +@typing.final class EndpointErrors(google.protobuf.message.Message): """EndpointErrors is a set of errors related to sending of alerts""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___EndpointError]: """values is the list of errors""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[global___EndpointError]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[global___EndpointError] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___EndpointErrors = EndpointErrors +@typing.final class EndpointError(google.protobuf.message.Message): """EndpointError is an error caused by a failure to send alert(s) for any reason""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + ENDPOINT_TYPE_FIELD_NUMBER: builtins.int BROADCAST_GROUP_NAME_FIELD_NUMBER: builtins.int CONFIG_INDEX_FIELD_NUMBER: builtins.int ERROR_TYPE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int + error_type: global___EndpointErrorType.ValueType + """error_type is the type of error, this allows custom handling of different error types""" @property def endpoint_type(self) -> google.protobuf.wrappers_pb2.StringValue: """endpoint_type indicates the type of endpoint which failed, or unknown if not endpoint-specific (eg: slack, opsgenie) """ - pass + @property def broadcast_group_name(self) -> google.protobuf.wrappers_pb2.StringValue: """broadcast_group_name is the name of the broadcast group which was being used, empty string if not group specific """ - pass + @property def config_index(self) -> google.protobuf.wrappers_pb2.Int32Value: """config_index is the index of the config on the broadcast group or -1 if not applicable eg: if there are two email config in one broadcast group, then the indices for each are 0 and 1 note that these are done per type, so only counting email/slack/... """ - pass - error_type: global___EndpointErrorType.ValueType - """error_type is the type of error, this allows custom handling of different error types""" @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """error is a user-friendly error message""" - pass - def __init__(self, + + def __init__( + self, *, - endpoint_type: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - broadcast_group_name: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - config_index: typing.Optional[google.protobuf.wrappers_pb2.Int32Value] = ..., + endpoint_type: google.protobuf.wrappers_pb2.StringValue | None = ..., + broadcast_group_name: google.protobuf.wrappers_pb2.StringValue | None = ..., + config_index: google.protobuf.wrappers_pb2.Int32Value | None = ..., error_type: global___EndpointErrorType.ValueType = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["broadcast_group_name",b"broadcast_group_name","config_index",b"config_index","endpoint_type",b"endpoint_type","error",b"error"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["broadcast_group_name",b"broadcast_group_name","config_index",b"config_index","endpoint_type",b"endpoint_type","error",b"error","error_type",b"error_type"]) -> None: ... + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["broadcast_group_name", b"broadcast_group_name", "config_index", b"config_index", "endpoint_type", b"endpoint_type", "error", b"error"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["broadcast_group_name", b"broadcast_group_name", "config_index", b"config_index", "endpoint_type", b"endpoint_type", "error", b"error", "error_type", b"error_type"]) -> None: ... + global___EndpointError = EndpointError +@typing.final class Settings(google.protobuf.message.Message): """Settings portion of config, a list of default global settings used by broadcast groups""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + EMAIL_FIELD_NUMBER: builtins.int HTTP_FIELD_NUMBER: builtins.int SLACK_FIELD_NUMBER: builtins.int @@ -812,117 +715,122 @@ class Settings(google.protobuf.message.Message): @property def email(self) -> global___EmailSettings: """email is the global default settings for email""" - pass + @property def http(self) -> global___HttpSettings: """http is the global default settings for http""" - pass + @property def slack(self) -> global___SlackSettings: """slack is the global default settings for slack""" - pass + @property def victorops(self) -> global___VictoropsSettings: """victorops is the global default settings for victorops""" - pass + @property def pagerduty(self) -> global___PagerdutySettings: """pagerduty is the global default settings for pagerduty""" - pass + @property def opsgenie(self) -> global___OpsgenieSettings: """opsgenie is the global default settings for opsgenie""" - pass + @property def gchat(self) -> global___GoogleChatSettings: """gchat is the global default settings for google chat""" - pass + @property def msteams(self) -> global___MsTeamsSettings: """msteams is the global default settings for ms teams""" - pass + @property def inhibition(self) -> global___InhibitionSettings: """inhibition defines the inhibition rules for alerts, allowing events of certain types to be suppressed while another event type is active """ - pass + @property def base_url(self) -> google.protobuf.wrappers_pb2.StringValue: """base_url is the root address of your CloudVision app. Used to generate links in notifications.""" - pass + @property def timezone(self) -> google.protobuf.wrappers_pb2.StringValue: """timezone is used for formatting event times in notifications. E.g. 'UTC', 'US/Pacific'""" - pass + @property def syslog(self) -> global___SyslogSettings: """syslog is the global default settings for syslog""" - pass + @property def snmp(self) -> global___SNMPSettings: """snmp is the global default settings for snmp""" - pass + @property def sendgrid(self) -> global___SendgridSettings: """sendgrid is the global default settings for sendgrid""" - pass + @property def cue_syslog(self) -> global___CueSyslogSettings: """cue_syslog is the global default settings for cue syslog""" - pass + @property def cue_snmp(self) -> global___CueSNMPSettings: """cue_snmp is the global default settings for cue snmp""" - pass + @property def cue_sendgrid(self) -> global___CueSendgridSettings: """cue_sendgrid is the global default settings for cue sendgrid""" - pass + @property def hide_tags(self) -> google.protobuf.wrappers_pb2.BoolValue: """hide_tags is used to by the alerting system to omit tags and other "superfluous" values from the notifications that are sent out by the system """ - pass + @property def zoom(self) -> global___ZoomSettings: """zoom is the global default settings for zoom""" - pass + @property def webhook(self) -> global___WebhookSettings: """webhook is the auth settings for webhook""" - pass - def __init__(self, - *, - email: typing.Optional[global___EmailSettings] = ..., - http: typing.Optional[global___HttpSettings] = ..., - slack: typing.Optional[global___SlackSettings] = ..., - victorops: typing.Optional[global___VictoropsSettings] = ..., - pagerduty: typing.Optional[global___PagerdutySettings] = ..., - opsgenie: typing.Optional[global___OpsgenieSettings] = ..., - gchat: typing.Optional[global___GoogleChatSettings] = ..., - msteams: typing.Optional[global___MsTeamsSettings] = ..., - inhibition: typing.Optional[global___InhibitionSettings] = ..., - base_url: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - timezone: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - syslog: typing.Optional[global___SyslogSettings] = ..., - snmp: typing.Optional[global___SNMPSettings] = ..., - sendgrid: typing.Optional[global___SendgridSettings] = ..., - cue_syslog: typing.Optional[global___CueSyslogSettings] = ..., - cue_snmp: typing.Optional[global___CueSNMPSettings] = ..., - cue_sendgrid: typing.Optional[global___CueSendgridSettings] = ..., - hide_tags: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - zoom: typing.Optional[global___ZoomSettings] = ..., - webhook: typing.Optional[global___WebhookSettings] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["base_url",b"base_url","cue_sendgrid",b"cue_sendgrid","cue_snmp",b"cue_snmp","cue_syslog",b"cue_syslog","email",b"email","gchat",b"gchat","hide_tags",b"hide_tags","http",b"http","inhibition",b"inhibition","msteams",b"msteams","opsgenie",b"opsgenie","pagerduty",b"pagerduty","sendgrid",b"sendgrid","slack",b"slack","snmp",b"snmp","syslog",b"syslog","timezone",b"timezone","victorops",b"victorops","webhook",b"webhook","zoom",b"zoom"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["base_url",b"base_url","cue_sendgrid",b"cue_sendgrid","cue_snmp",b"cue_snmp","cue_syslog",b"cue_syslog","email",b"email","gchat",b"gchat","hide_tags",b"hide_tags","http",b"http","inhibition",b"inhibition","msteams",b"msteams","opsgenie",b"opsgenie","pagerduty",b"pagerduty","sendgrid",b"sendgrid","slack",b"slack","snmp",b"snmp","syslog",b"syslog","timezone",b"timezone","victorops",b"victorops","webhook",b"webhook","zoom",b"zoom"]) -> None: ... + + def __init__( + self, + *, + email: global___EmailSettings | None = ..., + http: global___HttpSettings | None = ..., + slack: global___SlackSettings | None = ..., + victorops: global___VictoropsSettings | None = ..., + pagerduty: global___PagerdutySettings | None = ..., + opsgenie: global___OpsgenieSettings | None = ..., + gchat: global___GoogleChatSettings | None = ..., + msteams: global___MsTeamsSettings | None = ..., + inhibition: global___InhibitionSettings | None = ..., + base_url: google.protobuf.wrappers_pb2.StringValue | None = ..., + timezone: google.protobuf.wrappers_pb2.StringValue | None = ..., + syslog: global___SyslogSettings | None = ..., + snmp: global___SNMPSettings | None = ..., + sendgrid: global___SendgridSettings | None = ..., + cue_syslog: global___CueSyslogSettings | None = ..., + cue_snmp: global___CueSNMPSettings | None = ..., + cue_sendgrid: global___CueSendgridSettings | None = ..., + hide_tags: google.protobuf.wrappers_pb2.BoolValue | None = ..., + zoom: global___ZoomSettings | None = ..., + webhook: global___WebhookSettings | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["base_url", b"base_url", "cue_sendgrid", b"cue_sendgrid", "cue_snmp", b"cue_snmp", "cue_syslog", b"cue_syslog", "email", b"email", "gchat", b"gchat", "hide_tags", b"hide_tags", "http", b"http", "inhibition", b"inhibition", "msteams", b"msteams", "opsgenie", b"opsgenie", "pagerduty", b"pagerduty", "sendgrid", b"sendgrid", "slack", b"slack", "snmp", b"snmp", "syslog", b"syslog", "timezone", b"timezone", "victorops", b"victorops", "webhook", b"webhook", "zoom", b"zoom"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["base_url", b"base_url", "cue_sendgrid", b"cue_sendgrid", "cue_snmp", b"cue_snmp", "cue_syslog", b"cue_syslog", "email", b"email", "gchat", b"gchat", "hide_tags", b"hide_tags", "http", b"http", "inhibition", b"inhibition", "msteams", b"msteams", "opsgenie", b"opsgenie", "pagerduty", b"pagerduty", "sendgrid", b"sendgrid", "slack", b"slack", "snmp", b"snmp", "syslog", b"syslog", "timezone", b"timezone", "victorops", b"victorops", "webhook", b"webhook", "zoom", b"zoom"]) -> None: ... + global___Settings = Settings +@typing.final class EmailSettings(google.protobuf.message.Message): """EmailSettings contain the settings for the sending of emails""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + FROM_FIELD_NUMBER: builtins.int SMARTHOST_FIELD_NUMBER: builtins.int AUTH_USERNAME_FIELD_NUMBER: builtins.int @@ -933,49 +841,54 @@ class EmailSettings(google.protobuf.message.Message): @property def smarthost(self) -> google.protobuf.wrappers_pb2.StringValue: """smarthost is the hostname and port of the SMTP server""" - pass + @property def auth_username(self) -> google.protobuf.wrappers_pb2.StringValue: """auth_username the username to use when sending emails required for all auth methods """ - pass + @property def auth_password(self) -> google.protobuf.wrappers_pb2.StringValue: """auth_password the password to use when sending emails""" - pass + @property def require_tls(self) -> google.protobuf.wrappers_pb2.BoolValue: """require_tls always use TLS connections when sending emails""" - pass + @property def single_alert_per_email(self) -> google.protobuf.wrappers_pb2.BoolValue: """single_alert_per_email configures the Alerter such that each alert generates a separate email notification, the email will only have a single notification, the format will also be different """ - pass + @property def azure_o_auth(self) -> global___AzureOAuth: """azure_o_auth used for auth when using an Azure smtp server uses auth_username, scopes is not required as we use https://outlook.office365.com/.default """ - pass - def __init__(self, - *, - smarthost: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - auth_username: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - auth_password: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - require_tls: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - single_alert_per_email: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - azure_o_auth: typing.Optional[global___AzureOAuth] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["auth_password",b"auth_password","auth_username",b"auth_username","azure_o_auth",b"azure_o_auth","from",b"from","require_tls",b"require_tls","single_alert_per_email",b"single_alert_per_email","smarthost",b"smarthost"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["auth_password",b"auth_password","auth_username",b"auth_username","azure_o_auth",b"azure_o_auth","from",b"from","require_tls",b"require_tls","single_alert_per_email",b"single_alert_per_email","smarthost",b"smarthost"]) -> None: ... + + def __init__( + self, + *, + smarthost: google.protobuf.wrappers_pb2.StringValue | None = ..., + auth_username: google.protobuf.wrappers_pb2.StringValue | None = ..., + auth_password: google.protobuf.wrappers_pb2.StringValue | None = ..., + require_tls: google.protobuf.wrappers_pb2.BoolValue | None = ..., + single_alert_per_email: google.protobuf.wrappers_pb2.BoolValue | None = ..., + azure_o_auth: global___AzureOAuth | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["auth_password", b"auth_password", "auth_username", b"auth_username", "azure_o_auth", b"azure_o_auth", "from", b"from", "require_tls", b"require_tls", "single_alert_per_email", b"single_alert_per_email", "smarthost", b"smarthost"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["auth_password", b"auth_password", "auth_username", b"auth_username", "azure_o_auth", b"azure_o_auth", "from", b"from", "require_tls", b"require_tls", "single_alert_per_email", b"single_alert_per_email", "smarthost", b"smarthost"]) -> None: ... + global___EmailSettings = EmailSettings +@typing.final class AzureOAuth(google.protobuf.message.Message): """AzureOAuth contains the settings for the sending of emails on Azure smtp server""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + CLIENT_ID_FIELD_NUMBER: builtins.int TENANT_ID_FIELD_NUMBER: builtins.int CLIENT_SECRET_FIELD_NUMBER: builtins.int @@ -984,41 +897,46 @@ class AzureOAuth(google.protobuf.message.Message): @property def client_id(self) -> google.protobuf.wrappers_pb2.StringValue: """client_id of the Azure environment""" - pass + @property def tenant_id(self) -> google.protobuf.wrappers_pb2.StringValue: """tenant_id of the Azure environment""" - pass + @property def client_secret(self) -> google.protobuf.wrappers_pb2.StringValue: """client_secret is a user generated secret key used for auth""" - pass + @property def auth_uri(self) -> google.protobuf.wrappers_pb2.StringValue: """auth_uri is the URI used for OAuth this should always be https://login.microsoftonline.com/ unless using a very custom set up, where the Azure enviroment is not running on microsoft servers """ - pass + @property def scopes(self) -> fmp.wrappers_pb2.RepeatedString: """scopes are the scopes that auth is granted for""" - pass - def __init__(self, - *, - client_id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - tenant_id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - client_secret: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - auth_uri: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - scopes: typing.Optional[fmp.wrappers_pb2.RepeatedString] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["auth_uri",b"auth_uri","client_id",b"client_id","client_secret",b"client_secret","scopes",b"scopes","tenant_id",b"tenant_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["auth_uri",b"auth_uri","client_id",b"client_id","client_secret",b"client_secret","scopes",b"scopes","tenant_id",b"tenant_id"]) -> None: ... + + def __init__( + self, + *, + client_id: google.protobuf.wrappers_pb2.StringValue | None = ..., + tenant_id: google.protobuf.wrappers_pb2.StringValue | None = ..., + client_secret: google.protobuf.wrappers_pb2.StringValue | None = ..., + auth_uri: google.protobuf.wrappers_pb2.StringValue | None = ..., + scopes: fmp.wrappers_pb2.RepeatedString | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["auth_uri", b"auth_uri", "client_id", b"client_id", "client_secret", b"client_secret", "scopes", b"scopes", "tenant_id", b"tenant_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["auth_uri", b"auth_uri", "client_id", b"client_id", "client_secret", b"client_secret", "scopes", b"scopes", "tenant_id", b"tenant_id"]) -> None: ... + global___AzureOAuth = AzureOAuth +@typing.final class HttpSettings(google.protobuf.message.Message): """HttpSettings are the settings to be used when sending various message over a http connection""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + USERNAME_FIELD_NUMBER: builtins.int PASSWORD_FIELD_NUMBER: builtins.int PROXY_URL_FIELD_NUMBER: builtins.int @@ -1026,206 +944,259 @@ class HttpSettings(google.protobuf.message.Message): @property def username(self) -> google.protobuf.wrappers_pb2.StringValue: """username is the username to use when connecting to the http proxy""" - pass + @property def password(self) -> google.protobuf.wrappers_pb2.StringValue: """password is the password to use when connecting to the http proxy""" - pass + @property def proxy_url(self) -> google.protobuf.wrappers_pb2.StringValue: """proxy_url is the url for the http proxy""" - pass + @property def custom_headers(self) -> global___HttpHeaders: """custom_headers is custom http headers to be used along with the default headers""" - pass - def __init__(self, + + def __init__( + self, *, - username: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - password: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - proxy_url: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - custom_headers: typing.Optional[global___HttpHeaders] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["custom_headers",b"custom_headers","password",b"password","proxy_url",b"proxy_url","username",b"username"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["custom_headers",b"custom_headers","password",b"password","proxy_url",b"proxy_url","username",b"username"]) -> None: ... + username: google.protobuf.wrappers_pb2.StringValue | None = ..., + password: google.protobuf.wrappers_pb2.StringValue | None = ..., + proxy_url: google.protobuf.wrappers_pb2.StringValue | None = ..., + custom_headers: global___HttpHeaders | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["custom_headers", b"custom_headers", "password", b"password", "proxy_url", b"proxy_url", "username", b"username"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["custom_headers", b"custom_headers", "password", b"password", "proxy_url", b"proxy_url", "username", b"username"]) -> None: ... + global___HttpSettings = HttpSettings +@typing.final class HttpHeaders(google.protobuf.message.Message): """HttpHeaders is a set of http headers""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int - key: typing.Text + key: builtins.str @property def value(self) -> global___HeaderValues: ... - def __init__(self, + def __init__( + self, *, - key: typing.Text = ..., - value: typing.Optional[global___HeaderValues] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + key: builtins.str = ..., + value: global___HeaderValues | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property - def values(self) -> google.protobuf.internal.containers.MessageMap[typing.Text, global___HeaderValues]: + def values(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___HeaderValues]: """values is a map of http header names to values""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[typing.Text, global___HeaderValues]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.str, global___HeaderValues] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___HttpHeaders = HttpHeaders +@typing.final class HeaderValues(google.protobuf.message.Message): """HeaderValues is a set of values for this header""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property - def values(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: + def values(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: """values is the header values""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[typing.Text]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[builtins.str] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___HeaderValues = HeaderValues +@typing.final class SlackSettings(google.protobuf.message.Message): """SlackSettings contain the settings for sending alerts to slack""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + URL_FIELD_NUMBER: builtins.int @property def url(self) -> google.protobuf.wrappers_pb2.StringValue: """url is the url of the slack webhook to use""" - pass - def __init__(self, + + def __init__( + self, *, - url: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["url",b"url"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["url",b"url"]) -> None: ... + url: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["url", b"url"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["url", b"url"]) -> None: ... + global___SlackSettings = SlackSettings +@typing.final class VictoropsSettings(google.protobuf.message.Message): """VictoropsSettings contain the settings for sending alerts to victorops""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int URL_FIELD_NUMBER: builtins.int @property def key(self) -> google.protobuf.wrappers_pb2.StringValue: """key is the API key to use when talking to the VictorOps API""" - pass + @property def url(self) -> google.protobuf.wrappers_pb2.StringValue: """url is the victorops url to use (without integration or routing key default: https://alert.victorops.com/integrations/generic/20131114/alert/ """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - url: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","url",b"url"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","url",b"url"]) -> None: ... + key: google.protobuf.wrappers_pb2.StringValue | None = ..., + url: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "url", b"url"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "url", b"url"]) -> None: ... + global___VictoropsSettings = VictoropsSettings +@typing.final class PagerdutySettings(google.protobuf.message.Message): """PagerdutySettings contain the settings for sending alerts to pagerduty""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + URL_FIELD_NUMBER: builtins.int @property def url(self) -> google.protobuf.wrappers_pb2.StringValue: """url is the url to use when sending alerts to pagerduty""" - pass - def __init__(self, + + def __init__( + self, *, - url: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["url",b"url"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["url",b"url"]) -> None: ... + url: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["url", b"url"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["url", b"url"]) -> None: ... + global___PagerdutySettings = PagerdutySettings +@typing.final class OpsgenieSettings(google.protobuf.message.Message): """OpsgenieSettings contain the settings for sending alerts to opsgenie""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int URL_FIELD_NUMBER: builtins.int @property def key(self) -> google.protobuf.wrappers_pb2.StringValue: """key is the API key to use when talking to the OpsGenie API""" - pass + @property def url(self) -> google.protobuf.wrappers_pb2.StringValue: """url is the url to use when sending alerts to opsgenie""" - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - url: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","url",b"url"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","url",b"url"]) -> None: ... + key: google.protobuf.wrappers_pb2.StringValue | None = ..., + url: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "url", b"url"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "url", b"url"]) -> None: ... + global___OpsgenieSettings = OpsgenieSettings +@typing.final class GoogleChatSettings(google.protobuf.message.Message): """GoogleChatSettings contain the settings for sending alerts to google chat""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + URL_FIELD_NUMBER: builtins.int @property def url(self) -> google.protobuf.wrappers_pb2.StringValue: """url is the url of the webhook to send alerts to""" - pass - def __init__(self, + + def __init__( + self, *, - url: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["url",b"url"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["url",b"url"]) -> None: ... + url: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["url", b"url"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["url", b"url"]) -> None: ... + global___GoogleChatSettings = GoogleChatSettings +@typing.final class MsTeamsSettings(google.protobuf.message.Message): """MsTeamsSettings contain the settings for sending alerts to MS Teams""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + URL_FIELD_NUMBER: builtins.int @property def url(self) -> google.protobuf.wrappers_pb2.StringValue: """url is the url of the webhook to send alerts to""" - pass - def __init__(self, + + def __init__( + self, *, - url: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["url",b"url"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["url",b"url"]) -> None: ... + url: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["url", b"url"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["url", b"url"]) -> None: ... + global___MsTeamsSettings = MsTeamsSettings +@typing.final class WebhookSettings(google.protobuf.message.Message): """WebhookSettings contain the settings for sending alerts to a Webhook""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + AZURE_O_AUTH_FIELD_NUMBER: builtins.int @property def azure_o_auth(self) -> global___AzureOAuth: """azure_o_auth used for auth when using an Azure smtp server uses auth_username """ - pass - def __init__(self, + + def __init__( + self, *, - azure_o_auth: typing.Optional[global___AzureOAuth] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["azure_o_auth",b"azure_o_auth"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["azure_o_auth",b"azure_o_auth"]) -> None: ... + azure_o_auth: global___AzureOAuth | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["azure_o_auth", b"azure_o_auth"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["azure_o_auth", b"azure_o_auth"]) -> None: ... + global___WebhookSettings = WebhookSettings +@typing.final class SyslogSettings(google.protobuf.message.Message): """SyslogSettings contain the settings for sending alerts with syslog""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + NETWORK_FIELD_NUMBER: builtins.int ADDRESS_FIELD_NUMBER: builtins.int FACILITY_FIELD_NUMBER: builtins.int @@ -1238,25 +1209,25 @@ class SyslogSettings(google.protobuf.message.Message): """network is the network protocol to use, default is "udp", options also include: tcp,tcp4,tcp6,udp4,udp6 """ - pass + @property def address(self) -> google.protobuf.wrappers_pb2.StringValue: """address is the network address to send syslog messages to""" - pass + @property def facility(self) -> google.protobuf.wrappers_pb2.Int32Value: """facility is the syslog facility 0-23 inc. This is the syslog facility as defined in RFC-3164""" - pass + @property def priorities(self) -> global___Priorities: """priorities describes how CVP severity maps to syslog priority priority is a number between 0-7 inc. as defined in RFC-3164 """ - pass + @property def tag(self) -> google.protobuf.wrappers_pb2.StringValue: """tag is the syslog TAG as described in RFC-3164, it is the prefix to all syslog messages""" - pass + @property def per_device(self) -> google.protobuf.wrappers_pb2.BoolValue: """per_device allows message to optionally be sent per device, @@ -1264,28 +1235,33 @@ class SyslogSettings(google.protobuf.message.Message): true: two messages are sent, one for each device false: a single message is sent """ - pass + @property def use_tls(self) -> google.protobuf.wrappers_pb2.BoolValue: """use_tls determines if the connection to the server should be secured with TLS""" - pass - def __init__(self, - *, - network: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - address: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - facility: typing.Optional[google.protobuf.wrappers_pb2.Int32Value] = ..., - priorities: typing.Optional[global___Priorities] = ..., - tag: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - per_device: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - use_tls: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["address",b"address","facility",b"facility","network",b"network","per_device",b"per_device","priorities",b"priorities","tag",b"tag","use_tls",b"use_tls"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["address",b"address","facility",b"facility","network",b"network","per_device",b"per_device","priorities",b"priorities","tag",b"tag","use_tls",b"use_tls"]) -> None: ... + + def __init__( + self, + *, + network: google.protobuf.wrappers_pb2.StringValue | None = ..., + address: google.protobuf.wrappers_pb2.StringValue | None = ..., + facility: google.protobuf.wrappers_pb2.Int32Value | None = ..., + priorities: global___Priorities | None = ..., + tag: google.protobuf.wrappers_pb2.StringValue | None = ..., + per_device: google.protobuf.wrappers_pb2.BoolValue | None = ..., + use_tls: google.protobuf.wrappers_pb2.BoolValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["address", b"address", "facility", b"facility", "network", b"network", "per_device", b"per_device", "priorities", b"priorities", "tag", b"tag", "use_tls", b"use_tls"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["address", b"address", "facility", b"facility", "network", b"network", "per_device", b"per_device", "priorities", b"priorities", "tag", b"tag", "use_tls", b"use_tls"]) -> None: ... + global___SyslogSettings = SyslogSettings +@typing.final class Priorities(google.protobuf.message.Message): """Priorities is a mapping of CV event severities to syslog severities""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + CRITICAL_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int WARN_FIELD_NUMBER: builtins.int @@ -1293,110 +1269,127 @@ class Priorities(google.protobuf.message.Message): @property def critical(self) -> google.protobuf.wrappers_pb2.Int32Value: """critical priority, default = 2 (Critical)""" - pass + @property def error(self) -> google.protobuf.wrappers_pb2.Int32Value: """error priority, default = 3 (Error)""" - pass + @property def warn(self) -> google.protobuf.wrappers_pb2.Int32Value: """warn priority, default = 4 (Warning)""" - pass + @property def info(self) -> google.protobuf.wrappers_pb2.Int32Value: """info priority, default = 6 (Informational)""" - pass - def __init__(self, + + def __init__( + self, *, - critical: typing.Optional[google.protobuf.wrappers_pb2.Int32Value] = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.Int32Value] = ..., - warn: typing.Optional[google.protobuf.wrappers_pb2.Int32Value] = ..., - info: typing.Optional[google.protobuf.wrappers_pb2.Int32Value] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["critical",b"critical","error",b"error","info",b"info","warn",b"warn"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["critical",b"critical","error",b"error","info",b"info","warn",b"warn"]) -> None: ... + critical: google.protobuf.wrappers_pb2.Int32Value | None = ..., + error: google.protobuf.wrappers_pb2.Int32Value | None = ..., + warn: google.protobuf.wrappers_pb2.Int32Value | None = ..., + info: google.protobuf.wrappers_pb2.Int32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["critical", b"critical", "error", b"error", "info", b"info", "warn", b"warn"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["critical", b"critical", "error", b"error", "info", b"info", "warn", b"warn"]) -> None: ... + global___Priorities = Priorities +@typing.final class CueData(google.protobuf.message.Message): """CueData contains additional cue-specific data""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int - key: typing.Text - value: typing.Text - def __init__(self, + key: builtins.str + value: builtins.str + def __init__( + self, *, - key: typing.Text = ..., - value: typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + key: builtins.str = ..., + value: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property - def values(self) -> google.protobuf.internal.containers.ScalarMap[typing.Text, typing.Text]: + def values(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: """values can contain some additional data which is required by the cue specific provider""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[typing.Text, typing.Text]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___CueData = CueData +@typing.final class CueSyslogSettings(google.protobuf.message.Message): """CueSyslogSettings contain the settings for sending alerts with syslog for cue""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + NETWORK_FIELD_NUMBER: builtins.int ADDRESS_FIELD_NUMBER: builtins.int PORT_FIELD_NUMBER: builtins.int MESSAGE_FORMAT_FIELD_NUMBER: builtins.int APPEND_BOM_HEADER_FIELD_NUMBER: builtins.int DATA_FIELD_NUMBER: builtins.int + message_format: global___CueSyslogMessageFormat.ValueType + """message_format defines the message format to use""" @property def network(self) -> google.protobuf.wrappers_pb2.StringValue: """network is the network protocol to use, default is "udp", options also include: tcp,tcp4,tcp6,udp4,udp6 """ - pass + @property def address(self) -> google.protobuf.wrappers_pb2.StringValue: """address is the ip address to send syslog messages to""" - pass + @property def port(self) -> google.protobuf.wrappers_pb2.Int32Value: """port is server's port to connect to""" - pass - message_format: global___CueSyslogMessageFormat.ValueType - """message_format defines the message format to use""" @property def append_bom_header(self) -> google.protobuf.wrappers_pb2.BoolValue: """append_bom_header if true a BOM( Byte Order Mark ) will be appended to the outgoing message BOM will tell the server that is receiving the messages, that the format is UTF8. """ - pass + @property def data(self) -> global___CueData: """data is additional data that maybe required for constructing the message or sending it""" - pass - def __init__(self, + + def __init__( + self, *, - network: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - address: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - port: typing.Optional[google.protobuf.wrappers_pb2.Int32Value] = ..., + network: google.protobuf.wrappers_pb2.StringValue | None = ..., + address: google.protobuf.wrappers_pb2.StringValue | None = ..., + port: google.protobuf.wrappers_pb2.Int32Value | None = ..., message_format: global___CueSyslogMessageFormat.ValueType = ..., - append_bom_header: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - data: typing.Optional[global___CueData] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["address",b"address","append_bom_header",b"append_bom_header","data",b"data","network",b"network","port",b"port"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["address",b"address","append_bom_header",b"append_bom_header","data",b"data","message_format",b"message_format","network",b"network","port",b"port"]) -> None: ... + append_bom_header: google.protobuf.wrappers_pb2.BoolValue | None = ..., + data: global___CueData | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["address", b"address", "append_bom_header", b"append_bom_header", "data", b"data", "network", b"network", "port", b"port"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["address", b"address", "append_bom_header", b"append_bom_header", "data", b"data", "message_format", b"message_format", "network", b"network", "port", b"port"]) -> None: ... + global___CueSyslogSettings = CueSyslogSettings +@typing.final class SNMPSettings(google.protobuf.message.Message): """SNMPSettings contain the settings for sending alerts with SNMP""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + TARGET_FIELD_NUMBER: builtins.int PORT_FIELD_NUMBER: builtins.int TRANSPORT_FIELD_NUMBER: builtins.int @@ -1406,25 +1399,25 @@ class SNMPSettings(google.protobuf.message.Message): @property def target(self) -> google.protobuf.wrappers_pb2.StringValue: """target is an ipv4 address to send messages to""" - pass + @property def port(self) -> google.protobuf.wrappers_pb2.Int32Value: """port is the network port to target""" - pass + @property def transport(self) -> google.protobuf.wrappers_pb2.StringValue: """transport is the transport protocol to use ("udp" or "tcp"); if unset "udp" will be used""" - pass + @property def version(self) -> google.protobuf.wrappers_pb2.Int32Value: """version is the SNMP version, v1, v2c and v3 are supported and can be set with 1, 2 and 3 respectively """ - pass + @property def auth(self) -> global___SNMPAuth: """auth is optional authentication settings""" - pass + @property def engine_id(self) -> google.protobuf.wrappers_pb2.StringValue: """engine_id is the engine ID that will be used by the Alerter @@ -1432,23 +1425,28 @@ class SNMPSettings(google.protobuf.message.Message): writing, but will be absent when reading optional: if excluded or left blank, this will be automatically generated """ - pass - def __init__(self, - *, - target: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - port: typing.Optional[google.protobuf.wrappers_pb2.Int32Value] = ..., - transport: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - version: typing.Optional[google.protobuf.wrappers_pb2.Int32Value] = ..., - auth: typing.Optional[global___SNMPAuth] = ..., - engine_id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["auth",b"auth","engine_id",b"engine_id","port",b"port","target",b"target","transport",b"transport","version",b"version"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["auth",b"auth","engine_id",b"engine_id","port",b"port","target",b"target","transport",b"transport","version",b"version"]) -> None: ... + + def __init__( + self, + *, + target: google.protobuf.wrappers_pb2.StringValue | None = ..., + port: google.protobuf.wrappers_pb2.Int32Value | None = ..., + transport: google.protobuf.wrappers_pb2.StringValue | None = ..., + version: google.protobuf.wrappers_pb2.Int32Value | None = ..., + auth: global___SNMPAuth | None = ..., + engine_id: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["auth", b"auth", "engine_id", b"engine_id", "port", b"port", "target", b"target", "transport", b"transport", "version", b"version"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["auth", b"auth", "engine_id", b"engine_id", "port", b"port", "target", b"target", "transport", b"transport", "version", b"version"]) -> None: ... + global___SNMPSettings = SNMPSettings +@typing.final class SNMPAuth(google.protobuf.message.Message): """SNMPAuth contain authentication information for SNMP""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + COMMUNITY_FIELD_NUMBER: builtins.int USERNAME_FIELD_NUMBER: builtins.int SECURITY_LEVEL_FIELD_NUMBER: builtins.int @@ -1456,58 +1454,60 @@ class SNMPAuth(google.protobuf.message.Message): AUTHENTICATION_PASSPHRASE_FIELD_NUMBER: builtins.int PRIVACY_PROTOCOL_FIELD_NUMBER: builtins.int PRIVACY_PASSPHRASE_FIELD_NUMBER: builtins.int + security_level: global___SNMPSecurityLevel.ValueType + """security_level the security level for SNMPv3""" + authentication_protocol: global___SNMPAuthProtocol.ValueType + """authentication_protocol is the protocol to use for authentication in SNMPv3 + required for AUTH_NO_PRIV/AUTH_PRIV security levels + """ + privacy_protocol: global___SNMPPrivProtocol.ValueType + """privacy_protocol is the protocol to use for privacy in SNMPv3 + required for AUTH_PRIV security level + """ @property def community(self) -> google.protobuf.wrappers_pb2.StringValue: """community is the community string used for authentication in SNMPv1 and v2c required if version < 3 """ - pass + @property def username(self) -> google.protobuf.wrappers_pb2.StringValue: """username the username for SNMPv3 auth""" - pass - security_level: global___SNMPSecurityLevel.ValueType - """security_level the security level for SNMPv3""" - - authentication_protocol: global___SNMPAuthProtocol.ValueType - """authentication_protocol is the protocol to use for authentication in SNMPv3 - required for AUTH_NO_PRIV/AUTH_PRIV security levels - """ @property def authentication_passphrase(self) -> google.protobuf.wrappers_pb2.StringValue: """authentication_passphrase is the passphrase to use for authentication in SNMPv3 required for AUTH_NO_PRIV/AUTH_PRIV security levels """ - pass - privacy_protocol: global___SNMPPrivProtocol.ValueType - """privacy_protocol is the protocol to use for privacy in SNMPv3 - required for AUTH_PRIV security level - """ @property def privacy_passphrase(self) -> google.protobuf.wrappers_pb2.StringValue: """privacy_passphrase is the passphrase to use for privacy in SNMPv3 required for AUTH_PRIV security level """ - pass - def __init__(self, + + def __init__( + self, *, - community: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - username: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., + community: google.protobuf.wrappers_pb2.StringValue | None = ..., + username: google.protobuf.wrappers_pb2.StringValue | None = ..., security_level: global___SNMPSecurityLevel.ValueType = ..., authentication_protocol: global___SNMPAuthProtocol.ValueType = ..., - authentication_passphrase: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., + authentication_passphrase: google.protobuf.wrappers_pb2.StringValue | None = ..., privacy_protocol: global___SNMPPrivProtocol.ValueType = ..., - privacy_passphrase: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["authentication_passphrase",b"authentication_passphrase","community",b"community","privacy_passphrase",b"privacy_passphrase","username",b"username"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["authentication_passphrase",b"authentication_passphrase","authentication_protocol",b"authentication_protocol","community",b"community","privacy_passphrase",b"privacy_passphrase","privacy_protocol",b"privacy_protocol","security_level",b"security_level","username",b"username"]) -> None: ... + privacy_passphrase: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["authentication_passphrase", b"authentication_passphrase", "community", b"community", "privacy_passphrase", b"privacy_passphrase", "username", b"username"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["authentication_passphrase", b"authentication_passphrase", "authentication_protocol", b"authentication_protocol", "community", b"community", "privacy_passphrase", b"privacy_passphrase", "privacy_protocol", b"privacy_protocol", "security_level", b"security_level", "username", b"username"]) -> None: ... + global___SNMPAuth = SNMPAuth +@typing.final class CueSNMPAuth(google.protobuf.message.Message): """CueSNMPAuth is the authentication""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + COMMUNITY_FIELD_NUMBER: builtins.int USERNAME_FIELD_NUMBER: builtins.int SECURITY_LEVEL_FIELD_NUMBER: builtins.int @@ -1515,58 +1515,60 @@ class CueSNMPAuth(google.protobuf.message.Message): AUTHENTICATION_PASSPHRASE_FIELD_NUMBER: builtins.int PRIVACY_PROTOCOL_FIELD_NUMBER: builtins.int PRIVACY_PASSPHRASE_FIELD_NUMBER: builtins.int + security_level: global___SNMPSecurityLevel.ValueType + """security_level the security level for SNMPv3""" + authentication_protocol: global___CueSNMPAuthProtocol.ValueType + """authentication_protocol is the protocol to use for authentication in SNMPv3 + required for AUTH_NO_PRIV/AUTH_PRIV security levels + """ + privacy_protocol: global___CueSNMPPrivProtocol.ValueType + """privacy_protocol is the protocol to use for privacy in SNMPv3 + required for AUTH_PRIV security level + """ @property def community(self) -> google.protobuf.wrappers_pb2.StringValue: """community is the community string used for authentication in SNMPv1 and v2c required if version < 3 """ - pass + @property def username(self) -> google.protobuf.wrappers_pb2.StringValue: """username the username for SNMPv3 auth""" - pass - security_level: global___SNMPSecurityLevel.ValueType - """security_level the security level for SNMPv3""" - - authentication_protocol: global___CueSNMPAuthProtocol.ValueType - """authentication_protocol is the protocol to use for authentication in SNMPv3 - required for AUTH_NO_PRIV/AUTH_PRIV security levels - """ @property def authentication_passphrase(self) -> google.protobuf.wrappers_pb2.StringValue: """authentication_passphrase is the passphrase to use for authentication in SNMPv3 required for AUTH_NO_PRIV/AUTH_PRIV security levels """ - pass - privacy_protocol: global___CueSNMPPrivProtocol.ValueType - """privacy_protocol is the protocol to use for privacy in SNMPv3 - required for AUTH_PRIV security level - """ @property def privacy_passphrase(self) -> google.protobuf.wrappers_pb2.StringValue: """privacy_passphrase is the passphrase to use for privacy in SNMPv3 required for AUTH_PRIV security level """ - pass - def __init__(self, + + def __init__( + self, *, - community: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - username: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., + community: google.protobuf.wrappers_pb2.StringValue | None = ..., + username: google.protobuf.wrappers_pb2.StringValue | None = ..., security_level: global___SNMPSecurityLevel.ValueType = ..., authentication_protocol: global___CueSNMPAuthProtocol.ValueType = ..., - authentication_passphrase: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., + authentication_passphrase: google.protobuf.wrappers_pb2.StringValue | None = ..., privacy_protocol: global___CueSNMPPrivProtocol.ValueType = ..., - privacy_passphrase: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["authentication_passphrase",b"authentication_passphrase","community",b"community","privacy_passphrase",b"privacy_passphrase","username",b"username"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["authentication_passphrase",b"authentication_passphrase","authentication_protocol",b"authentication_protocol","community",b"community","privacy_passphrase",b"privacy_passphrase","privacy_protocol",b"privacy_protocol","security_level",b"security_level","username",b"username"]) -> None: ... + privacy_passphrase: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["authentication_passphrase", b"authentication_passphrase", "community", b"community", "privacy_passphrase", b"privacy_passphrase", "username", b"username"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["authentication_passphrase", b"authentication_passphrase", "authentication_protocol", b"authentication_protocol", "community", b"community", "privacy_passphrase", b"privacy_passphrase", "privacy_protocol", b"privacy_protocol", "security_level", b"security_level", "username", b"username"]) -> None: ... + global___CueSNMPAuth = CueSNMPAuth +@typing.final class CueSNMPSettings(google.protobuf.message.Message): """CueSNMPSettings contain the settings for sending cue alerts with SNMP""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + TARGET_FIELD_NUMBER: builtins.int PORT_FIELD_NUMBER: builtins.int TRANSPORT_FIELD_NUMBER: builtins.int @@ -1576,162 +1578,200 @@ class CueSNMPSettings(google.protobuf.message.Message): @property def target(self) -> google.protobuf.wrappers_pb2.StringValue: """target is an ipv4 address to send messages to""" - pass + @property def port(self) -> google.protobuf.wrappers_pb2.Int32Value: """port is the network port to target""" - pass + @property def transport(self) -> google.protobuf.wrappers_pb2.StringValue: """transport is the transport protocol to use ("udp" or "tcp"); if unset "udp" will be used""" - pass + @property def version(self) -> google.protobuf.wrappers_pb2.Int32Value: """version is the SNMP version, v2c and v3 are supported and can be set with 2 and 3 respectively""" - pass + @property def auth(self) -> global___CueSNMPAuth: """auth is the optional authentication settings""" - pass + @property def data(self) -> global___CueData: """data is additional data that maybe required for constructing the message or sending it""" - pass - def __init__(self, - *, - target: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - port: typing.Optional[google.protobuf.wrappers_pb2.Int32Value] = ..., - transport: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - version: typing.Optional[google.protobuf.wrappers_pb2.Int32Value] = ..., - auth: typing.Optional[global___CueSNMPAuth] = ..., - data: typing.Optional[global___CueData] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["auth",b"auth","data",b"data","port",b"port","target",b"target","transport",b"transport","version",b"version"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["auth",b"auth","data",b"data","port",b"port","target",b"target","transport",b"transport","version",b"version"]) -> None: ... + + def __init__( + self, + *, + target: google.protobuf.wrappers_pb2.StringValue | None = ..., + port: google.protobuf.wrappers_pb2.Int32Value | None = ..., + transport: google.protobuf.wrappers_pb2.StringValue | None = ..., + version: google.protobuf.wrappers_pb2.Int32Value | None = ..., + auth: global___CueSNMPAuth | None = ..., + data: global___CueData | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["auth", b"auth", "data", b"data", "port", b"port", "target", b"target", "transport", b"transport", "version", b"version"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["auth", b"auth", "data", b"data", "port", b"port", "target", b"target", "transport", b"transport", "version", b"version"]) -> None: ... + global___CueSNMPSettings = CueSNMPSettings +@typing.final class SendgridSettings(google.protobuf.message.Message): """SendgridSettings contain the settings for sending emails via sendgrid""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + API_KEY_FIELD_NUMBER: builtins.int FROM_FIELD_NUMBER: builtins.int @property def api_key(self) -> google.protobuf.wrappers_pb2.StringValue: """api_key is the api key to use""" - pass - def __init__(self, + + def __init__( + self, *, - api_key: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["api_key",b"api_key","from",b"from"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["api_key",b"api_key","from",b"from"]) -> None: ... + api_key: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["api_key", b"api_key", "from", b"from"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["api_key", b"api_key", "from", b"from"]) -> None: ... + global___SendgridSettings = SendgridSettings +@typing.final class CueSendgridSettings(google.protobuf.message.Message): """CueSendgridSettings contain the settings for sending cue alerts to sendgrid""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + API_KEY_FIELD_NUMBER: builtins.int FROM_FIELD_NUMBER: builtins.int @property def api_key(self) -> google.protobuf.wrappers_pb2.StringValue: """api_key is the key used to connect to the sendgrid APIs""" - pass - def __init__(self, + + def __init__( + self, *, - api_key: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["api_key",b"api_key","from",b"from"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["api_key",b"api_key","from",b"from"]) -> None: ... + api_key: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["api_key", b"api_key", "from", b"from"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["api_key", b"api_key", "from", b"from"]) -> None: ... + global___CueSendgridSettings = CueSendgridSettings +@typing.final class ZoomSettings(google.protobuf.message.Message): """ZoomSettings contain the settings for sending alerts to zoom""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + URL_FIELD_NUMBER: builtins.int VERIFICATION_TOKEN_FIELD_NUMBER: builtins.int @property def url(self) -> google.protobuf.wrappers_pb2.StringValue: """url is the zoom incoming webhook URL to send messages to""" - pass + @property def verification_token(self) -> google.protobuf.wrappers_pb2.StringValue: """verification_token is the verification token to authenticate with""" - pass - def __init__(self, + + def __init__( + self, *, - url: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - verification_token: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["url",b"url","verification_token",b"verification_token"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["url",b"url","verification_token",b"verification_token"]) -> None: ... + url: google.protobuf.wrappers_pb2.StringValue | None = ..., + verification_token: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["url", b"url", "verification_token", b"verification_token"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["url", b"url", "verification_token", b"verification_token"]) -> None: ... + global___ZoomSettings = ZoomSettings +@typing.final class InhibitionSettings(google.protobuf.message.Message): """InhibitionSettings allows certain event types to be suppressed while other event types are active""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int - key: typing.Text + key: builtins.str @property def value(self) -> global___EventList: ... - def __init__(self, + def __init__( + self, *, - key: typing.Text = ..., - value: typing.Optional[global___EventList] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + key: builtins.str = ..., + value: global___EventList | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property - def values(self) -> google.protobuf.internal.containers.MessageMap[typing.Text, global___EventList]: + def values(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___EventList]: """values is a map where the keys are event type which when active will suppress any events with event types in the related EventList """ - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[typing.Text, global___EventList]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.str, global___EventList] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___InhibitionSettings = InhibitionSettings +@typing.final class EventList(google.protobuf.message.Message): """EventList is a list of event types""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + EVENT_TYPES_FIELD_NUMBER: builtins.int @property def event_types(self) -> fmp.wrappers_pb2.RepeatedString: """event_types contain the event types""" - pass - def __init__(self, + + def __init__( + self, *, - event_types: typing.Optional[fmp.wrappers_pb2.RepeatedString] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["event_types",b"event_types"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["event_types",b"event_types"]) -> None: ... + event_types: fmp.wrappers_pb2.RepeatedString | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["event_types", b"event_types"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["event_types", b"event_types"]) -> None: ... + global___EventList = EventList +@typing.final class Rules(google.protobuf.message.Message): """Rules is a list of rules which dictates which events generate alerts for which broadcast groups""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Rule]: """values contains the rules""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[global___Rule]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[global___Rule] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___Rules = Rules +@typing.final class Rule(google.protobuf.message.Message): """Rule is a rule to send to a certain broadcast group""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + SENDS_TO_FIELD_NUMBER: builtins.int MATCH_CRITERIA_FIELD_NUMBER: builtins.int CONTINUE_CHECKS_FIELD_NUMBER: builtins.int @@ -1740,44 +1780,49 @@ class Rule(google.protobuf.message.Message): @property def sends_to(self) -> google.protobuf.wrappers_pb2.StringValue: """sends_to is the name of the broadcast group top send matching alerts to""" - pass + @property def match_criteria(self) -> global___Matches: """match_criteria is the criteria that an alert must match to be sent to the broadcast group""" - pass + @property def continue_checks(self) -> google.protobuf.wrappers_pb2.BoolValue: """continue_checks if true, causes alerts matching this rule's criteria to continue checking against other rules, allowing for additional matches. If false, alerts matching this rule will not proceed with checking """ - pass + @property def comment(self) -> google.protobuf.wrappers_pb2.StringValue: """comment is a comment to include that will be displayed in the alert""" - pass + @property def suppress_for(self) -> google.protobuf.duration_pb2.Duration: """suppress_for is a time duration that a rule will be debounced for after being called""" - pass - def __init__(self, - *, - sends_to: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - match_criteria: typing.Optional[global___Matches] = ..., - continue_checks: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - comment: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - suppress_for: typing.Optional[google.protobuf.duration_pb2.Duration] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["comment",b"comment","continue_checks",b"continue_checks","match_criteria",b"match_criteria","sends_to",b"sends_to","suppress_for",b"suppress_for"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["comment",b"comment","continue_checks",b"continue_checks","match_criteria",b"match_criteria","sends_to",b"sends_to","suppress_for",b"suppress_for"]) -> None: ... + + def __init__( + self, + *, + sends_to: google.protobuf.wrappers_pb2.StringValue | None = ..., + match_criteria: global___Matches | None = ..., + continue_checks: google.protobuf.wrappers_pb2.BoolValue | None = ..., + comment: google.protobuf.wrappers_pb2.StringValue | None = ..., + suppress_for: google.protobuf.duration_pb2.Duration | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["comment", b"comment", "continue_checks", b"continue_checks", "match_criteria", b"match_criteria", "sends_to", b"sends_to", "suppress_for", b"suppress_for"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["comment", b"comment", "continue_checks", b"continue_checks", "match_criteria", b"match_criteria", "sends_to", b"sends_to", "suppress_for", b"suppress_for"]) -> None: ... + global___Rule = Rule +@typing.final class Matches(google.protobuf.message.Message): """Matches is a set of restrictions that must be satisfied for a rule to be matched Empty fields are ignored for matching purposes. Condition contents are OR'd and then AND'd with the other criteria """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + SEVERITIES_FIELD_NUMBER: builtins.int DEVICES_FIELD_NUMBER: builtins.int EVENT_TYPES_FIELD_NUMBER: builtins.int @@ -1790,81 +1835,94 @@ class Matches(google.protobuf.message.Message): if an event does not have one of these severities, it will not match Valid values are DEBUG, INFO, WARNING, ERROR and CRITICAL """ - pass + @property def devices(self) -> fmp.wrappers_pb2.RepeatedString: """devices is a list of device IDs to filter on, if an event does not belong to one of these devices, it will not match """ - pass + @property def event_types(self) -> fmp.wrappers_pb2.RepeatedString: """event_types is a list of event types to filter on, if an event does not have one of these event types, it will not match """ - pass + @property def device_tags(self) -> google.protobuf.wrappers_pb2.StringValue: """device_tags is a string tag query that is used to match on the event's device tags""" - pass + @property def intf_tags(self) -> google.protobuf.wrappers_pb2.StringValue: """intf_tags is a string tag query that is used to match on the event's interface tags""" - pass + @property def rule_ids(self) -> fmp.wrappers_pb2.RepeatedString: """rule_ids is a list of rule IDs to filter on, if an event does not have one of these rule IDs, it will not match """ - pass - def __init__(self, - *, - severities: typing.Optional[fmp.wrappers_pb2.RepeatedString] = ..., - devices: typing.Optional[fmp.wrappers_pb2.RepeatedString] = ..., - event_types: typing.Optional[fmp.wrappers_pb2.RepeatedString] = ..., - device_tags: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - intf_tags: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - rule_ids: typing.Optional[fmp.wrappers_pb2.RepeatedString] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["device_tags",b"device_tags","devices",b"devices","event_types",b"event_types","intf_tags",b"intf_tags","rule_ids",b"rule_ids","severities",b"severities"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["device_tags",b"device_tags","devices",b"devices","event_types",b"event_types","intf_tags",b"intf_tags","rule_ids",b"rule_ids","severities",b"severities"]) -> None: ... + + def __init__( + self, + *, + severities: fmp.wrappers_pb2.RepeatedString | None = ..., + devices: fmp.wrappers_pb2.RepeatedString | None = ..., + event_types: fmp.wrappers_pb2.RepeatedString | None = ..., + device_tags: google.protobuf.wrappers_pb2.StringValue | None = ..., + intf_tags: google.protobuf.wrappers_pb2.StringValue | None = ..., + rule_ids: fmp.wrappers_pb2.RepeatedString | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["device_tags", b"device_tags", "devices", b"devices", "event_types", b"event_types", "intf_tags", b"intf_tags", "rule_ids", b"rule_ids", "severities", b"severities"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["device_tags", b"device_tags", "devices", b"devices", "event_types", b"event_types", "intf_tags", b"intf_tags", "rule_ids", b"rule_ids", "severities", b"severities"]) -> None: ... + global___Matches = Matches +@typing.final class BroadcastGroups(google.protobuf.message.Message): """BroadcastGroups is a collection of named broadcast groups""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int - key: typing.Text + key: builtins.str @property def value(self) -> global___BroadcastGroup: ... - def __init__(self, + def __init__( + self, *, - key: typing.Text = ..., - value: typing.Optional[global___BroadcastGroup] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + key: builtins.str = ..., + value: global___BroadcastGroup | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property - def values(self) -> google.protobuf.internal.containers.MessageMap[typing.Text, global___BroadcastGroup]: + def values(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___BroadcastGroup]: """values is a map of user defined ids to broadcast groups. No restrictions to naming applies""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[typing.Text, global___BroadcastGroup]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.str, global___BroadcastGroup] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___BroadcastGroups = BroadcastGroups +@typing.final class BroadcastGroup(google.protobuf.message.Message): """BroadcastGroup is a series of endpoints that alerts are sent to if routed there by a rule No restriction on the number of types of endpoints that can be defined """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + EMAIL_FIELD_NUMBER: builtins.int WEBHOOK_FIELD_NUMBER: builtins.int SLACK_FIELD_NUMBER: builtins.int @@ -1884,358 +1942,448 @@ class BroadcastGroup(google.protobuf.message.Message): @property def email(self) -> global___EmailEndpoints: """email is a set of email endpoints to send alerts to as part of this group""" - pass + @property def webhook(self) -> global___WebhookEndpoints: """webhook is a set of webhook endpoints to send alerts to as part of this group""" - pass + @property def slack(self) -> global___SlackEndpoints: """slack is a set of slack endpoints to send alerts to as part of this group""" - pass + @property def opsgenie(self) -> global___OpsgenieEndpoints: """opsgenie is a set of opsgenie endpoints to send alerts to as part of this group""" - pass + @property def pushover(self) -> global___PushoverEndpoints: """pushover is a set of pushover endpoints to send alerts to as part of this group""" - pass + @property def pagerduty(self) -> global___PagerdutyEndpoints: """pagerduty is a set of pagerduty endpoints to send alerts to as part of this group""" - pass + @property def victorops(self) -> global___VictorOpsEndpoints: """victorops is a set of victorops endpoints to send alerts to as part of this group""" - pass + @property def gchat(self) -> global___GoogleChatEndpoints: """gchat is a set of google chat endpoints to send alerts to as part of this group""" - pass + @property def msteams(self) -> global___MsTeamsEndpoints: """msteams is a set of MS teams endpoints to send alerts to as part of this group""" - pass + @property def sendgrid(self) -> global___SendgridEndpoints: """sendgrid is a set of sendgrid endpoints to send alerts to as part of this group""" - pass + @property def syslog(self) -> global___SyslogEndpoints: """syslog is a set of syslog endpoints to send alerts to as part of this group""" - pass + @property def snmp(self) -> global___SNMPEndpoints: """snmp is a set of snmp endpoints to send alerts to as part of this group""" - pass + @property def cue_syslog(self) -> global___CueSyslogEndpoints: """cue_syslog is a set of cue syslog endpoints to send alerts to as part of this group""" - pass + @property def cue_snmp(self) -> global___CueSnmpEndpoints: """cue_snmp is a set of cue snmp endpoints to send alerts to as part of this group""" - pass + @property def cue_sendgrid(self) -> global___CueSendgridEndpoints: """cue_sendgrid is a set of cue sendgrid endpoints to send alerts to as part of this group""" - pass + @property def zoom(self) -> global___ZoomEndpoints: """zoom is a set of zoom endpoints to send alerts to as part of this group""" - pass - def __init__(self, - *, - email: typing.Optional[global___EmailEndpoints] = ..., - webhook: typing.Optional[global___WebhookEndpoints] = ..., - slack: typing.Optional[global___SlackEndpoints] = ..., - opsgenie: typing.Optional[global___OpsgenieEndpoints] = ..., - pushover: typing.Optional[global___PushoverEndpoints] = ..., - pagerduty: typing.Optional[global___PagerdutyEndpoints] = ..., - victorops: typing.Optional[global___VictorOpsEndpoints] = ..., - gchat: typing.Optional[global___GoogleChatEndpoints] = ..., - msteams: typing.Optional[global___MsTeamsEndpoints] = ..., - sendgrid: typing.Optional[global___SendgridEndpoints] = ..., - syslog: typing.Optional[global___SyslogEndpoints] = ..., - snmp: typing.Optional[global___SNMPEndpoints] = ..., - cue_syslog: typing.Optional[global___CueSyslogEndpoints] = ..., - cue_snmp: typing.Optional[global___CueSnmpEndpoints] = ..., - cue_sendgrid: typing.Optional[global___CueSendgridEndpoints] = ..., - zoom: typing.Optional[global___ZoomEndpoints] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["cue_sendgrid",b"cue_sendgrid","cue_snmp",b"cue_snmp","cue_syslog",b"cue_syslog","email",b"email","gchat",b"gchat","msteams",b"msteams","opsgenie",b"opsgenie","pagerduty",b"pagerduty","pushover",b"pushover","sendgrid",b"sendgrid","slack",b"slack","snmp",b"snmp","syslog",b"syslog","victorops",b"victorops","webhook",b"webhook","zoom",b"zoom"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["cue_sendgrid",b"cue_sendgrid","cue_snmp",b"cue_snmp","cue_syslog",b"cue_syslog","email",b"email","gchat",b"gchat","msteams",b"msteams","opsgenie",b"opsgenie","pagerduty",b"pagerduty","pushover",b"pushover","sendgrid",b"sendgrid","slack",b"slack","snmp",b"snmp","syslog",b"syslog","victorops",b"victorops","webhook",b"webhook","zoom",b"zoom"]) -> None: ... + + def __init__( + self, + *, + email: global___EmailEndpoints | None = ..., + webhook: global___WebhookEndpoints | None = ..., + slack: global___SlackEndpoints | None = ..., + opsgenie: global___OpsgenieEndpoints | None = ..., + pushover: global___PushoverEndpoints | None = ..., + pagerduty: global___PagerdutyEndpoints | None = ..., + victorops: global___VictorOpsEndpoints | None = ..., + gchat: global___GoogleChatEndpoints | None = ..., + msteams: global___MsTeamsEndpoints | None = ..., + sendgrid: global___SendgridEndpoints | None = ..., + syslog: global___SyslogEndpoints | None = ..., + snmp: global___SNMPEndpoints | None = ..., + cue_syslog: global___CueSyslogEndpoints | None = ..., + cue_snmp: global___CueSnmpEndpoints | None = ..., + cue_sendgrid: global___CueSendgridEndpoints | None = ..., + zoom: global___ZoomEndpoints | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["cue_sendgrid", b"cue_sendgrid", "cue_snmp", b"cue_snmp", "cue_syslog", b"cue_syslog", "email", b"email", "gchat", b"gchat", "msteams", b"msteams", "opsgenie", b"opsgenie", "pagerduty", b"pagerduty", "pushover", b"pushover", "sendgrid", b"sendgrid", "slack", b"slack", "snmp", b"snmp", "syslog", b"syslog", "victorops", b"victorops", "webhook", b"webhook", "zoom", b"zoom"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["cue_sendgrid", b"cue_sendgrid", "cue_snmp", b"cue_snmp", "cue_syslog", b"cue_syslog", "email", b"email", "gchat", b"gchat", "msteams", b"msteams", "opsgenie", b"opsgenie", "pagerduty", b"pagerduty", "pushover", b"pushover", "sendgrid", b"sendgrid", "slack", b"slack", "snmp", b"snmp", "syslog", b"syslog", "victorops", b"victorops", "webhook", b"webhook", "zoom", b"zoom"]) -> None: ... + global___BroadcastGroup = BroadcastGroup +@typing.final class EmailEndpoints(google.protobuf.message.Message): """EmailEndpoints is a set of email endpoints""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___EmailEndpoint]: """values are the elements of the set""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[global___EmailEndpoint]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[global___EmailEndpoint] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___EmailEndpoints = EmailEndpoints +@typing.final class WebhookEndpoints(google.protobuf.message.Message): """WebhookEndpoints is a set of webhook endpoints""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___WebhookEndpoint]: """values are the elements of the set""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[global___WebhookEndpoint]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[global___WebhookEndpoint] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___WebhookEndpoints = WebhookEndpoints +@typing.final class SlackEndpoints(google.protobuf.message.Message): """SlackEndpoints is a set of slack endpoints""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SlackEndpoint]: """values are the elements of the set""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[global___SlackEndpoint]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[global___SlackEndpoint] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___SlackEndpoints = SlackEndpoints +@typing.final class OpsgenieEndpoints(google.protobuf.message.Message): """OpsgenieEndpoints is a set of opsgenie endpoints""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___OpsgenieEndpoint]: """values are the elements of the set""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[global___OpsgenieEndpoint]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[global___OpsgenieEndpoint] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___OpsgenieEndpoints = OpsgenieEndpoints +@typing.final class PushoverEndpoints(google.protobuf.message.Message): """PushoverEndpoints is a set of pushover endpoints""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___PushoverEndpoint]: """values are the elements of the set""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[global___PushoverEndpoint]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[global___PushoverEndpoint] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___PushoverEndpoints = PushoverEndpoints +@typing.final class PagerdutyEndpoints(google.protobuf.message.Message): """PagerdutyEndpoints is a set of pagerduty endpoints""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___PagerdutyEndpoint]: """values are the elements of the set""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[global___PagerdutyEndpoint]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[global___PagerdutyEndpoint] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___PagerdutyEndpoints = PagerdutyEndpoints +@typing.final class VictorOpsEndpoints(google.protobuf.message.Message): """VictorOpsEndpoints is a set of victorOps endpoints""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___VictorOpsEndpoint]: """values are the elements of the set""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[global___VictorOpsEndpoint]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[global___VictorOpsEndpoint] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___VictorOpsEndpoints = VictorOpsEndpoints +@typing.final class GoogleChatEndpoints(google.protobuf.message.Message): """GoogleChatEndpoints is a set of googleChat endpoints""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___GoogleChatEndpoint]: """values are the elements of the set""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[global___GoogleChatEndpoint]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[global___GoogleChatEndpoint] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___GoogleChatEndpoints = GoogleChatEndpoints +@typing.final class MsTeamsEndpoints(google.protobuf.message.Message): """MsTeamsEndpoints is a set of ms teams endpoints""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___MsTeamsEndpoint]: """values are the elements of the set""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[global___MsTeamsEndpoint]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[global___MsTeamsEndpoint] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___MsTeamsEndpoints = MsTeamsEndpoints +@typing.final class SendgridEndpoints(google.protobuf.message.Message): """SendgridEndpoints is a set of sendgrid endpoints""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SendgridEndpoint]: """values are the elements of the set""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[global___SendgridEndpoint]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[global___SendgridEndpoint] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___SendgridEndpoints = SendgridEndpoints +@typing.final class CueSendgridEndpoints(google.protobuf.message.Message): """CueSendgridEndpoints is a set of cue sendgrid endpoints""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___CueSendgridEndpoint]: """values are the elements of the set""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[global___CueSendgridEndpoint]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[global___CueSendgridEndpoint] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___CueSendgridEndpoints = CueSendgridEndpoints +@typing.final class SyslogEndpoints(google.protobuf.message.Message): """SyslogEndpoints is a set of syslog endpoints""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SyslogEndpoint]: """values are the elements of the set""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[global___SyslogEndpoint]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[global___SyslogEndpoint] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___SyslogEndpoints = SyslogEndpoints +@typing.final class CueSyslogEndpoints(google.protobuf.message.Message): """CueSyslogEndpoints is a set of cue syslog endpoints""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___CueSyslogEndpoint]: """values are the elements of the set""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[global___CueSyslogEndpoint]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[global___CueSyslogEndpoint] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___CueSyslogEndpoints = CueSyslogEndpoints +@typing.final class SNMPEndpoints(google.protobuf.message.Message): """SNMPEndpoints is a set of SNMP endpoints""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SNMPEndpoint]: """values are the elements of the set""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[global___SNMPEndpoint]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[global___SNMPEndpoint] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___SNMPEndpoints = SNMPEndpoints +@typing.final class CueSnmpEndpoints(google.protobuf.message.Message): """CueSnmpEndpoints is a set of cue SNMP endpoints""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___CueSNMPEndpoint]: """values are the elements of the set""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[global___CueSNMPEndpoint]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[global___CueSNMPEndpoint] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___CueSnmpEndpoints = CueSnmpEndpoints +@typing.final class ZoomEndpoints(google.protobuf.message.Message): """ZoomEndpoints is a set of zoom endpoints""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ZoomEndpoint]: """values are the elements of the set""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[global___ZoomEndpoint]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[global___ZoomEndpoint] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___ZoomEndpoints = ZoomEndpoints +@typing.final class EmailEndpoint(google.protobuf.message.Message): """EmailEndpoint contains the required information for an alert to be sent to an email endpoint""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + SEND_RESOLVED_FIELD_NUMBER: builtins.int TO_FIELD_NUMBER: builtins.int @property def send_resolved(self) -> google.protobuf.wrappers_pb2.BoolValue: """send_resolved send alerts when events are resolved along with when they are triggered""" - pass + @property def to(self) -> google.protobuf.wrappers_pb2.StringValue: """to address to send email to Email does not have a http override Email does not have a settings override """ - pass - def __init__(self, + + def __init__( + self, *, - send_resolved: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - to: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["send_resolved",b"send_resolved","to",b"to"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["send_resolved",b"send_resolved","to",b"to"]) -> None: ... + send_resolved: google.protobuf.wrappers_pb2.BoolValue | None = ..., + to: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["send_resolved", b"send_resolved", "to", b"to"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["send_resolved", b"send_resolved", "to", b"to"]) -> None: ... + global___EmailEndpoint = EmailEndpoint +@typing.final class WebhookEndpoint(google.protobuf.message.Message): """WebhookEndpoint contains the required information for an alert to be sent to a webhook endpoint""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + SEND_RESOLVED_FIELD_NUMBER: builtins.int URL_FIELD_NUMBER: builtins.int HTTP_OVERRIDE_FIELD_NUMBER: builtins.int @@ -2245,104 +2393,119 @@ class WebhookEndpoint(google.protobuf.message.Message): @property def send_resolved(self) -> google.protobuf.wrappers_pb2.BoolValue: """send_resolved send alerts when events are resolved along with when they are triggered""" - pass + @property def url(self) -> google.protobuf.wrappers_pb2.StringValue: """url is the url""" - pass + @property def http_override(self) -> global___HttpSettings: """http_override is the override of the global http settings""" - pass + @property def simple_output(self) -> google.protobuf.wrappers_pb2.BoolValue: """simple_output is a boolean flag to control the JSON structure of the webhook body. When false the output mimics the old alertmanager format. When true the output is a simple array of json objects which each represent an event. """ - pass + @property def single_alert(self) -> google.protobuf.wrappers_pb2.BoolValue: """single_alert is a boolean flag that will cause an individual webhook message to be sent per alert when true. """ - pass + @property def settings_override(self) -> global___WebhookSettings: """settings_override is the override for the webhook global endpoint settings""" - pass - def __init__(self, - *, - send_resolved: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - url: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - http_override: typing.Optional[global___HttpSettings] = ..., - simple_output: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - single_alert: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - settings_override: typing.Optional[global___WebhookSettings] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["http_override",b"http_override","send_resolved",b"send_resolved","settings_override",b"settings_override","simple_output",b"simple_output","single_alert",b"single_alert","url",b"url"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["http_override",b"http_override","send_resolved",b"send_resolved","settings_override",b"settings_override","simple_output",b"simple_output","single_alert",b"single_alert","url",b"url"]) -> None: ... + + def __init__( + self, + *, + send_resolved: google.protobuf.wrappers_pb2.BoolValue | None = ..., + url: google.protobuf.wrappers_pb2.StringValue | None = ..., + http_override: global___HttpSettings | None = ..., + simple_output: google.protobuf.wrappers_pb2.BoolValue | None = ..., + single_alert: google.protobuf.wrappers_pb2.BoolValue | None = ..., + settings_override: global___WebhookSettings | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["http_override", b"http_override", "send_resolved", b"send_resolved", "settings_override", b"settings_override", "simple_output", b"simple_output", "single_alert", b"single_alert", "url", b"url"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["http_override", b"http_override", "send_resolved", b"send_resolved", "settings_override", b"settings_override", "simple_output", b"simple_output", "single_alert", b"single_alert", "url", b"url"]) -> None: ... + global___WebhookEndpoint = WebhookEndpoint +@typing.final class SlackEndpoint(google.protobuf.message.Message): """SlackEndpoint contains the required information for an alert to be sent to a slack endpoint""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + SEND_RESOLVED_FIELD_NUMBER: builtins.int HTTP_OVERRIDE_FIELD_NUMBER: builtins.int SETTINGS_OVERRIDE_FIELD_NUMBER: builtins.int @property def send_resolved(self) -> google.protobuf.wrappers_pb2.BoolValue: """send_resolved send alerts when events are resolved along with when they are triggered""" - pass + @property def http_override(self) -> global___HttpSettings: """http_override is the override of the global http settings""" - pass + @property def settings_override(self) -> global___SlackSettings: """settings_override is the override for the slack global endpoint settings""" - pass - def __init__(self, + + def __init__( + self, *, - send_resolved: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - http_override: typing.Optional[global___HttpSettings] = ..., - settings_override: typing.Optional[global___SlackSettings] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["http_override",b"http_override","send_resolved",b"send_resolved","settings_override",b"settings_override"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["http_override",b"http_override","send_resolved",b"send_resolved","settings_override",b"settings_override"]) -> None: ... + send_resolved: google.protobuf.wrappers_pb2.BoolValue | None = ..., + http_override: global___HttpSettings | None = ..., + settings_override: global___SlackSettings | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["http_override", b"http_override", "send_resolved", b"send_resolved", "settings_override", b"settings_override"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["http_override", b"http_override", "send_resolved", b"send_resolved", "settings_override", b"settings_override"]) -> None: ... + global___SlackEndpoint = SlackEndpoint +@typing.final class OpsgenieEndpoint(google.protobuf.message.Message): """OpsgenieEndpoint contains the required information for an alert to be sent to an opsgenie endpoint""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + SEND_RESOLVED_FIELD_NUMBER: builtins.int HTTP_OVERRIDE_FIELD_NUMBER: builtins.int SETTINGS_OVERRIDE_FIELD_NUMBER: builtins.int @property def send_resolved(self) -> google.protobuf.wrappers_pb2.BoolValue: """send_resolved send alerts when events are resolved along with when they are triggered""" - pass + @property def http_override(self) -> global___HttpSettings: """http_override is the override of the global http settings""" - pass + @property def settings_override(self) -> global___OpsgenieSettings: """settings_override is the override for the opsgenie global endpoint settings""" - pass - def __init__(self, + + def __init__( + self, *, - send_resolved: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - http_override: typing.Optional[global___HttpSettings] = ..., - settings_override: typing.Optional[global___OpsgenieSettings] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["http_override",b"http_override","send_resolved",b"send_resolved","settings_override",b"settings_override"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["http_override",b"http_override","send_resolved",b"send_resolved","settings_override",b"settings_override"]) -> None: ... + send_resolved: google.protobuf.wrappers_pb2.BoolValue | None = ..., + http_override: global___HttpSettings | None = ..., + settings_override: global___OpsgenieSettings | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["http_override", b"http_override", "send_resolved", b"send_resolved", "settings_override", b"settings_override"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["http_override", b"http_override", "send_resolved", b"send_resolved", "settings_override", b"settings_override"]) -> None: ... + global___OpsgenieEndpoint = OpsgenieEndpoint +@typing.final class PushoverEndpoint(google.protobuf.message.Message): """PushoverEndpoint contains the required information for an alert to be sent to a pushover endpoint""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + SEND_RESOLVED_FIELD_NUMBER: builtins.int TOKEN_FIELD_NUMBER: builtins.int USER_KEY_FIELD_NUMBER: builtins.int @@ -2350,35 +2513,40 @@ class PushoverEndpoint(google.protobuf.message.Message): @property def send_resolved(self) -> google.protobuf.wrappers_pb2.BoolValue: """send_resolved send alerts when events are resolved along with when they are triggered""" - pass + @property def token(self) -> google.protobuf.wrappers_pb2.StringValue: """token is the user's registered application's API token, see https://pushover.net/apps""" - pass + @property def user_key(self) -> google.protobuf.wrappers_pb2.StringValue: """user_key is the user's user key""" - pass + @property def http_override(self) -> global___HttpSettings: """http_override is the override of the global http settings Pushover does not have a settings override """ - pass - def __init__(self, + + def __init__( + self, *, - send_resolved: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - token: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - user_key: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - http_override: typing.Optional[global___HttpSettings] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["http_override",b"http_override","send_resolved",b"send_resolved","token",b"token","user_key",b"user_key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["http_override",b"http_override","send_resolved",b"send_resolved","token",b"token","user_key",b"user_key"]) -> None: ... + send_resolved: google.protobuf.wrappers_pb2.BoolValue | None = ..., + token: google.protobuf.wrappers_pb2.StringValue | None = ..., + user_key: google.protobuf.wrappers_pb2.StringValue | None = ..., + http_override: global___HttpSettings | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["http_override", b"http_override", "send_resolved", b"send_resolved", "token", b"token", "user_key", b"user_key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["http_override", b"http_override", "send_resolved", b"send_resolved", "token", b"token", "user_key", b"user_key"]) -> None: ... + global___PushoverEndpoint = PushoverEndpoint +@typing.final class PagerdutyEndpoint(google.protobuf.message.Message): """PagerdutyEndpoint contains the required information for an alert to be sent to a pagerduty endpoint""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + SEND_RESOLVED_FIELD_NUMBER: builtins.int ROUTING_KEY_FIELD_NUMBER: builtins.int HTTP_OVERRIDE_FIELD_NUMBER: builtins.int @@ -2386,33 +2554,38 @@ class PagerdutyEndpoint(google.protobuf.message.Message): @property def send_resolved(self) -> google.protobuf.wrappers_pb2.BoolValue: """send_resolved send alerts when events are resolved along with when they are triggered""" - pass + @property def routing_key(self) -> google.protobuf.wrappers_pb2.StringValue: """routing_key is the routing key for sending pagerduty alerts""" - pass + @property def http_override(self) -> global___HttpSettings: """http_override is the override of the global http settings""" - pass + @property def settings_override(self) -> global___PagerdutySettings: """settings_override is the override for the pagerduty global endpoint settings""" - pass - def __init__(self, + + def __init__( + self, *, - send_resolved: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - routing_key: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - http_override: typing.Optional[global___HttpSettings] = ..., - settings_override: typing.Optional[global___PagerdutySettings] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["http_override",b"http_override","routing_key",b"routing_key","send_resolved",b"send_resolved","settings_override",b"settings_override"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["http_override",b"http_override","routing_key",b"routing_key","send_resolved",b"send_resolved","settings_override",b"settings_override"]) -> None: ... + send_resolved: google.protobuf.wrappers_pb2.BoolValue | None = ..., + routing_key: google.protobuf.wrappers_pb2.StringValue | None = ..., + http_override: global___HttpSettings | None = ..., + settings_override: global___PagerdutySettings | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["http_override", b"http_override", "routing_key", b"routing_key", "send_resolved", b"send_resolved", "settings_override", b"settings_override"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["http_override", b"http_override", "routing_key", b"routing_key", "send_resolved", b"send_resolved", "settings_override", b"settings_override"]) -> None: ... + global___PagerdutyEndpoint = PagerdutyEndpoint +@typing.final class VictorOpsEndpoint(google.protobuf.message.Message): """VictorOpsEndpoint contains the required information for an alert to be sent to a victorOps endpoint""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + SEND_RESOLVED_FIELD_NUMBER: builtins.int ROUTING_KEY_FIELD_NUMBER: builtins.int HTTP_OVERRIDE_FIELD_NUMBER: builtins.int @@ -2420,283 +2593,337 @@ class VictorOpsEndpoint(google.protobuf.message.Message): @property def send_resolved(self) -> google.protobuf.wrappers_pb2.BoolValue: """send_resolved send alerts when events are resolved along with when they are triggered""" - pass + @property def routing_key(self) -> google.protobuf.wrappers_pb2.StringValue: """routing_key is the PagerDuty integration key""" - pass + @property def http_override(self) -> global___HttpSettings: """http_override is the override of the global http settings""" - pass + @property def settings_override(self) -> global___VictoropsSettings: """settings_override is the override for the victorops global endpoint settings""" - pass - def __init__(self, + + def __init__( + self, *, - send_resolved: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - routing_key: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - http_override: typing.Optional[global___HttpSettings] = ..., - settings_override: typing.Optional[global___VictoropsSettings] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["http_override",b"http_override","routing_key",b"routing_key","send_resolved",b"send_resolved","settings_override",b"settings_override"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["http_override",b"http_override","routing_key",b"routing_key","send_resolved",b"send_resolved","settings_override",b"settings_override"]) -> None: ... + send_resolved: google.protobuf.wrappers_pb2.BoolValue | None = ..., + routing_key: google.protobuf.wrappers_pb2.StringValue | None = ..., + http_override: global___HttpSettings | None = ..., + settings_override: global___VictoropsSettings | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["http_override", b"http_override", "routing_key", b"routing_key", "send_resolved", b"send_resolved", "settings_override", b"settings_override"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["http_override", b"http_override", "routing_key", b"routing_key", "send_resolved", b"send_resolved", "settings_override", b"settings_override"]) -> None: ... + global___VictorOpsEndpoint = VictorOpsEndpoint +@typing.final class GoogleChatEndpoint(google.protobuf.message.Message): """GoogleChatEndpoint contains the required information for an alert to be sent to a google chat endpoint""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + SEND_RESOLVED_FIELD_NUMBER: builtins.int HTTP_OVERRIDE_FIELD_NUMBER: builtins.int SETTINGS_OVERRIDE_FIELD_NUMBER: builtins.int @property def send_resolved(self) -> google.protobuf.wrappers_pb2.BoolValue: """send_resolved send alerts when events are resolved along with when they are triggered""" - pass + @property def http_override(self) -> global___HttpSettings: """http_override is the override of the global http settings""" - pass + @property def settings_override(self) -> global___GoogleChatSettings: """settings_override is the override for the google chat global endpoint settings""" - pass - def __init__(self, + + def __init__( + self, *, - send_resolved: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - http_override: typing.Optional[global___HttpSettings] = ..., - settings_override: typing.Optional[global___GoogleChatSettings] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["http_override",b"http_override","send_resolved",b"send_resolved","settings_override",b"settings_override"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["http_override",b"http_override","send_resolved",b"send_resolved","settings_override",b"settings_override"]) -> None: ... + send_resolved: google.protobuf.wrappers_pb2.BoolValue | None = ..., + http_override: global___HttpSettings | None = ..., + settings_override: global___GoogleChatSettings | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["http_override", b"http_override", "send_resolved", b"send_resolved", "settings_override", b"settings_override"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["http_override", b"http_override", "send_resolved", b"send_resolved", "settings_override", b"settings_override"]) -> None: ... + global___GoogleChatEndpoint = GoogleChatEndpoint +@typing.final class MsTeamsEndpoint(google.protobuf.message.Message): """MsTeamsEndpoint contains the required information for an alert to be sent to an ms teams endpoint""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + SEND_RESOLVED_FIELD_NUMBER: builtins.int HTTP_OVERRIDE_FIELD_NUMBER: builtins.int SETTINGS_OVERRIDE_FIELD_NUMBER: builtins.int @property def send_resolved(self) -> google.protobuf.wrappers_pb2.BoolValue: """send_resolved send alerts when events are resolved along with when they are triggered""" - pass + @property def http_override(self) -> global___HttpSettings: """http_override is the override of the global http settings""" - pass + @property def settings_override(self) -> global___MsTeamsSettings: """settings_override is the override for the microsoft teams global endpoint settings""" - pass - def __init__(self, + + def __init__( + self, *, - send_resolved: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - http_override: typing.Optional[global___HttpSettings] = ..., - settings_override: typing.Optional[global___MsTeamsSettings] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["http_override",b"http_override","send_resolved",b"send_resolved","settings_override",b"settings_override"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["http_override",b"http_override","send_resolved",b"send_resolved","settings_override",b"settings_override"]) -> None: ... + send_resolved: google.protobuf.wrappers_pb2.BoolValue | None = ..., + http_override: global___HttpSettings | None = ..., + settings_override: global___MsTeamsSettings | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["http_override", b"http_override", "send_resolved", b"send_resolved", "settings_override", b"settings_override"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["http_override", b"http_override", "send_resolved", b"send_resolved", "settings_override", b"settings_override"]) -> None: ... + global___MsTeamsEndpoint = MsTeamsEndpoint +@typing.final class SendgridEndpoint(google.protobuf.message.Message): """SendgridEndpoint contains the required information for an alert to be sent to a sendgrid endpoint""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + SEND_RESOLVED_FIELD_NUMBER: builtins.int TO_FIELD_NUMBER: builtins.int HTTP_OVERRIDE_FIELD_NUMBER: builtins.int @property def send_resolved(self) -> google.protobuf.wrappers_pb2.BoolValue: """send_resolved send alerts when events are resolved along with when they are triggered""" - pass + @property def to(self) -> google.protobuf.wrappers_pb2.StringValue: """to address to send email to""" - pass + @property def http_override(self) -> global___HttpSettings: """http_override is the override of the global http settings""" - pass - def __init__(self, + + def __init__( + self, *, - send_resolved: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - to: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - http_override: typing.Optional[global___HttpSettings] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["http_override",b"http_override","send_resolved",b"send_resolved","to",b"to"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["http_override",b"http_override","send_resolved",b"send_resolved","to",b"to"]) -> None: ... + send_resolved: google.protobuf.wrappers_pb2.BoolValue | None = ..., + to: google.protobuf.wrappers_pb2.StringValue | None = ..., + http_override: global___HttpSettings | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["http_override", b"http_override", "send_resolved", b"send_resolved", "to", b"to"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["http_override", b"http_override", "send_resolved", b"send_resolved", "to", b"to"]) -> None: ... + global___SendgridEndpoint = SendgridEndpoint +@typing.final class CueSendgridEndpoint(google.protobuf.message.Message): """CueSendgridEndpoint contains the required information for an alert to be sent to a cue sendgrid endpoint""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + SEND_RESOLVED_FIELD_NUMBER: builtins.int TO_FIELD_NUMBER: builtins.int HTTP_OVERRIDE_FIELD_NUMBER: builtins.int @property def send_resolved(self) -> google.protobuf.wrappers_pb2.BoolValue: """send_resolved send alerts when events are resolved along with when they are triggered""" - pass + @property def to(self) -> google.protobuf.wrappers_pb2.StringValue: """to address to send email to""" - pass + @property def http_override(self) -> global___HttpSettings: """http_override is the override of the global http settings This overrides the value used in Settings message in the global alert config """ - pass - def __init__(self, + + def __init__( + self, *, - send_resolved: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - to: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - http_override: typing.Optional[global___HttpSettings] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["http_override",b"http_override","send_resolved",b"send_resolved","to",b"to"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["http_override",b"http_override","send_resolved",b"send_resolved","to",b"to"]) -> None: ... + send_resolved: google.protobuf.wrappers_pb2.BoolValue | None = ..., + to: google.protobuf.wrappers_pb2.StringValue | None = ..., + http_override: global___HttpSettings | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["http_override", b"http_override", "send_resolved", b"send_resolved", "to", b"to"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["http_override", b"http_override", "send_resolved", b"send_resolved", "to", b"to"]) -> None: ... + global___CueSendgridEndpoint = CueSendgridEndpoint +@typing.final class SyslogEndpoint(google.protobuf.message.Message): """SyslogEndpoint contains the required information for an alert to be sent to a syslog endpoint""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + SEND_RESOLVED_FIELD_NUMBER: builtins.int SETTINGS_OVERRIDE_FIELD_NUMBER: builtins.int @property def send_resolved(self) -> google.protobuf.wrappers_pb2.BoolValue: """send_resolved send alerts when events are resolved along with when they are triggered""" - pass + @property def settings_override(self) -> global___SyslogSettings: """settings_override is the override for the microsoft teams global endpoint settings""" - pass - def __init__(self, + + def __init__( + self, *, - send_resolved: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - settings_override: typing.Optional[global___SyslogSettings] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["send_resolved",b"send_resolved","settings_override",b"settings_override"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["send_resolved",b"send_resolved","settings_override",b"settings_override"]) -> None: ... + send_resolved: google.protobuf.wrappers_pb2.BoolValue | None = ..., + settings_override: global___SyslogSettings | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["send_resolved", b"send_resolved", "settings_override", b"settings_override"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["send_resolved", b"send_resolved", "settings_override", b"settings_override"]) -> None: ... + global___SyslogEndpoint = SyslogEndpoint +@typing.final class CueSyslogEndpoint(google.protobuf.message.Message): """CueSyslogEndpoint contains the required information for an alert to be sent to a cue syslog endpoint""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + SEND_RESOLVED_FIELD_NUMBER: builtins.int SETTINGS_OVERRIDE_FIELD_NUMBER: builtins.int @property def send_resolved(self) -> google.protobuf.wrappers_pb2.BoolValue: """send_resolved send alerts when events are resolved along with when they are triggered""" - pass + @property def settings_override(self) -> global___CueSyslogSettings: """settings_override is the override for the cue syslog global endpoint settings""" - pass - def __init__(self, + + def __init__( + self, *, - send_resolved: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - settings_override: typing.Optional[global___CueSyslogSettings] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["send_resolved",b"send_resolved","settings_override",b"settings_override"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["send_resolved",b"send_resolved","settings_override",b"settings_override"]) -> None: ... + send_resolved: google.protobuf.wrappers_pb2.BoolValue | None = ..., + settings_override: global___CueSyslogSettings | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["send_resolved", b"send_resolved", "settings_override", b"settings_override"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["send_resolved", b"send_resolved", "settings_override", b"settings_override"]) -> None: ... + global___CueSyslogEndpoint = CueSyslogEndpoint +@typing.final class SNMPEndpoint(google.protobuf.message.Message): """SNMPEndpoint contains the required information for an alert to be sent to an SNMP endpoint""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + SEND_RESOLVED_FIELD_NUMBER: builtins.int SETTINGS_OVERRIDE_FIELD_NUMBER: builtins.int @property def send_resolved(self) -> google.protobuf.wrappers_pb2.BoolValue: """send_resolved send alerts when events are resolved along with when they are triggered""" - pass + @property def settings_override(self) -> global___SNMPSettings: """settings_override is the override for the microsoft teams global endpoint settings""" - pass - def __init__(self, + + def __init__( + self, *, - send_resolved: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - settings_override: typing.Optional[global___SNMPSettings] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["send_resolved",b"send_resolved","settings_override",b"settings_override"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["send_resolved",b"send_resolved","settings_override",b"settings_override"]) -> None: ... + send_resolved: google.protobuf.wrappers_pb2.BoolValue | None = ..., + settings_override: global___SNMPSettings | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["send_resolved", b"send_resolved", "settings_override", b"settings_override"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["send_resolved", b"send_resolved", "settings_override", b"settings_override"]) -> None: ... + global___SNMPEndpoint = SNMPEndpoint +@typing.final class CueSNMPEndpoint(google.protobuf.message.Message): """CueSNMPEndpoint contains the required information for an alert to be sent to a cue SNMP endpoint""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + SEND_RESOLVED_FIELD_NUMBER: builtins.int SETTINGS_OVERRIDE_FIELD_NUMBER: builtins.int @property def send_resolved(self) -> google.protobuf.wrappers_pb2.BoolValue: """send_resolved send alerts when events are resolved along with when they are triggered""" - pass + @property def settings_override(self) -> global___CueSNMPSettings: """settings_override is the override for the cue snmp global endpoint settings""" - pass - def __init__(self, + + def __init__( + self, *, - send_resolved: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - settings_override: typing.Optional[global___CueSNMPSettings] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["send_resolved",b"send_resolved","settings_override",b"settings_override"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["send_resolved",b"send_resolved","settings_override",b"settings_override"]) -> None: ... + send_resolved: google.protobuf.wrappers_pb2.BoolValue | None = ..., + settings_override: global___CueSNMPSettings | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["send_resolved", b"send_resolved", "settings_override", b"settings_override"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["send_resolved", b"send_resolved", "settings_override", b"settings_override"]) -> None: ... + global___CueSNMPEndpoint = CueSNMPEndpoint +@typing.final class ZoomEndpoint(google.protobuf.message.Message): """ZoomEndpoint contains the required information for an alert to be sent to a zoom endpoint""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + SEND_RESOLVED_FIELD_NUMBER: builtins.int HTTP_OVERRIDE_FIELD_NUMBER: builtins.int SETTINGS_OVERRIDE_FIELD_NUMBER: builtins.int @property def send_resolved(self) -> google.protobuf.wrappers_pb2.BoolValue: """send_resolved send alerts when events are resolved along with when they are triggered""" - pass + @property def http_override(self) -> global___HttpSettings: """http_override is the override of the global http settings""" - pass + @property def settings_override(self) -> global___ZoomSettings: """settings_override is the override for the zoom global endpoint settings""" - pass - def __init__(self, + + def __init__( + self, *, - send_resolved: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - http_override: typing.Optional[global___HttpSettings] = ..., - settings_override: typing.Optional[global___ZoomSettings] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["http_override",b"http_override","send_resolved",b"send_resolved","settings_override",b"settings_override"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["http_override",b"http_override","send_resolved",b"send_resolved","settings_override",b"settings_override"]) -> None: ... + send_resolved: google.protobuf.wrappers_pb2.BoolValue | None = ..., + http_override: global___HttpSettings | None = ..., + settings_override: global___ZoomSettings | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["http_override", b"http_override", "send_resolved", b"send_resolved", "settings_override", b"settings_override"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["http_override", b"http_override", "send_resolved", b"send_resolved", "settings_override", b"settings_override"]) -> None: ... + global___ZoomEndpoint = ZoomEndpoint +@typing.final class TemplateKey(google.protobuf.message.Message): """TemplateKey is used to identify templates for event notifications""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + TEMPLATE_TYPE_FIELD_NUMBER: builtins.int template_type: global___TemplateType.ValueType """template_type is the enum value to match with the template""" - - def __init__(self, + def __init__( + self, *, template_type: global___TemplateType.ValueType = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["template_type",b"template_type"]) -> None: ... + ) -> None: ... + def ClearField(self, field_name: typing.Literal["template_type", b"template_type"]) -> None: ... + global___TemplateKey = TemplateKey +@typing.final class TemplateConfig(google.protobuf.message.Message): """TemplateConfig represents a template configuration""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TEMPLATE_FIELD_NUMBER: builtins.int @property def key(self) -> global___TemplateKey: """key identifies which template the configuration is for""" - pass + @property def template(self) -> google.protobuf.wrappers_pb2.StringValue: """template is the string template value to be used @@ -2706,19 +2933,24 @@ class TemplateConfig(google.protobuf.message.Message): Templates must output valid JSON for certain templates Templates must not fail for any valid input """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[global___TemplateKey] = ..., - template: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","template",b"template"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","template",b"template"]) -> None: ... + key: global___TemplateKey | None = ..., + template: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "template", b"template"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "template", b"template"]) -> None: ... + global___TemplateConfig = TemplateConfig +@typing.final class DefaultTemplate(google.protobuf.message.Message): """DefaultTemplate is the system default template which is used when no user template has been set""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TEMPLATE_FIELD_NUMBER: builtins.int MULTI_ALERT_FIELD_NUMBER: builtins.int @@ -2726,10 +2958,15 @@ class DefaultTemplate(google.protobuf.message.Message): EXTERNAL_DOCUMENTATION_FIELD_NUMBER: builtins.int OUTPUT_FORMAT_FIELD_NUMBER: builtins.int DISPLAY_NAME_FIELD_NUMBER: builtins.int + output_format: global___TemplateOutput.ValueType + """output_format is the expected output format of this template + Any submitted template will be expected to output text with valid formatting for any input or + may fail validation. + """ @property def key(self) -> global___TemplateKey: """key identifies which template the configuration is for""" - pass + @property def template(self) -> google.protobuf.wrappers_pb2.StringValue: """template is the string template value to be used @@ -2739,43 +2976,39 @@ class DefaultTemplate(google.protobuf.message.Message): Templates must output valid JSON for certain templates Templates must not fail for any valid input """ - pass + @property def multi_alert(self) -> google.protobuf.wrappers_pb2.BoolValue: """multi_alert is true if this template uses a multiple alert context and false if a single alert context is used. """ - pass + @property def description(self) -> google.protobuf.wrappers_pb2.StringValue: """description is a description of the template.""" - pass + @property def external_documentation(self) -> google.protobuf.wrappers_pb2.StringValue: """external_documentation is a url to any relevant external documentation, or "" if there is no relevant documentation. """ - pass - output_format: global___TemplateOutput.ValueType - """output_format is the expected output format of this template - Any submitted template will be expected to output text with valid formatting for any input or - may fail validation. - """ @property def display_name(self) -> google.protobuf.wrappers_pb2.StringValue: """display_name is the name that can be displayed to the user for this particular template type""" - pass - def __init__(self, - *, - key: typing.Optional[global___TemplateKey] = ..., - template: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - multi_alert: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - description: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - external_documentation: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., + + def __init__( + self, + *, + key: global___TemplateKey | None = ..., + template: google.protobuf.wrappers_pb2.StringValue | None = ..., + multi_alert: google.protobuf.wrappers_pb2.BoolValue | None = ..., + description: google.protobuf.wrappers_pb2.StringValue | None = ..., + external_documentation: google.protobuf.wrappers_pb2.StringValue | None = ..., output_format: global___TemplateOutput.ValueType = ..., - display_name: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["description",b"description","display_name",b"display_name","external_documentation",b"external_documentation","key",b"key","multi_alert",b"multi_alert","template",b"template"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["description",b"description","display_name",b"display_name","external_documentation",b"external_documentation","key",b"key","multi_alert",b"multi_alert","output_format",b"output_format","template",b"template"]) -> None: ... + display_name: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["description", b"description", "display_name", b"display_name", "external_documentation", b"external_documentation", "key", b"key", "multi_alert", b"multi_alert", "template", b"template"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["description", b"description", "display_name", b"display_name", "external_documentation", b"external_documentation", "key", b"key", "multi_alert", b"multi_alert", "output_format", b"output_format", "template", b"template"]) -> None: ... + global___DefaultTemplate = DefaultTemplate diff --git a/arista/alert/v1/services/gen_pb2.pyi b/arista/alert/v1/services/gen_pb2.pyi index 99591be..f400137 100644 --- a/arista/alert/v1/services/gen_pb2.pyi +++ b/arista/alert/v1/services/gen_pb2.pyi @@ -1,11 +1,15 @@ """ @generated by mypy-protobuf. Do not edit manually! isort:skip_file + +Code generated by boomtown. DO NOT EDIT. """ + import arista.alert.v1.alert_pb2 import arista.subscriptions.subscriptions_pb2 import arista.time.time_pb2 import builtins +import collections.abc import fmp.deletes_pb2 import google.protobuf.descriptor import google.protobuf.internal.containers @@ -13,59 +17,67 @@ import google.protobuf.message import google.protobuf.timestamp_pb2 import google.protobuf.wrappers_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class MetaResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int COUNT_FIELD_NUMBER: builtins.int - @property - def time(self) -> google.protobuf.timestamp_pb2.Timestamp: - """Time holds the timestamp of the last item included in the metadata calculation.""" - pass type: arista.subscriptions.subscriptions_pb2.Operation.ValueType """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. """ + @property + def time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """Time holds the timestamp of the last item included in the metadata calculation.""" @property def count(self) -> google.protobuf.wrappers_pb2.UInt32Value: """Count is the number of items present under the conditions of the request.""" - pass - def __init__(self, + + def __init__( + self, *, - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - count: typing.Optional[google.protobuf.wrappers_pb2.UInt32Value] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["count",b"count","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["count",b"count","time",b"time","type",b"type"]) -> None: ... + count: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["count", b"count", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["count", b"count", "time", b"time", "type", b"type"]) -> None: ... + global___MetaResponse = MetaResponse +@typing.final class AlertRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TIME_FIELD_NUMBER: builtins.int @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the time for which you are interested in the data. If no time is given, the server will use the time at which it makes the request. """ - pass - def __init__(self, + + def __init__( + self, *, - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time"]) -> None: ... + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time"]) -> None: ... + global___AlertRequest = AlertRequest +@typing.final class AlertResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -75,24 +87,28 @@ class AlertResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time carries the (UTC) timestamp of the last-modification of the Alert instance in this response. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.alert.v1.alert_pb2.Alert] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.alert.v1.alert_pb2.Alert | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___AlertResponse = AlertResponse +@typing.final class AlertStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TIME_FIELD_NUMBER: builtins.int @property def time(self) -> arista.time.time_pb2.TimeBounds: @@ -112,67 +128,78 @@ class AlertStreamRequest(google.protobuf.message.Message): This field is not allowed in the Subscribe RPC. """ - pass - def __init__(self, + + def __init__( + self, *, - time: typing.Optional[arista.time.time_pb2.TimeBounds] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time"]) -> None: ... + time: arista.time.time_pb2.TimeBounds | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time"]) -> None: ... + global___AlertStreamRequest = AlertStreamRequest +@typing.final class AlertStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int + type: arista.subscriptions.subscriptions_pb2.Operation.ValueType + """Operation indicates how the Alert 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. + """ @property def value(self) -> arista.alert.v1.alert_pb2.Alert: """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. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time holds the timestamp of this Alert's last modification.""" - pass - type: arista.subscriptions.subscriptions_pb2.Operation.ValueType - """Operation indicates how the Alert 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. - """ - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.alert.v1.alert_pb2.Alert] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + value: arista.alert.v1.alert_pb2.Alert | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "type", b"type", "value", b"value"]) -> None: ... + global___AlertStreamResponse = AlertStreamResponse +@typing.final class AlertConfigRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TIME_FIELD_NUMBER: builtins.int @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the time for which you are interested in the data. If no time is given, the server will use the time at which it makes the request. """ - pass - def __init__(self, + + def __init__( + self, *, - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time"]) -> None: ... + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time"]) -> None: ... + global___AlertConfigRequest = AlertConfigRequest +@typing.final class AlertConfigResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -182,24 +209,28 @@ class AlertConfigResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time carries the (UTC) timestamp of the last-modification of the AlertConfig instance in this response. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.alert.v1.alert_pb2.AlertConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.alert.v1.alert_pb2.AlertConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___AlertConfigResponse = AlertConfigResponse +@typing.final class AlertConfigStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TIME_FIELD_NUMBER: builtins.int @property def time(self) -> arista.time.time_pb2.TimeBounds: @@ -219,67 +250,78 @@ class AlertConfigStreamRequest(google.protobuf.message.Message): This field is not allowed in the Subscribe RPC. """ - pass - def __init__(self, + + def __init__( + self, *, - time: typing.Optional[arista.time.time_pb2.TimeBounds] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time"]) -> None: ... + time: arista.time.time_pb2.TimeBounds | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time"]) -> None: ... + global___AlertConfigStreamRequest = AlertConfigStreamRequest +@typing.final class AlertConfigStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int + type: arista.subscriptions.subscriptions_pb2.Operation.ValueType + """Operation indicates how the AlertConfig 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. + """ @property def value(self) -> arista.alert.v1.alert_pb2.AlertConfig: """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. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time holds the timestamp of this AlertConfig's last modification.""" - pass - type: arista.subscriptions.subscriptions_pb2.Operation.ValueType - """Operation indicates how the AlertConfig 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. - """ - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.alert.v1.alert_pb2.AlertConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + value: arista.alert.v1.alert_pb2.AlertConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "type", b"type", "value", b"value"]) -> None: ... + global___AlertConfigStreamResponse = AlertConfigStreamResponse +@typing.final class AlertConfigSetRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int @property def value(self) -> arista.alert.v1.alert_pb2.AlertConfig: """AlertConfig carries the value to set into the datastore. See the documentation on the AlertConfig struct for which fields are required. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.alert.v1.alert_pb2.AlertConfig] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["value",b"value"]) -> None: ... + value: arista.alert.v1.alert_pb2.AlertConfig | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["value", b"value"]) -> None: ... + global___AlertConfigSetRequest = AlertConfigSetRequest +@typing.final class AlertConfigSetResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -287,7 +329,7 @@ class AlertConfigSetResponse(google.protobuf.message.Message): """Value carries all the values given in the AlertConfigSetRequest as well as any server-generated values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp at which the system recognizes the @@ -296,18 +338,22 @@ class AlertConfigSetResponse(google.protobuf.message.Message): - it is after the time the request was received - a time-ranged query with StartTime==CreatedAt will include this instance. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.alert.v1.alert_pb2.AlertConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.alert.v1.alert_pb2.AlertConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___AlertConfigSetResponse = AlertConfigSetResponse +@typing.final class DefaultTemplateRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -315,24 +361,28 @@ class DefaultTemplateRequest(google.protobuf.message.Message): """Key uniquely identifies a DefaultTemplate instance to retrieve. This value must be populated. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the time for which you are interested in the data. If no time is given, the server will use the time at which it makes the request. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.alert.v1.alert_pb2.TemplateKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.alert.v1.alert_pb2.TemplateKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___DefaultTemplateRequest = DefaultTemplateRequest +@typing.final class DefaultTemplateResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -342,24 +392,28 @@ class DefaultTemplateResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time carries the (UTC) timestamp of the last-modification of the DefaultTemplate instance in this response. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.alert.v1.alert_pb2.DefaultTemplate] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.alert.v1.alert_pb2.DefaultTemplate | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___DefaultTemplateResponse = DefaultTemplateResponse +@typing.final class DefaultTemplateSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -369,18 +423,22 @@ class DefaultTemplateSomeRequest(google.protobuf.message.Message): """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. """ - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.alert.v1.alert_pb2.TemplateKey]] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys","time",b"time"]) -> None: ... + keys: collections.abc.Iterable[arista.alert.v1.alert_pb2.TemplateKey] | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys", "time", b"time"]) -> None: ... + global___DefaultTemplateSomeRequest = DefaultTemplateSomeRequest +@typing.final class DefaultTemplateSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -391,27 +449,31 @@ class DefaultTemplateSomeResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """Error is an optional field. It should be filled when there is an error in the GetSome process. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - def __init__(self, - *, - value: typing.Optional[arista.alert.v1.alert_pb2.DefaultTemplate] = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> None: ... + def __init__( + self, + *, + value: arista.alert.v1.alert_pb2.DefaultTemplate | None = ..., + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> None: ... + global___DefaultTemplateSomeResponse = DefaultTemplateSomeResponse +@typing.final class DefaultTemplateStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TIME_FIELD_NUMBER: builtins.int @property def time(self) -> arista.time.time_pb2.TimeBounds: @@ -431,50 +493,57 @@ class DefaultTemplateStreamRequest(google.protobuf.message.Message): This field is not allowed in the Subscribe RPC. """ - pass - def __init__(self, + + def __init__( + self, *, - time: typing.Optional[arista.time.time_pb2.TimeBounds] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time"]) -> None: ... + time: arista.time.time_pb2.TimeBounds | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time"]) -> None: ... + global___DefaultTemplateStreamRequest = DefaultTemplateStreamRequest +@typing.final class DefaultTemplateStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int + type: arista.subscriptions.subscriptions_pb2.Operation.ValueType + """Operation indicates how the DefaultTemplate 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. + """ @property def value(self) -> arista.alert.v1.alert_pb2.DefaultTemplate: """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. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time holds the timestamp of this DefaultTemplate's last modification.""" - pass - type: arista.subscriptions.subscriptions_pb2.Operation.ValueType - """Operation indicates how the DefaultTemplate 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. - """ - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.alert.v1.alert_pb2.DefaultTemplate] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + value: arista.alert.v1.alert_pb2.DefaultTemplate | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "type", b"type", "value", b"value"]) -> None: ... + global___DefaultTemplateStreamResponse = DefaultTemplateStreamResponse +@typing.final class DefaultTemplateBatchedStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TIME_FIELD_NUMBER: builtins.int MAX_MESSAGES_FIELD_NUMBER: builtins.int @property @@ -495,7 +564,7 @@ class DefaultTemplateBatchedStreamRequest(google.protobuf.message.Message): 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. @@ -503,18 +572,22 @@ class DefaultTemplateBatchedStreamRequest(google.protobuf.message.Message): 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, + + 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: ... + time: arista.time.time_pb2.TimeBounds | None = ..., + max_messages: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["max_messages", b"max_messages", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["max_messages", b"max_messages", "time", b"time"]) -> None: ... + global___DefaultTemplateBatchedStreamRequest = DefaultTemplateBatchedStreamRequest +@typing.final 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]: @@ -522,16 +595,20 @@ class DefaultTemplateBatchedStreamResponse(google.protobuf.message.Message): The length of this structure is guaranteed to be between (inclusive) 1 and min(req.max_messages, INTERNAL_BATCH_LIMIT). """ - pass - def __init__(self, + + def __init__( + self, *, - responses: typing.Optional[typing.Iterable[global___DefaultTemplateStreamResponse]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["responses",b"responses"]) -> None: ... + responses: collections.abc.Iterable[global___DefaultTemplateStreamResponse] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["responses", b"responses"]) -> None: ... + global___DefaultTemplateBatchedStreamResponse = DefaultTemplateBatchedStreamResponse +@typing.final class TemplateConfigRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -539,24 +616,28 @@ class TemplateConfigRequest(google.protobuf.message.Message): """Key uniquely identifies a TemplateConfig instance to retrieve. This value must be populated. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the time for which you are interested in the data. If no time is given, the server will use the time at which it makes the request. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.alert.v1.alert_pb2.TemplateKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.alert.v1.alert_pb2.TemplateKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___TemplateConfigRequest = TemplateConfigRequest +@typing.final class TemplateConfigResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -566,24 +647,28 @@ class TemplateConfigResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time carries the (UTC) timestamp of the last-modification of the TemplateConfig instance in this response. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.alert.v1.alert_pb2.TemplateConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.alert.v1.alert_pb2.TemplateConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___TemplateConfigResponse = TemplateConfigResponse +@typing.final class TemplateConfigSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -593,18 +678,22 @@ class TemplateConfigSomeRequest(google.protobuf.message.Message): """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. """ - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.alert.v1.alert_pb2.TemplateKey]] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys","time",b"time"]) -> None: ... + keys: collections.abc.Iterable[arista.alert.v1.alert_pb2.TemplateKey] | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys", "time", b"time"]) -> None: ... + global___TemplateConfigSomeRequest = TemplateConfigSomeRequest +@typing.final class TemplateConfigSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -615,27 +704,31 @@ class TemplateConfigSomeResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """Error is an optional field. It should be filled when there is an error in the GetSome process. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - def __init__(self, - *, - value: typing.Optional[arista.alert.v1.alert_pb2.TemplateConfig] = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> None: ... + def __init__( + self, + *, + value: arista.alert.v1.alert_pb2.TemplateConfig | None = ..., + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> None: ... + global___TemplateConfigSomeResponse = TemplateConfigSomeResponse +@typing.final class TemplateConfigStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TIME_FIELD_NUMBER: builtins.int @property def time(self) -> arista.time.time_pb2.TimeBounds: @@ -655,50 +748,57 @@ class TemplateConfigStreamRequest(google.protobuf.message.Message): This field is not allowed in the Subscribe RPC. """ - pass - def __init__(self, + + def __init__( + self, *, - time: typing.Optional[arista.time.time_pb2.TimeBounds] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time"]) -> None: ... + time: arista.time.time_pb2.TimeBounds | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time"]) -> None: ... + global___TemplateConfigStreamRequest = TemplateConfigStreamRequest +@typing.final class TemplateConfigStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int + type: arista.subscriptions.subscriptions_pb2.Operation.ValueType + """Operation indicates how the TemplateConfig 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. + """ @property def value(self) -> arista.alert.v1.alert_pb2.TemplateConfig: """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. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time holds the timestamp of this TemplateConfig's last modification.""" - pass - type: arista.subscriptions.subscriptions_pb2.Operation.ValueType - """Operation indicates how the TemplateConfig 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. - """ - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.alert.v1.alert_pb2.TemplateConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + value: arista.alert.v1.alert_pb2.TemplateConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "type", b"type", "value", b"value"]) -> None: ... + global___TemplateConfigStreamResponse = TemplateConfigStreamResponse +@typing.final class TemplateConfigBatchedStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TIME_FIELD_NUMBER: builtins.int MAX_MESSAGES_FIELD_NUMBER: builtins.int @property @@ -719,7 +819,7 @@ class TemplateConfigBatchedStreamRequest(google.protobuf.message.Message): 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. @@ -727,18 +827,22 @@ class TemplateConfigBatchedStreamRequest(google.protobuf.message.Message): 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, + + 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: ... + time: arista.time.time_pb2.TimeBounds | None = ..., + max_messages: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["max_messages", b"max_messages", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["max_messages", b"max_messages", "time", b"time"]) -> None: ... + global___TemplateConfigBatchedStreamRequest = TemplateConfigBatchedStreamRequest +@typing.final 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]: @@ -746,33 +850,41 @@ class TemplateConfigBatchedStreamResponse(google.protobuf.message.Message): The length of this structure is guaranteed to be between (inclusive) 1 and min(req.max_messages, INTERNAL_BATCH_LIMIT). """ - pass - def __init__(self, + + def __init__( + self, *, - responses: typing.Optional[typing.Iterable[global___TemplateConfigStreamResponse]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["responses",b"responses"]) -> None: ... + responses: collections.abc.Iterable[global___TemplateConfigStreamResponse] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["responses", b"responses"]) -> None: ... + global___TemplateConfigBatchedStreamResponse = TemplateConfigBatchedStreamResponse +@typing.final class TemplateConfigSetRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int @property def value(self) -> arista.alert.v1.alert_pb2.TemplateConfig: """TemplateConfig carries the value to set into the datastore. See the documentation on the TemplateConfig struct for which fields are required. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.alert.v1.alert_pb2.TemplateConfig] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["value",b"value"]) -> None: ... + value: arista.alert.v1.alert_pb2.TemplateConfig | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["value", b"value"]) -> None: ... + global___TemplateConfigSetRequest = TemplateConfigSetRequest +@typing.final class TemplateConfigSetResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -780,7 +892,7 @@ class TemplateConfigSetResponse(google.protobuf.message.Message): """Value carries all the values given in the TemplateConfigSetRequest as well as any server-generated values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp at which the system recognizes the @@ -789,18 +901,22 @@ class TemplateConfigSetResponse(google.protobuf.message.Message): - it is after the time the request was received - a time-ranged query with StartTime==CreatedAt will include this instance. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.alert.v1.alert_pb2.TemplateConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.alert.v1.alert_pb2.TemplateConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___TemplateConfigSetResponse = TemplateConfigSetResponse +@typing.final class TemplateConfigSetSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.alert.v1.alert_pb2.TemplateConfig]: @@ -811,55 +927,67 @@ class TemplateConfigSetSomeRequest(google.protobuf.message.Message): If this error occurs you must reduce the number of values sent. See gRPC "maximum message size" documentation for more information. """ - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[arista.alert.v1.alert_pb2.TemplateConfig]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[arista.alert.v1.alert_pb2.TemplateConfig] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___TemplateConfigSetSomeRequest = TemplateConfigSetSomeRequest +@typing.final class TemplateConfigSetSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int + error: builtins.str @property def key(self) -> arista.alert.v1.alert_pb2.TemplateKey: ... - error: typing.Text - def __init__(self, - *, - key: typing.Optional[arista.alert.v1.alert_pb2.TemplateKey] = ..., - error: typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key"]) -> None: ... + def __init__( + self, + *, + key: arista.alert.v1.alert_pb2.TemplateKey | None = ..., + error: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key"]) -> None: ... + global___TemplateConfigSetSomeResponse = TemplateConfigSetSomeResponse +@typing.final class TemplateConfigDeleteRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int @property def key(self) -> arista.alert.v1.alert_pb2.TemplateKey: """Key indicates which TemplateConfig instance to remove. This field must always be set. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.alert.v1.alert_pb2.TemplateKey] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key"]) -> None: ... + key: arista.alert.v1.alert_pb2.TemplateKey | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key"]) -> None: ... + global___TemplateConfigDeleteRequest = TemplateConfigDeleteRequest +@typing.final class TemplateConfigDeleteResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property def key(self) -> arista.alert.v1.alert_pb2.TemplateKey: """Key echoes back the key of the deleted TemplateConfig instance.""" - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp at which the system recognizes the @@ -868,55 +996,72 @@ class TemplateConfigDeleteResponse(google.protobuf.message.Message): - it is after the time the request was received - a time-ranged query with StartTime==DeletedAt will not include this instance. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.alert.v1.alert_pb2.TemplateKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.alert.v1.alert_pb2.TemplateKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___TemplateConfigDeleteResponse = TemplateConfigDeleteResponse +@typing.final class TemplateConfigDeleteSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int @property def keys(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.alert.v1.alert_pb2.TemplateKey]: """key contains a list of TemplateConfig keys to delete""" - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.alert.v1.alert_pb2.TemplateKey]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys"]) -> None: ... + keys: collections.abc.Iterable[arista.alert.v1.alert_pb2.TemplateKey] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys"]) -> None: ... + global___TemplateConfigDeleteSomeRequest = TemplateConfigDeleteSomeRequest +@typing.final class TemplateConfigDeleteSomeResponse(google.protobuf.message.Message): """TemplateConfigDeleteSomeResponse is only sent when there is an error.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int + error: builtins.str @property def key(self) -> arista.alert.v1.alert_pb2.TemplateKey: ... - error: typing.Text - def __init__(self, - *, - key: typing.Optional[arista.alert.v1.alert_pb2.TemplateKey] = ..., - error: typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key"]) -> None: ... + def __init__( + self, + *, + key: arista.alert.v1.alert_pb2.TemplateKey | None = ..., + error: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key"]) -> None: ... + global___TemplateConfigDeleteSomeResponse = TemplateConfigDeleteSomeResponse +@typing.final class TemplateConfigDeleteAllRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - def __init__(self, - ) -> None: ... + + def __init__( + self, + ) -> None: ... + global___TemplateConfigDeleteAllRequest = TemplateConfigDeleteAllRequest +@typing.final class TemplateConfigDeleteAllResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TYPE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int KEY_FIELD_NUMBER: builtins.int @@ -925,26 +1070,27 @@ class TemplateConfigDeleteAllResponse(google.protobuf.message.Message): """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: """This indicates the error message from the delete failure.""" - pass + @property def key(self) -> arista.alert.v1.alert_pb2.TemplateKey: """This is the key of the TemplateConfig instance that failed to be deleted.""" - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp when the key was being deleted.""" - pass - def __init__(self, + + def __init__( + self, *, type: fmp.deletes_pb2.DeleteError.ValueType = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - key: typing.Optional[arista.alert.v1.alert_pb2.TemplateKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key","time",b"time","type",b"type"]) -> None: ... + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + key: arista.alert.v1.alert_pb2.TemplateKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key", "time", b"time", "type", b"type"]) -> None: ... + global___TemplateConfigDeleteAllResponse = TemplateConfigDeleteAllResponse diff --git a/arista/bugexposure/v1/bugexposure_pb2.pyi b/arista/bugexposure/v1/bugexposure_pb2.pyi index b7df33b..b65fb09 100644 --- a/arista/bugexposure/v1/bugexposure_pb2.pyi +++ b/arista/bugexposure/v1/bugexposure_pb2.pyi @@ -1,29 +1,37 @@ """ @generated by mypy-protobuf. Do not edit manually! isort:skip_file +Copyright (c) 2023 Arista Networks, Inc. All rights reserved. +Use of this source code is governed by the Apache License 2.0 +that can be found in the COPYING file. """ + import builtins import fmp.wrappers_pb2 import google.protobuf.descriptor import google.protobuf.internal.enum_type_wrapper import google.protobuf.message import google.protobuf.wrappers_pb2 +import sys import typing -import typing_extensions + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor class _Acknowledgement: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _AcknowledgementEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_Acknowledgement.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor ACKNOWLEDGEMENT_UNSPECIFIED: _Acknowledgement.ValueType # 0 """Unacknowledged and acknowledged bugs will be computed""" - ACKNOWLEDGEMENT_UNACKNOWLEDGED: _Acknowledgement.ValueType # 1 """Only unacknowledged bugs will be computed""" - ACKNOWLEDGEMENT_ACKNOWLEDGED: _Acknowledgement.ValueType # 2 """Only acknowledged bugs will be computed""" @@ -33,23 +41,19 @@ class Acknowledgement(_Acknowledgement, metaclass=_AcknowledgementEnumTypeWrappe the acknowledgement state for the computed bugs """ - pass ACKNOWLEDGEMENT_UNSPECIFIED: Acknowledgement.ValueType # 0 """Unacknowledged and acknowledged bugs will be computed""" - ACKNOWLEDGEMENT_UNACKNOWLEDGED: Acknowledgement.ValueType # 1 """Only unacknowledged bugs will be computed""" - ACKNOWLEDGEMENT_ACKNOWLEDGED: Acknowledgement.ValueType # 2 """Only acknowledged bugs will be computed""" - global___Acknowledgement = Acknowledgement - class _HighestExposure: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _HighestExposureEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_HighestExposure.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor HIGHEST_EXPOSURE_UNSPECIFIED: _HighestExposure.ValueType # 0 @@ -57,13 +61,10 @@ class _HighestExposureEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper and it will compute devices with any highest exposure """ - HIGHEST_EXPOSURE_NONE: _HighestExposure.ValueType # 1 """Not exposed to bugs""" - HIGHEST_EXPOSURE_LOW: _HighestExposure.ValueType # 2 """Highest exposure is to a low priority bug""" - HIGHEST_EXPOSURE_HIGH: _HighestExposure.ValueType # 3 """Highest exposure is to a high priority bug""" @@ -72,56 +73,57 @@ class HighestExposure(_HighestExposure, metaclass=_HighestExposureEnumTypeWrappe that defines the options for highest exposure """ - pass HIGHEST_EXPOSURE_UNSPECIFIED: HighestExposure.ValueType # 0 """If not given this will be the default value and it will compute devices with any highest exposure """ - HIGHEST_EXPOSURE_NONE: HighestExposure.ValueType # 1 """Not exposed to bugs""" - HIGHEST_EXPOSURE_LOW: HighestExposure.ValueType # 2 """Highest exposure is to a low priority bug""" - HIGHEST_EXPOSURE_HIGH: HighestExposure.ValueType # 3 """Highest exposure is to a high priority bug""" - global___HighestExposure = HighestExposure - +@typing.final class BugExposureKey(google.protobuf.message.Message): """BugExposureKey is the key type for BugExposure model """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + DEVICE_ID_FIELD_NUMBER: builtins.int ACKNOWLEDGEMENT_FIELD_NUMBER: builtins.int - @property - def device_id(self) -> google.protobuf.wrappers_pb2.StringValue: - """device_id is the device ID""" - pass acknowledgement: global___Acknowledgement.ValueType """acknowledgement is one of the options for Acknowledgement enum """ + @property + def device_id(self) -> google.protobuf.wrappers_pb2.StringValue: + """device_id is the device ID""" - def __init__(self, + def __init__( + self, *, - device_id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., + device_id: google.protobuf.wrappers_pb2.StringValue | None = ..., acknowledgement: global___Acknowledgement.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["device_id",b"device_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["acknowledgement",b"acknowledgement","device_id",b"device_id"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["device_id", b"device_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["acknowledgement", b"acknowledgement", "device_id", b"device_id"]) -> None: ... + global___BugExposureKey = BugExposureKey +@typing.final class BugExposure(google.protobuf.message.Message): """BugExposure is the state model that represents the exposure a device has to bugs """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int BUG_IDS_FIELD_NUMBER: builtins.int CVE_IDS_FIELD_NUMBER: builtins.int @@ -129,56 +131,56 @@ class BugExposure(google.protobuf.message.Message): CVE_COUNT_FIELD_NUMBER: builtins.int HIGHEST_BUG_EXPOSURE_FIELD_NUMBER: builtins.int HIGHEST_CVE_EXPOSURE_FIELD_NUMBER: builtins.int + highest_bug_exposure: global___HighestExposure.ValueType + """highest_bug_exposure is the highest exposure + with type Bug + """ + highest_cve_exposure: global___HighestExposure.ValueType + """highest_cve_exposure is the highest exposure + with type CVE + """ @property def key(self) -> global___BugExposureKey: """BugExposureKey is the key of BugExposure """ - pass + @property def bug_ids(self) -> fmp.wrappers_pb2.RepeatedInt32: """bug_ids is a list of bug alerts affecting the device with type Bug """ - pass + @property def cve_ids(self) -> fmp.wrappers_pb2.RepeatedInt32: """cve_ids is a list of bug alerts affecting the device with type CVE """ - pass + @property def bug_count(self) -> google.protobuf.wrappers_pb2.Int32Value: """bug_count is the number of bug alerts with type Bug """ - pass + @property def cve_count(self) -> google.protobuf.wrappers_pb2.Int32Value: """cve_count is the number of bug alerts with type CVE """ - pass - highest_bug_exposure: global___HighestExposure.ValueType - """highest_bug_exposure is the highest exposure - with type Bug - """ - highest_cve_exposure: global___HighestExposure.ValueType - """highest_cve_exposure is the highest exposure - with type CVE - """ - - def __init__(self, + def __init__( + self, *, - key: typing.Optional[global___BugExposureKey] = ..., - bug_ids: typing.Optional[fmp.wrappers_pb2.RepeatedInt32] = ..., - cve_ids: typing.Optional[fmp.wrappers_pb2.RepeatedInt32] = ..., - bug_count: typing.Optional[google.protobuf.wrappers_pb2.Int32Value] = ..., - cve_count: typing.Optional[google.protobuf.wrappers_pb2.Int32Value] = ..., + key: global___BugExposureKey | None = ..., + bug_ids: fmp.wrappers_pb2.RepeatedInt32 | None = ..., + cve_ids: fmp.wrappers_pb2.RepeatedInt32 | None = ..., + bug_count: google.protobuf.wrappers_pb2.Int32Value | None = ..., + cve_count: google.protobuf.wrappers_pb2.Int32Value | None = ..., highest_bug_exposure: global___HighestExposure.ValueType = ..., highest_cve_exposure: global___HighestExposure.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["bug_count",b"bug_count","bug_ids",b"bug_ids","cve_count",b"cve_count","cve_ids",b"cve_ids","key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["bug_count",b"bug_count","bug_ids",b"bug_ids","cve_count",b"cve_count","cve_ids",b"cve_ids","highest_bug_exposure",b"highest_bug_exposure","highest_cve_exposure",b"highest_cve_exposure","key",b"key"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["bug_count", b"bug_count", "bug_ids", b"bug_ids", "cve_count", b"cve_count", "cve_ids", b"cve_ids", "key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["bug_count", b"bug_count", "bug_ids", b"bug_ids", "cve_count", b"cve_count", "cve_ids", b"cve_ids", "highest_bug_exposure", b"highest_bug_exposure", "highest_cve_exposure", b"highest_cve_exposure", "key", b"key"]) -> None: ... + global___BugExposure = BugExposure diff --git a/arista/bugexposure/v1/services/gen_pb2.pyi b/arista/bugexposure/v1/services/gen_pb2.pyi index 7c436c7..ff0a310 100644 --- a/arista/bugexposure/v1/services/gen_pb2.pyi +++ b/arista/bugexposure/v1/services/gen_pb2.pyi @@ -1,53 +1,61 @@ """ @generated by mypy-protobuf. Do not edit manually! isort:skip_file + +Code generated by boomtown. DO NOT EDIT. """ + import arista.bugexposure.v1.bugexposure_pb2 import arista.subscriptions.subscriptions_pb2 import arista.time.time_pb2 import builtins +import collections.abc import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message import google.protobuf.timestamp_pb2 import google.protobuf.wrappers_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class MetaResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int COUNT_FIELD_NUMBER: builtins.int - @property - def time(self) -> google.protobuf.timestamp_pb2.Timestamp: - """Time holds the timestamp of the last item included in the metadata calculation.""" - pass type: arista.subscriptions.subscriptions_pb2.Operation.ValueType """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. """ + @property + def time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """Time holds the timestamp of the last item included in the metadata calculation.""" @property def count(self) -> google.protobuf.wrappers_pb2.UInt32Value: """Count is the number of items present under the conditions of the request.""" - pass - def __init__(self, + + def __init__( + self, *, - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - count: typing.Optional[google.protobuf.wrappers_pb2.UInt32Value] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["count",b"count","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["count",b"count","time",b"time","type",b"type"]) -> None: ... + count: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["count", b"count", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["count", b"count", "time", b"time", "type", b"type"]) -> None: ... + global___MetaResponse = MetaResponse +@typing.final class BugExposureRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -55,24 +63,28 @@ class BugExposureRequest(google.protobuf.message.Message): """Key uniquely identifies a BugExposure instance to retrieve. This value must be populated. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the time for which you are interested in the data. If no time is given, the server will use the time at which it makes the request. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.bugexposure.v1.bugexposure_pb2.BugExposureKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.bugexposure.v1.bugexposure_pb2.BugExposureKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___BugExposureRequest = BugExposureRequest +@typing.final class BugExposureResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -82,24 +94,28 @@ class BugExposureResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time carries the (UTC) timestamp of the last-modification of the BugExposure instance in this response. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.bugexposure.v1.bugexposure_pb2.BugExposure] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.bugexposure.v1.bugexposure_pb2.BugExposure | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___BugExposureResponse = BugExposureResponse +@typing.final class BugExposureStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -110,7 +126,7 @@ class BugExposureStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -129,45 +145,50 @@ class BugExposureStreamRequest(google.protobuf.message.Message): This field is not allowed in the Subscribe RPC. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.bugexposure.v1.bugexposure_pb2.BugExposure]] = ..., - time: typing.Optional[arista.time.time_pb2.TimeBounds] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.bugexposure.v1.bugexposure_pb2.BugExposure] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___BugExposureStreamRequest = BugExposureStreamRequest +@typing.final class BugExposureStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int + type: arista.subscriptions.subscriptions_pb2.Operation.ValueType + """Operation indicates how the BugExposure 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. + """ @property def value(self) -> arista.bugexposure.v1.bugexposure_pb2.BugExposure: """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. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time holds the timestamp of this BugExposure's last modification.""" - pass - type: arista.subscriptions.subscriptions_pb2.Operation.ValueType - """Operation indicates how the BugExposure 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. - """ - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.bugexposure.v1.bugexposure_pb2.BugExposure] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + value: arista.bugexposure.v1.bugexposure_pb2.BugExposure | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "type", b"type", "value", b"value"]) -> None: ... + global___BugExposureStreamResponse = BugExposureStreamResponse diff --git a/arista/changecontrol/v1/changecontrol_pb2.pyi b/arista/changecontrol/v1/changecontrol_pb2.pyi index 037f566..54dc899 100644 --- a/arista/changecontrol/v1/changecontrol_pb2.pyi +++ b/arista/changecontrol/v1/changecontrol_pb2.pyi @@ -1,8 +1,13 @@ """ @generated by mypy-protobuf. Do not edit manually! isort:skip_file +Copyright (c) 2020 Arista Networks, Inc. All rights reserved. +Use of this source code is governed by the Apache License 2.0 +that can be found in the COPYING file. """ + import builtins +import collections.abc import fmp.wrappers_pb2 import google.protobuf.descriptor import google.protobuf.internal.containers @@ -10,75 +15,70 @@ import google.protobuf.internal.enum_type_wrapper import google.protobuf.message import google.protobuf.timestamp_pb2 import google.protobuf.wrappers_pb2 +import sys import typing -import typing_extensions + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor class _StageStatus: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _StageStatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_StageStatus.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor STAGE_STATUS_UNSPECIFIED: _StageStatus.ValueType # 0 """STAGE_STATUS_UNSPECIFIED means unknown stage status.""" - STAGE_STATUS_RUNNING: _StageStatus.ValueType # 1 """STAGE_STATUS_RUNNING means the stage has begun execution.""" - STAGE_STATUS_COMPLETED: _StageStatus.ValueType # 2 """STAGE_STATUS_COMPLETED means the stage has ceased execution. Success/failure of a stage cannot be inferred from this status alone but rather this status plus the stage error. That is, no error implies success and some error implies failure. """ - STAGE_STATUS_NOT_STARTED: _StageStatus.ValueType # 3 """STAGE_STATUS_NOT_STARTED means the stage has not been started.""" class StageStatus(_StageStatus, metaclass=_StageStatusEnumTypeWrapper): """StageStatus defines the possible execution statuses of a stage.""" - pass STAGE_STATUS_UNSPECIFIED: StageStatus.ValueType # 0 """STAGE_STATUS_UNSPECIFIED means unknown stage status.""" - STAGE_STATUS_RUNNING: StageStatus.ValueType # 1 """STAGE_STATUS_RUNNING means the stage has begun execution.""" - STAGE_STATUS_COMPLETED: StageStatus.ValueType # 2 """STAGE_STATUS_COMPLETED means the stage has ceased execution. Success/failure of a stage cannot be inferred from this status alone but rather this status plus the stage error. That is, no error implies success and some error implies failure. """ - STAGE_STATUS_NOT_STARTED: StageStatus.ValueType # 3 """STAGE_STATUS_NOT_STARTED means the stage has not been started.""" - global___StageStatus = StageStatus - class _ChangeControlStatus: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _ChangeControlStatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ChangeControlStatus.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor CHANGE_CONTROL_STATUS_UNSPECIFIED: _ChangeControlStatus.ValueType # 0 """CHANGE_CONTROL_STATUS_UNSPECIFIED means the change control status is unknown.""" - CHANGE_CONTROL_STATUS_RUNNING: _ChangeControlStatus.ValueType # 1 """CHANGE_CONTROL_STATUS_RUNNING means the change control has begun execution. """ - CHANGE_CONTROL_STATUS_COMPLETED: _ChangeControlStatus.ValueType # 2 """CHANGE_CONTROL_STATUS_COMPLETED means the change control has ceased execution. Success/failure of a change control cannot be inferred from this status alone but rather this status plus the change control error. That is, no error implies success and some error implies failure. """ - CHANGE_CONTROL_STATUS_SCHEDULED: _ChangeControlStatus.ValueType # 3 """CHANGE_CONTROL_STATUS_SCHEDULED means the change control has been scheduled for execution at some time. Any failure that occurs during @@ -86,7 +86,6 @@ class _ChangeControlStatusEnumTypeWrapper(google.protobuf.internal.enum_type_wra a reset of the schedule flag by the system, and an error on the change control reporting the details of the failure. """ - CHANGE_CONTROL_STATUS_NOT_STARTED: _ChangeControlStatus.ValueType # 4 """CHANGE_CONTROL_STATUS_NOT_STARTED means the change control has not been started. This would include approved and not approved change controls. @@ -96,23 +95,19 @@ class ChangeControlStatus(_ChangeControlStatus, metaclass=_ChangeControlStatusEn """ChangeControlStatus defines the possible execution statuses of a change control. """ - pass CHANGE_CONTROL_STATUS_UNSPECIFIED: ChangeControlStatus.ValueType # 0 """CHANGE_CONTROL_STATUS_UNSPECIFIED means the change control status is unknown.""" - CHANGE_CONTROL_STATUS_RUNNING: ChangeControlStatus.ValueType # 1 """CHANGE_CONTROL_STATUS_RUNNING means the change control has begun execution. """ - CHANGE_CONTROL_STATUS_COMPLETED: ChangeControlStatus.ValueType # 2 """CHANGE_CONTROL_STATUS_COMPLETED means the change control has ceased execution. Success/failure of a change control cannot be inferred from this status alone but rather this status plus the change control error. That is, no error implies success and some error implies failure. """ - CHANGE_CONTROL_STATUS_SCHEDULED: ChangeControlStatus.ValueType # 3 """CHANGE_CONTROL_STATUS_SCHEDULED means the change control has been scheduled for execution at some time. Any failure that occurs during @@ -120,62 +115,72 @@ this process will cause a transition back to the unspecified status, a reset of the schedule flag by the system, and an error on the change control reporting the details of the failure. """ - CHANGE_CONTROL_STATUS_NOT_STARTED: ChangeControlStatus.ValueType # 4 """CHANGE_CONTROL_STATUS_NOT_STARTED means the change control has not been started. This would include approved and not approved change controls. """ - global___ChangeControlStatus = ChangeControlStatus - +@typing.final class RepeatedRepeatedString(google.protobuf.message.Message): """RepeatedRepeatedString wraps a repeated `fmp.RepeatedString` to define a string matrix which is used to represent stage rows (see `StageConfig`). """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[fmp.wrappers_pb2.RepeatedString]: """values is a list of `fmp.RepeatedString`.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[fmp.wrappers_pb2.RepeatedString]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[fmp.wrappers_pb2.RepeatedString] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___RepeatedRepeatedString = RepeatedRepeatedString +@typing.final class ChangeControlKey(google.protobuf.message.Message): """ChangeControlKey uniquely identifies a change control.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + ID_FIELD_NUMBER: builtins.int @property def id(self) -> google.protobuf.wrappers_pb2.StringValue: """id is the ID of the change control.""" - pass - def __init__(self, + + def __init__( + self, *, - id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["id",b"id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["id",b"id"]) -> None: ... + id: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["id", b"id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["id", b"id"]) -> None: ... + global___ChangeControlKey = ChangeControlKey +@typing.final class Action(google.protobuf.message.Message): """Action is an action to perform during the execution of a stage of a change control. Available actions can be fetched using the "action" services. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + NAME_FIELD_NUMBER: builtins.int TIMEOUT_FIELD_NUMBER: builtins.int ARGS_FIELD_NUMBER: builtins.int @property def name(self) -> google.protobuf.wrappers_pb2.StringValue: """name is the name of the action.""" - pass + @property def timeout(self) -> google.protobuf.wrappers_pb2.UInt32Value: """timeout is the maximum duration in seconds that @@ -183,38 +188,43 @@ class Action(google.protobuf.message.Message): is not set, then this is interpreted to mean there is no timeout. """ - pass + @property def args(self) -> fmp.wrappers_pb2.MapStringString: """args are the arguments of the action.""" - pass - def __init__(self, + + def __init__( + self, *, - name: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - timeout: typing.Optional[google.protobuf.wrappers_pb2.UInt32Value] = ..., - args: typing.Optional[fmp.wrappers_pb2.MapStringString] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["args",b"args","name",b"name","timeout",b"timeout"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["args",b"args","name",b"name","timeout",b"timeout"]) -> None: ... + name: google.protobuf.wrappers_pb2.StringValue | None = ..., + timeout: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + args: fmp.wrappers_pb2.MapStringString | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["args", b"args", "name", b"name", "timeout", b"timeout"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["args", b"args", "name", b"name", "timeout", b"timeout"]) -> None: ... + global___Action = Action +@typing.final class StageConfig(google.protobuf.message.Message): """StageConfig holds a configuration for a stage in a change control. Each stage generally defines either an action or a series of sub-stages. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + NAME_FIELD_NUMBER: builtins.int ACTION_FIELD_NUMBER: builtins.int ROWS_FIELD_NUMBER: builtins.int @property def name(self) -> google.protobuf.wrappers_pb2.StringValue: """name is the name of the stage.""" - pass + @property def action(self) -> global___Action: """action is the action to perform on stage execution.""" - pass + @property def rows(self) -> global___RepeatedRepeatedString: """rows is a series of rows of parallel stages referenced @@ -231,17 +241,20 @@ class StageConfig(google.protobuf.message.Message): same time, and then stage 2 once both of them have completed. """ - pass - def __init__(self, + + def __init__( + self, *, - name: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - action: typing.Optional[global___Action] = ..., - rows: typing.Optional[global___RepeatedRepeatedString] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["action",b"action","name",b"name","rows",b"rows"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["action",b"action","name",b"name","rows",b"rows"]) -> None: ... + name: google.protobuf.wrappers_pb2.StringValue | None = ..., + action: global___Action | None = ..., + rows: global___RepeatedRepeatedString | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["action", b"action", "name", b"name", "rows", b"rows"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["action", b"action", "name", b"name", "rows", b"rows"]) -> None: ... + global___StageConfig = StageConfig +@typing.final class StageConfigMap(google.protobuf.message.Message): """StageConfigMap wraps a map from stage ID to `StageConfig`. This defines the configuration and order of execution @@ -275,39 +288,49 @@ class StageConfigMap(google.protobuf.message.Message): That is, execute tasks `101` and `102` in parallel, then task `103`, then task `104`. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int - key: typing.Text + key: builtins.str @property def value(self) -> global___StageConfig: ... - def __init__(self, + def __init__( + self, *, - key: typing.Text = ..., - value: typing.Optional[global___StageConfig] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + key: builtins.str = ..., + value: global___StageConfig | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property - def values(self) -> google.protobuf.internal.containers.MessageMap[typing.Text, global___StageConfig]: + def values(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___StageConfig]: """values is a map from stage ID to `StageConfig`.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[typing.Text, global___StageConfig]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.str, global___StageConfig] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___StageConfigMap = StageConfigMap +@typing.final class ChangeConfig(google.protobuf.message.Message): """ChangeConfig holds a configuration for the change of a change control which is essentially a named configuration of stages. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + NAME_FIELD_NUMBER: builtins.int ROOT_STAGE_ID_FIELD_NUMBER: builtins.int STAGES_FIELD_NUMBER: builtins.int @@ -315,85 +338,100 @@ class ChangeConfig(google.protobuf.message.Message): @property def name(self) -> google.protobuf.wrappers_pb2.StringValue: """name is the name of the change.""" - pass + @property def root_stage_id(self) -> google.protobuf.wrappers_pb2.StringValue: """root_stage_id is the ID of the root stage or the stage that should execute first. """ - pass + @property def stages(self) -> global___StageConfigMap: """stages holds a configuration of stages. See `StageConfigMap` description for more information. """ - pass + @property def notes(self) -> google.protobuf.wrappers_pb2.StringValue: """notes are any notes associated with the change.""" - pass - def __init__(self, + + def __init__( + self, *, - name: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - root_stage_id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - stages: typing.Optional[global___StageConfigMap] = ..., - notes: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["name",b"name","notes",b"notes","root_stage_id",b"root_stage_id","stages",b"stages"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["name",b"name","notes",b"notes","root_stage_id",b"root_stage_id","stages",b"stages"]) -> None: ... + name: google.protobuf.wrappers_pb2.StringValue | None = ..., + root_stage_id: google.protobuf.wrappers_pb2.StringValue | None = ..., + stages: global___StageConfigMap | None = ..., + notes: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["name", b"name", "notes", b"notes", "root_stage_id", b"root_stage_id", "stages", b"stages"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["name", b"name", "notes", b"notes", "root_stage_id", b"root_stage_id", "stages", b"stages"]) -> None: ... + global___ChangeConfig = ChangeConfig +@typing.final class FlagConfig(google.protobuf.message.Message): """FlagConfig is used to set a flag on a change control that takes a boolean value (e.g. start/stop, approve/unapprove). """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int NOTES_FIELD_NUMBER: builtins.int @property def value(self) -> google.protobuf.wrappers_pb2.BoolValue: """value is the value of the flag (`true` or `false`).""" - pass + @property def notes(self) -> google.protobuf.wrappers_pb2.StringValue: """notes are any notes associated with the flag value.""" - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - notes: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["notes",b"notes","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["notes",b"notes","value",b"value"]) -> None: ... + value: google.protobuf.wrappers_pb2.BoolValue | None = ..., + notes: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["notes", b"notes", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["notes", b"notes", "value", b"value"]) -> None: ... + global___FlagConfig = FlagConfig +@typing.final class TimestampFlagConfig(google.protobuf.message.Message): """TimestampFlagConfig is used to set a flag on a change control that takes a timestamp value (e.g. schedule/unschedule). """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int NOTES_FIELD_NUMBER: builtins.int @property def value(self) -> google.protobuf.timestamp_pb2.Timestamp: """value is the value of the flag (some timestamp).""" - pass + @property def notes(self) -> google.protobuf.wrappers_pb2.StringValue: """notes are the notes associated with the flag value.""" - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - notes: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["notes",b"notes","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["notes",b"notes","value",b"value"]) -> None: ... + value: google.protobuf.timestamp_pb2.Timestamp | None = ..., + notes: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["notes", b"notes", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["notes", b"notes", "value", b"value"]) -> None: ... + global___TimestampFlagConfig = TimestampFlagConfig +@typing.final class ChangeControlConfig(google.protobuf.message.Message): """ChangeControlConfig holds the configuration of a change control.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int CHANGE_FIELD_NUMBER: builtins.int START_FIELD_NUMBER: builtins.int @@ -401,39 +439,44 @@ class ChangeControlConfig(google.protobuf.message.Message): @property def key(self) -> global___ChangeControlKey: """key uniquely identifies the change control.""" - pass + @property def change(self) -> global___ChangeConfig: """change is the change subject to execution.""" - pass + @property def start(self) -> global___FlagConfig: """start is the flag to start (`start.value` set to `true`) or stop (`start.value` set to `false`) execution of the change control. """ - pass + @property def schedule(self) -> global___TimestampFlagConfig: """schedule is the flag to schedule (`schedule.value` set to some timestamp) or unschedule (`schedule.value` set to `nil`) the change control for execution. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[global___ChangeControlKey] = ..., - change: typing.Optional[global___ChangeConfig] = ..., - start: typing.Optional[global___FlagConfig] = ..., - schedule: typing.Optional[global___TimestampFlagConfig] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["change",b"change","key",b"key","schedule",b"schedule","start",b"start"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["change",b"change","key",b"key","schedule",b"schedule","start",b"start"]) -> None: ... + key: global___ChangeControlKey | None = ..., + change: global___ChangeConfig | None = ..., + start: global___FlagConfig | None = ..., + schedule: global___TimestampFlagConfig | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["change", b"change", "key", b"key", "schedule", b"schedule", "start", b"start"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["change", b"change", "key", b"key", "schedule", b"schedule", "start", b"start"]) -> None: ... + global___ChangeControlConfig = ChangeControlConfig +@typing.final class Stage(google.protobuf.message.Message): """Stage holds the configuration and status of a stage.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + NAME_FIELD_NUMBER: builtins.int ACTION_FIELD_NUMBER: builtins.int ROWS_FIELD_NUMBER: builtins.int @@ -441,89 +484,101 @@ class Stage(google.protobuf.message.Message): ERROR_FIELD_NUMBER: builtins.int START_TIME_FIELD_NUMBER: builtins.int END_TIME_FIELD_NUMBER: builtins.int + status: global___StageStatus.ValueType + """status is the execution status of the stage.""" @property def name(self) -> google.protobuf.wrappers_pb2.StringValue: """name is the name of the stage.""" - pass + @property def action(self) -> global___Action: """action is the action to perform during the stage.""" - pass + @property def rows(self) -> global___RepeatedRepeatedString: """rows is a series of rows of parallel stages referenced by ID. See `StageConfig.rows` for more details. """ - pass - status: global___StageStatus.ValueType - """status is the execution status of the stage.""" @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """error is any error that occured during the execution of the stage. """ - pass + @property def start_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """start_time is the time when status change to Running""" - pass + @property def end_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """end_time is the time when status change to Completed""" - pass - def __init__(self, + + def __init__( + self, *, - name: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - action: typing.Optional[global___Action] = ..., - rows: typing.Optional[global___RepeatedRepeatedString] = ..., + name: google.protobuf.wrappers_pb2.StringValue | None = ..., + action: global___Action | None = ..., + rows: global___RepeatedRepeatedString | None = ..., status: global___StageStatus.ValueType = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - start_time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - end_time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["action",b"action","end_time",b"end_time","error",b"error","name",b"name","rows",b"rows","start_time",b"start_time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["action",b"action","end_time",b"end_time","error",b"error","name",b"name","rows",b"rows","start_time",b"start_time","status",b"status"]) -> None: ... + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + start_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + end_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["action", b"action", "end_time", b"end_time", "error", b"error", "name", b"name", "rows", b"rows", "start_time", b"start_time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["action", b"action", "end_time", b"end_time", "error", b"error", "name", b"name", "rows", b"rows", "start_time", b"start_time", "status", b"status"]) -> None: ... + global___Stage = Stage +@typing.final class StageMap(google.protobuf.message.Message): """StageMap is a map from stage ID to `Stage`. This has essentially the same structure as `StageConfigMap`, but with each ID mapping to a `Stage` instead of `StageConfig`. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int - key: typing.Text + key: builtins.str @property def value(self) -> global___Stage: ... - def __init__(self, + def __init__( + self, *, - key: typing.Text = ..., - value: typing.Optional[global___Stage] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + key: builtins.str = ..., + value: global___Stage | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property - def values(self) -> google.protobuf.internal.containers.MessageMap[typing.Text, global___Stage]: + def values(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___Stage]: """values is a map from stage ID to `Stage`.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[typing.Text, global___Stage]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.str, global___Stage] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___StageMap = StageMap +@typing.final class Change(google.protobuf.message.Message): """Change holds the configuration and status of the change of a change control. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + NAME_FIELD_NUMBER: builtins.int ROOT_STAGE_ID_FIELD_NUMBER: builtins.int STAGES_FIELD_NUMBER: builtins.int @@ -533,47 +588,52 @@ class Change(google.protobuf.message.Message): @property def name(self) -> google.protobuf.wrappers_pb2.StringValue: """name is the name of the change.""" - pass + @property def root_stage_id(self) -> google.protobuf.wrappers_pb2.StringValue: """root_stage_id is the ID of the root stage or the stage that should execute first. """ - pass + @property def stages(self) -> global___StageMap: """stages holds a configuration of stages and their statuses.""" - pass + @property def notes(self) -> google.protobuf.wrappers_pb2.StringValue: """notes are any notes associated with the change.""" - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """time is the time at which the change was last updated.""" - pass + @property def user(self) -> google.protobuf.wrappers_pb2.StringValue: """user is the user by which the change was last updated.""" - pass - def __init__(self, + + def __init__( + self, *, - name: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - root_stage_id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - stages: typing.Optional[global___StageMap] = ..., - notes: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - user: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["name",b"name","notes",b"notes","root_stage_id",b"root_stage_id","stages",b"stages","time",b"time","user",b"user"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["name",b"name","notes",b"notes","root_stage_id",b"root_stage_id","stages",b"stages","time",b"time","user",b"user"]) -> None: ... + name: google.protobuf.wrappers_pb2.StringValue | None = ..., + root_stage_id: google.protobuf.wrappers_pb2.StringValue | None = ..., + stages: global___StageMap | None = ..., + notes: google.protobuf.wrappers_pb2.StringValue | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + user: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["name", b"name", "notes", b"notes", "root_stage_id", b"root_stage_id", "stages", b"stages", "time", b"time", "user", b"user"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["name", b"name", "notes", b"notes", "root_stage_id", b"root_stage_id", "stages", b"stages", "time", b"time", "user", b"user"]) -> None: ... + global___Change = Change +@typing.final class Flag(google.protobuf.message.Message): """Flag holds the configuration of a boolean flag plus some information about when and by whom it was set. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int NOTES_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -581,35 +641,40 @@ class Flag(google.protobuf.message.Message): @property def value(self) -> google.protobuf.wrappers_pb2.BoolValue: """value is the value of the flag (`true` or `false`).""" - pass + @property def notes(self) -> google.protobuf.wrappers_pb2.StringValue: """notes are any notes associated with the setting of the flag.""" - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """time is the time at which the flag was last updated.""" - pass + @property def user(self) -> google.protobuf.wrappers_pb2.StringValue: """user is the user by which the flag was last updated.""" - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - notes: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - user: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["notes",b"notes","time",b"time","user",b"user","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["notes",b"notes","time",b"time","user",b"user","value",b"value"]) -> None: ... + value: google.protobuf.wrappers_pb2.BoolValue | None = ..., + notes: google.protobuf.wrappers_pb2.StringValue | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + user: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["notes", b"notes", "time", b"time", "user", b"user", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["notes", b"notes", "time", b"time", "user", b"user", "value", b"value"]) -> None: ... + global___Flag = Flag +@typing.final class TimestampFlag(google.protobuf.message.Message): """TimestampFlag holds the configuration of a timestamp flag plus some information about when and by whom is was set. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int NOTES_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -617,33 +682,38 @@ class TimestampFlag(google.protobuf.message.Message): @property def value(self) -> google.protobuf.timestamp_pb2.Timestamp: """value is the value of the flag (some timestamp).""" - pass + @property def notes(self) -> google.protobuf.wrappers_pb2.StringValue: """notes are any notes associated with the setting of the flag.""" - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """time is the time at which the flag was last updated.""" - pass + @property def user(self) -> google.protobuf.wrappers_pb2.StringValue: """user is the user by which the flag was last updated.""" - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - notes: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - user: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["notes",b"notes","time",b"time","user",b"user","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["notes",b"notes","time",b"time","user",b"user","value",b"value"]) -> None: ... + value: google.protobuf.timestamp_pb2.Timestamp | None = ..., + notes: google.protobuf.wrappers_pb2.StringValue | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + user: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["notes", b"notes", "time", b"time", "user", b"user", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["notes", b"notes", "time", b"time", "user", b"user", "value", b"value"]) -> None: ... + global___TimestampFlag = TimestampFlag +@typing.final class Filter(google.protobuf.message.Message): """Filter is used to filter changecontrols for requested device ids.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + DEVICE_IDS_FIELD_NUMBER: builtins.int @property def device_ids(self) -> fmp.wrappers_pb2.RepeatedString: @@ -651,50 +721,63 @@ class Filter(google.protobuf.message.Message): in the changecontrol state model. At least one of the provided device ids must be present in CC devices field. """ - pass - def __init__(self, + + def __init__( + self, *, - device_ids: typing.Optional[fmp.wrappers_pb2.RepeatedString] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["device_ids",b"device_ids"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["device_ids",b"device_ids"]) -> None: ... + device_ids: fmp.wrappers_pb2.RepeatedString | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["device_ids", b"device_ids"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["device_ids", b"device_ids"]) -> None: ... + global___Filter = Filter +@typing.final class DeviceToStageMap(google.protobuf.message.Message): """DeviceToStageMap is a map of a device ID and its list of corresponding stages.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int - key: typing.Text + key: builtins.str @property def value(self) -> fmp.wrappers_pb2.RepeatedString: ... - def __init__(self, + def __init__( + self, *, - key: typing.Text = ..., - value: typing.Optional[fmp.wrappers_pb2.RepeatedString] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + key: builtins.str = ..., + value: fmp.wrappers_pb2.RepeatedString | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property - def values(self) -> google.protobuf.internal.containers.MessageMap[typing.Text, fmp.wrappers_pb2.RepeatedString]: + def values(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, fmp.wrappers_pb2.RepeatedString]: """values maps the device ID with the stages which are associated with a device in a changecontrol state model. """ - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[typing.Text, fmp.wrappers_pb2.RepeatedString]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.str, fmp.wrappers_pb2.RepeatedString] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___DeviceToStageMap = DeviceToStageMap +@typing.final class ChangeControl(google.protobuf.message.Message): """ChangeControl holds the configuration and status of a change control.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int CHANGE_FIELD_NUMBER: builtins.int APPROVE_FIELD_NUMBER: builtins.int @@ -704,50 +787,49 @@ class ChangeControl(google.protobuf.message.Message): SCHEDULE_FIELD_NUMBER: builtins.int DEVICE_IDS_FIELD_NUMBER: builtins.int DEVICE_ID_TO_STAGE_IDS_FIELD_NUMBER: builtins.int + status: global___ChangeControlStatus.ValueType + """status is the execution status of the change control.""" @property def key(self) -> global___ChangeControlKey: """key uniquely identifies the change control.""" - pass + @property def change(self) -> global___Change: """change holds the configuration and status of the change of the change control. """ - pass + @property def approve(self) -> global___Flag: """approve indicates whether the change control was flagged as approved (`approve.value` set to `true`) or unapproved (`approve.value` set to `false`). """ - pass + @property def start(self) -> global___Flag: """start indicates whether the change control was flagged to start (`start.value` set to `true`) or stop (`start.value` set to `false`) execution. """ - pass - status: global___ChangeControlStatus.ValueType - """status is the execution status of the change control.""" @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """error is any error that occurred during the execution of the change control. """ - pass + @property def schedule(self) -> global___TimestampFlag: """schedule indicates whether the change control was flagged to be scheduled (`schedule.value` set to some timestamp) or unscheduled (`schedule.value` set to `nil`) for execution. """ - pass + @property def device_ids(self) -> fmp.wrappers_pb2.RepeatedString: """device_ids is a list of device IDs on which the change control will operate.""" - pass + @property def device_id_to_stage_ids(self) -> global___DeviceToStageMap: """device_id_to_stage_ids is a map of device IDs to the stages present in the @@ -755,39 +837,44 @@ class ChangeControl(google.protobuf.message.Message): This is not affected by the device ID based custom filtering and will contain info about all the devices associated with a CC ID. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[global___ChangeControlKey] = ..., - change: typing.Optional[global___Change] = ..., - approve: typing.Optional[global___Flag] = ..., - start: typing.Optional[global___Flag] = ..., + key: global___ChangeControlKey | None = ..., + change: global___Change | None = ..., + approve: global___Flag | None = ..., + start: global___Flag | None = ..., status: global___ChangeControlStatus.ValueType = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - schedule: typing.Optional[global___TimestampFlag] = ..., - device_ids: typing.Optional[fmp.wrappers_pb2.RepeatedString] = ..., - device_id_to_stage_ids: typing.Optional[global___DeviceToStageMap] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["approve",b"approve","change",b"change","device_id_to_stage_ids",b"device_id_to_stage_ids","device_ids",b"device_ids","error",b"error","key",b"key","schedule",b"schedule","start",b"start"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["approve",b"approve","change",b"change","device_id_to_stage_ids",b"device_id_to_stage_ids","device_ids",b"device_ids","error",b"error","key",b"key","schedule",b"schedule","start",b"start","status",b"status"]) -> None: ... + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + schedule: global___TimestampFlag | None = ..., + device_ids: fmp.wrappers_pb2.RepeatedString | None = ..., + device_id_to_stage_ids: global___DeviceToStageMap | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["approve", b"approve", "change", b"change", "device_id_to_stage_ids", b"device_id_to_stage_ids", "device_ids", b"device_ids", "error", b"error", "key", b"key", "schedule", b"schedule", "start", b"start"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["approve", b"approve", "change", b"change", "device_id_to_stage_ids", b"device_id_to_stage_ids", "device_ids", b"device_ids", "error", b"error", "key", b"key", "schedule", b"schedule", "start", b"start", "status", b"status"]) -> None: ... + global___ChangeControl = ChangeControl +@typing.final class ApproveConfig(google.protobuf.message.Message): """ApproveConfig is used to configure the approval of a change control.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int APPROVE_FIELD_NUMBER: builtins.int VERSION_FIELD_NUMBER: builtins.int @property def key(self) -> global___ChangeControlKey: """key uniquely identifies the change control.""" - pass + @property def approve(self) -> global___FlagConfig: """approve is the flag to approve (`approve.value` set to `true`) or unapprove (`approve.value` set to `false`) the change control. """ - pass + @property def version(self) -> google.protobuf.timestamp_pb2.Timestamp: """version is the timestamp of the change control to approve. @@ -795,13 +882,15 @@ class ApproveConfig(google.protobuf.message.Message): and is intended to safeguard against approving a change control that has been updated since last read. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[global___ChangeControlKey] = ..., - approve: typing.Optional[global___FlagConfig] = ..., - version: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["approve",b"approve","key",b"key","version",b"version"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["approve",b"approve","key",b"key","version",b"version"]) -> None: ... + key: global___ChangeControlKey | None = ..., + approve: global___FlagConfig | None = ..., + version: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["approve", b"approve", "key", b"key", "version", b"version"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["approve", b"approve", "key", b"key", "version", b"version"]) -> None: ... + global___ApproveConfig = ApproveConfig diff --git a/arista/changecontrol/v1/services/gen_pb2.pyi b/arista/changecontrol/v1/services/gen_pb2.pyi index 852f45d..7c53a21 100644 --- a/arista/changecontrol/v1/services/gen_pb2.pyi +++ b/arista/changecontrol/v1/services/gen_pb2.pyi @@ -1,11 +1,15 @@ """ @generated by mypy-protobuf. Do not edit manually! isort:skip_file + +Code generated by boomtown. DO NOT EDIT. """ + import arista.changecontrol.v1.changecontrol_pb2 import arista.subscriptions.subscriptions_pb2 import arista.time.time_pb2 import builtins +import collections.abc import fmp.deletes_pb2 import google.protobuf.descriptor import google.protobuf.internal.containers @@ -13,42 +17,46 @@ import google.protobuf.message import google.protobuf.timestamp_pb2 import google.protobuf.wrappers_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class MetaResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int COUNT_FIELD_NUMBER: builtins.int - @property - def time(self) -> google.protobuf.timestamp_pb2.Timestamp: - """Time holds the timestamp of the last item included in the metadata calculation.""" - pass type: arista.subscriptions.subscriptions_pb2.Operation.ValueType """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. """ + @property + def time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """Time holds the timestamp of the last item included in the metadata calculation.""" @property def count(self) -> google.protobuf.wrappers_pb2.UInt32Value: """Count is the number of items present under the conditions of the request.""" - pass - def __init__(self, + + def __init__( + self, *, - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - count: typing.Optional[google.protobuf.wrappers_pb2.UInt32Value] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["count",b"count","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["count",b"count","time",b"time","type",b"type"]) -> None: ... + count: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["count", b"count", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["count", b"count", "time", b"time", "type", b"type"]) -> None: ... + global___MetaResponse = MetaResponse +@typing.final class ApproveConfigRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -56,24 +64,28 @@ class ApproveConfigRequest(google.protobuf.message.Message): """Key uniquely identifies a ApproveConfig instance to retrieve. This value must be populated. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the time for which you are interested in the data. If no time is given, the server will use the time at which it makes the request. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.changecontrol.v1.changecontrol_pb2.ChangeControlKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.changecontrol.v1.changecontrol_pb2.ChangeControlKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___ApproveConfigRequest = ApproveConfigRequest +@typing.final class ApproveConfigResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -83,24 +95,28 @@ class ApproveConfigResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time carries the (UTC) timestamp of the last-modification of the ApproveConfig instance in this response. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.changecontrol.v1.changecontrol_pb2.ApproveConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.changecontrol.v1.changecontrol_pb2.ApproveConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___ApproveConfigResponse = ApproveConfigResponse +@typing.final class ApproveConfigSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -110,18 +126,22 @@ class ApproveConfigSomeRequest(google.protobuf.message.Message): """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. """ - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.changecontrol.v1.changecontrol_pb2.ChangeControlKey]] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys","time",b"time"]) -> None: ... + keys: collections.abc.Iterable[arista.changecontrol.v1.changecontrol_pb2.ChangeControlKey] | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys", "time", b"time"]) -> None: ... + global___ApproveConfigSomeRequest = ApproveConfigSomeRequest +@typing.final class ApproveConfigSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -132,27 +152,31 @@ class ApproveConfigSomeResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """Error is an optional field. It should be filled when there is an error in the GetSome process. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.changecontrol.v1.changecontrol_pb2.ApproveConfig] = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> None: ... + value: arista.changecontrol.v1.changecontrol_pb2.ApproveConfig | None = ..., + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> None: ... + global___ApproveConfigSomeResponse = ApproveConfigSomeResponse +@typing.final class ApproveConfigStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -163,7 +187,7 @@ class ApproveConfigStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -182,51 +206,58 @@ class ApproveConfigStreamRequest(google.protobuf.message.Message): This field is not allowed in the Subscribe RPC. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.changecontrol.v1.changecontrol_pb2.ApproveConfig]] = ..., - time: typing.Optional[arista.time.time_pb2.TimeBounds] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.changecontrol.v1.changecontrol_pb2.ApproveConfig] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___ApproveConfigStreamRequest = ApproveConfigStreamRequest +@typing.final class ApproveConfigStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int + type: arista.subscriptions.subscriptions_pb2.Operation.ValueType + """Operation indicates how the ApproveConfig 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. + """ @property def value(self) -> arista.changecontrol.v1.changecontrol_pb2.ApproveConfig: """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. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time holds the timestamp of this ApproveConfig's last modification.""" - pass - type: arista.subscriptions.subscriptions_pb2.Operation.ValueType - """Operation indicates how the ApproveConfig 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. - """ - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.changecontrol.v1.changecontrol_pb2.ApproveConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + value: arista.changecontrol.v1.changecontrol_pb2.ApproveConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "type", b"type", "value", b"value"]) -> None: ... + global___ApproveConfigStreamResponse = ApproveConfigStreamResponse +@typing.final class ApproveConfigBatchedStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int MAX_MESSAGES_FIELD_NUMBER: builtins.int @@ -238,7 +269,7 @@ class ApproveConfigBatchedStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -257,7 +288,7 @@ class ApproveConfigBatchedStreamRequest(google.protobuf.message.Message): 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. @@ -265,19 +296,23 @@ class ApproveConfigBatchedStreamRequest(google.protobuf.message.Message): 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, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.changecontrol.v1.changecontrol_pb2.ApproveConfig]] = ..., - 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","partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.changecontrol.v1.changecontrol_pb2.ApproveConfig] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + max_messages: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["max_messages", b"max_messages", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["max_messages", b"max_messages", "partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___ApproveConfigBatchedStreamRequest = ApproveConfigBatchedStreamRequest +@typing.final class ApproveConfigBatchedStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + RESPONSES_FIELD_NUMBER: builtins.int @property def responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ApproveConfigStreamResponse]: @@ -285,33 +320,41 @@ class ApproveConfigBatchedStreamResponse(google.protobuf.message.Message): The length of this structure is guaranteed to be between (inclusive) 1 and min(req.max_messages, INTERNAL_BATCH_LIMIT). """ - pass - def __init__(self, + + def __init__( + self, *, - responses: typing.Optional[typing.Iterable[global___ApproveConfigStreamResponse]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["responses",b"responses"]) -> None: ... + responses: collections.abc.Iterable[global___ApproveConfigStreamResponse] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["responses", b"responses"]) -> None: ... + global___ApproveConfigBatchedStreamResponse = ApproveConfigBatchedStreamResponse +@typing.final class ApproveConfigSetRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int @property def value(self) -> arista.changecontrol.v1.changecontrol_pb2.ApproveConfig: """ApproveConfig carries the value to set into the datastore. See the documentation on the ApproveConfig struct for which fields are required. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.changecontrol.v1.changecontrol_pb2.ApproveConfig] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["value",b"value"]) -> None: ... + value: arista.changecontrol.v1.changecontrol_pb2.ApproveConfig | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["value", b"value"]) -> None: ... + global___ApproveConfigSetRequest = ApproveConfigSetRequest +@typing.final class ApproveConfigSetResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -319,7 +362,7 @@ class ApproveConfigSetResponse(google.protobuf.message.Message): """Value carries all the values given in the ApproveConfigSetRequest as well as any server-generated values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp at which the system recognizes the @@ -328,18 +371,22 @@ class ApproveConfigSetResponse(google.protobuf.message.Message): - it is after the time the request was received - a time-ranged query with StartTime==CreatedAt will include this instance. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.changecontrol.v1.changecontrol_pb2.ApproveConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.changecontrol.v1.changecontrol_pb2.ApproveConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___ApproveConfigSetResponse = ApproveConfigSetResponse +@typing.final class ApproveConfigSetSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.changecontrol.v1.changecontrol_pb2.ApproveConfig]: @@ -350,55 +397,67 @@ class ApproveConfigSetSomeRequest(google.protobuf.message.Message): If this error occurs you must reduce the number of values sent. See gRPC "maximum message size" documentation for more information. """ - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[arista.changecontrol.v1.changecontrol_pb2.ApproveConfig]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[arista.changecontrol.v1.changecontrol_pb2.ApproveConfig] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___ApproveConfigSetSomeRequest = ApproveConfigSetSomeRequest +@typing.final class ApproveConfigSetSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int + error: builtins.str @property def key(self) -> arista.changecontrol.v1.changecontrol_pb2.ChangeControlKey: ... - error: typing.Text - def __init__(self, + def __init__( + self, *, - key: typing.Optional[arista.changecontrol.v1.changecontrol_pb2.ChangeControlKey] = ..., - error: typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key"]) -> None: ... + key: arista.changecontrol.v1.changecontrol_pb2.ChangeControlKey | None = ..., + error: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key"]) -> None: ... + global___ApproveConfigSetSomeResponse = ApproveConfigSetSomeResponse +@typing.final class ApproveConfigDeleteRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int @property def key(self) -> arista.changecontrol.v1.changecontrol_pb2.ChangeControlKey: """Key indicates which ApproveConfig instance to remove. This field must always be set. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.changecontrol.v1.changecontrol_pb2.ChangeControlKey] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key"]) -> None: ... + key: arista.changecontrol.v1.changecontrol_pb2.ChangeControlKey | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key"]) -> None: ... + global___ApproveConfigDeleteRequest = ApproveConfigDeleteRequest +@typing.final class ApproveConfigDeleteResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property def key(self) -> arista.changecontrol.v1.changecontrol_pb2.ChangeControlKey: """Key echoes back the key of the deleted ApproveConfig instance.""" - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp at which the system recognizes the @@ -407,49 +466,62 @@ class ApproveConfigDeleteResponse(google.protobuf.message.Message): - it is after the time the request was received - a time-ranged query with StartTime==DeletedAt will not include this instance. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.changecontrol.v1.changecontrol_pb2.ChangeControlKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.changecontrol.v1.changecontrol_pb2.ChangeControlKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___ApproveConfigDeleteResponse = ApproveConfigDeleteResponse +@typing.final class ApproveConfigDeleteSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int @property def keys(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.changecontrol.v1.changecontrol_pb2.ChangeControlKey]: """key contains a list of ApproveConfig keys to delete""" - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.changecontrol.v1.changecontrol_pb2.ChangeControlKey]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys"]) -> None: ... + keys: collections.abc.Iterable[arista.changecontrol.v1.changecontrol_pb2.ChangeControlKey] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys"]) -> None: ... + global___ApproveConfigDeleteSomeRequest = ApproveConfigDeleteSomeRequest +@typing.final class ApproveConfigDeleteSomeResponse(google.protobuf.message.Message): """ApproveConfigDeleteSomeResponse is only sent when there is an error.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int + error: builtins.str @property def key(self) -> arista.changecontrol.v1.changecontrol_pb2.ChangeControlKey: ... - error: typing.Text - def __init__(self, + def __init__( + self, *, - key: typing.Optional[arista.changecontrol.v1.changecontrol_pb2.ChangeControlKey] = ..., - error: typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key"]) -> None: ... + key: arista.changecontrol.v1.changecontrol_pb2.ChangeControlKey | None = ..., + error: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key"]) -> None: ... + global___ApproveConfigDeleteSomeResponse = ApproveConfigDeleteSomeResponse +@typing.final class ApproveConfigDeleteAllRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int @property def partial_eq_filter(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.changecontrol.v1.changecontrol_pb2.ApproveConfig]: @@ -457,16 +529,20 @@ class ApproveConfigDeleteAllRequest(google.protobuf.message.Message): This requires all provided fields to be equal to the response. A filtered DeleteAll will use GetAll with filter to find things to delete. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.changecontrol.v1.changecontrol_pb2.ApproveConfig]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.changecontrol.v1.changecontrol_pb2.ApproveConfig] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter"]) -> None: ... + global___ApproveConfigDeleteAllRequest = ApproveConfigDeleteAllRequest +@typing.final class ApproveConfigDeleteAllResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TYPE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int KEY_FIELD_NUMBER: builtins.int @@ -475,32 +551,35 @@ class ApproveConfigDeleteAllResponse(google.protobuf.message.Message): """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: """This indicates the error message from the delete failure.""" - pass + @property def key(self) -> arista.changecontrol.v1.changecontrol_pb2.ChangeControlKey: """This is the key of the ApproveConfig instance that failed to be deleted.""" - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp when the key was being deleted.""" - pass - def __init__(self, + + def __init__( + self, *, type: fmp.deletes_pb2.DeleteError.ValueType = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - key: typing.Optional[arista.changecontrol.v1.changecontrol_pb2.ChangeControlKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key","time",b"time","type",b"type"]) -> None: ... + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + key: arista.changecontrol.v1.changecontrol_pb2.ChangeControlKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key", "time", b"time", "type", b"type"]) -> None: ... + global___ApproveConfigDeleteAllResponse = ApproveConfigDeleteAllResponse +@typing.final class ChangeControlRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -508,24 +587,28 @@ class ChangeControlRequest(google.protobuf.message.Message): """Key uniquely identifies a ChangeControl instance to retrieve. This value must be populated. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the time for which you are interested in the data. If no time is given, the server will use the time at which it makes the request. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.changecontrol.v1.changecontrol_pb2.ChangeControlKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.changecontrol.v1.changecontrol_pb2.ChangeControlKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___ChangeControlRequest = ChangeControlRequest +@typing.final class ChangeControlResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -535,24 +618,28 @@ class ChangeControlResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time carries the (UTC) timestamp of the last-modification of the ChangeControl instance in this response. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.changecontrol.v1.changecontrol_pb2.ChangeControl] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.changecontrol.v1.changecontrol_pb2.ChangeControl | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___ChangeControlResponse = ChangeControlResponse +@typing.final class ChangeControlSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -562,18 +649,22 @@ class ChangeControlSomeRequest(google.protobuf.message.Message): """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. """ - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.changecontrol.v1.changecontrol_pb2.ChangeControlKey]] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys","time",b"time"]) -> None: ... + keys: collections.abc.Iterable[arista.changecontrol.v1.changecontrol_pb2.ChangeControlKey] | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys", "time", b"time"]) -> None: ... + global___ChangeControlSomeRequest = ChangeControlSomeRequest +@typing.final class ChangeControlSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -584,27 +675,31 @@ class ChangeControlSomeResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """Error is an optional field. It should be filled when there is an error in the GetSome process. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.changecontrol.v1.changecontrol_pb2.ChangeControl] = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> None: ... + value: arista.changecontrol.v1.changecontrol_pb2.ChangeControl | None = ..., + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> None: ... + global___ChangeControlSomeResponse = ChangeControlSomeResponse +@typing.final class ChangeControlStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -616,14 +711,14 @@ class ChangeControlStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def filter(self) -> arista.changecontrol.v1.changecontrol_pb2.Filter: """For each ChangeControl in the list, all populated fields are considered ANDed together as a filtering operation. Similarly, the list itself is ORed such that any individual filter that matches a given ChangeControl is streamed to the user. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -642,52 +737,59 @@ class ChangeControlStreamRequest(google.protobuf.message.Message): This field is not allowed in the Subscribe RPC. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.changecontrol.v1.changecontrol_pb2.ChangeControl]] = ..., - filter: typing.Optional[arista.changecontrol.v1.changecontrol_pb2.Filter] = ..., - time: typing.Optional[arista.time.time_pb2.TimeBounds] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["filter",b"filter","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["filter",b"filter","partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.changecontrol.v1.changecontrol_pb2.ChangeControl] | None = ..., + filter: arista.changecontrol.v1.changecontrol_pb2.Filter | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["filter", b"filter", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["filter", b"filter", "partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___ChangeControlStreamRequest = ChangeControlStreamRequest +@typing.final class ChangeControlStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int + type: arista.subscriptions.subscriptions_pb2.Operation.ValueType + """Operation indicates how the ChangeControl 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. + """ @property def value(self) -> arista.changecontrol.v1.changecontrol_pb2.ChangeControl: """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. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time holds the timestamp of this ChangeControl's last modification.""" - pass - type: arista.subscriptions.subscriptions_pb2.Operation.ValueType - """Operation indicates how the ChangeControl 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. - """ - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.changecontrol.v1.changecontrol_pb2.ChangeControl] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + value: arista.changecontrol.v1.changecontrol_pb2.ChangeControl | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "type", b"type", "value", b"value"]) -> None: ... + global___ChangeControlStreamResponse = ChangeControlStreamResponse +@typing.final class ChangeControlBatchedStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -700,14 +802,14 @@ class ChangeControlBatchedStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def filter(self) -> arista.changecontrol.v1.changecontrol_pb2.Filter: """For each ChangeControl in the list, all populated fields are considered ANDed together as a filtering operation. Similarly, the list itself is ORed such that any individual filter that matches a given ChangeControl is streamed to the user. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -726,7 +828,7 @@ class ChangeControlBatchedStreamRequest(google.protobuf.message.Message): 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. @@ -734,20 +836,24 @@ class ChangeControlBatchedStreamRequest(google.protobuf.message.Message): 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, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.changecontrol.v1.changecontrol_pb2.ChangeControl]] = ..., - filter: typing.Optional[arista.changecontrol.v1.changecontrol_pb2.Filter] = ..., - 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["filter",b"filter","max_messages",b"max_messages","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["filter",b"filter","max_messages",b"max_messages","partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.changecontrol.v1.changecontrol_pb2.ChangeControl] | None = ..., + filter: arista.changecontrol.v1.changecontrol_pb2.Filter | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + max_messages: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["filter", b"filter", "max_messages", b"max_messages", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["filter", b"filter", "max_messages", b"max_messages", "partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___ChangeControlBatchedStreamRequest = ChangeControlBatchedStreamRequest +@typing.final class ChangeControlBatchedStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + RESPONSES_FIELD_NUMBER: builtins.int @property def responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ChangeControlStreamResponse]: @@ -755,16 +861,20 @@ class ChangeControlBatchedStreamResponse(google.protobuf.message.Message): The length of this structure is guaranteed to be between (inclusive) 1 and min(req.max_messages, INTERNAL_BATCH_LIMIT). """ - pass - def __init__(self, + + def __init__( + self, *, - responses: typing.Optional[typing.Iterable[global___ChangeControlStreamResponse]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["responses",b"responses"]) -> None: ... + responses: collections.abc.Iterable[global___ChangeControlStreamResponse] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["responses", b"responses"]) -> None: ... + global___ChangeControlBatchedStreamResponse = ChangeControlBatchedStreamResponse +@typing.final class ChangeControlConfigRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -772,24 +882,28 @@ class ChangeControlConfigRequest(google.protobuf.message.Message): """Key uniquely identifies a ChangeControlConfig instance to retrieve. This value must be populated. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the time for which you are interested in the data. If no time is given, the server will use the time at which it makes the request. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.changecontrol.v1.changecontrol_pb2.ChangeControlKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.changecontrol.v1.changecontrol_pb2.ChangeControlKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___ChangeControlConfigRequest = ChangeControlConfigRequest +@typing.final class ChangeControlConfigResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -799,24 +913,28 @@ class ChangeControlConfigResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time carries the (UTC) timestamp of the last-modification of the ChangeControlConfig instance in this response. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.changecontrol.v1.changecontrol_pb2.ChangeControlConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.changecontrol.v1.changecontrol_pb2.ChangeControlConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___ChangeControlConfigResponse = ChangeControlConfigResponse +@typing.final class ChangeControlConfigSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -826,18 +944,22 @@ class ChangeControlConfigSomeRequest(google.protobuf.message.Message): """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. """ - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.changecontrol.v1.changecontrol_pb2.ChangeControlKey]] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys","time",b"time"]) -> None: ... + keys: collections.abc.Iterable[arista.changecontrol.v1.changecontrol_pb2.ChangeControlKey] | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys", "time", b"time"]) -> None: ... + global___ChangeControlConfigSomeRequest = ChangeControlConfigSomeRequest +@typing.final class ChangeControlConfigSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -848,27 +970,31 @@ class ChangeControlConfigSomeResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """Error is an optional field. It should be filled when there is an error in the GetSome process. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.changecontrol.v1.changecontrol_pb2.ChangeControlConfig] = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> None: ... + value: arista.changecontrol.v1.changecontrol_pb2.ChangeControlConfig | None = ..., + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> None: ... + global___ChangeControlConfigSomeResponse = ChangeControlConfigSomeResponse +@typing.final class ChangeControlConfigStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -879,7 +1005,7 @@ class ChangeControlConfigStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -898,51 +1024,58 @@ class ChangeControlConfigStreamRequest(google.protobuf.message.Message): This field is not allowed in the Subscribe RPC. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.changecontrol.v1.changecontrol_pb2.ChangeControlConfig]] = ..., - time: typing.Optional[arista.time.time_pb2.TimeBounds] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.changecontrol.v1.changecontrol_pb2.ChangeControlConfig] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___ChangeControlConfigStreamRequest = ChangeControlConfigStreamRequest +@typing.final class ChangeControlConfigStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int + type: arista.subscriptions.subscriptions_pb2.Operation.ValueType + """Operation indicates how the ChangeControlConfig 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. + """ @property def value(self) -> arista.changecontrol.v1.changecontrol_pb2.ChangeControlConfig: """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. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time holds the timestamp of this ChangeControlConfig's last modification.""" - pass - type: arista.subscriptions.subscriptions_pb2.Operation.ValueType - """Operation indicates how the ChangeControlConfig 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. - """ - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.changecontrol.v1.changecontrol_pb2.ChangeControlConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + value: arista.changecontrol.v1.changecontrol_pb2.ChangeControlConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "type", b"type", "value", b"value"]) -> None: ... + global___ChangeControlConfigStreamResponse = ChangeControlConfigStreamResponse +@typing.final class ChangeControlConfigBatchedStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int MAX_MESSAGES_FIELD_NUMBER: builtins.int @@ -954,7 +1087,7 @@ class ChangeControlConfigBatchedStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -973,7 +1106,7 @@ class ChangeControlConfigBatchedStreamRequest(google.protobuf.message.Message): 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. @@ -981,19 +1114,23 @@ class ChangeControlConfigBatchedStreamRequest(google.protobuf.message.Message): 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, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.changecontrol.v1.changecontrol_pb2.ChangeControlConfig]] = ..., - 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","partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.changecontrol.v1.changecontrol_pb2.ChangeControlConfig] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + max_messages: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["max_messages", b"max_messages", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["max_messages", b"max_messages", "partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___ChangeControlConfigBatchedStreamRequest = ChangeControlConfigBatchedStreamRequest +@typing.final class ChangeControlConfigBatchedStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + RESPONSES_FIELD_NUMBER: builtins.int @property def responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ChangeControlConfigStreamResponse]: @@ -1001,33 +1138,41 @@ class ChangeControlConfigBatchedStreamResponse(google.protobuf.message.Message): The length of this structure is guaranteed to be between (inclusive) 1 and min(req.max_messages, INTERNAL_BATCH_LIMIT). """ - pass - def __init__(self, + + def __init__( + self, *, - responses: typing.Optional[typing.Iterable[global___ChangeControlConfigStreamResponse]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["responses",b"responses"]) -> None: ... + responses: collections.abc.Iterable[global___ChangeControlConfigStreamResponse] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["responses", b"responses"]) -> None: ... + global___ChangeControlConfigBatchedStreamResponse = ChangeControlConfigBatchedStreamResponse +@typing.final class ChangeControlConfigSetRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int @property def value(self) -> arista.changecontrol.v1.changecontrol_pb2.ChangeControlConfig: """ChangeControlConfig carries the value to set into the datastore. See the documentation on the ChangeControlConfig struct for which fields are required. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.changecontrol.v1.changecontrol_pb2.ChangeControlConfig] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["value",b"value"]) -> None: ... + value: arista.changecontrol.v1.changecontrol_pb2.ChangeControlConfig | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["value", b"value"]) -> None: ... + global___ChangeControlConfigSetRequest = ChangeControlConfigSetRequest +@typing.final class ChangeControlConfigSetResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -1035,7 +1180,7 @@ class ChangeControlConfigSetResponse(google.protobuf.message.Message): """Value carries all the values given in the ChangeControlConfigSetRequest as well as any server-generated values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp at which the system recognizes the @@ -1044,18 +1189,22 @@ class ChangeControlConfigSetResponse(google.protobuf.message.Message): - it is after the time the request was received - a time-ranged query with StartTime==CreatedAt will include this instance. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.changecontrol.v1.changecontrol_pb2.ChangeControlConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.changecontrol.v1.changecontrol_pb2.ChangeControlConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___ChangeControlConfigSetResponse = ChangeControlConfigSetResponse +@typing.final class ChangeControlConfigSetSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.changecontrol.v1.changecontrol_pb2.ChangeControlConfig]: @@ -1066,55 +1215,67 @@ class ChangeControlConfigSetSomeRequest(google.protobuf.message.Message): If this error occurs you must reduce the number of values sent. See gRPC "maximum message size" documentation for more information. """ - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[arista.changecontrol.v1.changecontrol_pb2.ChangeControlConfig]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[arista.changecontrol.v1.changecontrol_pb2.ChangeControlConfig] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___ChangeControlConfigSetSomeRequest = ChangeControlConfigSetSomeRequest +@typing.final class ChangeControlConfigSetSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int + error: builtins.str @property def key(self) -> arista.changecontrol.v1.changecontrol_pb2.ChangeControlKey: ... - error: typing.Text - def __init__(self, + def __init__( + self, *, - key: typing.Optional[arista.changecontrol.v1.changecontrol_pb2.ChangeControlKey] = ..., - error: typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key"]) -> None: ... + key: arista.changecontrol.v1.changecontrol_pb2.ChangeControlKey | None = ..., + error: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key"]) -> None: ... + global___ChangeControlConfigSetSomeResponse = ChangeControlConfigSetSomeResponse +@typing.final class ChangeControlConfigDeleteRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int @property def key(self) -> arista.changecontrol.v1.changecontrol_pb2.ChangeControlKey: """Key indicates which ChangeControlConfig instance to remove. This field must always be set. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.changecontrol.v1.changecontrol_pb2.ChangeControlKey] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key"]) -> None: ... + key: arista.changecontrol.v1.changecontrol_pb2.ChangeControlKey | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key"]) -> None: ... + global___ChangeControlConfigDeleteRequest = ChangeControlConfigDeleteRequest +@typing.final class ChangeControlConfigDeleteResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property def key(self) -> arista.changecontrol.v1.changecontrol_pb2.ChangeControlKey: """Key echoes back the key of the deleted ChangeControlConfig instance.""" - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp at which the system recognizes the @@ -1123,49 +1284,62 @@ class ChangeControlConfigDeleteResponse(google.protobuf.message.Message): - it is after the time the request was received - a time-ranged query with StartTime==DeletedAt will not include this instance. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.changecontrol.v1.changecontrol_pb2.ChangeControlKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.changecontrol.v1.changecontrol_pb2.ChangeControlKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___ChangeControlConfigDeleteResponse = ChangeControlConfigDeleteResponse +@typing.final class ChangeControlConfigDeleteSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int @property def keys(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.changecontrol.v1.changecontrol_pb2.ChangeControlKey]: """key contains a list of ChangeControlConfig keys to delete""" - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.changecontrol.v1.changecontrol_pb2.ChangeControlKey]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys"]) -> None: ... + keys: collections.abc.Iterable[arista.changecontrol.v1.changecontrol_pb2.ChangeControlKey] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys"]) -> None: ... + global___ChangeControlConfigDeleteSomeRequest = ChangeControlConfigDeleteSomeRequest +@typing.final class ChangeControlConfigDeleteSomeResponse(google.protobuf.message.Message): """ChangeControlConfigDeleteSomeResponse is only sent when there is an error.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int + error: builtins.str @property def key(self) -> arista.changecontrol.v1.changecontrol_pb2.ChangeControlKey: ... - error: typing.Text - def __init__(self, + def __init__( + self, *, - key: typing.Optional[arista.changecontrol.v1.changecontrol_pb2.ChangeControlKey] = ..., - error: typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key"]) -> None: ... + key: arista.changecontrol.v1.changecontrol_pb2.ChangeControlKey | None = ..., + error: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key"]) -> None: ... + global___ChangeControlConfigDeleteSomeResponse = ChangeControlConfigDeleteSomeResponse +@typing.final class ChangeControlConfigDeleteAllRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int @property def partial_eq_filter(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.changecontrol.v1.changecontrol_pb2.ChangeControlConfig]: @@ -1173,16 +1347,20 @@ class ChangeControlConfigDeleteAllRequest(google.protobuf.message.Message): This requires all provided fields to be equal to the response. A filtered DeleteAll will use GetAll with filter to find things to delete. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.changecontrol.v1.changecontrol_pb2.ChangeControlConfig]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.changecontrol.v1.changecontrol_pb2.ChangeControlConfig] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter"]) -> None: ... + global___ChangeControlConfigDeleteAllRequest = ChangeControlConfigDeleteAllRequest +@typing.final class ChangeControlConfigDeleteAllResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TYPE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int KEY_FIELD_NUMBER: builtins.int @@ -1191,26 +1369,27 @@ class ChangeControlConfigDeleteAllResponse(google.protobuf.message.Message): """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: """This indicates the error message from the delete failure.""" - pass + @property def key(self) -> arista.changecontrol.v1.changecontrol_pb2.ChangeControlKey: """This is the key of the ChangeControlConfig instance that failed to be deleted.""" - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp when the key was being deleted.""" - pass - def __init__(self, + + def __init__( + self, *, type: fmp.deletes_pb2.DeleteError.ValueType = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - key: typing.Optional[arista.changecontrol.v1.changecontrol_pb2.ChangeControlKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key","time",b"time","type",b"type"]) -> None: ... + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + key: arista.changecontrol.v1.changecontrol_pb2.ChangeControlKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key", "time", b"time", "type", b"type"]) -> None: ... + global___ChangeControlConfigDeleteAllResponse = ChangeControlConfigDeleteAllResponse diff --git a/arista/configlet/v1/configlet_pb2.pyi b/arista/configlet/v1/configlet_pb2.pyi index ae3dbed..63aeac2 100644 --- a/arista/configlet/v1/configlet_pb2.pyi +++ b/arista/configlet/v1/configlet_pb2.pyi @@ -1,7 +1,11 @@ """ @generated by mypy-protobuf. Do not edit manually! isort:skip_file +Copyright (c) 2023 Arista Networks, Inc. All rights reserved. +Use of this source code is governed by the Apache License 2.0 +that can be found in the COPYING file. """ + import builtins import fmp.wrappers_pb2 import google.protobuf.descriptor @@ -9,20 +13,25 @@ import google.protobuf.internal.enum_type_wrapper import google.protobuf.message import google.protobuf.timestamp_pb2 import google.protobuf.wrappers_pb2 +import sys import typing -import typing_extensions + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor class _MatchPolicy: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _MatchPolicyEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_MatchPolicy.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor MATCH_POLICY_UNSPECIFIED: _MatchPolicy.ValueType # 0 MATCH_POLICY_MATCH_FIRST: _MatchPolicy.ValueType # 1 """MATCH_POLICY_MATCH_FIRST dictates that matching devices are used only for the first match amongst its children""" - MATCH_POLICY_MATCH_ALL: _MatchPolicy.ValueType # 2 """MATCH_POLICY_MATCH_ALL dictates that matching devices are used across all children""" @@ -30,21 +39,20 @@ class MatchPolicy(_MatchPolicy, metaclass=_MatchPolicyEnumTypeWrapper): """MatchPolicy specifies how the tag query of a configlet assignment should be used to resolve devices for its children """ - pass MATCH_POLICY_UNSPECIFIED: MatchPolicy.ValueType # 0 MATCH_POLICY_MATCH_FIRST: MatchPolicy.ValueType # 1 """MATCH_POLICY_MATCH_FIRST dictates that matching devices are used only for the first match amongst its children""" - MATCH_POLICY_MATCH_ALL: MatchPolicy.ValueType # 2 """MATCH_POLICY_MATCH_ALL dictates that matching devices are used across all children""" - global___MatchPolicy = MatchPolicy - +@typing.final class ConfigletKey(google.protobuf.message.Message): """ConfigletKey uniquely identifies a static configlet.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + WORKSPACE_ID_FIELD_NUMBER: builtins.int CONFIGLET_ID_FIELD_NUMBER: builtins.int @property @@ -52,42 +60,52 @@ class ConfigletKey(google.protobuf.message.Message): """workspace_id identifies the workspace within which the static configlet resides empty string ("") stands for the "mainline". """ - pass + @property def configlet_id(self) -> google.protobuf.wrappers_pb2.StringValue: """configlet_id is the static configlet ID.""" - pass - def __init__(self, + + def __init__( + self, *, - workspace_id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - configlet_id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["configlet_id",b"configlet_id","workspace_id",b"workspace_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["configlet_id",b"configlet_id","workspace_id",b"workspace_id"]) -> None: ... + workspace_id: google.protobuf.wrappers_pb2.StringValue | None = ..., + configlet_id: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["configlet_id", b"configlet_id", "workspace_id", b"workspace_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["configlet_id", b"configlet_id", "workspace_id", b"workspace_id"]) -> None: ... + global___ConfigletKey = ConfigletKey +@typing.final class Filter(google.protobuf.message.Message): """Filter is used to filter static configlets.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + INCLUDE_BODY_FIELD_NUMBER: builtins.int @property def include_body(self) -> google.protobuf.wrappers_pb2.BoolValue: """include_body specifies the static configlet body is to be included.""" - pass - def __init__(self, + + def __init__( + self, *, - include_body: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["include_body",b"include_body"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["include_body",b"include_body"]) -> None: ... + include_body: google.protobuf.wrappers_pb2.BoolValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["include_body", b"include_body"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["include_body", b"include_body"]) -> None: ... + global___Filter = Filter +@typing.final class Configlet(google.protobuf.message.Message): """Configlet is the state of a static configlet in a workspace or mainline. Subscribe and GetAll do not return the "body" Use GetOne to get the body of individual configlets """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int DISPLAY_NAME_FIELD_NUMBER: builtins.int DESCRIPTION_FIELD_NUMBER: builtins.int @@ -104,66 +122,71 @@ class Configlet(google.protobuf.message.Message): @property def display_name(self) -> google.protobuf.wrappers_pb2.StringValue: """display_name is the display name of the static configlet.""" - pass + @property def description(self) -> google.protobuf.wrappers_pb2.StringValue: """description is the description of the static configlet.""" - pass + @property def migrated_from(self) -> google.protobuf.wrappers_pb2.StringValue: """migrated_from is populated with the source configlet name when migrated from network provisioning to studio. """ - pass + @property def body(self) -> google.protobuf.wrappers_pb2.StringValue: """body is the static configlet body.""" - pass + @property def created_at(self) -> google.protobuf.timestamp_pb2.Timestamp: """created_at is the time when the Configlet was created.""" - pass + @property def created_by(self) -> google.protobuf.wrappers_pb2.StringValue: """created_by is the user who created the Configlet.""" - pass + @property def last_modified_at(self) -> google.protobuf.timestamp_pb2.Timestamp: """last_modified_at is the time when the Configlet was last modified.""" - pass + @property def last_modified_by(self) -> google.protobuf.wrappers_pb2.StringValue: """last_modified_by is the user who last modified the Configlet.""" - pass + @property def digest(self) -> google.protobuf.wrappers_pb2.StringValue: """digest is the sha256 hash of the configlet body encoded in hexadecimal.""" - pass + @property def size(self) -> google.protobuf.wrappers_pb2.Int64Value: """size of configlet body in bytes.""" - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[global___ConfigletKey] = ..., - display_name: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - description: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - migrated_from: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - body: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - created_at: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - created_by: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - last_modified_at: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - last_modified_by: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - digest: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - size: typing.Optional[google.protobuf.wrappers_pb2.Int64Value] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["body",b"body","created_at",b"created_at","created_by",b"created_by","description",b"description","digest",b"digest","display_name",b"display_name","key",b"key","last_modified_at",b"last_modified_at","last_modified_by",b"last_modified_by","migrated_from",b"migrated_from","size",b"size"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["body",b"body","created_at",b"created_at","created_by",b"created_by","description",b"description","digest",b"digest","display_name",b"display_name","key",b"key","last_modified_at",b"last_modified_at","last_modified_by",b"last_modified_by","migrated_from",b"migrated_from","size",b"size"]) -> None: ... + key: global___ConfigletKey | None = ..., + display_name: google.protobuf.wrappers_pb2.StringValue | None = ..., + description: google.protobuf.wrappers_pb2.StringValue | None = ..., + migrated_from: google.protobuf.wrappers_pb2.StringValue | None = ..., + body: google.protobuf.wrappers_pb2.StringValue | None = ..., + created_at: google.protobuf.timestamp_pb2.Timestamp | None = ..., + created_by: google.protobuf.wrappers_pb2.StringValue | None = ..., + last_modified_at: google.protobuf.timestamp_pb2.Timestamp | None = ..., + last_modified_by: google.protobuf.wrappers_pb2.StringValue | None = ..., + digest: google.protobuf.wrappers_pb2.StringValue | None = ..., + size: google.protobuf.wrappers_pb2.Int64Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["body", b"body", "created_at", b"created_at", "created_by", b"created_by", "description", b"description", "digest", b"digest", "display_name", b"display_name", "key", b"key", "last_modified_at", b"last_modified_at", "last_modified_by", b"last_modified_by", "migrated_from", b"migrated_from", "size", b"size"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["body", b"body", "created_at", b"created_at", "created_by", b"created_by", "description", b"description", "digest", b"digest", "display_name", b"display_name", "key", b"key", "last_modified_at", b"last_modified_at", "last_modified_by", b"last_modified_by", "migrated_from", b"migrated_from", "size", b"size"]) -> None: ... + global___Configlet = Configlet +@typing.final class ConfigletConfig(google.protobuf.message.Message): """ConfigletConfig updates a static configlet in a workspace.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int REMOVE_FIELD_NUMBER: builtins.int DISPLAY_NAME_FIELD_NUMBER: builtins.int @@ -177,60 +200,68 @@ class ConfigletConfig(google.protobuf.message.Message): """remove specifies the static configlet is to be removed from the workspace. Other data fields are not allowed when this field is set to true. """ - pass + @property def display_name(self) -> google.protobuf.wrappers_pb2.StringValue: """display_name is the display name of the static configlet.""" - pass + @property def description(self) -> google.protobuf.wrappers_pb2.StringValue: """description is the description of the static configlet.""" - pass + @property def migrated_from(self) -> google.protobuf.wrappers_pb2.StringValue: """migrated_from is populated with the source configlet name when migrated from network provisioning to studio. """ - pass + @property def body(self) -> google.protobuf.wrappers_pb2.StringValue: """body is the static configlet body.""" - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[global___ConfigletKey] = ..., - remove: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - display_name: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - description: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - migrated_from: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - body: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["body",b"body","description",b"description","display_name",b"display_name","key",b"key","migrated_from",b"migrated_from","remove",b"remove"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["body",b"body","description",b"description","display_name",b"display_name","key",b"key","migrated_from",b"migrated_from","remove",b"remove"]) -> None: ... + key: global___ConfigletKey | None = ..., + remove: google.protobuf.wrappers_pb2.BoolValue | None = ..., + display_name: google.protobuf.wrappers_pb2.StringValue | None = ..., + description: google.protobuf.wrappers_pb2.StringValue | None = ..., + migrated_from: google.protobuf.wrappers_pb2.StringValue | None = ..., + body: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["body", b"body", "description", b"description", "display_name", b"display_name", "key", b"key", "migrated_from", b"migrated_from", "remove", b"remove"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["body", b"body", "description", b"description", "display_name", b"display_name", "key", b"key", "migrated_from", b"migrated_from", "remove", b"remove"]) -> None: ... + global___ConfigletConfig = ConfigletConfig +@typing.final class ConfigletAssignmentKey(google.protobuf.message.Message): """ConfigletAssignmentKey uniquely identifies a configlet assignment""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + WORKSPACE_ID_FIELD_NUMBER: builtins.int CONFIGLET_ASSIGNMENT_ID_FIELD_NUMBER: builtins.int @property def workspace_id(self) -> google.protobuf.wrappers_pb2.StringValue: """workspace_id is the unique identifier of the workspace.""" - pass + @property def configlet_assignment_id(self) -> google.protobuf.wrappers_pb2.StringValue: """configlet_assignment_id is the unique identifier of the configlet_assignment.""" - pass - def __init__(self, + + def __init__( + self, *, - workspace_id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - configlet_assignment_id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["configlet_assignment_id",b"configlet_assignment_id","workspace_id",b"workspace_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["configlet_assignment_id",b"configlet_assignment_id","workspace_id",b"workspace_id"]) -> None: ... + workspace_id: google.protobuf.wrappers_pb2.StringValue | None = ..., + configlet_assignment_id: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["configlet_assignment_id", b"configlet_assignment_id", "workspace_id", b"workspace_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["configlet_assignment_id", b"configlet_assignment_id", "workspace_id", b"workspace_id"]) -> None: ... + global___ConfigletAssignmentKey = ConfigletAssignmentKey +@typing.final class ConfigletAssignmentConfig(google.protobuf.message.Message): """ConfigletAssignmentConfig are the the inputs to the static configlet studio. Each assignment assigns a list of configlets to the devices matching the tag query. @@ -244,7 +275,9 @@ class ConfigletAssignmentConfig(google.protobuf.message.Message): are skipped. 2) Match policy determines how the assignment's devices get divied up amongst its children. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int DISPLAY_NAME_FIELD_NUMBER: builtins.int DESCRIPTION_FIELD_NUMBER: builtins.int @@ -253,6 +286,8 @@ class ConfigletAssignmentConfig(google.protobuf.message.Message): REMOVE_FIELD_NUMBER: builtins.int MATCH_POLICY_FIELD_NUMBER: builtins.int CHILD_ASSIGNMENT_IDS_FIELD_NUMBER: builtins.int + match_policy: global___MatchPolicy.ValueType + """match_policy is the discriminator for the query field""" @property def key(self) -> global___ConfigletAssignmentKey: ... @property @@ -262,7 +297,7 @@ class ConfigletAssignmentConfig(google.protobuf.message.Message): @property def configlet_ids(self) -> fmp.wrappers_pb2.RepeatedString: """configlet_ids is the list of configlets to be assigned""" - pass + @property def query(self) -> google.protobuf.wrappers_pb2.StringValue: """query is a tag query string that conforms to the CloudVision @@ -272,7 +307,7 @@ class ConfigletAssignmentConfig(google.protobuf.message.Message): malformed queries result in an error tags not matching devices are ignored """ - pass + @property def remove(self) -> google.protobuf.wrappers_pb2.BoolValue: """remove indicates whether to remove (`true`) or add (`false`, @@ -280,32 +315,34 @@ class ConfigletAssignmentConfig(google.protobuf.message.Message): by the key if the encompassing workspace merges. Other data fields are not allowed if this field is set to true. """ - pass - match_policy: global___MatchPolicy.ValueType - """match_policy is the discriminator for the query field""" @property def child_assignment_ids(self) -> fmp.wrappers_pb2.RepeatedString: """list of child assignments""" - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[global___ConfigletAssignmentKey] = ..., - display_name: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - description: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - configlet_ids: typing.Optional[fmp.wrappers_pb2.RepeatedString] = ..., - query: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - remove: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., + key: global___ConfigletAssignmentKey | None = ..., + display_name: google.protobuf.wrappers_pb2.StringValue | None = ..., + description: google.protobuf.wrappers_pb2.StringValue | None = ..., + configlet_ids: fmp.wrappers_pb2.RepeatedString | None = ..., + query: google.protobuf.wrappers_pb2.StringValue | None = ..., + remove: google.protobuf.wrappers_pb2.BoolValue | None = ..., match_policy: global___MatchPolicy.ValueType = ..., - child_assignment_ids: typing.Optional[fmp.wrappers_pb2.RepeatedString] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["child_assignment_ids",b"child_assignment_ids","configlet_ids",b"configlet_ids","description",b"description","display_name",b"display_name","key",b"key","query",b"query","remove",b"remove"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["child_assignment_ids",b"child_assignment_ids","configlet_ids",b"configlet_ids","description",b"description","display_name",b"display_name","key",b"key","match_policy",b"match_policy","query",b"query","remove",b"remove"]) -> None: ... + child_assignment_ids: fmp.wrappers_pb2.RepeatedString | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["child_assignment_ids", b"child_assignment_ids", "configlet_ids", b"configlet_ids", "description", b"description", "display_name", b"display_name", "key", b"key", "query", b"query", "remove", b"remove"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["child_assignment_ids", b"child_assignment_ids", "configlet_ids", b"configlet_ids", "description", b"description", "display_name", b"display_name", "key", b"key", "match_policy", b"match_policy", "query", b"query", "remove", b"remove"]) -> None: ... + global___ConfigletAssignmentConfig = ConfigletAssignmentConfig +@typing.final class ConfigletAssignment(google.protobuf.message.Message): """ConfigletAssignment is the state of this assignment in a workspace/mainline""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int DISPLAY_NAME_FIELD_NUMBER: builtins.int DESCRIPTION_FIELD_NUMBER: builtins.int @@ -317,6 +354,8 @@ class ConfigletAssignment(google.protobuf.message.Message): CREATED_BY_FIELD_NUMBER: builtins.int LAST_MODIFIED_AT_FIELD_NUMBER: builtins.int LAST_MODIFIED_BY_FIELD_NUMBER: builtins.int + match_policy: global___MatchPolicy.ValueType + """match_policy is the discriminator for the query field""" @property def key(self) -> global___ConfigletAssignmentKey: ... @property @@ -326,50 +365,49 @@ class ConfigletAssignment(google.protobuf.message.Message): @property def configlet_ids(self) -> fmp.wrappers_pb2.RepeatedString: """configlet_ids is the list of configlets which are assigned""" - pass + @property def query(self) -> google.protobuf.wrappers_pb2.StringValue: """query represents the tag query assigned""" - pass - match_policy: global___MatchPolicy.ValueType - """match_policy is the discriminator for the query field""" @property def child_assignment_ids(self) -> fmp.wrappers_pb2.RepeatedString: """list of child assignments""" - pass + @property def created_at(self) -> google.protobuf.timestamp_pb2.Timestamp: """created_at is the time when the ConfigletAssignment was created.""" - pass + @property def created_by(self) -> google.protobuf.wrappers_pb2.StringValue: """created_by is the user who created the ConfigletAssignment.""" - pass + @property def last_modified_at(self) -> google.protobuf.timestamp_pb2.Timestamp: """last_modified_at is the time when the ConfigletAssignment was last modified. """ - pass + @property def last_modified_by(self) -> google.protobuf.wrappers_pb2.StringValue: """last_modified_by is the user who last modified the ConfigletAssignment.""" - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[global___ConfigletAssignmentKey] = ..., - display_name: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - description: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - configlet_ids: typing.Optional[fmp.wrappers_pb2.RepeatedString] = ..., - query: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., + key: global___ConfigletAssignmentKey | None = ..., + display_name: google.protobuf.wrappers_pb2.StringValue | None = ..., + description: google.protobuf.wrappers_pb2.StringValue | None = ..., + configlet_ids: fmp.wrappers_pb2.RepeatedString | None = ..., + query: google.protobuf.wrappers_pb2.StringValue | None = ..., match_policy: global___MatchPolicy.ValueType = ..., - child_assignment_ids: typing.Optional[fmp.wrappers_pb2.RepeatedString] = ..., - created_at: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - created_by: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - last_modified_at: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - last_modified_by: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["child_assignment_ids",b"child_assignment_ids","configlet_ids",b"configlet_ids","created_at",b"created_at","created_by",b"created_by","description",b"description","display_name",b"display_name","key",b"key","last_modified_at",b"last_modified_at","last_modified_by",b"last_modified_by","query",b"query"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["child_assignment_ids",b"child_assignment_ids","configlet_ids",b"configlet_ids","created_at",b"created_at","created_by",b"created_by","description",b"description","display_name",b"display_name","key",b"key","last_modified_at",b"last_modified_at","last_modified_by",b"last_modified_by","match_policy",b"match_policy","query",b"query"]) -> None: ... + child_assignment_ids: fmp.wrappers_pb2.RepeatedString | None = ..., + created_at: google.protobuf.timestamp_pb2.Timestamp | None = ..., + created_by: google.protobuf.wrappers_pb2.StringValue | None = ..., + last_modified_at: google.protobuf.timestamp_pb2.Timestamp | None = ..., + last_modified_by: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["child_assignment_ids", b"child_assignment_ids", "configlet_ids", b"configlet_ids", "created_at", b"created_at", "created_by", b"created_by", "description", b"description", "display_name", b"display_name", "key", b"key", "last_modified_at", b"last_modified_at", "last_modified_by", b"last_modified_by", "query", b"query"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["child_assignment_ids", b"child_assignment_ids", "configlet_ids", b"configlet_ids", "created_at", b"created_at", "created_by", b"created_by", "description", b"description", "display_name", b"display_name", "key", b"key", "last_modified_at", b"last_modified_at", "last_modified_by", b"last_modified_by", "match_policy", b"match_policy", "query", b"query"]) -> None: ... + global___ConfigletAssignment = ConfigletAssignment diff --git a/arista/configlet/v1/services/gen_pb2.pyi b/arista/configlet/v1/services/gen_pb2.pyi index c34f0c2..525ecb0 100644 --- a/arista/configlet/v1/services/gen_pb2.pyi +++ b/arista/configlet/v1/services/gen_pb2.pyi @@ -1,11 +1,15 @@ """ @generated by mypy-protobuf. Do not edit manually! isort:skip_file + +Code generated by boomtown. DO NOT EDIT. """ + import arista.configlet.v1.configlet_pb2 import arista.subscriptions.subscriptions_pb2 import arista.time.time_pb2 import builtins +import collections.abc import fmp.deletes_pb2 import google.protobuf.descriptor import google.protobuf.internal.containers @@ -13,42 +17,46 @@ import google.protobuf.message import google.protobuf.timestamp_pb2 import google.protobuf.wrappers_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class MetaResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int COUNT_FIELD_NUMBER: builtins.int - @property - def time(self) -> google.protobuf.timestamp_pb2.Timestamp: - """Time holds the timestamp of the last item included in the metadata calculation.""" - pass type: arista.subscriptions.subscriptions_pb2.Operation.ValueType """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. """ + @property + def time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """Time holds the timestamp of the last item included in the metadata calculation.""" @property def count(self) -> google.protobuf.wrappers_pb2.UInt32Value: """Count is the number of items present under the conditions of the request.""" - pass - def __init__(self, + + def __init__( + self, *, - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - count: typing.Optional[google.protobuf.wrappers_pb2.UInt32Value] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["count",b"count","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["count",b"count","time",b"time","type",b"type"]) -> None: ... + count: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["count", b"count", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["count", b"count", "time", b"time", "type", b"type"]) -> None: ... + global___MetaResponse = MetaResponse +@typing.final class ConfigletRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -56,24 +64,28 @@ class ConfigletRequest(google.protobuf.message.Message): """Key uniquely identifies a Configlet instance to retrieve. This value must be populated. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the time for which you are interested in the data. If no time is given, the server will use the time at which it makes the request. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.configlet.v1.configlet_pb2.ConfigletKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.configlet.v1.configlet_pb2.ConfigletKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___ConfigletRequest = ConfigletRequest +@typing.final class ConfigletResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -83,24 +95,28 @@ class ConfigletResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time carries the (UTC) timestamp of the last-modification of the Configlet instance in this response. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.configlet.v1.configlet_pb2.Configlet] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.configlet.v1.configlet_pb2.Configlet | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___ConfigletResponse = ConfigletResponse +@typing.final class ConfigletSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -110,18 +126,22 @@ class ConfigletSomeRequest(google.protobuf.message.Message): """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. """ - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.configlet.v1.configlet_pb2.ConfigletKey]] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys","time",b"time"]) -> None: ... + keys: collections.abc.Iterable[arista.configlet.v1.configlet_pb2.ConfigletKey] | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys", "time", b"time"]) -> None: ... + global___ConfigletSomeRequest = ConfigletSomeRequest +@typing.final class ConfigletSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -132,27 +152,31 @@ class ConfigletSomeResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """Error is an optional field. It should be filled when there is an error in the GetSome process. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.configlet.v1.configlet_pb2.Configlet] = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> None: ... + value: arista.configlet.v1.configlet_pb2.Configlet | None = ..., + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> None: ... + global___ConfigletSomeResponse = ConfigletSomeResponse +@typing.final class ConfigletStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -164,14 +188,14 @@ class ConfigletStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def filter(self) -> arista.configlet.v1.configlet_pb2.Filter: """For each Configlet in the list, all populated fields are considered ANDed together as a filtering operation. Similarly, the list itself is ORed such that any individual filter that matches a given Configlet is streamed to the user. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -190,52 +214,59 @@ class ConfigletStreamRequest(google.protobuf.message.Message): This field is not allowed in the Subscribe RPC. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.configlet.v1.configlet_pb2.Configlet]] = ..., - filter: typing.Optional[arista.configlet.v1.configlet_pb2.Filter] = ..., - time: typing.Optional[arista.time.time_pb2.TimeBounds] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["filter",b"filter","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["filter",b"filter","partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.configlet.v1.configlet_pb2.Configlet] | None = ..., + filter: arista.configlet.v1.configlet_pb2.Filter | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["filter", b"filter", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["filter", b"filter", "partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___ConfigletStreamRequest = ConfigletStreamRequest +@typing.final class ConfigletStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int + type: arista.subscriptions.subscriptions_pb2.Operation.ValueType + """Operation indicates how the Configlet 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. + """ @property def value(self) -> arista.configlet.v1.configlet_pb2.Configlet: """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. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time holds the timestamp of this Configlet's last modification.""" - pass - type: arista.subscriptions.subscriptions_pb2.Operation.ValueType - """Operation indicates how the Configlet 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. - """ - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.configlet.v1.configlet_pb2.Configlet] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + value: arista.configlet.v1.configlet_pb2.Configlet | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "type", b"type", "value", b"value"]) -> None: ... + global___ConfigletStreamResponse = ConfigletStreamResponse +@typing.final class ConfigletBatchedStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -248,14 +279,14 @@ class ConfigletBatchedStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def filter(self) -> arista.configlet.v1.configlet_pb2.Filter: """For each Configlet in the list, all populated fields are considered ANDed together as a filtering operation. Similarly, the list itself is ORed such that any individual filter that matches a given Configlet is streamed to the user. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -274,7 +305,7 @@ class ConfigletBatchedStreamRequest(google.protobuf.message.Message): 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. @@ -282,20 +313,24 @@ class ConfigletBatchedStreamRequest(google.protobuf.message.Message): 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, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.configlet.v1.configlet_pb2.Configlet]] = ..., - filter: typing.Optional[arista.configlet.v1.configlet_pb2.Filter] = ..., - 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["filter",b"filter","max_messages",b"max_messages","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["filter",b"filter","max_messages",b"max_messages","partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.configlet.v1.configlet_pb2.Configlet] | None = ..., + filter: arista.configlet.v1.configlet_pb2.Filter | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + max_messages: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["filter", b"filter", "max_messages", b"max_messages", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["filter", b"filter", "max_messages", b"max_messages", "partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___ConfigletBatchedStreamRequest = ConfigletBatchedStreamRequest +@typing.final class ConfigletBatchedStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + RESPONSES_FIELD_NUMBER: builtins.int @property def responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ConfigletStreamResponse]: @@ -303,16 +338,20 @@ class ConfigletBatchedStreamResponse(google.protobuf.message.Message): The length of this structure is guaranteed to be between (inclusive) 1 and min(req.max_messages, INTERNAL_BATCH_LIMIT). """ - pass - def __init__(self, + + def __init__( + self, *, - responses: typing.Optional[typing.Iterable[global___ConfigletStreamResponse]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["responses",b"responses"]) -> None: ... + responses: collections.abc.Iterable[global___ConfigletStreamResponse] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["responses", b"responses"]) -> None: ... + global___ConfigletBatchedStreamResponse = ConfigletBatchedStreamResponse +@typing.final class ConfigletAssignmentRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -320,24 +359,28 @@ class ConfigletAssignmentRequest(google.protobuf.message.Message): """Key uniquely identifies a ConfigletAssignment instance to retrieve. This value must be populated. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the time for which you are interested in the data. If no time is given, the server will use the time at which it makes the request. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.configlet.v1.configlet_pb2.ConfigletAssignmentKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.configlet.v1.configlet_pb2.ConfigletAssignmentKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___ConfigletAssignmentRequest = ConfigletAssignmentRequest +@typing.final class ConfigletAssignmentResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -347,24 +390,28 @@ class ConfigletAssignmentResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time carries the (UTC) timestamp of the last-modification of the ConfigletAssignment instance in this response. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.configlet.v1.configlet_pb2.ConfigletAssignment] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.configlet.v1.configlet_pb2.ConfigletAssignment | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___ConfigletAssignmentResponse = ConfigletAssignmentResponse +@typing.final class ConfigletAssignmentSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -374,18 +421,22 @@ class ConfigletAssignmentSomeRequest(google.protobuf.message.Message): """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. """ - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.configlet.v1.configlet_pb2.ConfigletAssignmentKey]] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys","time",b"time"]) -> None: ... + keys: collections.abc.Iterable[arista.configlet.v1.configlet_pb2.ConfigletAssignmentKey] | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys", "time", b"time"]) -> None: ... + global___ConfigletAssignmentSomeRequest = ConfigletAssignmentSomeRequest +@typing.final class ConfigletAssignmentSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -396,27 +447,31 @@ class ConfigletAssignmentSomeResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """Error is an optional field. It should be filled when there is an error in the GetSome process. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.configlet.v1.configlet_pb2.ConfigletAssignment] = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> None: ... + value: arista.configlet.v1.configlet_pb2.ConfigletAssignment | None = ..., + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> None: ... + global___ConfigletAssignmentSomeResponse = ConfigletAssignmentSomeResponse +@typing.final class ConfigletAssignmentStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -427,7 +482,7 @@ class ConfigletAssignmentStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -446,51 +501,58 @@ class ConfigletAssignmentStreamRequest(google.protobuf.message.Message): This field is not allowed in the Subscribe RPC. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.configlet.v1.configlet_pb2.ConfigletAssignment]] = ..., - time: typing.Optional[arista.time.time_pb2.TimeBounds] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.configlet.v1.configlet_pb2.ConfigletAssignment] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___ConfigletAssignmentStreamRequest = ConfigletAssignmentStreamRequest +@typing.final class ConfigletAssignmentStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int + type: arista.subscriptions.subscriptions_pb2.Operation.ValueType + """Operation indicates how the ConfigletAssignment 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. + """ @property def value(self) -> arista.configlet.v1.configlet_pb2.ConfigletAssignment: """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. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time holds the timestamp of this ConfigletAssignment's last modification.""" - pass - type: arista.subscriptions.subscriptions_pb2.Operation.ValueType - """Operation indicates how the ConfigletAssignment 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. - """ - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.configlet.v1.configlet_pb2.ConfigletAssignment] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + value: arista.configlet.v1.configlet_pb2.ConfigletAssignment | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "type", b"type", "value", b"value"]) -> None: ... + global___ConfigletAssignmentStreamResponse = ConfigletAssignmentStreamResponse +@typing.final class ConfigletAssignmentBatchedStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int MAX_MESSAGES_FIELD_NUMBER: builtins.int @@ -502,7 +564,7 @@ class ConfigletAssignmentBatchedStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -521,7 +583,7 @@ class ConfigletAssignmentBatchedStreamRequest(google.protobuf.message.Message): 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. @@ -529,19 +591,23 @@ class ConfigletAssignmentBatchedStreamRequest(google.protobuf.message.Message): 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, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.configlet.v1.configlet_pb2.ConfigletAssignment]] = ..., - 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","partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.configlet.v1.configlet_pb2.ConfigletAssignment] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + max_messages: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["max_messages", b"max_messages", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["max_messages", b"max_messages", "partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___ConfigletAssignmentBatchedStreamRequest = ConfigletAssignmentBatchedStreamRequest +@typing.final class ConfigletAssignmentBatchedStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + RESPONSES_FIELD_NUMBER: builtins.int @property def responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ConfigletAssignmentStreamResponse]: @@ -549,16 +615,20 @@ class ConfigletAssignmentBatchedStreamResponse(google.protobuf.message.Message): The length of this structure is guaranteed to be between (inclusive) 1 and min(req.max_messages, INTERNAL_BATCH_LIMIT). """ - pass - def __init__(self, + + def __init__( + self, *, - responses: typing.Optional[typing.Iterable[global___ConfigletAssignmentStreamResponse]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["responses",b"responses"]) -> None: ... + responses: collections.abc.Iterable[global___ConfigletAssignmentStreamResponse] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["responses", b"responses"]) -> None: ... + global___ConfigletAssignmentBatchedStreamResponse = ConfigletAssignmentBatchedStreamResponse +@typing.final class ConfigletAssignmentConfigRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -566,24 +636,28 @@ class ConfigletAssignmentConfigRequest(google.protobuf.message.Message): """Key uniquely identifies a ConfigletAssignmentConfig instance to retrieve. This value must be populated. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the time for which you are interested in the data. If no time is given, the server will use the time at which it makes the request. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.configlet.v1.configlet_pb2.ConfigletAssignmentKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.configlet.v1.configlet_pb2.ConfigletAssignmentKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___ConfigletAssignmentConfigRequest = ConfigletAssignmentConfigRequest +@typing.final class ConfigletAssignmentConfigResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -593,24 +667,28 @@ class ConfigletAssignmentConfigResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time carries the (UTC) timestamp of the last-modification of the ConfigletAssignmentConfig instance in this response. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.configlet.v1.configlet_pb2.ConfigletAssignmentConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.configlet.v1.configlet_pb2.ConfigletAssignmentConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___ConfigletAssignmentConfigResponse = ConfigletAssignmentConfigResponse +@typing.final class ConfigletAssignmentConfigSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -620,18 +698,22 @@ class ConfigletAssignmentConfigSomeRequest(google.protobuf.message.Message): """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. """ - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.configlet.v1.configlet_pb2.ConfigletAssignmentKey]] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys","time",b"time"]) -> None: ... + keys: collections.abc.Iterable[arista.configlet.v1.configlet_pb2.ConfigletAssignmentKey] | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys", "time", b"time"]) -> None: ... + global___ConfigletAssignmentConfigSomeRequest = ConfigletAssignmentConfigSomeRequest +@typing.final class ConfigletAssignmentConfigSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -642,27 +724,31 @@ class ConfigletAssignmentConfigSomeResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """Error is an optional field. It should be filled when there is an error in the GetSome process. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.configlet.v1.configlet_pb2.ConfigletAssignmentConfig] = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> None: ... + value: arista.configlet.v1.configlet_pb2.ConfigletAssignmentConfig | None = ..., + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> None: ... + global___ConfigletAssignmentConfigSomeResponse = ConfigletAssignmentConfigSomeResponse +@typing.final class ConfigletAssignmentConfigStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -673,7 +759,7 @@ class ConfigletAssignmentConfigStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -692,51 +778,58 @@ class ConfigletAssignmentConfigStreamRequest(google.protobuf.message.Message): This field is not allowed in the Subscribe RPC. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.configlet.v1.configlet_pb2.ConfigletAssignmentConfig]] = ..., - time: typing.Optional[arista.time.time_pb2.TimeBounds] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.configlet.v1.configlet_pb2.ConfigletAssignmentConfig] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___ConfigletAssignmentConfigStreamRequest = ConfigletAssignmentConfigStreamRequest +@typing.final class ConfigletAssignmentConfigStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int + type: arista.subscriptions.subscriptions_pb2.Operation.ValueType + """Operation indicates how the ConfigletAssignmentConfig 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. + """ @property def value(self) -> arista.configlet.v1.configlet_pb2.ConfigletAssignmentConfig: """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. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time holds the timestamp of this ConfigletAssignmentConfig's last modification.""" - pass - type: arista.subscriptions.subscriptions_pb2.Operation.ValueType - """Operation indicates how the ConfigletAssignmentConfig 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. - """ - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.configlet.v1.configlet_pb2.ConfigletAssignmentConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + value: arista.configlet.v1.configlet_pb2.ConfigletAssignmentConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "type", b"type", "value", b"value"]) -> None: ... + global___ConfigletAssignmentConfigStreamResponse = ConfigletAssignmentConfigStreamResponse +@typing.final class ConfigletAssignmentConfigBatchedStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int MAX_MESSAGES_FIELD_NUMBER: builtins.int @@ -748,7 +841,7 @@ class ConfigletAssignmentConfigBatchedStreamRequest(google.protobuf.message.Mess While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -767,7 +860,7 @@ class ConfigletAssignmentConfigBatchedStreamRequest(google.protobuf.message.Mess 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. @@ -775,19 +868,23 @@ class ConfigletAssignmentConfigBatchedStreamRequest(google.protobuf.message.Mess 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, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.configlet.v1.configlet_pb2.ConfigletAssignmentConfig]] = ..., - 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","partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.configlet.v1.configlet_pb2.ConfigletAssignmentConfig] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + max_messages: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["max_messages", b"max_messages", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["max_messages", b"max_messages", "partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___ConfigletAssignmentConfigBatchedStreamRequest = ConfigletAssignmentConfigBatchedStreamRequest +@typing.final class ConfigletAssignmentConfigBatchedStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + RESPONSES_FIELD_NUMBER: builtins.int @property def responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ConfigletAssignmentConfigStreamResponse]: @@ -795,33 +892,41 @@ class ConfigletAssignmentConfigBatchedStreamResponse(google.protobuf.message.Mes The length of this structure is guaranteed to be between (inclusive) 1 and min(req.max_messages, INTERNAL_BATCH_LIMIT). """ - pass - def __init__(self, + + def __init__( + self, *, - responses: typing.Optional[typing.Iterable[global___ConfigletAssignmentConfigStreamResponse]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["responses",b"responses"]) -> None: ... + responses: collections.abc.Iterable[global___ConfigletAssignmentConfigStreamResponse] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["responses", b"responses"]) -> None: ... + global___ConfigletAssignmentConfigBatchedStreamResponse = ConfigletAssignmentConfigBatchedStreamResponse +@typing.final class ConfigletAssignmentConfigSetRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int @property def value(self) -> arista.configlet.v1.configlet_pb2.ConfigletAssignmentConfig: """ConfigletAssignmentConfig carries the value to set into the datastore. See the documentation on the ConfigletAssignmentConfig struct for which fields are required. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.configlet.v1.configlet_pb2.ConfigletAssignmentConfig] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["value",b"value"]) -> None: ... + value: arista.configlet.v1.configlet_pb2.ConfigletAssignmentConfig | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["value", b"value"]) -> None: ... + global___ConfigletAssignmentConfigSetRequest = ConfigletAssignmentConfigSetRequest +@typing.final class ConfigletAssignmentConfigSetResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -829,7 +934,7 @@ class ConfigletAssignmentConfigSetResponse(google.protobuf.message.Message): """Value carries all the values given in the ConfigletAssignmentConfigSetRequest as well as any server-generated values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp at which the system recognizes the @@ -838,18 +943,22 @@ class ConfigletAssignmentConfigSetResponse(google.protobuf.message.Message): - it is after the time the request was received - a time-ranged query with StartTime==CreatedAt will include this instance. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.configlet.v1.configlet_pb2.ConfigletAssignmentConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.configlet.v1.configlet_pb2.ConfigletAssignmentConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___ConfigletAssignmentConfigSetResponse = ConfigletAssignmentConfigSetResponse +@typing.final class ConfigletAssignmentConfigSetSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.configlet.v1.configlet_pb2.ConfigletAssignmentConfig]: @@ -860,55 +969,67 @@ class ConfigletAssignmentConfigSetSomeRequest(google.protobuf.message.Message): If this error occurs you must reduce the number of values sent. See gRPC "maximum message size" documentation for more information. """ - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[arista.configlet.v1.configlet_pb2.ConfigletAssignmentConfig]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[arista.configlet.v1.configlet_pb2.ConfigletAssignmentConfig] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___ConfigletAssignmentConfigSetSomeRequest = ConfigletAssignmentConfigSetSomeRequest +@typing.final class ConfigletAssignmentConfigSetSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int + error: builtins.str @property def key(self) -> arista.configlet.v1.configlet_pb2.ConfigletAssignmentKey: ... - error: typing.Text - def __init__(self, + def __init__( + self, *, - key: typing.Optional[arista.configlet.v1.configlet_pb2.ConfigletAssignmentKey] = ..., - error: typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key"]) -> None: ... + key: arista.configlet.v1.configlet_pb2.ConfigletAssignmentKey | None = ..., + error: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key"]) -> None: ... + global___ConfigletAssignmentConfigSetSomeResponse = ConfigletAssignmentConfigSetSomeResponse +@typing.final class ConfigletAssignmentConfigDeleteRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int @property def key(self) -> arista.configlet.v1.configlet_pb2.ConfigletAssignmentKey: """Key indicates which ConfigletAssignmentConfig instance to remove. This field must always be set. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.configlet.v1.configlet_pb2.ConfigletAssignmentKey] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key"]) -> None: ... + key: arista.configlet.v1.configlet_pb2.ConfigletAssignmentKey | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key"]) -> None: ... + global___ConfigletAssignmentConfigDeleteRequest = ConfigletAssignmentConfigDeleteRequest +@typing.final class ConfigletAssignmentConfigDeleteResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property def key(self) -> arista.configlet.v1.configlet_pb2.ConfigletAssignmentKey: """Key echoes back the key of the deleted ConfigletAssignmentConfig instance.""" - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp at which the system recognizes the @@ -917,49 +1038,62 @@ class ConfigletAssignmentConfigDeleteResponse(google.protobuf.message.Message): - it is after the time the request was received - a time-ranged query with StartTime==DeletedAt will not include this instance. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.configlet.v1.configlet_pb2.ConfigletAssignmentKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.configlet.v1.configlet_pb2.ConfigletAssignmentKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___ConfigletAssignmentConfigDeleteResponse = ConfigletAssignmentConfigDeleteResponse +@typing.final class ConfigletAssignmentConfigDeleteSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int @property def keys(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.configlet.v1.configlet_pb2.ConfigletAssignmentKey]: """key contains a list of ConfigletAssignmentConfig keys to delete""" - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.configlet.v1.configlet_pb2.ConfigletAssignmentKey]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys"]) -> None: ... + keys: collections.abc.Iterable[arista.configlet.v1.configlet_pb2.ConfigletAssignmentKey] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys"]) -> None: ... + global___ConfigletAssignmentConfigDeleteSomeRequest = ConfigletAssignmentConfigDeleteSomeRequest +@typing.final class ConfigletAssignmentConfigDeleteSomeResponse(google.protobuf.message.Message): """ConfigletAssignmentConfigDeleteSomeResponse is only sent when there is an error.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int + error: builtins.str @property def key(self) -> arista.configlet.v1.configlet_pb2.ConfigletAssignmentKey: ... - error: typing.Text - def __init__(self, + def __init__( + self, *, - key: typing.Optional[arista.configlet.v1.configlet_pb2.ConfigletAssignmentKey] = ..., - error: typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key"]) -> None: ... + key: arista.configlet.v1.configlet_pb2.ConfigletAssignmentKey | None = ..., + error: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key"]) -> None: ... + global___ConfigletAssignmentConfigDeleteSomeResponse = ConfigletAssignmentConfigDeleteSomeResponse +@typing.final class ConfigletAssignmentConfigDeleteAllRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int @property def partial_eq_filter(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.configlet.v1.configlet_pb2.ConfigletAssignmentConfig]: @@ -967,16 +1101,20 @@ class ConfigletAssignmentConfigDeleteAllRequest(google.protobuf.message.Message) This requires all provided fields to be equal to the response. A filtered DeleteAll will use GetAll with filter to find things to delete. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.configlet.v1.configlet_pb2.ConfigletAssignmentConfig]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.configlet.v1.configlet_pb2.ConfigletAssignmentConfig] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter"]) -> None: ... + global___ConfigletAssignmentConfigDeleteAllRequest = ConfigletAssignmentConfigDeleteAllRequest +@typing.final class ConfigletAssignmentConfigDeleteAllResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TYPE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int KEY_FIELD_NUMBER: builtins.int @@ -985,32 +1123,35 @@ class ConfigletAssignmentConfigDeleteAllResponse(google.protobuf.message.Message """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: """This indicates the error message from the delete failure.""" - pass + @property def key(self) -> arista.configlet.v1.configlet_pb2.ConfigletAssignmentKey: """This is the key of the ConfigletAssignmentConfig instance that failed to be deleted.""" - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp when the key was being deleted.""" - pass - def __init__(self, + + def __init__( + self, *, type: fmp.deletes_pb2.DeleteError.ValueType = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - key: typing.Optional[arista.configlet.v1.configlet_pb2.ConfigletAssignmentKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key","time",b"time","type",b"type"]) -> None: ... + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + key: arista.configlet.v1.configlet_pb2.ConfigletAssignmentKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key", "time", b"time", "type", b"type"]) -> None: ... + global___ConfigletAssignmentConfigDeleteAllResponse = ConfigletAssignmentConfigDeleteAllResponse +@typing.final class ConfigletConfigRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -1018,24 +1159,28 @@ class ConfigletConfigRequest(google.protobuf.message.Message): """Key uniquely identifies a ConfigletConfig instance to retrieve. This value must be populated. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the time for which you are interested in the data. If no time is given, the server will use the time at which it makes the request. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.configlet.v1.configlet_pb2.ConfigletKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.configlet.v1.configlet_pb2.ConfigletKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___ConfigletConfigRequest = ConfigletConfigRequest +@typing.final class ConfigletConfigResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -1045,24 +1190,28 @@ class ConfigletConfigResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time carries the (UTC) timestamp of the last-modification of the ConfigletConfig instance in this response. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.configlet.v1.configlet_pb2.ConfigletConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.configlet.v1.configlet_pb2.ConfigletConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___ConfigletConfigResponse = ConfigletConfigResponse +@typing.final class ConfigletConfigSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -1072,18 +1221,22 @@ class ConfigletConfigSomeRequest(google.protobuf.message.Message): """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. """ - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.configlet.v1.configlet_pb2.ConfigletKey]] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys","time",b"time"]) -> None: ... + keys: collections.abc.Iterable[arista.configlet.v1.configlet_pb2.ConfigletKey] | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys", "time", b"time"]) -> None: ... + global___ConfigletConfigSomeRequest = ConfigletConfigSomeRequest +@typing.final class ConfigletConfigSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -1094,27 +1247,31 @@ class ConfigletConfigSomeResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """Error is an optional field. It should be filled when there is an error in the GetSome process. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.configlet.v1.configlet_pb2.ConfigletConfig] = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> None: ... + value: arista.configlet.v1.configlet_pb2.ConfigletConfig | None = ..., + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> None: ... + global___ConfigletConfigSomeResponse = ConfigletConfigSomeResponse +@typing.final class ConfigletConfigStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -1126,14 +1283,14 @@ class ConfigletConfigStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def filter(self) -> arista.configlet.v1.configlet_pb2.Filter: """For each ConfigletConfig in the list, all populated fields are considered ANDed together as a filtering operation. Similarly, the list itself is ORed such that any individual filter that matches a given ConfigletConfig is streamed to the user. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -1152,52 +1309,59 @@ class ConfigletConfigStreamRequest(google.protobuf.message.Message): This field is not allowed in the Subscribe RPC. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.configlet.v1.configlet_pb2.ConfigletConfig]] = ..., - filter: typing.Optional[arista.configlet.v1.configlet_pb2.Filter] = ..., - time: typing.Optional[arista.time.time_pb2.TimeBounds] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["filter",b"filter","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["filter",b"filter","partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.configlet.v1.configlet_pb2.ConfigletConfig] | None = ..., + filter: arista.configlet.v1.configlet_pb2.Filter | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["filter", b"filter", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["filter", b"filter", "partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___ConfigletConfigStreamRequest = ConfigletConfigStreamRequest +@typing.final class ConfigletConfigStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int + type: arista.subscriptions.subscriptions_pb2.Operation.ValueType + """Operation indicates how the ConfigletConfig 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. + """ @property def value(self) -> arista.configlet.v1.configlet_pb2.ConfigletConfig: """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. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time holds the timestamp of this ConfigletConfig's last modification.""" - pass - type: arista.subscriptions.subscriptions_pb2.Operation.ValueType - """Operation indicates how the ConfigletConfig 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. - """ - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.configlet.v1.configlet_pb2.ConfigletConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + value: arista.configlet.v1.configlet_pb2.ConfigletConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "type", b"type", "value", b"value"]) -> None: ... + global___ConfigletConfigStreamResponse = ConfigletConfigStreamResponse +@typing.final class ConfigletConfigBatchedStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -1210,14 +1374,14 @@ class ConfigletConfigBatchedStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def filter(self) -> arista.configlet.v1.configlet_pb2.Filter: """For each ConfigletConfig in the list, all populated fields are considered ANDed together as a filtering operation. Similarly, the list itself is ORed such that any individual filter that matches a given ConfigletConfig is streamed to the user. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -1236,7 +1400,7 @@ class ConfigletConfigBatchedStreamRequest(google.protobuf.message.Message): 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. @@ -1244,20 +1408,24 @@ class ConfigletConfigBatchedStreamRequest(google.protobuf.message.Message): 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, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.configlet.v1.configlet_pb2.ConfigletConfig]] = ..., - filter: typing.Optional[arista.configlet.v1.configlet_pb2.Filter] = ..., - 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["filter",b"filter","max_messages",b"max_messages","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["filter",b"filter","max_messages",b"max_messages","partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.configlet.v1.configlet_pb2.ConfigletConfig] | None = ..., + filter: arista.configlet.v1.configlet_pb2.Filter | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + max_messages: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["filter", b"filter", "max_messages", b"max_messages", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["filter", b"filter", "max_messages", b"max_messages", "partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___ConfigletConfigBatchedStreamRequest = ConfigletConfigBatchedStreamRequest +@typing.final class ConfigletConfigBatchedStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + RESPONSES_FIELD_NUMBER: builtins.int @property def responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ConfigletConfigStreamResponse]: @@ -1265,33 +1433,41 @@ class ConfigletConfigBatchedStreamResponse(google.protobuf.message.Message): The length of this structure is guaranteed to be between (inclusive) 1 and min(req.max_messages, INTERNAL_BATCH_LIMIT). """ - pass - def __init__(self, + + def __init__( + self, *, - responses: typing.Optional[typing.Iterable[global___ConfigletConfigStreamResponse]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["responses",b"responses"]) -> None: ... + responses: collections.abc.Iterable[global___ConfigletConfigStreamResponse] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["responses", b"responses"]) -> None: ... + global___ConfigletConfigBatchedStreamResponse = ConfigletConfigBatchedStreamResponse +@typing.final class ConfigletConfigSetRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int @property def value(self) -> arista.configlet.v1.configlet_pb2.ConfigletConfig: """ConfigletConfig carries the value to set into the datastore. See the documentation on the ConfigletConfig struct for which fields are required. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.configlet.v1.configlet_pb2.ConfigletConfig] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["value",b"value"]) -> None: ... + value: arista.configlet.v1.configlet_pb2.ConfigletConfig | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["value", b"value"]) -> None: ... + global___ConfigletConfigSetRequest = ConfigletConfigSetRequest +@typing.final class ConfigletConfigSetResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -1299,7 +1475,7 @@ class ConfigletConfigSetResponse(google.protobuf.message.Message): """Value carries all the values given in the ConfigletConfigSetRequest as well as any server-generated values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp at which the system recognizes the @@ -1308,18 +1484,22 @@ class ConfigletConfigSetResponse(google.protobuf.message.Message): - it is after the time the request was received - a time-ranged query with StartTime==CreatedAt will include this instance. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.configlet.v1.configlet_pb2.ConfigletConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.configlet.v1.configlet_pb2.ConfigletConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___ConfigletConfigSetResponse = ConfigletConfigSetResponse +@typing.final class ConfigletConfigSetSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.configlet.v1.configlet_pb2.ConfigletConfig]: @@ -1330,55 +1510,67 @@ class ConfigletConfigSetSomeRequest(google.protobuf.message.Message): If this error occurs you must reduce the number of values sent. See gRPC "maximum message size" documentation for more information. """ - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[arista.configlet.v1.configlet_pb2.ConfigletConfig]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[arista.configlet.v1.configlet_pb2.ConfigletConfig] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___ConfigletConfigSetSomeRequest = ConfigletConfigSetSomeRequest +@typing.final class ConfigletConfigSetSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int + error: builtins.str @property def key(self) -> arista.configlet.v1.configlet_pb2.ConfigletKey: ... - error: typing.Text - def __init__(self, + def __init__( + self, *, - key: typing.Optional[arista.configlet.v1.configlet_pb2.ConfigletKey] = ..., - error: typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key"]) -> None: ... + key: arista.configlet.v1.configlet_pb2.ConfigletKey | None = ..., + error: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key"]) -> None: ... + global___ConfigletConfigSetSomeResponse = ConfigletConfigSetSomeResponse +@typing.final class ConfigletConfigDeleteRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int @property def key(self) -> arista.configlet.v1.configlet_pb2.ConfigletKey: """Key indicates which ConfigletConfig instance to remove. This field must always be set. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.configlet.v1.configlet_pb2.ConfigletKey] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key"]) -> None: ... + key: arista.configlet.v1.configlet_pb2.ConfigletKey | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key"]) -> None: ... + global___ConfigletConfigDeleteRequest = ConfigletConfigDeleteRequest +@typing.final class ConfigletConfigDeleteResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property def key(self) -> arista.configlet.v1.configlet_pb2.ConfigletKey: """Key echoes back the key of the deleted ConfigletConfig instance.""" - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp at which the system recognizes the @@ -1387,49 +1579,62 @@ class ConfigletConfigDeleteResponse(google.protobuf.message.Message): - it is after the time the request was received - a time-ranged query with StartTime==DeletedAt will not include this instance. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.configlet.v1.configlet_pb2.ConfigletKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.configlet.v1.configlet_pb2.ConfigletKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___ConfigletConfigDeleteResponse = ConfigletConfigDeleteResponse +@typing.final class ConfigletConfigDeleteSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int @property def keys(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.configlet.v1.configlet_pb2.ConfigletKey]: """key contains a list of ConfigletConfig keys to delete""" - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.configlet.v1.configlet_pb2.ConfigletKey]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys"]) -> None: ... + keys: collections.abc.Iterable[arista.configlet.v1.configlet_pb2.ConfigletKey] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys"]) -> None: ... + global___ConfigletConfigDeleteSomeRequest = ConfigletConfigDeleteSomeRequest +@typing.final class ConfigletConfigDeleteSomeResponse(google.protobuf.message.Message): """ConfigletConfigDeleteSomeResponse is only sent when there is an error.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int + error: builtins.str @property def key(self) -> arista.configlet.v1.configlet_pb2.ConfigletKey: ... - error: typing.Text - def __init__(self, + def __init__( + self, *, - key: typing.Optional[arista.configlet.v1.configlet_pb2.ConfigletKey] = ..., - error: typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key"]) -> None: ... + key: arista.configlet.v1.configlet_pb2.ConfigletKey | None = ..., + error: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key"]) -> None: ... + global___ConfigletConfigDeleteSomeResponse = ConfigletConfigDeleteSomeResponse +@typing.final class ConfigletConfigDeleteAllRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int FILTER_FIELD_NUMBER: builtins.int @property @@ -1438,25 +1643,29 @@ class ConfigletConfigDeleteAllRequest(google.protobuf.message.Message): This requires all provided fields to be equal to the response. A filtered DeleteAll will use GetAll with filter to find things to delete. """ - pass + @property def filter(self) -> arista.configlet.v1.configlet_pb2.Filter: """For each ConfigletConfig in the list, all populated fields are considered ANDed together as a filtering operation. Similarly, the list itself is ORed such that any individual filter that matches a given ConfigletConfig will be deleted. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.configlet.v1.configlet_pb2.ConfigletConfig]] = ..., - filter: typing.Optional[arista.configlet.v1.configlet_pb2.Filter] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["filter",b"filter"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["filter",b"filter","partial_eq_filter",b"partial_eq_filter"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.configlet.v1.configlet_pb2.ConfigletConfig] | None = ..., + filter: arista.configlet.v1.configlet_pb2.Filter | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["filter", b"filter"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["filter", b"filter", "partial_eq_filter", b"partial_eq_filter"]) -> None: ... + global___ConfigletConfigDeleteAllRequest = ConfigletConfigDeleteAllRequest +@typing.final class ConfigletConfigDeleteAllResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TYPE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int KEY_FIELD_NUMBER: builtins.int @@ -1465,26 +1674,27 @@ class ConfigletConfigDeleteAllResponse(google.protobuf.message.Message): """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: """This indicates the error message from the delete failure.""" - pass + @property def key(self) -> arista.configlet.v1.configlet_pb2.ConfigletKey: """This is the key of the ConfigletConfig instance that failed to be deleted.""" - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp when the key was being deleted.""" - pass - def __init__(self, + + def __init__( + self, *, type: fmp.deletes_pb2.DeleteError.ValueType = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - key: typing.Optional[arista.configlet.v1.configlet_pb2.ConfigletKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key","time",b"time","type",b"type"]) -> None: ... + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + key: arista.configlet.v1.configlet_pb2.ConfigletKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key", "time", b"time", "type", b"type"]) -> None: ... + global___ConfigletConfigDeleteAllResponse = ConfigletConfigDeleteAllResponse diff --git a/arista/configstatus/v1/configstatus_pb2.pyi b/arista/configstatus/v1/configstatus_pb2.pyi index 6fdfe1b..143b5ce 100644 --- a/arista/configstatus/v1/configstatus_pb2.pyi +++ b/arista/configstatus/v1/configstatus_pb2.pyi @@ -1,198 +1,169 @@ """ @generated by mypy-protobuf. Do not edit manually! isort:skip_file +Copyright (c) 2021 Arista Networks, Inc. All rights reserved. +Use of this source code is governed by the Apache License 2.0 +that can be found in the COPYING file. """ + import builtins +import collections.abc import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message import google.protobuf.timestamp_pb2 import google.protobuf.wrappers_pb2 +import sys import typing -import typing_extensions + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor class _ErrorCode: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _ErrorCodeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ErrorCode.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor ERROR_CODE_UNSPECIFIED: _ErrorCode.ValueType # 0 """ERROR_CODE_UNSPECIFIED uninitialized value""" - ERROR_CODE_DEVICE_WARNING: _ErrorCode.ValueType # 1 """ERROR_CODE_DEVICE_WARNING indicates device warning""" - ERROR_CODE_DEVICE_ERROR: _ErrorCode.ValueType # 2 """ERROR_CODE_DEVICE_ERROR indicates device error""" - ERROR_CODE_UNREACHABLE_DEVICE: _ErrorCode.ValueType # 3 """ERROR_CODE_UNREACHABLE_DEVICE indicates the device cannot be reached""" - ERROR_CODE_CONFIG_FILTER_ERROR: _ErrorCode.ValueType # 4 """ERROR_CODE_CONFIG_FILTER_ERROR indicates error from partial config management filters""" - ERROR_CODE_INTERNAL: _ErrorCode.ValueType # 5 """ERROR_CODE_INTERNAL indicates internal errors""" class ErrorCode(_ErrorCode, metaclass=_ErrorCodeEnumTypeWrapper): """ErrorCode indicates warnings and errors produced during computing config""" - pass ERROR_CODE_UNSPECIFIED: ErrorCode.ValueType # 0 """ERROR_CODE_UNSPECIFIED uninitialized value""" - ERROR_CODE_DEVICE_WARNING: ErrorCode.ValueType # 1 """ERROR_CODE_DEVICE_WARNING indicates device warning""" - ERROR_CODE_DEVICE_ERROR: ErrorCode.ValueType # 2 """ERROR_CODE_DEVICE_ERROR indicates device error""" - ERROR_CODE_UNREACHABLE_DEVICE: ErrorCode.ValueType # 3 """ERROR_CODE_UNREACHABLE_DEVICE indicates the device cannot be reached""" - ERROR_CODE_CONFIG_FILTER_ERROR: ErrorCode.ValueType # 4 """ERROR_CODE_CONFIG_FILTER_ERROR indicates error from partial config management filters""" - ERROR_CODE_INTERNAL: ErrorCode.ValueType # 5 """ERROR_CODE_INTERNAL indicates internal errors""" - global___ErrorCode = ErrorCode - class _DiffOp: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _DiffOpEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_DiffOp.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor DIFF_OP_UNSPECIFIED: _DiffOp.ValueType # 0 """DIFF_OP_UNSPECIFIED uninitialized""" - DIFF_OP_NOP: _DiffOp.ValueType # 1 """DIFF_OP_NOP indicates no change. A and B are identical at this line""" - DIFF_OP_IGNORE: _DiffOp.ValueType # 2 """DIFF_OP_IGNORE indicates a line that's ignored in either A or B. One of a_line_num or b_line_num will be -1 """ - DIFF_OP_ADD: _DiffOp.ValueType # 3 """DIFF_OP_ADD is an addition of a line from A""" - DIFF_OP_DELETE: _DiffOp.ValueType # 4 """DIFF_OP_DELETE is deletion of a line from B""" - DIFF_OP_CHANGE: _DiffOp.ValueType # 5 """DIFF_OP_CHANGE is a modification to a line in A""" class DiffOp(_DiffOp, metaclass=_DiffOpEnumTypeWrapper): """DiffOp is the operation to a line from one side of diff to get to another""" - pass DIFF_OP_UNSPECIFIED: DiffOp.ValueType # 0 """DIFF_OP_UNSPECIFIED uninitialized""" - DIFF_OP_NOP: DiffOp.ValueType # 1 """DIFF_OP_NOP indicates no change. A and B are identical at this line""" - DIFF_OP_IGNORE: DiffOp.ValueType # 2 """DIFF_OP_IGNORE indicates a line that's ignored in either A or B. One of a_line_num or b_line_num will be -1 """ - DIFF_OP_ADD: DiffOp.ValueType # 3 """DIFF_OP_ADD is an addition of a line from A""" - DIFF_OP_DELETE: DiffOp.ValueType # 4 """DIFF_OP_DELETE is deletion of a line from B""" - DIFF_OP_CHANGE: DiffOp.ValueType # 5 """DIFF_OP_CHANGE is a modification to a line in A""" - global___DiffOp = DiffOp - class _ConfigFilterCode: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _ConfigFilterCodeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ConfigFilterCode.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor CONFIG_FILTER_CODE_UNSPECIFIED: _ConfigFilterCode.ValueType # 0 """CONFIG_FILTER_CODE_UNSPECIFIED uninitialized""" - CONFIG_FILTER_CODE_MANAGED_LINE: _ConfigFilterCode.ValueType # 1 """CONFIG_FILTER_CODE_MANAGED_LINE indicates config line matches managed PCM filter hence is managed""" - CONFIG_FILTER_CODE_UNMANAGED_LINE: _ConfigFilterCode.ValueType # 2 """CONFIG_FILTER_CODE_UNMANAGED_LINE indicates config line matches unmanaged PCM filter hence is not managed""" class ConfigFilterCode(_ConfigFilterCode, metaclass=_ConfigFilterCodeEnumTypeWrapper): """ConfigFilterCode indicates if a config line matches PCM filter(s)""" - pass CONFIG_FILTER_CODE_UNSPECIFIED: ConfigFilterCode.ValueType # 0 """CONFIG_FILTER_CODE_UNSPECIFIED uninitialized""" - CONFIG_FILTER_CODE_MANAGED_LINE: ConfigFilterCode.ValueType # 1 """CONFIG_FILTER_CODE_MANAGED_LINE indicates config line matches managed PCM filter hence is managed""" - CONFIG_FILTER_CODE_UNMANAGED_LINE: ConfigFilterCode.ValueType # 2 """CONFIG_FILTER_CODE_UNMANAGED_LINE indicates config line matches unmanaged PCM filter hence is not managed""" - global___ConfigFilterCode = ConfigFilterCode - class _ConfigSyncCode: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _ConfigSyncCodeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ConfigSyncCode.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor CONFIG_SYNC_CODE_UNSPECIFIED: _ConfigSyncCode.ValueType # 0 """CONFIG_SYNC_CODE_UNSPECIFIED uninitialized""" - CONFIG_SYNC_CODE_IN_SYNC: _ConfigSyncCode.ValueType # 1 """CONFIG_SYNC_CODE_IN_SYNC indicates designed config and running config are identical""" - CONFIG_SYNC_CODE_OUT_OF_SYNC: _ConfigSyncCode.ValueType # 2 """CONFIG_SYNC_CODE_OUT_OF_SYNC indicates designed config and running config are not identical""" class ConfigSyncCode(_ConfigSyncCode, metaclass=_ConfigSyncCodeEnumTypeWrapper): """ConfigSyncCode indicates config synchronization status""" - pass CONFIG_SYNC_CODE_UNSPECIFIED: ConfigSyncCode.ValueType # 0 """CONFIG_SYNC_CODE_UNSPECIFIED uninitialized""" - CONFIG_SYNC_CODE_IN_SYNC: ConfigSyncCode.ValueType # 1 """CONFIG_SYNC_CODE_IN_SYNC indicates designed config and running config are identical""" - CONFIG_SYNC_CODE_OUT_OF_SYNC: ConfigSyncCode.ValueType # 2 """CONFIG_SYNC_CODE_OUT_OF_SYNC indicates designed config and running config are not identical""" - global___ConfigSyncCode = ConfigSyncCode - class _ConfigSourceType: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _ConfigSourceTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ConfigSourceType.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor CONFIG_SOURCE_TYPE_UNSPECIFIED: _ConfigSourceType.ValueType # 0 """CONFIG_SOURCE_TYPE_UNSPECIFIED uninitialized value""" - CONFIG_SOURCE_TYPE_NETWORK_PROVISIONING_CONFIGLET: _ConfigSourceType.ValueType # 1 """CONFIG_SOURCE_TYPE_NETWORK_PROVISIONING_CONFIGLET - configlet created from the network provisioning workflow. """ - CONFIG_SOURCE_TYPE_STUDIO: _ConfigSourceType.ValueType # 2 """CONFIG_SOURCE_TYPE_STUDIO - config generated from a regular studio""" - CONFIG_SOURCE_TYPE_STUDIO_STATIC: _ConfigSourceType.ValueType # 3 """CONFIG_SOURCE_TYPE_STUDIO_STATIC - static config from studios framework""" - CONFIG_SOURCE_TYPE_HIERARCHY: _ConfigSourceType.ValueType # 5 """CONFIG_SOURCE_TYPE_HIERARCHY - config from the hierarchy frameork""" @@ -200,111 +171,110 @@ class ConfigSourceType(_ConfigSourceType, metaclass=_ConfigSourceTypeEnumTypeWra """ConfigSourceType indicates the type of source for the proposed/designed configuration for the device """ - pass CONFIG_SOURCE_TYPE_UNSPECIFIED: ConfigSourceType.ValueType # 0 """CONFIG_SOURCE_TYPE_UNSPECIFIED uninitialized value""" - CONFIG_SOURCE_TYPE_NETWORK_PROVISIONING_CONFIGLET: ConfigSourceType.ValueType # 1 """CONFIG_SOURCE_TYPE_NETWORK_PROVISIONING_CONFIGLET - configlet created from the network provisioning workflow. """ - CONFIG_SOURCE_TYPE_STUDIO: ConfigSourceType.ValueType # 2 """CONFIG_SOURCE_TYPE_STUDIO - config generated from a regular studio""" - CONFIG_SOURCE_TYPE_STUDIO_STATIC: ConfigSourceType.ValueType # 3 """CONFIG_SOURCE_TYPE_STUDIO_STATIC - static config from studios framework""" - CONFIG_SOURCE_TYPE_HIERARCHY: ConfigSourceType.ValueType # 5 """CONFIG_SOURCE_TYPE_HIERARCHY - config from the hierarchy frameork""" - global___ConfigSourceType = ConfigSourceType - class _ConfigType: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _ConfigTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ConfigType.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor CONFIG_TYPE_UNSPECIFIED: _ConfigType.ValueType # 0 """CONFIG_TYPE_UNSPECIFIED uninitialized value""" - CONFIG_TYPE_RUNNING_CONFIG: _ConfigType.ValueType # 1 """CONFIG_TYPE_RUNNING_CONFIG uninitialized value""" - CONFIG_TYPE_DESIGNED_CONFIG: _ConfigType.ValueType # 2 """CONFIG_TYPE_DESIGNED_CONFIG uninitialized value""" class ConfigType(_ConfigType, metaclass=_ConfigTypeEnumTypeWrapper): """ConfigType - specifies type of config""" - pass CONFIG_TYPE_UNSPECIFIED: ConfigType.ValueType # 0 """CONFIG_TYPE_UNSPECIFIED uninitialized value""" - CONFIG_TYPE_RUNNING_CONFIG: ConfigType.ValueType # 1 """CONFIG_TYPE_RUNNING_CONFIG uninitialized value""" - CONFIG_TYPE_DESIGNED_CONFIG: ConfigType.ValueType # 2 """CONFIG_TYPE_DESIGNED_CONFIG uninitialized value""" - global___ConfigType = ConfigType - +@typing.final class ConfigError(google.protobuf.message.Message): """ConfigError represents errors reported by CVP/EOS when handling device configuration""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + ERROR_CODE_FIELD_NUMBER: builtins.int ERROR_MSG_FIELD_NUMBER: builtins.int LINE_NUM_FIELD_NUMBER: builtins.int CONFIGLET_NAME_FIELD_NUMBER: builtins.int error_code: global___ErrorCode.ValueType """error_code - type of error.""" - @property def error_msg(self) -> google.protobuf.wrappers_pb2.StringValue: """error_msg - details of error""" - pass + @property def line_num(self) -> google.protobuf.wrappers_pb2.Int32Value: """line_num represents line number, if any""" - pass + @property def configlet_name(self) -> google.protobuf.wrappers_pb2.StringValue: """configlet_name represents the originating configlet name. Configlet_name and line_num point to the line where config warning or config error originate. """ - pass - def __init__(self, + + def __init__( + self, *, error_code: global___ErrorCode.ValueType = ..., - error_msg: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - line_num: typing.Optional[google.protobuf.wrappers_pb2.Int32Value] = ..., - configlet_name: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["configlet_name",b"configlet_name","error_msg",b"error_msg","line_num",b"line_num"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["configlet_name",b"configlet_name","error_code",b"error_code","error_msg",b"error_msg","line_num",b"line_num"]) -> None: ... + error_msg: google.protobuf.wrappers_pb2.StringValue | None = ..., + line_num: google.protobuf.wrappers_pb2.Int32Value | None = ..., + configlet_name: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["configlet_name", b"configlet_name", "error_msg", b"error_msg", "line_num", b"line_num"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["configlet_name", b"configlet_name", "error_code", b"error_code", "error_msg", b"error_msg", "line_num", b"line_num"]) -> None: ... + global___ConfigError = ConfigError +@typing.final class ConfigErrors(google.protobuf.message.Message): """ConfigErrors list of errors""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ConfigError]: """values - list of errors""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[global___ConfigError]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[global___ConfigError] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___ConfigErrors = ConfigErrors +@typing.final class DiffEntry(google.protobuf.message.Message): """DiffEntry represents one entry in a Diff""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + OP_FIELD_NUMBER: builtins.int A_LINE_NUM_FIELD_NUMBER: builtins.int B_LINE_NUM_FIELD_NUMBER: builtins.int @@ -316,76 +286,82 @@ class DiffEntry(google.protobuf.message.Message): A_PARENT_LINE_NUM_FIELD_NUMBER: builtins.int op: global___DiffOp.ValueType """op - type of diff""" - + a_filter_code: global___ConfigFilterCode.ValueType + """a_filter_code Config filter code of the line in A""" + b_filter_code: global___ConfigFilterCode.ValueType + """b_filter_code Config filter code of the line in B""" @property def a_line_num(self) -> google.protobuf.wrappers_pb2.Int32Value: """a_line_num - line number in A this diff applies to""" - pass + @property def b_line_num(self) -> google.protobuf.wrappers_pb2.Int32Value: """b_line_num - line number in B this diff applies to""" - pass + @property def b_parent_line_num(self) -> google.protobuf.wrappers_pb2.Int32Value: """b_parent_line_num line number of the parent command in B""" - pass + @property def a_line(self) -> google.protobuf.wrappers_pb2.StringValue: """a_line content of config line in A""" - pass + @property def b_line(self) -> google.protobuf.wrappers_pb2.StringValue: """b_line content of config line in B""" - pass - a_filter_code: global___ConfigFilterCode.ValueType - """a_filter_code Config filter code of the line in A""" - - b_filter_code: global___ConfigFilterCode.ValueType - """b_filter_code Config filter code of the line in B""" @property def a_parent_line_num(self) -> google.protobuf.wrappers_pb2.Int32Value: """a_parent_line_num line number of the parent command in A""" - pass - def __init__(self, + + def __init__( + self, *, op: global___DiffOp.ValueType = ..., - a_line_num: typing.Optional[google.protobuf.wrappers_pb2.Int32Value] = ..., - b_line_num: typing.Optional[google.protobuf.wrappers_pb2.Int32Value] = ..., - b_parent_line_num: typing.Optional[google.protobuf.wrappers_pb2.Int32Value] = ..., - a_line: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - b_line: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., + a_line_num: google.protobuf.wrappers_pb2.Int32Value | None = ..., + b_line_num: google.protobuf.wrappers_pb2.Int32Value | None = ..., + b_parent_line_num: google.protobuf.wrappers_pb2.Int32Value | None = ..., + a_line: google.protobuf.wrappers_pb2.StringValue | None = ..., + b_line: google.protobuf.wrappers_pb2.StringValue | None = ..., a_filter_code: global___ConfigFilterCode.ValueType = ..., b_filter_code: global___ConfigFilterCode.ValueType = ..., - a_parent_line_num: typing.Optional[google.protobuf.wrappers_pb2.Int32Value] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["a_line",b"a_line","a_line_num",b"a_line_num","a_parent_line_num",b"a_parent_line_num","b_line",b"b_line","b_line_num",b"b_line_num","b_parent_line_num",b"b_parent_line_num"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["a_filter_code",b"a_filter_code","a_line",b"a_line","a_line_num",b"a_line_num","a_parent_line_num",b"a_parent_line_num","b_filter_code",b"b_filter_code","b_line",b"b_line","b_line_num",b"b_line_num","b_parent_line_num",b"b_parent_line_num","op",b"op"]) -> None: ... + a_parent_line_num: google.protobuf.wrappers_pb2.Int32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["a_line", b"a_line", "a_line_num", b"a_line_num", "a_parent_line_num", b"a_parent_line_num", "b_line", b"b_line", "b_line_num", b"b_line_num", "b_parent_line_num", b"b_parent_line_num"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["a_filter_code", b"a_filter_code", "a_line", b"a_line", "a_line_num", b"a_line_num", "a_parent_line_num", b"a_parent_line_num", "b_filter_code", b"b_filter_code", "b_line", b"b_line", "b_line_num", b"b_line_num", "b_parent_line_num", b"b_parent_line_num", "op", b"op"]) -> None: ... + global___DiffEntry = DiffEntry +@typing.final class DiffEntries(google.protobuf.message.Message): """DiffEntries indicates potential multiple lines of config diff""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___DiffEntry]: """values - list of diff entries""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[global___DiffEntry]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[global___DiffEntry] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___DiffEntries = DiffEntries +@typing.final class ConfigSource(google.protobuf.message.Message): """ConfigSource describes an individual source of the proposed/designed config""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + SOURCE_TYPE_FIELD_NUMBER: builtins.int SOURCE_ID_FIELD_NUMBER: builtins.int source_type: global___ConfigSourceType.ValueType """source_type - app type of the config snippet""" - @property def source_id(self) -> google.protobuf.wrappers_pb2.StringValue: """source_id identifier to distinguish between multiple instances of the source type @@ -395,34 +371,44 @@ class ConfigSource(google.protobuf.message.Message): configlet id for CONFIG_SOURCE_TYPE_STUDIO_STATIC FixtureInstance id for CONFIG_SOURCE_TYPE_HIERARCHY """ - pass - def __init__(self, + + def __init__( + self, *, source_type: global___ConfigSourceType.ValueType = ..., - source_id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["source_id",b"source_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["source_id",b"source_id","source_type",b"source_type"]) -> None: ... + source_id: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["source_id", b"source_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["source_id", b"source_id", "source_type", b"source_type"]) -> None: ... + global___ConfigSource = ConfigSource +@typing.final class ConfigSources(google.protobuf.message.Message): """ConfigSources is the list of sources of the proposed/designed config""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ConfigSource]: """values - ordered list of all the config snippets present in DC""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[global___ConfigSource]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[global___ConfigSource] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___ConfigSources = ConfigSources +@typing.final class ConfigSummary(google.protobuf.message.Message): """ConfigSummary represents device configuration summary.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + SYNC_FIELD_NUMBER: builtins.int NOP_LINES_FIELD_NUMBER: builtins.int IGNORED_LINES_FIELD_NUMBER: builtins.int @@ -439,254 +425,290 @@ class ConfigSummary(google.protobuf.message.Message): DIGEST_FIELD_NUMBER: builtins.int sync: global___ConfigSyncCode.ValueType """sync - state of DC vs RC""" - @property def nop_lines(self) -> google.protobuf.wrappers_pb2.Int32Value: """nop_lines - Number of lines with code no-operation""" - pass + @property def ignored_lines(self) -> google.protobuf.wrappers_pb2.Int32Value: """ignored_lines - Number of lines with code IGNORE""" - pass + @property def added_lines(self) -> google.protobuf.wrappers_pb2.Int32Value: """added_lines - Number of lines with code ADD""" - pass + @property def deleted_lines(self) -> google.protobuf.wrappers_pb2.Int32Value: """deleted_lines - Number of lines with code DELETE""" - pass + @property def changed_lines(self) -> google.protobuf.wrappers_pb2.Int32Value: """changed_lines - Number of lines with code CHANGE""" - pass + @property def designed_config_errors(self) -> google.protobuf.wrappers_pb2.Int32Value: """designed_config_errors - Number of designed config errors""" - pass + @property def designed_config_warnings(self) -> google.protobuf.wrappers_pb2.Int32Value: """designed_config_warnings - Number of designed config warnings""" - pass + @property def running_config_update_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """running_config_update_time - Timestamp at which running config is updated""" - pass + @property def designed_config_update_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """designed_config_update_time - Timestamp at which designed config is updated""" - pass + @property def running_config_uri(self) -> google.protobuf.wrappers_pb2.StringValue: """running_config_uri - The HTTP URI client can use to GET running config and associated errors""" - pass + @property def designed_config_uri(self) -> google.protobuf.wrappers_pb2.StringValue: """designed_config_uri - The HTTP URI client can use to GET designed config and associated errors""" - pass + @property def diff_uri(self) -> google.protobuf.wrappers_pb2.StringValue: """diff_uri - The HTTP URI client can use to GET config diff and associated errors""" - pass + @property def digest(self) -> google.protobuf.wrappers_pb2.StringValue: """digest (SHA-256) of the config diff.""" - pass - def __init__(self, + + def __init__( + self, *, sync: global___ConfigSyncCode.ValueType = ..., - nop_lines: typing.Optional[google.protobuf.wrappers_pb2.Int32Value] = ..., - ignored_lines: typing.Optional[google.protobuf.wrappers_pb2.Int32Value] = ..., - added_lines: typing.Optional[google.protobuf.wrappers_pb2.Int32Value] = ..., - deleted_lines: typing.Optional[google.protobuf.wrappers_pb2.Int32Value] = ..., - changed_lines: typing.Optional[google.protobuf.wrappers_pb2.Int32Value] = ..., - designed_config_errors: typing.Optional[google.protobuf.wrappers_pb2.Int32Value] = ..., - designed_config_warnings: typing.Optional[google.protobuf.wrappers_pb2.Int32Value] = ..., - running_config_update_time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - designed_config_update_time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - running_config_uri: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - designed_config_uri: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - diff_uri: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - digest: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["added_lines",b"added_lines","changed_lines",b"changed_lines","deleted_lines",b"deleted_lines","designed_config_errors",b"designed_config_errors","designed_config_update_time",b"designed_config_update_time","designed_config_uri",b"designed_config_uri","designed_config_warnings",b"designed_config_warnings","diff_uri",b"diff_uri","digest",b"digest","ignored_lines",b"ignored_lines","nop_lines",b"nop_lines","running_config_update_time",b"running_config_update_time","running_config_uri",b"running_config_uri"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["added_lines",b"added_lines","changed_lines",b"changed_lines","deleted_lines",b"deleted_lines","designed_config_errors",b"designed_config_errors","designed_config_update_time",b"designed_config_update_time","designed_config_uri",b"designed_config_uri","designed_config_warnings",b"designed_config_warnings","diff_uri",b"diff_uri","digest",b"digest","ignored_lines",b"ignored_lines","nop_lines",b"nop_lines","running_config_update_time",b"running_config_update_time","running_config_uri",b"running_config_uri","sync",b"sync"]) -> None: ... + nop_lines: google.protobuf.wrappers_pb2.Int32Value | None = ..., + ignored_lines: google.protobuf.wrappers_pb2.Int32Value | None = ..., + added_lines: google.protobuf.wrappers_pb2.Int32Value | None = ..., + deleted_lines: google.protobuf.wrappers_pb2.Int32Value | None = ..., + changed_lines: google.protobuf.wrappers_pb2.Int32Value | None = ..., + designed_config_errors: google.protobuf.wrappers_pb2.Int32Value | None = ..., + designed_config_warnings: google.protobuf.wrappers_pb2.Int32Value | None = ..., + running_config_update_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + designed_config_update_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + running_config_uri: google.protobuf.wrappers_pb2.StringValue | None = ..., + designed_config_uri: google.protobuf.wrappers_pb2.StringValue | None = ..., + diff_uri: google.protobuf.wrappers_pb2.StringValue | None = ..., + digest: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["added_lines", b"added_lines", "changed_lines", b"changed_lines", "deleted_lines", b"deleted_lines", "designed_config_errors", b"designed_config_errors", "designed_config_update_time", b"designed_config_update_time", "designed_config_uri", b"designed_config_uri", "designed_config_warnings", b"designed_config_warnings", "diff_uri", b"diff_uri", "digest", b"digest", "ignored_lines", b"ignored_lines", "nop_lines", b"nop_lines", "running_config_update_time", b"running_config_update_time", "running_config_uri", b"running_config_uri"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["added_lines", b"added_lines", "changed_lines", b"changed_lines", "deleted_lines", b"deleted_lines", "designed_config_errors", b"designed_config_errors", "designed_config_update_time", b"designed_config_update_time", "designed_config_uri", b"designed_config_uri", "designed_config_warnings", b"designed_config_warnings", "diff_uri", b"diff_uri", "digest", b"digest", "ignored_lines", b"ignored_lines", "nop_lines", b"nop_lines", "running_config_update_time", b"running_config_update_time", "running_config_uri", b"running_config_uri", "sync", b"sync"]) -> None: ... + global___ConfigSummary = ConfigSummary +@typing.final class ConfigKey(google.protobuf.message.Message): """ConfigKey uniquely identifies a config request.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + DEVICE_ID_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int + type: global___ConfigType.ValueType + """type describes the config type""" @property def device_id(self) -> google.protobuf.wrappers_pb2.StringValue: """device_id is the serial number of the device""" - pass - type: global___ConfigType.ValueType - """type describes the config type""" - def __init__(self, + def __init__( + self, *, - device_id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., + device_id: google.protobuf.wrappers_pb2.StringValue | None = ..., type: global___ConfigType.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["device_id",b"device_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["device_id",b"device_id","type",b"type"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["device_id", b"device_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["device_id", b"device_id", "type", b"type"]) -> None: ... + global___ConfigKey = ConfigKey +@typing.final class Configuration(google.protobuf.message.Message): """Configuration represents device's CLI configuration""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int URI_FIELD_NUMBER: builtins.int @property def key(self) -> global___ConfigKey: """key specifies the device and type of config""" - pass + @property def uri(self) -> google.protobuf.wrappers_pb2.StringValue: """uri represents the HTTP URI client can use to GET config body and associated errors""" - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[global___ConfigKey] = ..., - uri: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","uri",b"uri"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","uri",b"uri"]) -> None: ... + key: global___ConfigKey | None = ..., + uri: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "uri", b"uri"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "uri", b"uri"]) -> None: ... + global___Configuration = Configuration +@typing.final class ConfigDiffKey(google.protobuf.message.Message): """ConfigDiffKey uniquely identifies a configuration diff request""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + A_DEVICE_ID_FIELD_NUMBER: builtins.int A_TYPE_FIELD_NUMBER: builtins.int A_TIME_FIELD_NUMBER: builtins.int B_DEVICE_ID_FIELD_NUMBER: builtins.int B_TYPE_FIELD_NUMBER: builtins.int B_TIME_FIELD_NUMBER: builtins.int + a_type: global___ConfigType.ValueType + """a_type is the config type on A side (left hand side)""" + b_type: global___ConfigType.ValueType + """b_type is the config type on B side (right hand side)""" @property def a_device_id(self) -> google.protobuf.wrappers_pb2.StringValue: """a_device_id is the serial number of the device on A side (left hand side)""" - pass - a_type: global___ConfigType.ValueType - """a_type is the config type on A side (left hand side)""" @property def a_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """a_time is the time at which to fetch config on A side (left hand side)""" - pass + @property def b_device_id(self) -> google.protobuf.wrappers_pb2.StringValue: """b_device_id is the serial number of the device on B side (right hand side)""" - pass - b_type: global___ConfigType.ValueType - """b_type is the config type on B side (right hand side)""" @property def b_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """b_time is the time at which to fetch config on B side (right hand side)""" - pass - def __init__(self, + + def __init__( + self, *, - a_device_id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., + a_device_id: google.protobuf.wrappers_pb2.StringValue | None = ..., a_type: global___ConfigType.ValueType = ..., - a_time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - b_device_id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., + a_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + b_device_id: google.protobuf.wrappers_pb2.StringValue | None = ..., b_type: global___ConfigType.ValueType = ..., - b_time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["a_device_id",b"a_device_id","a_time",b"a_time","b_device_id",b"b_device_id","b_time",b"b_time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["a_device_id",b"a_device_id","a_time",b"a_time","a_type",b"a_type","b_device_id",b"b_device_id","b_time",b"b_time","b_type",b"b_type"]) -> None: ... + b_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["a_device_id", b"a_device_id", "a_time", b"a_time", "b_device_id", b"b_device_id", "b_time", b"b_time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["a_device_id", b"a_device_id", "a_time", b"a_time", "a_type", b"a_type", "b_device_id", b"b_device_id", "b_time", b"b_time", "b_type", b"b_type"]) -> None: ... + global___ConfigDiffKey = ConfigDiffKey +@typing.final class ConfigDiff(google.protobuf.message.Message): """ConfigDiff - specifies the diff request""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int URI_FIELD_NUMBER: builtins.int @property def key(self) -> global___ConfigDiffKey: """key represents config diff key""" - pass + @property def uri(self) -> google.protobuf.wrappers_pb2.StringValue: """uri represents the HTTP URI client can use to GET config diff and associated errors""" - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[global___ConfigDiffKey] = ..., - uri: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","uri",b"uri"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","uri",b"uri"]) -> None: ... + key: global___ConfigDiffKey | None = ..., + uri: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "uri", b"uri"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "uri", b"uri"]) -> None: ... + global___ConfigDiff = ConfigDiff +@typing.final class SummaryKey(google.protobuf.message.Message): """SummaryKey uniquely identifies a device summary request""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + DEVICE_ID_FIELD_NUMBER: builtins.int @property def device_id(self) -> google.protobuf.wrappers_pb2.StringValue: """device_id is the serial number of the device""" - pass - def __init__(self, + + def __init__( + self, *, - device_id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["device_id",b"device_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["device_id",b"device_id"]) -> None: ... + device_id: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["device_id", b"device_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["device_id", b"device_id"]) -> None: ... + global___SummaryKey = SummaryKey +@typing.final class Summary(google.protobuf.message.Message): """Summary - Describes the device's diff summary""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int SUMMARY_FIELD_NUMBER: builtins.int @property def key(self) -> global___SummaryKey: """key spefies the device""" - pass + @property def summary(self) -> global___ConfigSummary: """summary - diff summary of the device""" - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[global___SummaryKey] = ..., - summary: typing.Optional[global___ConfigSummary] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","summary",b"summary"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","summary",b"summary"]) -> None: ... + key: global___SummaryKey | None = ..., + summary: global___ConfigSummary | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "summary", b"summary"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "summary", b"summary"]) -> None: ... + global___Summary = Summary +@typing.final class SecurityProfile(google.protobuf.message.Message): """SecurityProfile holds the EOS configuration for the security profile.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int CONFIG_FIELD_NUMBER: builtins.int @property def key(self) -> global___ConfigKey: """key uniquely identifies the configuration""" - pass + @property def config(self) -> google.protobuf.wrappers_pb2.StringValue: """config describes the security profile config body""" - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[global___ConfigKey] = ..., - config: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["config",b"config","key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["config",b"config","key",b"key"]) -> None: ... + key: global___ConfigKey | None = ..., + config: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["config", b"config", "key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["config", b"config", "key", b"key"]) -> None: ... + global___SecurityProfile = SecurityProfile +@typing.final class SecurityProfileComplianceSummary(google.protobuf.message.Message): """SecurityProfileComplianceSummary holds the compliance summary for security profile configuration. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + SYNC_FIELD_NUMBER: builtins.int NOP_LINES_FIELD_NUMBER: builtins.int IGNORED_LINES_FIELD_NUMBER: builtins.int @@ -698,99 +720,110 @@ class SecurityProfileComplianceSummary(google.protobuf.message.Message): DESIGNED_CONFIG_UPDATE_TIME_FIELD_NUMBER: builtins.int sync: global___ConfigSyncCode.ValueType """sync - sync state of the device""" - @property def nop_lines(self) -> google.protobuf.wrappers_pb2.Int32Value: """nop_lines is the number of lines with code no-operation""" - pass + @property def ignored_lines(self) -> google.protobuf.wrappers_pb2.Int32Value: """ignored_lines is the number of lines with code IGNORE""" - pass + @property def added_lines(self) -> google.protobuf.wrappers_pb2.Int32Value: """added_lines is the number of lines with code ADD""" - pass + @property def deleted_lines(self) -> google.protobuf.wrappers_pb2.Int32Value: """deleted_lines is the number of lines with code DELETE""" - pass + @property def changed_lines(self) -> google.protobuf.wrappers_pb2.Int32Value: """changed_lines is the Number of lines with code CHANGE""" - pass + @property def digest(self) -> google.protobuf.wrappers_pb2.StringValue: """digest is the digest (SHA-256 hash) of the security profile configuration diff""" - pass + @property def running_config_update_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """running_config_update_time is the timestamp at which running security profile or running config is updated """ - pass + @property def designed_config_update_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """designed_config_update_time is the timestamp at which designed security profile or designed config is updated """ - pass - def __init__(self, + + def __init__( + self, *, sync: global___ConfigSyncCode.ValueType = ..., - nop_lines: typing.Optional[google.protobuf.wrappers_pb2.Int32Value] = ..., - ignored_lines: typing.Optional[google.protobuf.wrappers_pb2.Int32Value] = ..., - added_lines: typing.Optional[google.protobuf.wrappers_pb2.Int32Value] = ..., - deleted_lines: typing.Optional[google.protobuf.wrappers_pb2.Int32Value] = ..., - changed_lines: typing.Optional[google.protobuf.wrappers_pb2.Int32Value] = ..., - digest: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - running_config_update_time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - designed_config_update_time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["added_lines",b"added_lines","changed_lines",b"changed_lines","deleted_lines",b"deleted_lines","designed_config_update_time",b"designed_config_update_time","digest",b"digest","ignored_lines",b"ignored_lines","nop_lines",b"nop_lines","running_config_update_time",b"running_config_update_time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["added_lines",b"added_lines","changed_lines",b"changed_lines","deleted_lines",b"deleted_lines","designed_config_update_time",b"designed_config_update_time","digest",b"digest","ignored_lines",b"ignored_lines","nop_lines",b"nop_lines","running_config_update_time",b"running_config_update_time","sync",b"sync"]) -> None: ... + nop_lines: google.protobuf.wrappers_pb2.Int32Value | None = ..., + ignored_lines: google.protobuf.wrappers_pb2.Int32Value | None = ..., + added_lines: google.protobuf.wrappers_pb2.Int32Value | None = ..., + deleted_lines: google.protobuf.wrappers_pb2.Int32Value | None = ..., + changed_lines: google.protobuf.wrappers_pb2.Int32Value | None = ..., + digest: google.protobuf.wrappers_pb2.StringValue | None = ..., + running_config_update_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + designed_config_update_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["added_lines", b"added_lines", "changed_lines", b"changed_lines", "deleted_lines", b"deleted_lines", "designed_config_update_time", b"designed_config_update_time", "digest", b"digest", "ignored_lines", b"ignored_lines", "nop_lines", b"nop_lines", "running_config_update_time", b"running_config_update_time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["added_lines", b"added_lines", "changed_lines", b"changed_lines", "deleted_lines", b"deleted_lines", "designed_config_update_time", b"designed_config_update_time", "digest", b"digest", "ignored_lines", b"ignored_lines", "nop_lines", b"nop_lines", "running_config_update_time", b"running_config_update_time", "sync", b"sync"]) -> None: ... + global___SecurityProfileComplianceSummary = SecurityProfileComplianceSummary +@typing.final class SecurityProfileDiffSummary(google.protobuf.message.Message): """SecurityProfileDiffSummary holds device compliance summary w.r.t security profile.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int SUMMARY_FIELD_NUMBER: builtins.int @property def key(self) -> global___SummaryKey: """key uniquely identifies the Summary""" - pass + @property def summary(self) -> global___SecurityProfileComplianceSummary: """summary is the security profile configuration compliance summary""" - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[global___SummaryKey] = ..., - summary: typing.Optional[global___SecurityProfileComplianceSummary] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","summary",b"summary"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","summary",b"summary"]) -> None: ... + key: global___SummaryKey | None = ..., + summary: global___SecurityProfileComplianceSummary | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "summary", b"summary"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "summary", b"summary"]) -> None: ... + global___SecurityProfileDiffSummary = SecurityProfileDiffSummary +@typing.final class SecurityProfileDiff(google.protobuf.message.Message): """SecurityProfileDiff holds the security profile configuration diff.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int DIFF_FIELD_NUMBER: builtins.int @property def key(self) -> global___ConfigDiffKey: """key represents security profile config diff key""" - pass + @property def diff(self) -> global___DiffEntries: """diff represents diff entries""" - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[global___ConfigDiffKey] = ..., - diff: typing.Optional[global___DiffEntries] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["diff",b"diff","key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["diff",b"diff","key",b"key"]) -> None: ... + key: global___ConfigDiffKey | None = ..., + diff: global___DiffEntries | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["diff", b"diff", "key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["diff", b"diff", "key", b"key"]) -> None: ... + global___SecurityProfileDiff = SecurityProfileDiff diff --git a/arista/configstatus/v1/services/gen_pb2.pyi b/arista/configstatus/v1/services/gen_pb2.pyi index 52110d3..17901f9 100644 --- a/arista/configstatus/v1/services/gen_pb2.pyi +++ b/arista/configstatus/v1/services/gen_pb2.pyi @@ -1,53 +1,61 @@ """ @generated by mypy-protobuf. Do not edit manually! isort:skip_file + +Code generated by boomtown. DO NOT EDIT. """ + import arista.configstatus.v1.configstatus_pb2 import arista.subscriptions.subscriptions_pb2 import arista.time.time_pb2 import builtins +import collections.abc import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message import google.protobuf.timestamp_pb2 import google.protobuf.wrappers_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class MetaResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int COUNT_FIELD_NUMBER: builtins.int - @property - def time(self) -> google.protobuf.timestamp_pb2.Timestamp: - """Time holds the timestamp of the last item included in the metadata calculation.""" - pass type: arista.subscriptions.subscriptions_pb2.Operation.ValueType """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. """ + @property + def time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """Time holds the timestamp of the last item included in the metadata calculation.""" @property def count(self) -> google.protobuf.wrappers_pb2.UInt32Value: """Count is the number of items present under the conditions of the request.""" - pass - def __init__(self, + + def __init__( + self, *, - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - count: typing.Optional[google.protobuf.wrappers_pb2.UInt32Value] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["count",b"count","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["count",b"count","time",b"time","type",b"type"]) -> None: ... + count: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["count", b"count", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["count", b"count", "time", b"time", "type", b"type"]) -> None: ... + global___MetaResponse = MetaResponse +@typing.final class ConfigDiffRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -55,24 +63,28 @@ class ConfigDiffRequest(google.protobuf.message.Message): """Key uniquely identifies a ConfigDiff instance to retrieve. This value must be populated. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the time for which you are interested in the data. If no time is given, the server will use the time at which it makes the request. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.configstatus.v1.configstatus_pb2.ConfigDiffKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.configstatus.v1.configstatus_pb2.ConfigDiffKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___ConfigDiffRequest = ConfigDiffRequest +@typing.final class ConfigDiffResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -82,24 +94,28 @@ class ConfigDiffResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time carries the (UTC) timestamp of the last-modification of the ConfigDiff instance in this response. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.configstatus.v1.configstatus_pb2.ConfigDiff] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.configstatus.v1.configstatus_pb2.ConfigDiff | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___ConfigDiffResponse = ConfigDiffResponse +@typing.final class ConfigDiffSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -109,18 +125,22 @@ class ConfigDiffSomeRequest(google.protobuf.message.Message): """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. """ - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.configstatus.v1.configstatus_pb2.ConfigDiffKey]] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys","time",b"time"]) -> None: ... + keys: collections.abc.Iterable[arista.configstatus.v1.configstatus_pb2.ConfigDiffKey] | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys", "time", b"time"]) -> None: ... + global___ConfigDiffSomeRequest = ConfigDiffSomeRequest +@typing.final class ConfigDiffSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -131,27 +151,31 @@ class ConfigDiffSomeResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """Error is an optional field. It should be filled when there is an error in the GetSome process. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.configstatus.v1.configstatus_pb2.ConfigDiff] = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> None: ... + value: arista.configstatus.v1.configstatus_pb2.ConfigDiff | None = ..., + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> None: ... + global___ConfigDiffSomeResponse = ConfigDiffSomeResponse +@typing.final class ConfigDiffStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -162,7 +186,7 @@ class ConfigDiffStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -181,51 +205,58 @@ class ConfigDiffStreamRequest(google.protobuf.message.Message): This field is not allowed in the Subscribe RPC. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.configstatus.v1.configstatus_pb2.ConfigDiff]] = ..., - time: typing.Optional[arista.time.time_pb2.TimeBounds] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.configstatus.v1.configstatus_pb2.ConfigDiff] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___ConfigDiffStreamRequest = ConfigDiffStreamRequest +@typing.final class ConfigDiffStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int + type: arista.subscriptions.subscriptions_pb2.Operation.ValueType + """Operation indicates how the ConfigDiff 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. + """ @property def value(self) -> arista.configstatus.v1.configstatus_pb2.ConfigDiff: """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. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time holds the timestamp of this ConfigDiff's last modification.""" - pass - type: arista.subscriptions.subscriptions_pb2.Operation.ValueType - """Operation indicates how the ConfigDiff 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. - """ - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.configstatus.v1.configstatus_pb2.ConfigDiff] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + value: arista.configstatus.v1.configstatus_pb2.ConfigDiff | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "type", b"type", "value", b"value"]) -> None: ... + global___ConfigDiffStreamResponse = ConfigDiffStreamResponse +@typing.final class ConfigDiffBatchedStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int MAX_MESSAGES_FIELD_NUMBER: builtins.int @@ -237,7 +268,7 @@ class ConfigDiffBatchedStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -256,7 +287,7 @@ class ConfigDiffBatchedStreamRequest(google.protobuf.message.Message): 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. @@ -264,19 +295,23 @@ class ConfigDiffBatchedStreamRequest(google.protobuf.message.Message): 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, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.configstatus.v1.configstatus_pb2.ConfigDiff]] = ..., - 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","partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.configstatus.v1.configstatus_pb2.ConfigDiff] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + max_messages: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["max_messages", b"max_messages", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["max_messages", b"max_messages", "partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___ConfigDiffBatchedStreamRequest = ConfigDiffBatchedStreamRequest +@typing.final class ConfigDiffBatchedStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + RESPONSES_FIELD_NUMBER: builtins.int @property def responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ConfigDiffStreamResponse]: @@ -284,16 +319,20 @@ class ConfigDiffBatchedStreamResponse(google.protobuf.message.Message): The length of this structure is guaranteed to be between (inclusive) 1 and min(req.max_messages, INTERNAL_BATCH_LIMIT). """ - pass - def __init__(self, + + def __init__( + self, *, - responses: typing.Optional[typing.Iterable[global___ConfigDiffStreamResponse]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["responses",b"responses"]) -> None: ... + responses: collections.abc.Iterable[global___ConfigDiffStreamResponse] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["responses", b"responses"]) -> None: ... + global___ConfigDiffBatchedStreamResponse = ConfigDiffBatchedStreamResponse +@typing.final class ConfigurationRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -301,24 +340,28 @@ class ConfigurationRequest(google.protobuf.message.Message): """Key uniquely identifies a Configuration instance to retrieve. This value must be populated. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the time for which you are interested in the data. If no time is given, the server will use the time at which it makes the request. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.configstatus.v1.configstatus_pb2.ConfigKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.configstatus.v1.configstatus_pb2.ConfigKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___ConfigurationRequest = ConfigurationRequest +@typing.final class ConfigurationResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -328,24 +371,28 @@ class ConfigurationResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time carries the (UTC) timestamp of the last-modification of the Configuration instance in this response. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.configstatus.v1.configstatus_pb2.Configuration] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.configstatus.v1.configstatus_pb2.Configuration | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___ConfigurationResponse = ConfigurationResponse +@typing.final class ConfigurationSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -355,18 +402,22 @@ class ConfigurationSomeRequest(google.protobuf.message.Message): """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. """ - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.configstatus.v1.configstatus_pb2.ConfigKey]] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys","time",b"time"]) -> None: ... + keys: collections.abc.Iterable[arista.configstatus.v1.configstatus_pb2.ConfigKey] | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys", "time", b"time"]) -> None: ... + global___ConfigurationSomeRequest = ConfigurationSomeRequest +@typing.final class ConfigurationSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -377,27 +428,31 @@ class ConfigurationSomeResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """Error is an optional field. It should be filled when there is an error in the GetSome process. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.configstatus.v1.configstatus_pb2.Configuration] = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> None: ... + value: arista.configstatus.v1.configstatus_pb2.Configuration | None = ..., + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> None: ... + global___ConfigurationSomeResponse = ConfigurationSomeResponse +@typing.final class ConfigurationStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -408,7 +463,7 @@ class ConfigurationStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -427,51 +482,58 @@ class ConfigurationStreamRequest(google.protobuf.message.Message): This field is not allowed in the Subscribe RPC. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.configstatus.v1.configstatus_pb2.Configuration]] = ..., - time: typing.Optional[arista.time.time_pb2.TimeBounds] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.configstatus.v1.configstatus_pb2.Configuration] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___ConfigurationStreamRequest = ConfigurationStreamRequest +@typing.final class ConfigurationStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int + type: arista.subscriptions.subscriptions_pb2.Operation.ValueType + """Operation indicates how the Configuration 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. + """ @property def value(self) -> arista.configstatus.v1.configstatus_pb2.Configuration: """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. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time holds the timestamp of this Configuration's last modification.""" - pass - type: arista.subscriptions.subscriptions_pb2.Operation.ValueType - """Operation indicates how the Configuration 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. - """ - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.configstatus.v1.configstatus_pb2.Configuration] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + value: arista.configstatus.v1.configstatus_pb2.Configuration | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "type", b"type", "value", b"value"]) -> None: ... + global___ConfigurationStreamResponse = ConfigurationStreamResponse +@typing.final class ConfigurationBatchedStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int MAX_MESSAGES_FIELD_NUMBER: builtins.int @@ -483,7 +545,7 @@ class ConfigurationBatchedStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -502,7 +564,7 @@ class ConfigurationBatchedStreamRequest(google.protobuf.message.Message): 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. @@ -510,19 +572,23 @@ class ConfigurationBatchedStreamRequest(google.protobuf.message.Message): 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, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.configstatus.v1.configstatus_pb2.Configuration]] = ..., - 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","partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.configstatus.v1.configstatus_pb2.Configuration] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + max_messages: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["max_messages", b"max_messages", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["max_messages", b"max_messages", "partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___ConfigurationBatchedStreamRequest = ConfigurationBatchedStreamRequest +@typing.final class ConfigurationBatchedStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + RESPONSES_FIELD_NUMBER: builtins.int @property def responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ConfigurationStreamResponse]: @@ -530,16 +596,20 @@ class ConfigurationBatchedStreamResponse(google.protobuf.message.Message): The length of this structure is guaranteed to be between (inclusive) 1 and min(req.max_messages, INTERNAL_BATCH_LIMIT). """ - pass - def __init__(self, + + def __init__( + self, *, - responses: typing.Optional[typing.Iterable[global___ConfigurationStreamResponse]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["responses",b"responses"]) -> None: ... + responses: collections.abc.Iterable[global___ConfigurationStreamResponse] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["responses", b"responses"]) -> None: ... + global___ConfigurationBatchedStreamResponse = ConfigurationBatchedStreamResponse +@typing.final class SecurityProfileRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -547,24 +617,28 @@ class SecurityProfileRequest(google.protobuf.message.Message): """Key uniquely identifies a SecurityProfile instance to retrieve. This value must be populated. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the time for which you are interested in the data. If no time is given, the server will use the time at which it makes the request. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.configstatus.v1.configstatus_pb2.ConfigKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.configstatus.v1.configstatus_pb2.ConfigKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___SecurityProfileRequest = SecurityProfileRequest +@typing.final class SecurityProfileResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -574,24 +648,28 @@ class SecurityProfileResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time carries the (UTC) timestamp of the last-modification of the SecurityProfile instance in this response. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.configstatus.v1.configstatus_pb2.SecurityProfile] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.configstatus.v1.configstatus_pb2.SecurityProfile | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___SecurityProfileResponse = SecurityProfileResponse +@typing.final class SecurityProfileSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -601,18 +679,22 @@ class SecurityProfileSomeRequest(google.protobuf.message.Message): """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. """ - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.configstatus.v1.configstatus_pb2.ConfigKey]] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys","time",b"time"]) -> None: ... + keys: collections.abc.Iterable[arista.configstatus.v1.configstatus_pb2.ConfigKey] | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys", "time", b"time"]) -> None: ... + global___SecurityProfileSomeRequest = SecurityProfileSomeRequest +@typing.final class SecurityProfileSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -623,27 +705,31 @@ class SecurityProfileSomeResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """Error is an optional field. It should be filled when there is an error in the GetSome process. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.configstatus.v1.configstatus_pb2.SecurityProfile] = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> None: ... + value: arista.configstatus.v1.configstatus_pb2.SecurityProfile | None = ..., + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> None: ... + global___SecurityProfileSomeResponse = SecurityProfileSomeResponse +@typing.final class SecurityProfileStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -654,7 +740,7 @@ class SecurityProfileStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -673,51 +759,58 @@ class SecurityProfileStreamRequest(google.protobuf.message.Message): This field is not allowed in the Subscribe RPC. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.configstatus.v1.configstatus_pb2.SecurityProfile]] = ..., - time: typing.Optional[arista.time.time_pb2.TimeBounds] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.configstatus.v1.configstatus_pb2.SecurityProfile] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___SecurityProfileStreamRequest = SecurityProfileStreamRequest +@typing.final class SecurityProfileStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int + type: arista.subscriptions.subscriptions_pb2.Operation.ValueType + """Operation indicates how the SecurityProfile 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. + """ @property def value(self) -> arista.configstatus.v1.configstatus_pb2.SecurityProfile: """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. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time holds the timestamp of this SecurityProfile's last modification.""" - pass - type: arista.subscriptions.subscriptions_pb2.Operation.ValueType - """Operation indicates how the SecurityProfile 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. - """ - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.configstatus.v1.configstatus_pb2.SecurityProfile] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + value: arista.configstatus.v1.configstatus_pb2.SecurityProfile | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "type", b"type", "value", b"value"]) -> None: ... + global___SecurityProfileStreamResponse = SecurityProfileStreamResponse +@typing.final class SecurityProfileBatchedStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int MAX_MESSAGES_FIELD_NUMBER: builtins.int @@ -729,7 +822,7 @@ class SecurityProfileBatchedStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -748,7 +841,7 @@ class SecurityProfileBatchedStreamRequest(google.protobuf.message.Message): 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. @@ -756,19 +849,23 @@ class SecurityProfileBatchedStreamRequest(google.protobuf.message.Message): 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, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.configstatus.v1.configstatus_pb2.SecurityProfile]] = ..., - 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","partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.configstatus.v1.configstatus_pb2.SecurityProfile] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + max_messages: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["max_messages", b"max_messages", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["max_messages", b"max_messages", "partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___SecurityProfileBatchedStreamRequest = SecurityProfileBatchedStreamRequest +@typing.final class SecurityProfileBatchedStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + RESPONSES_FIELD_NUMBER: builtins.int @property def responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SecurityProfileStreamResponse]: @@ -776,16 +873,20 @@ class SecurityProfileBatchedStreamResponse(google.protobuf.message.Message): The length of this structure is guaranteed to be between (inclusive) 1 and min(req.max_messages, INTERNAL_BATCH_LIMIT). """ - pass - def __init__(self, + + def __init__( + self, *, - responses: typing.Optional[typing.Iterable[global___SecurityProfileStreamResponse]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["responses",b"responses"]) -> None: ... + responses: collections.abc.Iterable[global___SecurityProfileStreamResponse] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["responses", b"responses"]) -> None: ... + global___SecurityProfileBatchedStreamResponse = SecurityProfileBatchedStreamResponse +@typing.final class SecurityProfileDiffRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -793,24 +894,28 @@ class SecurityProfileDiffRequest(google.protobuf.message.Message): """Key uniquely identifies a SecurityProfileDiff instance to retrieve. This value must be populated. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the time for which you are interested in the data. If no time is given, the server will use the time at which it makes the request. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.configstatus.v1.configstatus_pb2.ConfigDiffKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.configstatus.v1.configstatus_pb2.ConfigDiffKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___SecurityProfileDiffRequest = SecurityProfileDiffRequest +@typing.final class SecurityProfileDiffResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -820,24 +925,28 @@ class SecurityProfileDiffResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time carries the (UTC) timestamp of the last-modification of the SecurityProfileDiff instance in this response. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.configstatus.v1.configstatus_pb2.SecurityProfileDiff] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.configstatus.v1.configstatus_pb2.SecurityProfileDiff | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___SecurityProfileDiffResponse = SecurityProfileDiffResponse +@typing.final class SecurityProfileDiffSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -847,18 +956,22 @@ class SecurityProfileDiffSomeRequest(google.protobuf.message.Message): """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. """ - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.configstatus.v1.configstatus_pb2.ConfigDiffKey]] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys","time",b"time"]) -> None: ... + keys: collections.abc.Iterable[arista.configstatus.v1.configstatus_pb2.ConfigDiffKey] | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys", "time", b"time"]) -> None: ... + global___SecurityProfileDiffSomeRequest = SecurityProfileDiffSomeRequest +@typing.final class SecurityProfileDiffSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -869,27 +982,31 @@ class SecurityProfileDiffSomeResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """Error is an optional field. It should be filled when there is an error in the GetSome process. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.configstatus.v1.configstatus_pb2.SecurityProfileDiff] = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> None: ... + value: arista.configstatus.v1.configstatus_pb2.SecurityProfileDiff | None = ..., + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> None: ... + global___SecurityProfileDiffSomeResponse = SecurityProfileDiffSomeResponse +@typing.final class SecurityProfileDiffStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -900,7 +1017,7 @@ class SecurityProfileDiffStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -919,51 +1036,58 @@ class SecurityProfileDiffStreamRequest(google.protobuf.message.Message): This field is not allowed in the Subscribe RPC. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.configstatus.v1.configstatus_pb2.SecurityProfileDiff]] = ..., - time: typing.Optional[arista.time.time_pb2.TimeBounds] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.configstatus.v1.configstatus_pb2.SecurityProfileDiff] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___SecurityProfileDiffStreamRequest = SecurityProfileDiffStreamRequest +@typing.final class SecurityProfileDiffStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int + type: arista.subscriptions.subscriptions_pb2.Operation.ValueType + """Operation indicates how the SecurityProfileDiff 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. + """ @property def value(self) -> arista.configstatus.v1.configstatus_pb2.SecurityProfileDiff: """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. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time holds the timestamp of this SecurityProfileDiff's last modification.""" - pass - type: arista.subscriptions.subscriptions_pb2.Operation.ValueType - """Operation indicates how the SecurityProfileDiff 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. - """ - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.configstatus.v1.configstatus_pb2.SecurityProfileDiff] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + value: arista.configstatus.v1.configstatus_pb2.SecurityProfileDiff | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "type", b"type", "value", b"value"]) -> None: ... + global___SecurityProfileDiffStreamResponse = SecurityProfileDiffStreamResponse +@typing.final class SecurityProfileDiffBatchedStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int MAX_MESSAGES_FIELD_NUMBER: builtins.int @@ -975,7 +1099,7 @@ class SecurityProfileDiffBatchedStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -994,7 +1118,7 @@ class SecurityProfileDiffBatchedStreamRequest(google.protobuf.message.Message): 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. @@ -1002,19 +1126,23 @@ class SecurityProfileDiffBatchedStreamRequest(google.protobuf.message.Message): 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, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.configstatus.v1.configstatus_pb2.SecurityProfileDiff]] = ..., - 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","partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.configstatus.v1.configstatus_pb2.SecurityProfileDiff] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + max_messages: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["max_messages", b"max_messages", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["max_messages", b"max_messages", "partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___SecurityProfileDiffBatchedStreamRequest = SecurityProfileDiffBatchedStreamRequest +@typing.final class SecurityProfileDiffBatchedStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + RESPONSES_FIELD_NUMBER: builtins.int @property def responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SecurityProfileDiffStreamResponse]: @@ -1022,16 +1150,20 @@ class SecurityProfileDiffBatchedStreamResponse(google.protobuf.message.Message): The length of this structure is guaranteed to be between (inclusive) 1 and min(req.max_messages, INTERNAL_BATCH_LIMIT). """ - pass - def __init__(self, + + def __init__( + self, *, - responses: typing.Optional[typing.Iterable[global___SecurityProfileDiffStreamResponse]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["responses",b"responses"]) -> None: ... + responses: collections.abc.Iterable[global___SecurityProfileDiffStreamResponse] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["responses", b"responses"]) -> None: ... + global___SecurityProfileDiffBatchedStreamResponse = SecurityProfileDiffBatchedStreamResponse +@typing.final class SecurityProfileDiffSummaryRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -1039,24 +1171,28 @@ class SecurityProfileDiffSummaryRequest(google.protobuf.message.Message): """Key uniquely identifies a SecurityProfileDiffSummary instance to retrieve. This value must be populated. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the time for which you are interested in the data. If no time is given, the server will use the time at which it makes the request. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.configstatus.v1.configstatus_pb2.SummaryKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.configstatus.v1.configstatus_pb2.SummaryKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___SecurityProfileDiffSummaryRequest = SecurityProfileDiffSummaryRequest +@typing.final class SecurityProfileDiffSummaryResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -1066,24 +1202,28 @@ class SecurityProfileDiffSummaryResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time carries the (UTC) timestamp of the last-modification of the SecurityProfileDiffSummary instance in this response. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.configstatus.v1.configstatus_pb2.SecurityProfileDiffSummary] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.configstatus.v1.configstatus_pb2.SecurityProfileDiffSummary | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___SecurityProfileDiffSummaryResponse = SecurityProfileDiffSummaryResponse +@typing.final class SecurityProfileDiffSummarySomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -1093,18 +1233,22 @@ class SecurityProfileDiffSummarySomeRequest(google.protobuf.message.Message): """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. """ - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.configstatus.v1.configstatus_pb2.SummaryKey]] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys","time",b"time"]) -> None: ... + keys: collections.abc.Iterable[arista.configstatus.v1.configstatus_pb2.SummaryKey] | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys", "time", b"time"]) -> None: ... + global___SecurityProfileDiffSummarySomeRequest = SecurityProfileDiffSummarySomeRequest +@typing.final class SecurityProfileDiffSummarySomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -1115,27 +1259,31 @@ class SecurityProfileDiffSummarySomeResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """Error is an optional field. It should be filled when there is an error in the GetSome process. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.configstatus.v1.configstatus_pb2.SecurityProfileDiffSummary] = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> None: ... + value: arista.configstatus.v1.configstatus_pb2.SecurityProfileDiffSummary | None = ..., + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> None: ... + global___SecurityProfileDiffSummarySomeResponse = SecurityProfileDiffSummarySomeResponse +@typing.final class SecurityProfileDiffSummaryStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -1146,7 +1294,7 @@ class SecurityProfileDiffSummaryStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -1165,51 +1313,58 @@ class SecurityProfileDiffSummaryStreamRequest(google.protobuf.message.Message): This field is not allowed in the Subscribe RPC. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.configstatus.v1.configstatus_pb2.SecurityProfileDiffSummary]] = ..., - time: typing.Optional[arista.time.time_pb2.TimeBounds] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.configstatus.v1.configstatus_pb2.SecurityProfileDiffSummary] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___SecurityProfileDiffSummaryStreamRequest = SecurityProfileDiffSummaryStreamRequest +@typing.final class SecurityProfileDiffSummaryStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int + type: arista.subscriptions.subscriptions_pb2.Operation.ValueType + """Operation indicates how the SecurityProfileDiffSummary 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. + """ @property def value(self) -> arista.configstatus.v1.configstatus_pb2.SecurityProfileDiffSummary: """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. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time holds the timestamp of this SecurityProfileDiffSummary's last modification.""" - pass - type: arista.subscriptions.subscriptions_pb2.Operation.ValueType - """Operation indicates how the SecurityProfileDiffSummary 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. - """ - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.configstatus.v1.configstatus_pb2.SecurityProfileDiffSummary] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + value: arista.configstatus.v1.configstatus_pb2.SecurityProfileDiffSummary | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "type", b"type", "value", b"value"]) -> None: ... + global___SecurityProfileDiffSummaryStreamResponse = SecurityProfileDiffSummaryStreamResponse +@typing.final class SecurityProfileDiffSummaryBatchedStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int MAX_MESSAGES_FIELD_NUMBER: builtins.int @@ -1221,7 +1376,7 @@ class SecurityProfileDiffSummaryBatchedStreamRequest(google.protobuf.message.Mes While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -1240,7 +1395,7 @@ class SecurityProfileDiffSummaryBatchedStreamRequest(google.protobuf.message.Mes 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. @@ -1248,19 +1403,23 @@ class SecurityProfileDiffSummaryBatchedStreamRequest(google.protobuf.message.Mes 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, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.configstatus.v1.configstatus_pb2.SecurityProfileDiffSummary]] = ..., - 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","partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.configstatus.v1.configstatus_pb2.SecurityProfileDiffSummary] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + max_messages: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["max_messages", b"max_messages", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["max_messages", b"max_messages", "partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___SecurityProfileDiffSummaryBatchedStreamRequest = SecurityProfileDiffSummaryBatchedStreamRequest +@typing.final class SecurityProfileDiffSummaryBatchedStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + RESPONSES_FIELD_NUMBER: builtins.int @property def responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SecurityProfileDiffSummaryStreamResponse]: @@ -1268,16 +1427,20 @@ class SecurityProfileDiffSummaryBatchedStreamResponse(google.protobuf.message.Me The length of this structure is guaranteed to be between (inclusive) 1 and min(req.max_messages, INTERNAL_BATCH_LIMIT). """ - pass - def __init__(self, + + def __init__( + self, *, - responses: typing.Optional[typing.Iterable[global___SecurityProfileDiffSummaryStreamResponse]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["responses",b"responses"]) -> None: ... + responses: collections.abc.Iterable[global___SecurityProfileDiffSummaryStreamResponse] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["responses", b"responses"]) -> None: ... + global___SecurityProfileDiffSummaryBatchedStreamResponse = SecurityProfileDiffSummaryBatchedStreamResponse +@typing.final class SummaryRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -1285,24 +1448,28 @@ class SummaryRequest(google.protobuf.message.Message): """Key uniquely identifies a Summary instance to retrieve. This value must be populated. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the time for which you are interested in the data. If no time is given, the server will use the time at which it makes the request. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.configstatus.v1.configstatus_pb2.SummaryKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.configstatus.v1.configstatus_pb2.SummaryKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___SummaryRequest = SummaryRequest +@typing.final class SummaryResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -1312,24 +1479,28 @@ class SummaryResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time carries the (UTC) timestamp of the last-modification of the Summary instance in this response. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.configstatus.v1.configstatus_pb2.Summary] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.configstatus.v1.configstatus_pb2.Summary | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___SummaryResponse = SummaryResponse +@typing.final class SummarySomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -1339,18 +1510,22 @@ class SummarySomeRequest(google.protobuf.message.Message): """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. """ - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.configstatus.v1.configstatus_pb2.SummaryKey]] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys","time",b"time"]) -> None: ... + keys: collections.abc.Iterable[arista.configstatus.v1.configstatus_pb2.SummaryKey] | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys", "time", b"time"]) -> None: ... + global___SummarySomeRequest = SummarySomeRequest +@typing.final class SummarySomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -1361,27 +1536,31 @@ class SummarySomeResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """Error is an optional field. It should be filled when there is an error in the GetSome process. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.configstatus.v1.configstatus_pb2.Summary] = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> None: ... + value: arista.configstatus.v1.configstatus_pb2.Summary | None = ..., + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> None: ... + global___SummarySomeResponse = SummarySomeResponse +@typing.final class SummaryStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -1392,7 +1571,7 @@ class SummaryStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -1411,51 +1590,58 @@ class SummaryStreamRequest(google.protobuf.message.Message): This field is not allowed in the Subscribe RPC. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.configstatus.v1.configstatus_pb2.Summary]] = ..., - time: typing.Optional[arista.time.time_pb2.TimeBounds] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.configstatus.v1.configstatus_pb2.Summary] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___SummaryStreamRequest = SummaryStreamRequest +@typing.final class SummaryStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int + type: arista.subscriptions.subscriptions_pb2.Operation.ValueType + """Operation indicates how the Summary 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. + """ @property def value(self) -> arista.configstatus.v1.configstatus_pb2.Summary: """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. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time holds the timestamp of this Summary's last modification.""" - pass - type: arista.subscriptions.subscriptions_pb2.Operation.ValueType - """Operation indicates how the Summary 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. - """ - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.configstatus.v1.configstatus_pb2.Summary] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + value: arista.configstatus.v1.configstatus_pb2.Summary | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "type", b"type", "value", b"value"]) -> None: ... + global___SummaryStreamResponse = SummaryStreamResponse +@typing.final class SummaryBatchedStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int MAX_MESSAGES_FIELD_NUMBER: builtins.int @@ -1467,7 +1653,7 @@ class SummaryBatchedStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -1486,7 +1672,7 @@ class SummaryBatchedStreamRequest(google.protobuf.message.Message): 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. @@ -1494,19 +1680,23 @@ class SummaryBatchedStreamRequest(google.protobuf.message.Message): 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, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.configstatus.v1.configstatus_pb2.Summary]] = ..., - 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","partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.configstatus.v1.configstatus_pb2.Summary] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + max_messages: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["max_messages", b"max_messages", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["max_messages", b"max_messages", "partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___SummaryBatchedStreamRequest = SummaryBatchedStreamRequest +@typing.final class SummaryBatchedStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + RESPONSES_FIELD_NUMBER: builtins.int @property def responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SummaryStreamResponse]: @@ -1514,10 +1704,12 @@ class SummaryBatchedStreamResponse(google.protobuf.message.Message): The length of this structure is guaranteed to be between (inclusive) 1 and min(req.max_messages, INTERNAL_BATCH_LIMIT). """ - pass - def __init__(self, + + def __init__( + self, *, - responses: typing.Optional[typing.Iterable[global___SummaryStreamResponse]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["responses",b"responses"]) -> None: ... + responses: collections.abc.Iterable[global___SummaryStreamResponse] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["responses", b"responses"]) -> None: ... + global___SummaryBatchedStreamResponse = SummaryBatchedStreamResponse diff --git a/arista/connectivitymonitor/v1/connectivitymonitor_pb2.pyi b/arista/connectivitymonitor/v1/connectivitymonitor_pb2.pyi index bd1a43e..685e53f 100644 --- a/arista/connectivitymonitor/v1/connectivitymonitor_pb2.pyi +++ b/arista/connectivitymonitor/v1/connectivitymonitor_pb2.pyi @@ -1,49 +1,60 @@ """ @generated by mypy-protobuf. Do not edit manually! isort:skip_file +Copyright (c) 2023 Arista Networks, Inc. All rights reserved. +Use of this source code is governed by the Apache License 2.0 +that can be found in the COPYING file. """ + import builtins import google.protobuf.descriptor import google.protobuf.message import google.protobuf.wrappers_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class ProbeKey(google.protobuf.message.Message): """ProbeKey uniquely identifies a connectivity monitor probe.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + DEVICE_ID_FIELD_NUMBER: builtins.int HOST_FIELD_NUMBER: builtins.int VRF_FIELD_NUMBER: builtins.int @property def device_id(self) -> google.protobuf.wrappers_pb2.StringValue: """device_id is the id of the device in the probe.""" - pass + @property def host(self) -> google.protobuf.wrappers_pb2.StringValue: """host is the hostname used in the probe.""" - pass + @property def vrf(self) -> google.protobuf.wrappers_pb2.StringValue: """vrf is the name of the VRF in the probe.""" - pass - def __init__(self, + + def __init__( + self, *, - device_id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - host: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - vrf: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["device_id",b"device_id","host",b"host","vrf",b"vrf"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["device_id",b"device_id","host",b"host","vrf",b"vrf"]) -> None: ... + device_id: google.protobuf.wrappers_pb2.StringValue | None = ..., + host: google.protobuf.wrappers_pb2.StringValue | None = ..., + vrf: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["device_id", b"device_id", "host", b"host", "vrf", b"vrf"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["device_id", b"device_id", "host", b"host", "vrf", b"vrf"]) -> None: ... + global___ProbeKey = ProbeKey +@typing.final class ProbeStatsKey(google.protobuf.message.Message): """ProbeStatsKey uniquely identifies a connectivity monitor probe's statistics, per source interface. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + DEVICE_ID_FIELD_NUMBER: builtins.int HOST_FIELD_NUMBER: builtins.int VRF_FIELD_NUMBER: builtins.int @@ -51,36 +62,41 @@ class ProbeStatsKey(google.protobuf.message.Message): @property def device_id(self) -> google.protobuf.wrappers_pb2.StringValue: """device_id is the id of the device in the probe.""" - pass + @property def host(self) -> google.protobuf.wrappers_pb2.StringValue: """host is the hostname used in the probe.""" - pass + @property def vrf(self) -> google.protobuf.wrappers_pb2.StringValue: """vrf is the name of the VRF in the probe.""" - pass + @property def source_intf(self) -> google.protobuf.wrappers_pb2.StringValue: """source_intf is the name of the interface in the probe.""" - pass - def __init__(self, + + def __init__( + self, *, - device_id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - host: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - vrf: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - source_intf: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["device_id",b"device_id","host",b"host","source_intf",b"source_intf","vrf",b"vrf"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["device_id",b"device_id","host",b"host","source_intf",b"source_intf","vrf",b"vrf"]) -> None: ... + device_id: google.protobuf.wrappers_pb2.StringValue | None = ..., + host: google.protobuf.wrappers_pb2.StringValue | None = ..., + vrf: google.protobuf.wrappers_pb2.StringValue | None = ..., + source_intf: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["device_id", b"device_id", "host", b"host", "source_intf", b"source_intf", "vrf", b"vrf"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["device_id", b"device_id", "host", b"host", "source_intf", b"source_intf", "vrf", b"vrf"]) -> None: ... + global___ProbeStatsKey = ProbeStatsKey +@typing.final class Probe(google.protobuf.message.Message): """Probe is identifying information of a connectivity monitor probe. It is used to retrieve probe information without getting the corresponding stats so that probe information can be displayed without streaming all related data, such as in the UI. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int IP_ADDR_FIELD_NUMBER: builtins.int HOST_NAME_FIELD_NUMBER: builtins.int @@ -88,33 +104,38 @@ class Probe(google.protobuf.message.Message): @property def key(self) -> global___ProbeKey: """key uniquely identifies the connectivity monitor probe.""" - pass + @property def ip_addr(self) -> google.protobuf.wrappers_pb2.StringValue: """ip_addr is the IP Address of the probe.""" - pass + @property def host_name(self) -> google.protobuf.wrappers_pb2.StringValue: """host_name is the name of the host of the probe.""" - pass + @property def description(self) -> google.protobuf.wrappers_pb2.StringValue: """description is the description of the probe.""" - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[global___ProbeKey] = ..., - ip_addr: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - host_name: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - description: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["description",b"description","host_name",b"host_name","ip_addr",b"ip_addr","key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["description",b"description","host_name",b"host_name","ip_addr",b"ip_addr","key",b"key"]) -> None: ... + key: global___ProbeKey | None = ..., + ip_addr: google.protobuf.wrappers_pb2.StringValue | None = ..., + host_name: google.protobuf.wrappers_pb2.StringValue | None = ..., + description: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["description", b"description", "host_name", b"host_name", "ip_addr", b"ip_addr", "key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["description", b"description", "host_name", b"host_name", "ip_addr", b"ip_addr", "key", b"key"]) -> None: ... + global___Probe = Probe +@typing.final class ProbeStats(google.protobuf.message.Message): """ProbeStats is the connectivity monitor statistics related to the specified probe.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int LATENCY_MILLIS_FIELD_NUMBER: builtins.int JITTER_MILLIS_FIELD_NUMBER: builtins.int @@ -124,47 +145,49 @@ class ProbeStats(google.protobuf.message.Message): @property def key(self) -> global___ProbeStatsKey: """key uniquely identifies the connectivity monitor probe.""" - pass + @property def latency_millis(self) -> google.protobuf.wrappers_pb2.DoubleValue: """latency_millis is the latency between the device interface and the host. Value is in milliseconds. """ - pass + @property def jitter_millis(self) -> google.protobuf.wrappers_pb2.DoubleValue: """jitter_millis is the amount of jitter experienced by requests between the device interface and host. Value is in milliseconds. """ - pass + @property def http_response_time_millis(self) -> google.protobuf.wrappers_pb2.DoubleValue: """http_response_time_millis is the amount of time taken to respond to a http request between the device interface and the host. Value is in milliseconds. """ - pass + @property def packet_loss_percent(self) -> google.protobuf.wrappers_pb2.Int64Value: """packet_loss_percent is the amount of packet loss experienced by requests between the device interface and host. Value is a percentage. """ - pass + @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """error is the error reported on the connection.""" - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[global___ProbeStatsKey] = ..., - latency_millis: typing.Optional[google.protobuf.wrappers_pb2.DoubleValue] = ..., - jitter_millis: typing.Optional[google.protobuf.wrappers_pb2.DoubleValue] = ..., - http_response_time_millis: typing.Optional[google.protobuf.wrappers_pb2.DoubleValue] = ..., - packet_loss_percent: typing.Optional[google.protobuf.wrappers_pb2.Int64Value] = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","http_response_time_millis",b"http_response_time_millis","jitter_millis",b"jitter_millis","key",b"key","latency_millis",b"latency_millis","packet_loss_percent",b"packet_loss_percent"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","http_response_time_millis",b"http_response_time_millis","jitter_millis",b"jitter_millis","key",b"key","latency_millis",b"latency_millis","packet_loss_percent",b"packet_loss_percent"]) -> None: ... + key: global___ProbeStatsKey | None = ..., + latency_millis: google.protobuf.wrappers_pb2.DoubleValue | None = ..., + jitter_millis: google.protobuf.wrappers_pb2.DoubleValue | None = ..., + http_response_time_millis: google.protobuf.wrappers_pb2.DoubleValue | None = ..., + packet_loss_percent: google.protobuf.wrappers_pb2.Int64Value | None = ..., + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "http_response_time_millis", b"http_response_time_millis", "jitter_millis", b"jitter_millis", "key", b"key", "latency_millis", b"latency_millis", "packet_loss_percent", b"packet_loss_percent"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "http_response_time_millis", b"http_response_time_millis", "jitter_millis", b"jitter_millis", "key", b"key", "latency_millis", b"latency_millis", "packet_loss_percent", b"packet_loss_percent"]) -> None: ... + global___ProbeStats = ProbeStats diff --git a/arista/connectivitymonitor/v1/services/gen_pb2.pyi b/arista/connectivitymonitor/v1/services/gen_pb2.pyi index 6cd9f67..b5a6517 100644 --- a/arista/connectivitymonitor/v1/services/gen_pb2.pyi +++ b/arista/connectivitymonitor/v1/services/gen_pb2.pyi @@ -1,53 +1,61 @@ """ @generated by mypy-protobuf. Do not edit manually! isort:skip_file + +Code generated by boomtown. DO NOT EDIT. """ + import arista.connectivitymonitor.v1.connectivitymonitor_pb2 import arista.subscriptions.subscriptions_pb2 import arista.time.time_pb2 import builtins +import collections.abc import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message import google.protobuf.timestamp_pb2 import google.protobuf.wrappers_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class MetaResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int COUNT_FIELD_NUMBER: builtins.int - @property - def time(self) -> google.protobuf.timestamp_pb2.Timestamp: - """Time holds the timestamp of the last item included in the metadata calculation.""" - pass type: arista.subscriptions.subscriptions_pb2.Operation.ValueType """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. """ + @property + def time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """Time holds the timestamp of the last item included in the metadata calculation.""" @property def count(self) -> google.protobuf.wrappers_pb2.UInt32Value: """Count is the number of items present under the conditions of the request.""" - pass - def __init__(self, + + def __init__( + self, *, - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - count: typing.Optional[google.protobuf.wrappers_pb2.UInt32Value] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["count",b"count","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["count",b"count","time",b"time","type",b"type"]) -> None: ... + count: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["count", b"count", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["count", b"count", "time", b"time", "type", b"type"]) -> None: ... + global___MetaResponse = MetaResponse +@typing.final class ProbeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -55,24 +63,28 @@ class ProbeRequest(google.protobuf.message.Message): """Key uniquely identifies a Probe instance to retrieve. This value must be populated. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the time for which you are interested in the data. If no time is given, the server will use the time at which it makes the request. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.connectivitymonitor.v1.connectivitymonitor_pb2.ProbeKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.connectivitymonitor.v1.connectivitymonitor_pb2.ProbeKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___ProbeRequest = ProbeRequest +@typing.final class ProbeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -82,24 +94,28 @@ class ProbeResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time carries the (UTC) timestamp of the last-modification of the Probe instance in this response. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.connectivitymonitor.v1.connectivitymonitor_pb2.Probe] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.connectivitymonitor.v1.connectivitymonitor_pb2.Probe | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___ProbeResponse = ProbeResponse +@typing.final class ProbeSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -109,18 +125,22 @@ class ProbeSomeRequest(google.protobuf.message.Message): """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. """ - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.connectivitymonitor.v1.connectivitymonitor_pb2.ProbeKey]] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys","time",b"time"]) -> None: ... + keys: collections.abc.Iterable[arista.connectivitymonitor.v1.connectivitymonitor_pb2.ProbeKey] | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys", "time", b"time"]) -> None: ... + global___ProbeSomeRequest = ProbeSomeRequest +@typing.final class ProbeSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -131,27 +151,31 @@ class ProbeSomeResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """Error is an optional field. It should be filled when there is an error in the GetSome process. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.connectivitymonitor.v1.connectivitymonitor_pb2.Probe] = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> None: ... + value: arista.connectivitymonitor.v1.connectivitymonitor_pb2.Probe | None = ..., + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> None: ... + global___ProbeSomeResponse = ProbeSomeResponse +@typing.final class ProbeStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -162,7 +186,7 @@ class ProbeStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -181,51 +205,58 @@ class ProbeStreamRequest(google.protobuf.message.Message): This field is not allowed in the Subscribe RPC. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.connectivitymonitor.v1.connectivitymonitor_pb2.Probe]] = ..., - time: typing.Optional[arista.time.time_pb2.TimeBounds] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.connectivitymonitor.v1.connectivitymonitor_pb2.Probe] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___ProbeStreamRequest = ProbeStreamRequest +@typing.final class ProbeStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int + type: arista.subscriptions.subscriptions_pb2.Operation.ValueType + """Operation indicates how the Probe 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. + """ @property def value(self) -> arista.connectivitymonitor.v1.connectivitymonitor_pb2.Probe: """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. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time holds the timestamp of this Probe's last modification.""" - pass - type: arista.subscriptions.subscriptions_pb2.Operation.ValueType - """Operation indicates how the Probe 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. - """ - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.connectivitymonitor.v1.connectivitymonitor_pb2.Probe] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + value: arista.connectivitymonitor.v1.connectivitymonitor_pb2.Probe | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "type", b"type", "value", b"value"]) -> None: ... + global___ProbeStreamResponse = ProbeStreamResponse +@typing.final class ProbeBatchedStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int MAX_MESSAGES_FIELD_NUMBER: builtins.int @@ -237,7 +268,7 @@ class ProbeBatchedStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -256,7 +287,7 @@ class ProbeBatchedStreamRequest(google.protobuf.message.Message): 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. @@ -264,19 +295,23 @@ class ProbeBatchedStreamRequest(google.protobuf.message.Message): 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, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.connectivitymonitor.v1.connectivitymonitor_pb2.Probe]] = ..., - 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","partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.connectivitymonitor.v1.connectivitymonitor_pb2.Probe] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + max_messages: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["max_messages", b"max_messages", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["max_messages", b"max_messages", "partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___ProbeBatchedStreamRequest = ProbeBatchedStreamRequest +@typing.final class ProbeBatchedStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + RESPONSES_FIELD_NUMBER: builtins.int @property def responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ProbeStreamResponse]: @@ -284,16 +319,20 @@ class ProbeBatchedStreamResponse(google.protobuf.message.Message): The length of this structure is guaranteed to be between (inclusive) 1 and min(req.max_messages, INTERNAL_BATCH_LIMIT). """ - pass - def __init__(self, + + def __init__( + self, *, - responses: typing.Optional[typing.Iterable[global___ProbeStreamResponse]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["responses",b"responses"]) -> None: ... + responses: collections.abc.Iterable[global___ProbeStreamResponse] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["responses", b"responses"]) -> None: ... + global___ProbeBatchedStreamResponse = ProbeBatchedStreamResponse +@typing.final class ProbeStatsRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -301,24 +340,28 @@ class ProbeStatsRequest(google.protobuf.message.Message): """Key uniquely identifies a ProbeStats instance to retrieve. This value must be populated. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the time for which you are interested in the data. If no time is given, the server will use the time at which it makes the request. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.connectivitymonitor.v1.connectivitymonitor_pb2.ProbeStatsKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.connectivitymonitor.v1.connectivitymonitor_pb2.ProbeStatsKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___ProbeStatsRequest = ProbeStatsRequest +@typing.final class ProbeStatsResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -328,24 +371,28 @@ class ProbeStatsResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time carries the (UTC) timestamp of the last-modification of the ProbeStats instance in this response. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.connectivitymonitor.v1.connectivitymonitor_pb2.ProbeStats] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.connectivitymonitor.v1.connectivitymonitor_pb2.ProbeStats | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___ProbeStatsResponse = ProbeStatsResponse +@typing.final class ProbeStatsSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -355,18 +402,22 @@ class ProbeStatsSomeRequest(google.protobuf.message.Message): """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. """ - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.connectivitymonitor.v1.connectivitymonitor_pb2.ProbeStatsKey]] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys","time",b"time"]) -> None: ... + keys: collections.abc.Iterable[arista.connectivitymonitor.v1.connectivitymonitor_pb2.ProbeStatsKey] | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys", "time", b"time"]) -> None: ... + global___ProbeStatsSomeRequest = ProbeStatsSomeRequest +@typing.final class ProbeStatsSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -377,27 +428,31 @@ class ProbeStatsSomeResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """Error is an optional field. It should be filled when there is an error in the GetSome process. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.connectivitymonitor.v1.connectivitymonitor_pb2.ProbeStats] = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> None: ... + value: arista.connectivitymonitor.v1.connectivitymonitor_pb2.ProbeStats | None = ..., + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> None: ... + global___ProbeStatsSomeResponse = ProbeStatsSomeResponse +@typing.final class ProbeStatsStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -408,7 +463,7 @@ class ProbeStatsStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -427,51 +482,58 @@ class ProbeStatsStreamRequest(google.protobuf.message.Message): This field is not allowed in the Subscribe RPC. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.connectivitymonitor.v1.connectivitymonitor_pb2.ProbeStats]] = ..., - time: typing.Optional[arista.time.time_pb2.TimeBounds] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.connectivitymonitor.v1.connectivitymonitor_pb2.ProbeStats] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___ProbeStatsStreamRequest = ProbeStatsStreamRequest +@typing.final class ProbeStatsStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int + type: arista.subscriptions.subscriptions_pb2.Operation.ValueType + """Operation indicates how the ProbeStats 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. + """ @property def value(self) -> arista.connectivitymonitor.v1.connectivitymonitor_pb2.ProbeStats: """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. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time holds the timestamp of this ProbeStats's last modification.""" - pass - type: arista.subscriptions.subscriptions_pb2.Operation.ValueType - """Operation indicates how the ProbeStats 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. - """ - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.connectivitymonitor.v1.connectivitymonitor_pb2.ProbeStats] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + value: arista.connectivitymonitor.v1.connectivitymonitor_pb2.ProbeStats | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "type", b"type", "value", b"value"]) -> None: ... + global___ProbeStatsStreamResponse = ProbeStatsStreamResponse +@typing.final class ProbeStatsBatchedStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int MAX_MESSAGES_FIELD_NUMBER: builtins.int @@ -483,7 +545,7 @@ class ProbeStatsBatchedStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -502,7 +564,7 @@ class ProbeStatsBatchedStreamRequest(google.protobuf.message.Message): 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. @@ -510,19 +572,23 @@ class ProbeStatsBatchedStreamRequest(google.protobuf.message.Message): 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, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.connectivitymonitor.v1.connectivitymonitor_pb2.ProbeStats]] = ..., - 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","partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.connectivitymonitor.v1.connectivitymonitor_pb2.ProbeStats] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + max_messages: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["max_messages", b"max_messages", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["max_messages", b"max_messages", "partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___ProbeStatsBatchedStreamRequest = ProbeStatsBatchedStreamRequest +@typing.final class ProbeStatsBatchedStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + RESPONSES_FIELD_NUMBER: builtins.int @property def responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ProbeStatsStreamResponse]: @@ -530,10 +596,12 @@ class ProbeStatsBatchedStreamResponse(google.protobuf.message.Message): The length of this structure is guaranteed to be between (inclusive) 1 and min(req.max_messages, INTERNAL_BATCH_LIMIT). """ - pass - def __init__(self, + + def __init__( + self, *, - responses: typing.Optional[typing.Iterable[global___ProbeStatsStreamResponse]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["responses",b"responses"]) -> None: ... + responses: collections.abc.Iterable[global___ProbeStatsStreamResponse] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["responses", b"responses"]) -> None: ... + global___ProbeStatsBatchedStreamResponse = ProbeStatsBatchedStreamResponse diff --git a/arista/dashboard/v1/dashboard_pb2.pyi b/arista/dashboard/v1/dashboard_pb2.pyi index b670927..2c74938 100644 --- a/arista/dashboard/v1/dashboard_pb2.pyi +++ b/arista/dashboard/v1/dashboard_pb2.pyi @@ -1,8 +1,13 @@ """ @generated by mypy-protobuf. Do not edit manually! isort:skip_file +Copyright (c) 2023 Arista Networks, Inc. All rights reserved. +Use of this source code is governed by the Apache License 2.0 +that can be found in the COPYING file. """ + import builtins +import collections.abc import fmp.wrappers_pb2 import google.protobuf.descriptor import google.protobuf.internal.containers @@ -10,57 +15,69 @@ import google.protobuf.message import google.protobuf.timestamp_pb2 import google.protobuf.wrappers_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class Position(google.protobuf.message.Message): """Position represents a cell position in the UI.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + X_FIELD_NUMBER: builtins.int Y_FIELD_NUMBER: builtins.int @property def x(self) -> google.protobuf.wrappers_pb2.UInt32Value: """x represents a position in the horizontal axis.""" - pass + @property def y(self) -> google.protobuf.wrappers_pb2.UInt32Value: """y represents a position in the vertical axis.""" - pass - def __init__(self, + + def __init__( + self, *, - x: typing.Optional[google.protobuf.wrappers_pb2.UInt32Value] = ..., - y: typing.Optional[google.protobuf.wrappers_pb2.UInt32Value] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["x",b"x","y",b"y"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["x",b"x","y",b"y"]) -> None: ... + x: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + y: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["x", b"x", "y", b"y"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["x", b"x", "y", b"y"]) -> None: ... + global___Position = Position +@typing.final class Dimensions(google.protobuf.message.Message): """Dimensions represents the dimensions in cells of the widgets in the UI.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + WIDTH_FIELD_NUMBER: builtins.int HEIGHT_FIELD_NUMBER: builtins.int @property def width(self) -> google.protobuf.wrappers_pb2.UInt32Value: """width of the widget in the UI, represented in number of cells.""" - pass + @property def height(self) -> google.protobuf.wrappers_pb2.UInt32Value: """height of the widget in the UI, represented in number of cells.""" - pass - def __init__(self, + + def __init__( + self, *, - width: typing.Optional[google.protobuf.wrappers_pb2.UInt32Value] = ..., - height: typing.Optional[google.protobuf.wrappers_pb2.UInt32Value] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["height",b"height","width",b"width"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["height",b"height","width",b"width"]) -> None: ... + width: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + height: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["height", b"height", "width", b"width"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["height", b"height", "width", b"width"]) -> None: ... + global___Dimensions = Dimensions +@typing.final class WidgetStyles(google.protobuf.message.Message): """WidgetStyles represents the widget's panel appearance.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + HIDE_TITLE_FIELD_NUMBER: builtins.int BACKGROUND_COLOR_FIELD_NUMBER: builtins.int HIDE_HORIZONTAL_BAR_FIELD_NUMBER: builtins.int @@ -68,35 +85,40 @@ class WidgetStyles(google.protobuf.message.Message): @property def hide_title(self) -> google.protobuf.wrappers_pb2.BoolValue: """hide_title is used to hint the dashboard that the widget title must be hidden.""" - pass + @property def background_color(self) -> google.protobuf.wrappers_pb2.StringValue: """background_color is used to set the widget's background color.""" - pass + @property def hide_horizontal_bar(self) -> google.protobuf.wrappers_pb2.BoolValue: """hide_horizontal_bar is used to hint the dashboard that the title separator must be hidden.""" - pass + @property def title_size(self) -> google.protobuf.wrappers_pb2.UInt32Value: """title_size is used to set widget's title size.""" - pass - def __init__(self, + + def __init__( + self, *, - hide_title: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - background_color: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - hide_horizontal_bar: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - title_size: typing.Optional[google.protobuf.wrappers_pb2.UInt32Value] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["background_color",b"background_color","hide_horizontal_bar",b"hide_horizontal_bar","hide_title",b"hide_title","title_size",b"title_size"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["background_color",b"background_color","hide_horizontal_bar",b"hide_horizontal_bar","hide_title",b"hide_title","title_size",b"title_size"]) -> None: ... + hide_title: google.protobuf.wrappers_pb2.BoolValue | None = ..., + background_color: google.protobuf.wrappers_pb2.StringValue | None = ..., + hide_horizontal_bar: google.protobuf.wrappers_pb2.BoolValue | None = ..., + title_size: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["background_color", b"background_color", "hide_horizontal_bar", b"hide_horizontal_bar", "hide_title", b"hide_title", "title_size", b"title_size"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["background_color", b"background_color", "hide_horizontal_bar", b"hide_horizontal_bar", "hide_title", b"hide_title", "title_size", b"title_size"]) -> None: ... + global___WidgetStyles = WidgetStyles +@typing.final class Widget(google.protobuf.message.Message): """Widget is used to create a dashboard. Each widget is responsible to display some type of data. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + ID_FIELD_NUMBER: builtins.int NAME_FIELD_NUMBER: builtins.int POSITION_FIELD_NUMBER: builtins.int @@ -109,95 +131,110 @@ class Widget(google.protobuf.message.Message): @property def id(self) -> google.protobuf.wrappers_pb2.StringValue: """id holds the unique identifier for the widget inside a dashboard""" - pass + @property def name(self) -> google.protobuf.wrappers_pb2.StringValue: """name of the widget is displayed at the top of the widget.""" - pass + @property def position(self) -> global___Position: """position of the widget, represented as a (x,y) coordinate in a grid. Top left is at (0,0). """ - pass + @property def dimensions(self) -> global___Dimensions: """dimensions of the widget represents how many cell in the grid it takes.""" - pass + @property def type(self) -> google.protobuf.wrappers_pb2.StringValue: """type is the widget type. Each type is handled differently in the UI, and can use different `inputs`. """ - pass + @property def inputs(self) -> google.protobuf.wrappers_pb2.StringValue: """inputs contains metadata about the data the widget will display, encoded in a JSON string. Internal data vary based on the widget type `type` and is managed by the client. """ - pass + @property def location(self) -> google.protobuf.wrappers_pb2.StringValue: """location is used as a position display hint, used and managed by the UI.""" - pass + @property def styles(self) -> global___WidgetStyles: """styles represents the widget's panel appearance.""" - pass + @property def parent(self) -> google.protobuf.wrappers_pb2.StringValue: """parent stores the id of its parent widget.""" - pass - def __init__(self, + + def __init__( + self, *, - id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - name: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - position: typing.Optional[global___Position] = ..., - dimensions: typing.Optional[global___Dimensions] = ..., - type: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - inputs: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - location: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - styles: typing.Optional[global___WidgetStyles] = ..., - parent: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["dimensions",b"dimensions","id",b"id","inputs",b"inputs","location",b"location","name",b"name","parent",b"parent","position",b"position","styles",b"styles","type",b"type"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["dimensions",b"dimensions","id",b"id","inputs",b"inputs","location",b"location","name",b"name","parent",b"parent","position",b"position","styles",b"styles","type",b"type"]) -> None: ... + id: google.protobuf.wrappers_pb2.StringValue | None = ..., + name: google.protobuf.wrappers_pb2.StringValue | None = ..., + position: global___Position | None = ..., + dimensions: global___Dimensions | None = ..., + type: google.protobuf.wrappers_pb2.StringValue | None = ..., + inputs: google.protobuf.wrappers_pb2.StringValue | None = ..., + location: google.protobuf.wrappers_pb2.StringValue | None = ..., + styles: global___WidgetStyles | None = ..., + parent: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["dimensions", b"dimensions", "id", b"id", "inputs", b"inputs", "location", b"location", "name", b"name", "parent", b"parent", "position", b"position", "styles", b"styles", "type", b"type"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["dimensions", b"dimensions", "id", b"id", "inputs", b"inputs", "location", b"location", "name", b"name", "parent", b"parent", "position", b"position", "styles", b"styles", "type", b"type"]) -> None: ... + global___Widget = Widget +@typing.final class Widgets(google.protobuf.message.Message): """Widgets holds a list of `Widget`s.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Widget]: """values holds a list of widgets""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[global___Widget]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[global___Widget] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___Widgets = Widgets +@typing.final class DashboardKey(google.protobuf.message.Message): """DashboardKey represents the dashboard unique identifier.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + DASHBOARD_ID_FIELD_NUMBER: builtins.int @property def dashboard_id(self) -> google.protobuf.wrappers_pb2.StringValue: """dashboard_id holds the id of the dashboard""" - pass - def __init__(self, + + def __init__( + self, *, - dashboard_id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["dashboard_id",b"dashboard_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["dashboard_id",b"dashboard_id"]) -> None: ... + dashboard_id: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["dashboard_id", b"dashboard_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["dashboard_id", b"dashboard_id"]) -> None: ... + global___DashboardKey = DashboardKey +@typing.final class DashboardConfig(google.protobuf.message.Message): """DashboardConfig includes all user-editable dashboard fields.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int NAME_FIELD_NUMBER: builtins.int DESCRIPTION_FIELD_NUMBER: builtins.int @@ -207,35 +244,40 @@ class DashboardConfig(google.protobuf.message.Message): """key is the unique identifier. It always must be defined. If set, will create or update a dashboard. """ - pass + @property def name(self) -> google.protobuf.wrappers_pb2.StringValue: """name is the dashboard name, displayed at the top of the dashboard.""" - pass + @property def description(self) -> google.protobuf.wrappers_pb2.StringValue: """description may include details about what is displayed in the dashboard.""" - pass + @property def widgets(self) -> global___Widgets: """widgets list of widgets in the dashboard.""" - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[global___DashboardKey] = ..., - name: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - description: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - widgets: typing.Optional[global___Widgets] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["description",b"description","key",b"key","name",b"name","widgets",b"widgets"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["description",b"description","key",b"key","name",b"name","widgets",b"widgets"]) -> None: ... + key: global___DashboardKey | None = ..., + name: google.protobuf.wrappers_pb2.StringValue | None = ..., + description: google.protobuf.wrappers_pb2.StringValue | None = ..., + widgets: global___Widgets | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["description", b"description", "key", b"key", "name", b"name", "widgets", b"widgets"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["description", b"description", "key", b"key", "name", b"name", "widgets", b"widgets"]) -> None: ... + global___DashboardConfig = DashboardConfig +@typing.final class DashboardMetadata(google.protobuf.message.Message): """DashboardMetadata includes versioning metadata. All the data here is managed internally, and is read-only. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + SCHEMA_VERSION_FIELD_NUMBER: builtins.int LEGACY_KEY_FIELD_NUMBER: builtins.int LEGACY_VERSION_FIELD_NUMBER: builtins.int @@ -243,33 +285,38 @@ class DashboardMetadata(google.protobuf.message.Message): @property def schema_version(self) -> google.protobuf.wrappers_pb2.StringValue: """schema_version is managed internally.""" - pass + @property def legacy_key(self) -> google.protobuf.wrappers_pb2.StringValue: """legacy_key holds the key of a previous version of the dashboard, in case it was migrated.""" - pass + @property def legacy_version(self) -> google.protobuf.wrappers_pb2.StringValue: """legacy_version tells from which version the dashboard was migrated from.""" - pass + @property def from_package(self) -> google.protobuf.wrappers_pb2.StringValue: """from_package records the contributing package key and version, if applicable.""" - pass - def __init__(self, + + def __init__( + self, *, - schema_version: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - legacy_key: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - legacy_version: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - from_package: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["from_package",b"from_package","legacy_key",b"legacy_key","legacy_version",b"legacy_version","schema_version",b"schema_version"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["from_package",b"from_package","legacy_key",b"legacy_key","legacy_version",b"legacy_version","schema_version",b"schema_version"]) -> None: ... + schema_version: google.protobuf.wrappers_pb2.StringValue | None = ..., + legacy_key: google.protobuf.wrappers_pb2.StringValue | None = ..., + legacy_version: google.protobuf.wrappers_pb2.StringValue | None = ..., + from_package: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["from_package", b"from_package", "legacy_key", b"legacy_key", "legacy_version", b"legacy_version", "schema_version", b"schema_version"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["from_package", b"from_package", "legacy_key", b"legacy_key", "legacy_version", b"legacy_version", "schema_version", b"schema_version"]) -> None: ... + global___DashboardMetadata = DashboardMetadata +@typing.final class Filter(google.protobuf.message.Message): """Filter is used to filter dashboards for non exact match cases.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + TAGS_FIELD_NUMBER: builtins.int @property def tags(self) -> fmp.wrappers_pb2.RepeatedString: @@ -279,18 +326,23 @@ class Filter(google.protobuf.message.Message): All provided tags must match inside a dashboard for it to be returned. E.g., to match "#devices", the tag should be set to "devices". """ - pass - def __init__(self, + + def __init__( + self, *, - tags: typing.Optional[fmp.wrappers_pb2.RepeatedString] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["tags",b"tags"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["tags",b"tags"]) -> None: ... + tags: fmp.wrappers_pb2.RepeatedString | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["tags", b"tags"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["tags", b"tags"]) -> None: ... + global___Filter = Filter +@typing.final class Dashboard(google.protobuf.message.Message): """Dashboard state contains all dashboard data.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int CREATED_AT_FIELD_NUMBER: builtins.int CREATED_BY_FIELD_NUMBER: builtins.int @@ -303,77 +355,84 @@ class Dashboard(google.protobuf.message.Message): @property def key(self) -> global___DashboardKey: """key is the unique identifier. It will always be defined.""" - pass + @property def created_at(self) -> google.protobuf.timestamp_pb2.Timestamp: """created_at represents the date the dashboard was first created. Old dashboards may not have this field set. """ - pass + @property def created_by(self) -> google.protobuf.wrappers_pb2.StringValue: """created_by keeps the name of the user who first created this dashboard. Old dashboards may not have this field set. """ - pass + @property def last_modified_at(self) -> google.protobuf.timestamp_pb2.Timestamp: """last_modified_at holds the timestamp this dashboard was last updated by an user. Old dashboards may not have this field set. """ - pass + @property def last_modified_by(self) -> google.protobuf.wrappers_pb2.StringValue: """last_modified_by holds the username who last updated this dashboard. Old dashboards may not have this field set. """ - pass + @property def meta_data(self) -> global___DashboardMetadata: """meta_data includes version metadata about the dashboard.""" - pass + @property def name(self) -> google.protobuf.wrappers_pb2.StringValue: """name is the dashboard name, displayed at the top of the dashboard.""" - pass + @property def description(self) -> google.protobuf.wrappers_pb2.StringValue: """description may include details about what is displayed in the dashboard.""" - pass + @property def widgets(self) -> global___Widgets: """widgets list of widgets in the dashboard.""" - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[global___DashboardKey] = ..., - created_at: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - created_by: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - last_modified_at: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - last_modified_by: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - meta_data: typing.Optional[global___DashboardMetadata] = ..., - name: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - description: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - widgets: typing.Optional[global___Widgets] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["created_at",b"created_at","created_by",b"created_by","description",b"description","key",b"key","last_modified_at",b"last_modified_at","last_modified_by",b"last_modified_by","meta_data",b"meta_data","name",b"name","widgets",b"widgets"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["created_at",b"created_at","created_by",b"created_by","description",b"description","key",b"key","last_modified_at",b"last_modified_at","last_modified_by",b"last_modified_by","meta_data",b"meta_data","name",b"name","widgets",b"widgets"]) -> None: ... + key: global___DashboardKey | None = ..., + created_at: google.protobuf.timestamp_pb2.Timestamp | None = ..., + created_by: google.protobuf.wrappers_pb2.StringValue | None = ..., + last_modified_at: google.protobuf.timestamp_pb2.Timestamp | None = ..., + last_modified_by: google.protobuf.wrappers_pb2.StringValue | None = ..., + meta_data: global___DashboardMetadata | None = ..., + name: google.protobuf.wrappers_pb2.StringValue | None = ..., + description: google.protobuf.wrappers_pb2.StringValue | None = ..., + widgets: global___Widgets | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["created_at", b"created_at", "created_by", b"created_by", "description", b"description", "key", b"key", "last_modified_at", b"last_modified_at", "last_modified_by", b"last_modified_by", "meta_data", b"meta_data", "name", b"name", "widgets", b"widgets"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["created_at", b"created_at", "created_by", b"created_by", "description", b"description", "key", b"key", "last_modified_at", b"last_modified_at", "last_modified_by", b"last_modified_by", "meta_data", b"meta_data", "name", b"name", "widgets", b"widgets"]) -> None: ... + global___Dashboard = Dashboard +@typing.final class GlobalDashboardConfig(google.protobuf.message.Message): """GlobalDashboardConfig holds global configs related to Dashboards.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + DEFAULT_DASHBOARD_FIELD_NUMBER: builtins.int @property def default_dashboard(self) -> global___DashboardKey: """default_dashboard is the default dashboard shown to a user. To unset, use an empty key (`{dashboard_id: nil}`) in a `Set()` call. """ - pass - def __init__(self, + + def __init__( + self, *, - default_dashboard: typing.Optional[global___DashboardKey] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["default_dashboard",b"default_dashboard"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["default_dashboard",b"default_dashboard"]) -> None: ... + default_dashboard: global___DashboardKey | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["default_dashboard", b"default_dashboard"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["default_dashboard", b"default_dashboard"]) -> None: ... + global___GlobalDashboardConfig = GlobalDashboardConfig diff --git a/arista/dashboard/v1/services/gen_pb2.pyi b/arista/dashboard/v1/services/gen_pb2.pyi index a5bd1af..ee57139 100644 --- a/arista/dashboard/v1/services/gen_pb2.pyi +++ b/arista/dashboard/v1/services/gen_pb2.pyi @@ -1,11 +1,15 @@ """ @generated by mypy-protobuf. Do not edit manually! isort:skip_file + +Code generated by boomtown. DO NOT EDIT. """ + import arista.dashboard.v1.dashboard_pb2 import arista.subscriptions.subscriptions_pb2 import arista.time.time_pb2 import builtins +import collections.abc import fmp.deletes_pb2 import google.protobuf.descriptor import google.protobuf.internal.containers @@ -13,42 +17,46 @@ import google.protobuf.message import google.protobuf.timestamp_pb2 import google.protobuf.wrappers_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class MetaResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int COUNT_FIELD_NUMBER: builtins.int - @property - def time(self) -> google.protobuf.timestamp_pb2.Timestamp: - """Time holds the timestamp of the last item included in the metadata calculation.""" - pass type: arista.subscriptions.subscriptions_pb2.Operation.ValueType """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. """ + @property + def time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """Time holds the timestamp of the last item included in the metadata calculation.""" @property def count(self) -> google.protobuf.wrappers_pb2.UInt32Value: """Count is the number of items present under the conditions of the request.""" - pass - def __init__(self, + + def __init__( + self, *, - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - count: typing.Optional[google.protobuf.wrappers_pb2.UInt32Value] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["count",b"count","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["count",b"count","time",b"time","type",b"type"]) -> None: ... + count: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["count", b"count", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["count", b"count", "time", b"time", "type", b"type"]) -> None: ... + global___MetaResponse = MetaResponse +@typing.final class DashboardRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -56,24 +64,28 @@ class DashboardRequest(google.protobuf.message.Message): """Key uniquely identifies a Dashboard instance to retrieve. This value must be populated. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the time for which you are interested in the data. If no time is given, the server will use the time at which it makes the request. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.dashboard.v1.dashboard_pb2.DashboardKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.dashboard.v1.dashboard_pb2.DashboardKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___DashboardRequest = DashboardRequest +@typing.final class DashboardResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -83,24 +95,28 @@ class DashboardResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time carries the (UTC) timestamp of the last-modification of the Dashboard instance in this response. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.dashboard.v1.dashboard_pb2.Dashboard] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.dashboard.v1.dashboard_pb2.Dashboard | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___DashboardResponse = DashboardResponse +@typing.final class DashboardSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -110,18 +126,22 @@ class DashboardSomeRequest(google.protobuf.message.Message): """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. """ - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.dashboard.v1.dashboard_pb2.DashboardKey]] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys","time",b"time"]) -> None: ... + keys: collections.abc.Iterable[arista.dashboard.v1.dashboard_pb2.DashboardKey] | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys", "time", b"time"]) -> None: ... + global___DashboardSomeRequest = DashboardSomeRequest +@typing.final class DashboardSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -132,27 +152,31 @@ class DashboardSomeResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """Error is an optional field. It should be filled when there is an error in the GetSome process. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - def __init__(self, - *, - value: typing.Optional[arista.dashboard.v1.dashboard_pb2.Dashboard] = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> None: ... + def __init__( + self, + *, + value: arista.dashboard.v1.dashboard_pb2.Dashboard | None = ..., + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> None: ... + global___DashboardSomeResponse = DashboardSomeResponse +@typing.final class DashboardStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -164,14 +188,14 @@ class DashboardStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def filter(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.dashboard.v1.dashboard_pb2.Filter]: """For each Dashboard in the list, all populated fields are considered ANDed together as a filtering operation. Similarly, the list itself is ORed such that any individual filter that matches a given Dashboard is streamed to the user. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -190,52 +214,59 @@ class DashboardStreamRequest(google.protobuf.message.Message): This field is not allowed in the Subscribe RPC. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.dashboard.v1.dashboard_pb2.Dashboard]] = ..., - filter: typing.Optional[typing.Iterable[arista.dashboard.v1.dashboard_pb2.Filter]] = ..., - time: typing.Optional[arista.time.time_pb2.TimeBounds] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["filter",b"filter","partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.dashboard.v1.dashboard_pb2.Dashboard] | None = ..., + filter: collections.abc.Iterable[arista.dashboard.v1.dashboard_pb2.Filter] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["filter", b"filter", "partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___DashboardStreamRequest = DashboardStreamRequest +@typing.final class DashboardStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int + type: arista.subscriptions.subscriptions_pb2.Operation.ValueType + """Operation indicates how the Dashboard 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. + """ @property def value(self) -> arista.dashboard.v1.dashboard_pb2.Dashboard: """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. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time holds the timestamp of this Dashboard's last modification.""" - pass - type: arista.subscriptions.subscriptions_pb2.Operation.ValueType - """Operation indicates how the Dashboard 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. - """ - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.dashboard.v1.dashboard_pb2.Dashboard] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + value: arista.dashboard.v1.dashboard_pb2.Dashboard | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "type", b"type", "value", b"value"]) -> None: ... + global___DashboardStreamResponse = DashboardStreamResponse +@typing.final class DashboardBatchedStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -248,14 +279,14 @@ class DashboardBatchedStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def filter(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.dashboard.v1.dashboard_pb2.Filter]: """For each Dashboard in the list, all populated fields are considered ANDed together as a filtering operation. Similarly, the list itself is ORed such that any individual filter that matches a given Dashboard is streamed to the user. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -274,7 +305,7 @@ class DashboardBatchedStreamRequest(google.protobuf.message.Message): 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. @@ -282,20 +313,24 @@ class DashboardBatchedStreamRequest(google.protobuf.message.Message): 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, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.dashboard.v1.dashboard_pb2.Dashboard]] = ..., - filter: typing.Optional[typing.Iterable[arista.dashboard.v1.dashboard_pb2.Filter]] = ..., - 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["filter",b"filter","max_messages",b"max_messages","partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.dashboard.v1.dashboard_pb2.Dashboard] | None = ..., + filter: collections.abc.Iterable[arista.dashboard.v1.dashboard_pb2.Filter] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + max_messages: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["max_messages", b"max_messages", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["filter", b"filter", "max_messages", b"max_messages", "partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___DashboardBatchedStreamRequest = DashboardBatchedStreamRequest +@typing.final class DashboardBatchedStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + RESPONSES_FIELD_NUMBER: builtins.int @property def responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___DashboardStreamResponse]: @@ -303,16 +338,20 @@ class DashboardBatchedStreamResponse(google.protobuf.message.Message): The length of this structure is guaranteed to be between (inclusive) 1 and min(req.max_messages, INTERNAL_BATCH_LIMIT). """ - pass - def __init__(self, + + def __init__( + self, *, - responses: typing.Optional[typing.Iterable[global___DashboardStreamResponse]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["responses",b"responses"]) -> None: ... + responses: collections.abc.Iterable[global___DashboardStreamResponse] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["responses", b"responses"]) -> None: ... + global___DashboardBatchedStreamResponse = DashboardBatchedStreamResponse +@typing.final class DashboardConfigRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -320,24 +359,28 @@ class DashboardConfigRequest(google.protobuf.message.Message): """Key uniquely identifies a DashboardConfig instance to retrieve. This value must be populated. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the time for which you are interested in the data. If no time is given, the server will use the time at which it makes the request. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.dashboard.v1.dashboard_pb2.DashboardKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.dashboard.v1.dashboard_pb2.DashboardKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___DashboardConfigRequest = DashboardConfigRequest +@typing.final class DashboardConfigResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -347,24 +390,28 @@ class DashboardConfigResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time carries the (UTC) timestamp of the last-modification of the DashboardConfig instance in this response. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.dashboard.v1.dashboard_pb2.DashboardConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.dashboard.v1.dashboard_pb2.DashboardConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___DashboardConfigResponse = DashboardConfigResponse +@typing.final class DashboardConfigSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -374,18 +421,22 @@ class DashboardConfigSomeRequest(google.protobuf.message.Message): """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. """ - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.dashboard.v1.dashboard_pb2.DashboardKey]] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys","time",b"time"]) -> None: ... + keys: collections.abc.Iterable[arista.dashboard.v1.dashboard_pb2.DashboardKey] | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys", "time", b"time"]) -> None: ... + global___DashboardConfigSomeRequest = DashboardConfigSomeRequest +@typing.final class DashboardConfigSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -396,27 +447,31 @@ class DashboardConfigSomeResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """Error is an optional field. It should be filled when there is an error in the GetSome process. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - def __init__(self, - *, - value: typing.Optional[arista.dashboard.v1.dashboard_pb2.DashboardConfig] = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> None: ... + def __init__( + self, + *, + value: arista.dashboard.v1.dashboard_pb2.DashboardConfig | None = ..., + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> None: ... + global___DashboardConfigSomeResponse = DashboardConfigSomeResponse +@typing.final class DashboardConfigStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -427,7 +482,7 @@ class DashboardConfigStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -446,51 +501,58 @@ class DashboardConfigStreamRequest(google.protobuf.message.Message): This field is not allowed in the Subscribe RPC. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.dashboard.v1.dashboard_pb2.DashboardConfig]] = ..., - time: typing.Optional[arista.time.time_pb2.TimeBounds] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.dashboard.v1.dashboard_pb2.DashboardConfig] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___DashboardConfigStreamRequest = DashboardConfigStreamRequest +@typing.final class DashboardConfigStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int + type: arista.subscriptions.subscriptions_pb2.Operation.ValueType + """Operation indicates how the DashboardConfig 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. + """ @property def value(self) -> arista.dashboard.v1.dashboard_pb2.DashboardConfig: """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. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time holds the timestamp of this DashboardConfig's last modification.""" - pass - type: arista.subscriptions.subscriptions_pb2.Operation.ValueType - """Operation indicates how the DashboardConfig 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. - """ - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.dashboard.v1.dashboard_pb2.DashboardConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + value: arista.dashboard.v1.dashboard_pb2.DashboardConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "type", b"type", "value", b"value"]) -> None: ... + global___DashboardConfigStreamResponse = DashboardConfigStreamResponse +@typing.final class DashboardConfigBatchedStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int MAX_MESSAGES_FIELD_NUMBER: builtins.int @@ -502,7 +564,7 @@ class DashboardConfigBatchedStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -521,7 +583,7 @@ class DashboardConfigBatchedStreamRequest(google.protobuf.message.Message): 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. @@ -529,19 +591,23 @@ class DashboardConfigBatchedStreamRequest(google.protobuf.message.Message): 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, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.dashboard.v1.dashboard_pb2.DashboardConfig]] = ..., - 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","partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.dashboard.v1.dashboard_pb2.DashboardConfig] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + max_messages: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["max_messages", b"max_messages", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["max_messages", b"max_messages", "partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___DashboardConfigBatchedStreamRequest = DashboardConfigBatchedStreamRequest +@typing.final class DashboardConfigBatchedStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + RESPONSES_FIELD_NUMBER: builtins.int @property def responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___DashboardConfigStreamResponse]: @@ -549,33 +615,41 @@ class DashboardConfigBatchedStreamResponse(google.protobuf.message.Message): The length of this structure is guaranteed to be between (inclusive) 1 and min(req.max_messages, INTERNAL_BATCH_LIMIT). """ - pass - def __init__(self, + + def __init__( + self, *, - responses: typing.Optional[typing.Iterable[global___DashboardConfigStreamResponse]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["responses",b"responses"]) -> None: ... + responses: collections.abc.Iterable[global___DashboardConfigStreamResponse] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["responses", b"responses"]) -> None: ... + global___DashboardConfigBatchedStreamResponse = DashboardConfigBatchedStreamResponse +@typing.final class DashboardConfigSetRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int @property def value(self) -> arista.dashboard.v1.dashboard_pb2.DashboardConfig: """DashboardConfig carries the value to set into the datastore. See the documentation on the DashboardConfig struct for which fields are required. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.dashboard.v1.dashboard_pb2.DashboardConfig] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["value",b"value"]) -> None: ... + value: arista.dashboard.v1.dashboard_pb2.DashboardConfig | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["value", b"value"]) -> None: ... + global___DashboardConfigSetRequest = DashboardConfigSetRequest +@typing.final class DashboardConfigSetResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -583,7 +657,7 @@ class DashboardConfigSetResponse(google.protobuf.message.Message): """Value carries all the values given in the DashboardConfigSetRequest as well as any server-generated values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp at which the system recognizes the @@ -592,18 +666,22 @@ class DashboardConfigSetResponse(google.protobuf.message.Message): - it is after the time the request was received - a time-ranged query with StartTime==CreatedAt will include this instance. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.dashboard.v1.dashboard_pb2.DashboardConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.dashboard.v1.dashboard_pb2.DashboardConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___DashboardConfigSetResponse = DashboardConfigSetResponse +@typing.final class DashboardConfigSetSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.dashboard.v1.dashboard_pb2.DashboardConfig]: @@ -614,55 +692,67 @@ class DashboardConfigSetSomeRequest(google.protobuf.message.Message): If this error occurs you must reduce the number of values sent. See gRPC "maximum message size" documentation for more information. """ - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[arista.dashboard.v1.dashboard_pb2.DashboardConfig]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[arista.dashboard.v1.dashboard_pb2.DashboardConfig] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___DashboardConfigSetSomeRequest = DashboardConfigSetSomeRequest +@typing.final class DashboardConfigSetSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int + error: builtins.str @property def key(self) -> arista.dashboard.v1.dashboard_pb2.DashboardKey: ... - error: typing.Text - def __init__(self, - *, - key: typing.Optional[arista.dashboard.v1.dashboard_pb2.DashboardKey] = ..., - error: typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key"]) -> None: ... + def __init__( + self, + *, + key: arista.dashboard.v1.dashboard_pb2.DashboardKey | None = ..., + error: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key"]) -> None: ... + global___DashboardConfigSetSomeResponse = DashboardConfigSetSomeResponse +@typing.final class DashboardConfigDeleteRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int @property def key(self) -> arista.dashboard.v1.dashboard_pb2.DashboardKey: """Key indicates which DashboardConfig instance to remove. This field must always be set. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.dashboard.v1.dashboard_pb2.DashboardKey] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key"]) -> None: ... + key: arista.dashboard.v1.dashboard_pb2.DashboardKey | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key"]) -> None: ... + global___DashboardConfigDeleteRequest = DashboardConfigDeleteRequest +@typing.final class DashboardConfigDeleteResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property def key(self) -> arista.dashboard.v1.dashboard_pb2.DashboardKey: """Key echoes back the key of the deleted DashboardConfig instance.""" - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp at which the system recognizes the @@ -671,49 +761,62 @@ class DashboardConfigDeleteResponse(google.protobuf.message.Message): - it is after the time the request was received - a time-ranged query with StartTime==DeletedAt will not include this instance. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.dashboard.v1.dashboard_pb2.DashboardKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.dashboard.v1.dashboard_pb2.DashboardKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___DashboardConfigDeleteResponse = DashboardConfigDeleteResponse +@typing.final class DashboardConfigDeleteSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int @property def keys(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.dashboard.v1.dashboard_pb2.DashboardKey]: """key contains a list of DashboardConfig keys to delete""" - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.dashboard.v1.dashboard_pb2.DashboardKey]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys"]) -> None: ... + keys: collections.abc.Iterable[arista.dashboard.v1.dashboard_pb2.DashboardKey] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys"]) -> None: ... + global___DashboardConfigDeleteSomeRequest = DashboardConfigDeleteSomeRequest +@typing.final class DashboardConfigDeleteSomeResponse(google.protobuf.message.Message): """DashboardConfigDeleteSomeResponse is only sent when there is an error.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int + error: builtins.str @property def key(self) -> arista.dashboard.v1.dashboard_pb2.DashboardKey: ... - error: typing.Text - def __init__(self, - *, - key: typing.Optional[arista.dashboard.v1.dashboard_pb2.DashboardKey] = ..., - error: typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key"]) -> None: ... + def __init__( + self, + *, + key: arista.dashboard.v1.dashboard_pb2.DashboardKey | None = ..., + error: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key"]) -> None: ... + global___DashboardConfigDeleteSomeResponse = DashboardConfigDeleteSomeResponse +@typing.final class DashboardConfigDeleteAllRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int @property def partial_eq_filter(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.dashboard.v1.dashboard_pb2.DashboardConfig]: @@ -721,16 +824,20 @@ class DashboardConfigDeleteAllRequest(google.protobuf.message.Message): This requires all provided fields to be equal to the response. A filtered DeleteAll will use GetAll with filter to find things to delete. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.dashboard.v1.dashboard_pb2.DashboardConfig]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.dashboard.v1.dashboard_pb2.DashboardConfig] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter"]) -> None: ... + global___DashboardConfigDeleteAllRequest = DashboardConfigDeleteAllRequest +@typing.final class DashboardConfigDeleteAllResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TYPE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int KEY_FIELD_NUMBER: builtins.int @@ -739,49 +846,56 @@ class DashboardConfigDeleteAllResponse(google.protobuf.message.Message): """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: """This indicates the error message from the delete failure.""" - pass + @property def key(self) -> arista.dashboard.v1.dashboard_pb2.DashboardKey: """This is the key of the DashboardConfig instance that failed to be deleted.""" - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp when the key was being deleted.""" - pass - def __init__(self, + + def __init__( + self, *, type: fmp.deletes_pb2.DeleteError.ValueType = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - key: typing.Optional[arista.dashboard.v1.dashboard_pb2.DashboardKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key","time",b"time","type",b"type"]) -> None: ... + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + key: arista.dashboard.v1.dashboard_pb2.DashboardKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key", "time", b"time", "type", b"type"]) -> None: ... + global___DashboardConfigDeleteAllResponse = DashboardConfigDeleteAllResponse +@typing.final class GlobalDashboardConfigRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TIME_FIELD_NUMBER: builtins.int @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the time for which you are interested in the data. If no time is given, the server will use the time at which it makes the request. """ - pass - def __init__(self, + + def __init__( + self, *, - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time"]) -> None: ... + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time"]) -> None: ... + global___GlobalDashboardConfigRequest = GlobalDashboardConfigRequest +@typing.final class GlobalDashboardConfigResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -791,24 +905,28 @@ class GlobalDashboardConfigResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time carries the (UTC) timestamp of the last-modification of the GlobalDashboardConfig instance in this response. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.dashboard.v1.dashboard_pb2.GlobalDashboardConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.dashboard.v1.dashboard_pb2.GlobalDashboardConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___GlobalDashboardConfigResponse = GlobalDashboardConfigResponse +@typing.final class GlobalDashboardConfigStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -819,7 +937,7 @@ class GlobalDashboardConfigStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -838,68 +956,79 @@ class GlobalDashboardConfigStreamRequest(google.protobuf.message.Message): This field is not allowed in the Subscribe RPC. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.dashboard.v1.dashboard_pb2.GlobalDashboardConfig]] = ..., - time: typing.Optional[arista.time.time_pb2.TimeBounds] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.dashboard.v1.dashboard_pb2.GlobalDashboardConfig] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___GlobalDashboardConfigStreamRequest = GlobalDashboardConfigStreamRequest +@typing.final class GlobalDashboardConfigStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int + type: arista.subscriptions.subscriptions_pb2.Operation.ValueType + """Operation indicates how the GlobalDashboardConfig 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. + """ @property def value(self) -> arista.dashboard.v1.dashboard_pb2.GlobalDashboardConfig: """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. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time holds the timestamp of this GlobalDashboardConfig's last modification.""" - pass - type: arista.subscriptions.subscriptions_pb2.Operation.ValueType - """Operation indicates how the GlobalDashboardConfig 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. - """ - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.dashboard.v1.dashboard_pb2.GlobalDashboardConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + value: arista.dashboard.v1.dashboard_pb2.GlobalDashboardConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "type", b"type", "value", b"value"]) -> None: ... + global___GlobalDashboardConfigStreamResponse = GlobalDashboardConfigStreamResponse +@typing.final class GlobalDashboardConfigSetRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int @property def value(self) -> arista.dashboard.v1.dashboard_pb2.GlobalDashboardConfig: """GlobalDashboardConfig carries the value to set into the datastore. See the documentation on the GlobalDashboardConfig struct for which fields are required. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.dashboard.v1.dashboard_pb2.GlobalDashboardConfig] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["value",b"value"]) -> None: ... + value: arista.dashboard.v1.dashboard_pb2.GlobalDashboardConfig | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["value", b"value"]) -> None: ... + global___GlobalDashboardConfigSetRequest = GlobalDashboardConfigSetRequest +@typing.final class GlobalDashboardConfigSetResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -907,7 +1036,7 @@ class GlobalDashboardConfigSetResponse(google.protobuf.message.Message): """Value carries all the values given in the GlobalDashboardConfigSetRequest as well as any server-generated values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp at which the system recognizes the @@ -916,12 +1045,14 @@ class GlobalDashboardConfigSetResponse(google.protobuf.message.Message): - it is after the time the request was received - a time-ranged query with StartTime==CreatedAt will include this instance. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.dashboard.v1.dashboard_pb2.GlobalDashboardConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.dashboard.v1.dashboard_pb2.GlobalDashboardConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___GlobalDashboardConfigSetResponse = GlobalDashboardConfigSetResponse diff --git a/arista/endpointlocation/v1/endpointlocation_pb2.pyi b/arista/endpointlocation/v1/endpointlocation_pb2.pyi index 847f397..1cf5609 100644 --- a/arista/endpointlocation/v1/endpointlocation_pb2.pyi +++ b/arista/endpointlocation/v1/endpointlocation_pb2.pyi @@ -1,8 +1,13 @@ """ @generated by mypy-protobuf. Do not edit manually! isort:skip_file +Copyright (c) 2023 Arista Networks, Inc. All rights reserved. +Use of this source code is governed by the Apache License 2.0 +that can be found in the COPYING file. """ + import builtins +import collections.abc import fmp.wrappers_pb2 import google.protobuf.descriptor import google.protobuf.internal.containers @@ -10,325 +15,242 @@ import google.protobuf.internal.enum_type_wrapper import google.protobuf.message import google.protobuf.timestamp_pb2 import google.protobuf.wrappers_pb2 +import sys import typing -import typing_extensions + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor class _MacType: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _MacTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_MacType.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor MAC_TYPE_UNSPECIFIED: _MacType.ValueType # 0 """MAC_TYPE_UNSPECIFIED is the default unspecified MAC type.""" - MAC_TYPE_LEARNED_DYNAMIC: _MacType.ValueType # 1 """MAC_TYPE_LEARNED_DYNAMIC indicates a MAC that is dynamically learned in hardware.""" - MAC_TYPE_LEARNED_SECURE: _MacType.ValueType # 2 """MAC_TYPE_LEARNED_SECURE indicates a MAC that is learned in hardware on a port-security protect interface.""" - MAC_TYPE_CONFIGURED_DYNAMIC: _MacType.ValueType # 3 """MAC_TYPE_CONFIGURED_DYNAMIC indicates a configured dynamic MAC.""" - MAC_TYPE_CONFIGURED_SECURE: _MacType.ValueType # 4 """MAC_TYPE_CONFIGURED_SECURE indicates a MAC configured on an interface with Port Security: Protect mode enabled""" - MAC_TYPE_CONFIGURED_STATIC: _MacType.ValueType # 5 """MAC_TYPE_CONFIGURED_STATIC indicates a statically configured MAC.""" - MAC_TYPE_PEER_DYNAMIC: _MacType.ValueType # 6 """MAC_TYPE_PEER_DYNAMIC indicates a dynamically learned MAC discovered via an MLAG peer.""" - MAC_TYPE_PEER_STATIC: _MacType.ValueType # 7 """MAC_TYPE_PEER_STATIC indicates a statically configured MAC discovered via an MLAG peer.""" - MAC_TYPE_PEER_SECURE: _MacType.ValueType # 8 """MAC_TYPE_PEER_SECURE indicates a secure MAC learned from an MLAG peer.""" - MAC_TYPE_LEARNED_REMOTE: _MacType.ValueType # 9 """MAC_TYPE_LEARNED_REMOTE indicates a MAC learned remotely behind a VxLAN VTEP.""" - MAC_TYPE_CONFIGURED_REMOTE: _MacType.ValueType # 10 """MAC_TYPE_CONFIGURED_REMOTE indicates a MAC configured behind a VxLAN VTEP.""" - MAC_TYPE_RECEIVED_REMOTE: _MacType.ValueType # 11 """MAC_TYPE_RECEIVED_REMOTE indicates a MAC received from a VxLAN controller.""" - MAC_TYPE_PEER_LEARNED_REMOTE: _MacType.ValueType # 12 """MAC_TYPE_PEER_LEARNED_REMOTE indicates a remote MAC learned on a peer VTEP.""" - MAC_TYPE_PEER_CONFIGURED_REMOTE: _MacType.ValueType # 13 """MAC_TYPE_PEER_CONFIGURED_REMOTE indicates an MLAG peer configured remote MAC.""" - MAC_TYPE_PEER_RECEIVED_REMOTE: _MacType.ValueType # 14 """MAC_TYPE_PEER_RECEIVED_REMOTE indicates a remote MAC received from a VxLAN controller by the MLAG peer.""" - MAC_TYPE_EVPN_DYNAMIC_REMOTE: _MacType.ValueType # 15 """MAC_TYPE_EVPN_DYNAMIC_REMOTE indicates an EVPN dynamic remote MAC.""" - MAC_TYPE_EVPN_CONFIGURED_REMOTE: _MacType.ValueType # 16 """MAC_TYPE_EVPN_CONFIGURED_REMOTE indicates an EVPN configured remote MAC.""" - MAC_TYPE_PEER_EVPN_REMOTE: _MacType.ValueType # 17 """MAC_TYPE_PEER_EVPN_REMOTE indicates an MLAG peer EVPN remote MAC.""" - MAC_TYPE_CONFIGURED_ROUTER: _MacType.ValueType # 18 """MAC_TYPE_CONFIGURED_ROUTER indicates a configured MAC used in routing.""" - MAC_TYPE_PEER_ROUTER: _MacType.ValueType # 19 """MAC_TYPE_PEER_ROUTER indicates an MLAG peer specific router MAC.""" - MAC_TYPE_EVPN_INTF_DYNAMIC: _MacType.ValueType # 20 """MAC_TYPE_EVPN_INTF_DYNAMIC indicates a MAC advertised by EVPN when a dynamic MAC is learned on ESI (Ethernet Segment Identifier).""" - MAC_TYPE_EVPN_INTF_STATIC: _MacType.ValueType # 21 """MAC_TYPE_EVPN_INTF_STATIC indicates a MAC configured on EVPN ESI.""" - MAC_TYPE_AUTHENTICATED: _MacType.ValueType # 22 """MAC_TYPE_AUTHENTICATED indicates a MAC authenticated via 802.1X.""" - MAC_TYPE_PEER_AUTHENTICATED: _MacType.ValueType # 23 """MAC_TYPE_PEER_AUTHENTICATED indicates a MAC authenticated by 802.1X and learned on an MLAG peer.""" - MAC_TYPE_PENDING_SECURE: _MacType.ValueType # 24 """MAC_TYPE_PENDING_SECURE indicates a secure MAC in a pending state.""" - MAC_TYPE_SOFTWARE_LEARNED_DYNAMIC: _MacType.ValueType # 25 """MAC_TYPE_SOFTWARE_LEARNED_DYNAMIC indicates a MAC learned behind VTEP in software in the case of a VxLAN remote MAC.""" - MAC_TYPE_OTHER: _MacType.ValueType # 99999 """MAC_TYPE_OTHER is used for capturing future MAC types.""" class MacType(_MacType, metaclass=_MacTypeEnumTypeWrapper): """MacType describes how the MAC address was learned on the port location.""" - pass MAC_TYPE_UNSPECIFIED: MacType.ValueType # 0 """MAC_TYPE_UNSPECIFIED is the default unspecified MAC type.""" - MAC_TYPE_LEARNED_DYNAMIC: MacType.ValueType # 1 """MAC_TYPE_LEARNED_DYNAMIC indicates a MAC that is dynamically learned in hardware.""" - MAC_TYPE_LEARNED_SECURE: MacType.ValueType # 2 """MAC_TYPE_LEARNED_SECURE indicates a MAC that is learned in hardware on a port-security protect interface.""" - MAC_TYPE_CONFIGURED_DYNAMIC: MacType.ValueType # 3 """MAC_TYPE_CONFIGURED_DYNAMIC indicates a configured dynamic MAC.""" - MAC_TYPE_CONFIGURED_SECURE: MacType.ValueType # 4 """MAC_TYPE_CONFIGURED_SECURE indicates a MAC configured on an interface with Port Security: Protect mode enabled""" - MAC_TYPE_CONFIGURED_STATIC: MacType.ValueType # 5 """MAC_TYPE_CONFIGURED_STATIC indicates a statically configured MAC.""" - MAC_TYPE_PEER_DYNAMIC: MacType.ValueType # 6 """MAC_TYPE_PEER_DYNAMIC indicates a dynamically learned MAC discovered via an MLAG peer.""" - MAC_TYPE_PEER_STATIC: MacType.ValueType # 7 """MAC_TYPE_PEER_STATIC indicates a statically configured MAC discovered via an MLAG peer.""" - MAC_TYPE_PEER_SECURE: MacType.ValueType # 8 """MAC_TYPE_PEER_SECURE indicates a secure MAC learned from an MLAG peer.""" - MAC_TYPE_LEARNED_REMOTE: MacType.ValueType # 9 """MAC_TYPE_LEARNED_REMOTE indicates a MAC learned remotely behind a VxLAN VTEP.""" - MAC_TYPE_CONFIGURED_REMOTE: MacType.ValueType # 10 """MAC_TYPE_CONFIGURED_REMOTE indicates a MAC configured behind a VxLAN VTEP.""" - MAC_TYPE_RECEIVED_REMOTE: MacType.ValueType # 11 """MAC_TYPE_RECEIVED_REMOTE indicates a MAC received from a VxLAN controller.""" - MAC_TYPE_PEER_LEARNED_REMOTE: MacType.ValueType # 12 """MAC_TYPE_PEER_LEARNED_REMOTE indicates a remote MAC learned on a peer VTEP.""" - MAC_TYPE_PEER_CONFIGURED_REMOTE: MacType.ValueType # 13 """MAC_TYPE_PEER_CONFIGURED_REMOTE indicates an MLAG peer configured remote MAC.""" - MAC_TYPE_PEER_RECEIVED_REMOTE: MacType.ValueType # 14 """MAC_TYPE_PEER_RECEIVED_REMOTE indicates a remote MAC received from a VxLAN controller by the MLAG peer.""" - MAC_TYPE_EVPN_DYNAMIC_REMOTE: MacType.ValueType # 15 """MAC_TYPE_EVPN_DYNAMIC_REMOTE indicates an EVPN dynamic remote MAC.""" - MAC_TYPE_EVPN_CONFIGURED_REMOTE: MacType.ValueType # 16 """MAC_TYPE_EVPN_CONFIGURED_REMOTE indicates an EVPN configured remote MAC.""" - MAC_TYPE_PEER_EVPN_REMOTE: MacType.ValueType # 17 """MAC_TYPE_PEER_EVPN_REMOTE indicates an MLAG peer EVPN remote MAC.""" - MAC_TYPE_CONFIGURED_ROUTER: MacType.ValueType # 18 """MAC_TYPE_CONFIGURED_ROUTER indicates a configured MAC used in routing.""" - MAC_TYPE_PEER_ROUTER: MacType.ValueType # 19 """MAC_TYPE_PEER_ROUTER indicates an MLAG peer specific router MAC.""" - MAC_TYPE_EVPN_INTF_DYNAMIC: MacType.ValueType # 20 """MAC_TYPE_EVPN_INTF_DYNAMIC indicates a MAC advertised by EVPN when a dynamic MAC is learned on ESI (Ethernet Segment Identifier).""" - MAC_TYPE_EVPN_INTF_STATIC: MacType.ValueType # 21 """MAC_TYPE_EVPN_INTF_STATIC indicates a MAC configured on EVPN ESI.""" - MAC_TYPE_AUTHENTICATED: MacType.ValueType # 22 """MAC_TYPE_AUTHENTICATED indicates a MAC authenticated via 802.1X.""" - MAC_TYPE_PEER_AUTHENTICATED: MacType.ValueType # 23 """MAC_TYPE_PEER_AUTHENTICATED indicates a MAC authenticated by 802.1X and learned on an MLAG peer.""" - MAC_TYPE_PENDING_SECURE: MacType.ValueType # 24 """MAC_TYPE_PENDING_SECURE indicates a secure MAC in a pending state.""" - MAC_TYPE_SOFTWARE_LEARNED_DYNAMIC: MacType.ValueType # 25 """MAC_TYPE_SOFTWARE_LEARNED_DYNAMIC indicates a MAC learned behind VTEP in software in the case of a VxLAN remote MAC.""" - MAC_TYPE_OTHER: MacType.ValueType # 99999 """MAC_TYPE_OTHER is used for capturing future MAC types.""" - global___MacType = MacType - class _Likelihood: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _LikelihoodEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_Likelihood.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor LIKELIHOOD_UNSPECIFIED: _Likelihood.ValueType # 0 """LIKELIHOOD_UNSPECIFIED is the default unspecified likelihood.""" - LIKELIHOOD_VERY_LIKELY: _Likelihood.ValueType # 1 """LIKELIHOOD_VERY_LIKELY indicates very high confidence.""" - LIKELIHOOD_LIKELY: _Likelihood.ValueType # 2 """LIKELIHOOD_LIKELY indicates high confidence.""" - LIKELIHOOD_SOMEWHAT_LIKELY: _Likelihood.ValueType # 3 """LIKELIHOOD_SOMEWHAT_LIKELY indicates medium confidence.""" - LIKELIHOOD_LESS_LIKELY: _Likelihood.ValueType # 4 """LIKELIHOOD_LESS_LIKELY indicates low confidence.""" class Likelihood(_Likelihood, metaclass=_LikelihoodEnumTypeWrapper): """Likelihood indicates a level of confidence.""" - pass LIKELIHOOD_UNSPECIFIED: Likelihood.ValueType # 0 """LIKELIHOOD_UNSPECIFIED is the default unspecified likelihood.""" - LIKELIHOOD_VERY_LIKELY: Likelihood.ValueType # 1 """LIKELIHOOD_VERY_LIKELY indicates very high confidence.""" - LIKELIHOOD_LIKELY: Likelihood.ValueType # 2 """LIKELIHOOD_LIKELY indicates high confidence.""" - LIKELIHOOD_SOMEWHAT_LIKELY: Likelihood.ValueType # 3 """LIKELIHOOD_SOMEWHAT_LIKELY indicates medium confidence.""" - LIKELIHOOD_LESS_LIKELY: Likelihood.ValueType # 4 """LIKELIHOOD_LESS_LIKELY indicates low confidence.""" - global___Likelihood = Likelihood - class _IdentifierType: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _IdentifierTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_IdentifierType.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor IDENTIFIER_TYPE_UNSPECIFIED: _IdentifierType.ValueType # 0 """IDENTIFIER_TYPE_UNSPECIFIED is the default unspecified identifier.""" - IDENTIFIER_TYPE_MAC_ADDR: _IdentifierType.ValueType # 1 """IDENTIFIER_TYPE_MAC_ADDR indicates a MAC address identifier.""" - IDENTIFIER_TYPE_IPV4_ADDR: _IdentifierType.ValueType # 2 """IDENTIFIER_TYPE_IPV4_ADDR indicates an IPv4 address identifier.""" - IDENTIFIER_TYPE_IPV6_ADDR: _IdentifierType.ValueType # 3 """IDENTIFIER_TYPE_IPV6_ADDR indicates an IPv6 address identifier.""" - IDENTIFIER_TYPE_INVENTORY_DEVICE_ID: _IdentifierType.ValueType # 4 """IDENTIFIER_TYPE_INVENTORY_DEVICE_ID indicates an inventory device identifier.""" - IDENTIFIER_TYPE_PRIMARY_MANAGEMENT_IP: _IdentifierType.ValueType # 5 """IDENTIFIER_TYPE_PRIMARY_MANAGEMENT_IP indicates a primary management IP identifier.""" - IDENTIFIER_TYPE_HOSTNAME: _IdentifierType.ValueType # 6 """IDENTIFIER_TYPE_HOSTNAME indicates a hostname identifier.""" - IDENTIFIER_TYPE_USERNAME: _IdentifierType.ValueType # 7 """IDENTIFIER_TYPE_USERNAME indicates a username identifier. Deprecated - do not return usernames of wifi endpoints anymore """ - IDENTIFIER_TYPE_OTHER: _IdentifierType.ValueType # 99999 """IDENTIFIER_TYPE_OTHER is used for an unknown identifier.""" class IdentifierType(_IdentifierType, metaclass=_IdentifierTypeEnumTypeWrapper): """IdentifierType defines the set of ways for identifying endpoints.""" - pass IDENTIFIER_TYPE_UNSPECIFIED: IdentifierType.ValueType # 0 """IDENTIFIER_TYPE_UNSPECIFIED is the default unspecified identifier.""" - IDENTIFIER_TYPE_MAC_ADDR: IdentifierType.ValueType # 1 """IDENTIFIER_TYPE_MAC_ADDR indicates a MAC address identifier.""" - IDENTIFIER_TYPE_IPV4_ADDR: IdentifierType.ValueType # 2 """IDENTIFIER_TYPE_IPV4_ADDR indicates an IPv4 address identifier.""" - IDENTIFIER_TYPE_IPV6_ADDR: IdentifierType.ValueType # 3 """IDENTIFIER_TYPE_IPV6_ADDR indicates an IPv6 address identifier.""" - IDENTIFIER_TYPE_INVENTORY_DEVICE_ID: IdentifierType.ValueType # 4 """IDENTIFIER_TYPE_INVENTORY_DEVICE_ID indicates an inventory device identifier.""" - IDENTIFIER_TYPE_PRIMARY_MANAGEMENT_IP: IdentifierType.ValueType # 5 """IDENTIFIER_TYPE_PRIMARY_MANAGEMENT_IP indicates a primary management IP identifier.""" - IDENTIFIER_TYPE_HOSTNAME: IdentifierType.ValueType # 6 """IDENTIFIER_TYPE_HOSTNAME indicates a hostname identifier.""" - IDENTIFIER_TYPE_USERNAME: IdentifierType.ValueType # 7 """IDENTIFIER_TYPE_USERNAME indicates a username identifier. Deprecated - do not return usernames of wifi endpoints anymore """ - IDENTIFIER_TYPE_OTHER: IdentifierType.ValueType # 99999 """IDENTIFIER_TYPE_OTHER is used for an unknown identifier.""" - global___IdentifierType = IdentifierType - class _IdentifierSource: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _IdentifierSourceEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_IdentifierSource.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor IDENTIFIER_SOURCE_UNSPECIFIED: _IdentifierSource.ValueType # 0 """IDENTIFIER_SOURCE_UNSPECIFIED is the default unspecified identifier source.""" - IDENTIFIER_SOURCE_FDB: _IdentifierSource.ValueType # 1 """IDENTIFIER_SOURCE_FDB indicates a forwarding table.""" - IDENTIFIER_SOURCE_ARP: _IdentifierSource.ValueType # 2 """IDENTIFIER_SOURCE_ARP indicates ARP (IPv4).""" - IDENTIFIER_SOURCE_NEIGHBOR: _IdentifierSource.ValueType # 3 """IDENTIFIER_SOURCE_NEIGHBOR indicates NDP (IPv6).""" - IDENTIFIER_SOURCE_DEVICE_INVENTORY: _IdentifierSource.ValueType # 4 """IDENTIFIER_SOURCE_DEVICE_INVENTORY indicates that an endpoint is in the CloudVision inventory. """ - IDENTIFIER_SOURCE_LLDP: _IdentifierSource.ValueType # 5 """IDENTIFIER_SOURCE_LLDP indicates LLDP.""" - IDENTIFIER_SOURCE_DHCP: _IdentifierSource.ValueType # 6 """IDENTIFIER_SOURCE_DHCP indicates DHCP.""" - IDENTIFIER_SOURCE_WIFI: _IdentifierSource.ValueType # 7 """IDENTIFIER_SOURCE_WIFI indicates a WiFi endpoint that was learned through a wireless manager. @@ -339,96 +261,76 @@ class IdentifierSource(_IdentifierSource, metaclass=_IdentifierSourceEnumTypeWra """IdentifierSource defines the set of network protocols and other information sources where an identifier was found. """ - pass IDENTIFIER_SOURCE_UNSPECIFIED: IdentifierSource.ValueType # 0 """IDENTIFIER_SOURCE_UNSPECIFIED is the default unspecified identifier source.""" - IDENTIFIER_SOURCE_FDB: IdentifierSource.ValueType # 1 """IDENTIFIER_SOURCE_FDB indicates a forwarding table.""" - IDENTIFIER_SOURCE_ARP: IdentifierSource.ValueType # 2 """IDENTIFIER_SOURCE_ARP indicates ARP (IPv4).""" - IDENTIFIER_SOURCE_NEIGHBOR: IdentifierSource.ValueType # 3 """IDENTIFIER_SOURCE_NEIGHBOR indicates NDP (IPv6).""" - IDENTIFIER_SOURCE_DEVICE_INVENTORY: IdentifierSource.ValueType # 4 """IDENTIFIER_SOURCE_DEVICE_INVENTORY indicates that an endpoint is in the CloudVision inventory. """ - IDENTIFIER_SOURCE_LLDP: IdentifierSource.ValueType # 5 """IDENTIFIER_SOURCE_LLDP indicates LLDP.""" - IDENTIFIER_SOURCE_DHCP: IdentifierSource.ValueType # 6 """IDENTIFIER_SOURCE_DHCP indicates DHCP.""" - IDENTIFIER_SOURCE_WIFI: IdentifierSource.ValueType # 7 """IDENTIFIER_SOURCE_WIFI indicates a WiFi endpoint that was learned through a wireless manager. Deprecated - do not support searches for wifi endpoints anymore """ - global___IdentifierSource = IdentifierSource - class _Explanation: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _ExplanationEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_Explanation.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor EXPLANATION_UNSPECIFIED: _Explanation.ValueType # 0 """EXPLANATION_UNSPECIFIED is the default unspecified explanation.""" - EXPLANATION_DIRECT_CONNECTION: _Explanation.ValueType # 1 """EXPLANATION_DIRECT_CONNECTION indicates a direct connection to the queried endpoint device discovered via LLDP. """ - EXPLANATION_NON_INVENTORY_CONNECTION: _Explanation.ValueType # 2 """EXPLANATION_NON_INVENTORY_CONNECTION indicates a direct connection to at least one non-inventory device (likely discovered via LLDP). """ - EXPLANATION_NO_CONNECTION: _Explanation.ValueType # 3 """EXPLANATION_NO_CONNECTION indicates that a location has no direct connection to any known device. """ - EXPLANATION_INVENTORY_CONNECTION: _Explanation.ValueType # 4 """EXPLANATION_INVENTORY_CONNECTION indicates that all of a location's known connections are to devices in the inventory. """ - EXPLANATION_OWN_PORT_INVENTORY_DEVICE: _Explanation.ValueType # 5 """EXPLANATION_OWN_PORT_INVENTORY_DEVICE indicates a location on the queried inventory device itself. """ - EXPLANATION_DIRECT_CONNECTION_INVENTORY_DEVICE: _Explanation.ValueType # 6 """EXPLANATION_DIRECT_CONNECTION_INVENTORY_DEVICE indicates a direct connection to the queried inventory device discovered via LLDP. """ - EXPLANATION_NO_CONNECTION_INVENTORY_DEVICE: _Explanation.ValueType # 7 """EXPLANATION_NO_CONNECTION_INVENTORY_DEVICE indicates that a location has no direct connection to any known device (for queried inventory devices). """ - EXPLANATION_OTHER_CONNECTION_INVENTORY_DEVICE: _Explanation.ValueType # 8 """EXPLANATION_OTHER_CONNECTION_INVENTORY_DEVICE indicates that a location only has connections to other devices besides the queried inventory device. """ - EXPLANATION_VIRTUAL: _Explanation.ValueType # 9 """EXPLANATION_VIRTUAL indicates that a location contains a virtual interface.""" - EXPLANATION_WIRELESS_CONNECTION: _Explanation.ValueType # 10 """EXPLANATION_WIRELESS_CONNECTION indicates a direct connection from a wireless access point in the device inventory to a wireless client. """ - EXPLANATION_ACCESS_PORT: _Explanation.ValueType # 11 """EXPLANATION_ACCESS_PORT indicates that a location is an access port.""" @@ -437,81 +339,65 @@ class Explanation(_Explanation, metaclass=_ExplanationEnumTypeWrapper): Some explanations apply to queried endpoints while others apply to queried devices in the CloudVision device inventory. """ - pass EXPLANATION_UNSPECIFIED: Explanation.ValueType # 0 """EXPLANATION_UNSPECIFIED is the default unspecified explanation.""" - EXPLANATION_DIRECT_CONNECTION: Explanation.ValueType # 1 """EXPLANATION_DIRECT_CONNECTION indicates a direct connection to the queried endpoint device discovered via LLDP. """ - EXPLANATION_NON_INVENTORY_CONNECTION: Explanation.ValueType # 2 """EXPLANATION_NON_INVENTORY_CONNECTION indicates a direct connection to at least one non-inventory device (likely discovered via LLDP). """ - EXPLANATION_NO_CONNECTION: Explanation.ValueType # 3 """EXPLANATION_NO_CONNECTION indicates that a location has no direct connection to any known device. """ - EXPLANATION_INVENTORY_CONNECTION: Explanation.ValueType # 4 """EXPLANATION_INVENTORY_CONNECTION indicates that all of a location's known connections are to devices in the inventory. """ - EXPLANATION_OWN_PORT_INVENTORY_DEVICE: Explanation.ValueType # 5 """EXPLANATION_OWN_PORT_INVENTORY_DEVICE indicates a location on the queried inventory device itself. """ - EXPLANATION_DIRECT_CONNECTION_INVENTORY_DEVICE: Explanation.ValueType # 6 """EXPLANATION_DIRECT_CONNECTION_INVENTORY_DEVICE indicates a direct connection to the queried inventory device discovered via LLDP. """ - EXPLANATION_NO_CONNECTION_INVENTORY_DEVICE: Explanation.ValueType # 7 """EXPLANATION_NO_CONNECTION_INVENTORY_DEVICE indicates that a location has no direct connection to any known device (for queried inventory devices). """ - EXPLANATION_OTHER_CONNECTION_INVENTORY_DEVICE: Explanation.ValueType # 8 """EXPLANATION_OTHER_CONNECTION_INVENTORY_DEVICE indicates that a location only has connections to other devices besides the queried inventory device. """ - EXPLANATION_VIRTUAL: Explanation.ValueType # 9 """EXPLANATION_VIRTUAL indicates that a location contains a virtual interface.""" - EXPLANATION_WIRELESS_CONNECTION: Explanation.ValueType # 10 """EXPLANATION_WIRELESS_CONNECTION indicates a direct connection from a wireless access point in the device inventory to a wireless client. """ - EXPLANATION_ACCESS_PORT: Explanation.ValueType # 11 """EXPLANATION_ACCESS_PORT indicates that a location is an access port.""" - global___Explanation = Explanation - class _DeviceType: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _DeviceTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_DeviceType.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor DEVICE_TYPE_UNSPECIFIED: _DeviceType.ValueType # 0 """DEVICE_TYPE_UNSPECIFIED is the default unspecified device type.""" - DEVICE_TYPE_INVENTORY: _DeviceType.ValueType # 1 """DEVICE_TYPE_INVENTORY indicates a device in the CloudVision inventory.""" - DEVICE_TYPE_ENDPOINT: _DeviceType.ValueType # 2 """DEVICE_TYPE_ENDPOINT indicates an endpoint that does not exist in the CloudVision inventory. """ - DEVICE_TYPE_WIFI_ENDPOINT: _DeviceType.ValueType # 3 """DEVICE_TYPE_WIFI_ENDPOINT indicates a WiFi client/endpoint that does not exist in the CloudVision inventory. @@ -522,41 +408,34 @@ class DeviceType(_DeviceType, metaclass=_DeviceTypeEnumTypeWrapper): """DeviceType defines a broad set of categories for all queried devices. """ - pass DEVICE_TYPE_UNSPECIFIED: DeviceType.ValueType # 0 """DEVICE_TYPE_UNSPECIFIED is the default unspecified device type.""" - DEVICE_TYPE_INVENTORY: DeviceType.ValueType # 1 """DEVICE_TYPE_INVENTORY indicates a device in the CloudVision inventory.""" - DEVICE_TYPE_ENDPOINT: DeviceType.ValueType # 2 """DEVICE_TYPE_ENDPOINT indicates an endpoint that does not exist in the CloudVision inventory. """ - DEVICE_TYPE_WIFI_ENDPOINT: DeviceType.ValueType # 3 """DEVICE_TYPE_WIFI_ENDPOINT indicates a WiFi client/endpoint that does not exist in the CloudVision inventory. Deprecated - do not support searches for wifi endpoints anymore """ - global___DeviceType = DeviceType - class _DeviceStatus: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _DeviceStatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_DeviceStatus.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor DEVICE_STATUS_UNSPECIFIED: _DeviceStatus.ValueType # 0 """DEVICE_STATUS_UNSPECIFIED is the default unspecified device status.""" - DEVICE_STATUS_ACTIVE: _DeviceStatus.ValueType # 1 """DEVICE_STATUS_ACTIVE indicates a device is streaming its telemetry data to CloudVision. """ - DEVICE_STATUS_INACTIVE: _DeviceStatus.ValueType # 2 """DEVICE_STATUS_INACTIVE indicates a device is either not streaming its telemetry data to CloudVision or has been decommissioned from CloudVision. @@ -564,88 +443,100 @@ class _DeviceStatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._E class DeviceStatus(_DeviceStatus, metaclass=_DeviceStatusEnumTypeWrapper): """DeviceStatus is the network status of a device.""" - pass DEVICE_STATUS_UNSPECIFIED: DeviceStatus.ValueType # 0 """DEVICE_STATUS_UNSPECIFIED is the default unspecified device status.""" - DEVICE_STATUS_ACTIVE: DeviceStatus.ValueType # 1 """DEVICE_STATUS_ACTIVE indicates a device is streaming its telemetry data to CloudVision. """ - DEVICE_STATUS_INACTIVE: DeviceStatus.ValueType # 2 """DEVICE_STATUS_INACTIVE indicates a device is either not streaming its telemetry data to CloudVision or has been decommissioned from CloudVision. """ - global___DeviceStatus = DeviceStatus - +@typing.final class IdentifierSourceList(google.protobuf.message.Message): """IdentifierSourceList is a list of IdentifierSource.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___IdentifierSource.ValueType]: """values is an unordered list of unique IdentifierSource.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[global___IdentifierSource.ValueType]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[global___IdentifierSource.ValueType] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___IdentifierSourceList = IdentifierSourceList +@typing.final class Identifier(google.protobuf.message.Message): """Identifier holds device identification information.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + TYPE_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int SOURCE_LIST_FIELD_NUMBER: builtins.int type: global___IdentifierType.ValueType """type is the identifier type corresponding to value.""" - @property def value(self) -> google.protobuf.wrappers_pb2.StringValue: """value is the string representation of the identifier. Its interpretation depends on type. """ - pass + @property def source_list(self) -> global___IdentifierSourceList: """source_list is the set of sources where this identifier was discovered.""" - pass - def __init__(self, + + def __init__( + self, *, type: global___IdentifierType.ValueType = ..., - value: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - source_list: typing.Optional[global___IdentifierSourceList] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["source_list",b"source_list","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["source_list",b"source_list","type",b"type","value",b"value"]) -> None: ... + value: google.protobuf.wrappers_pb2.StringValue | None = ..., + source_list: global___IdentifierSourceList | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["source_list", b"source_list", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["source_list", b"source_list", "type", b"type", "value", b"value"]) -> None: ... + global___Identifier = Identifier +@typing.final class IdentifierList(google.protobuf.message.Message): """IdentifierList is a list of Identifier.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Identifier]: """values is an unordered list of Identifier where each Identifier has a unique type and value combination. """ - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[global___Identifier]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[global___Identifier] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___IdentifierList = IdentifierList +@typing.final class ExplanationList(google.protobuf.message.Message): """ExplanationList is a list of Explanation.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___Explanation.ValueType]: @@ -653,19 +544,24 @@ class ExplanationList(google.protobuf.message.Message): always contain one value, but in the future it may contain more. """ - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[global___Explanation.ValueType]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[global___Explanation.ValueType] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___ExplanationList = ExplanationList +@typing.final class Location(google.protobuf.message.Message): """Location is a port (device_id, interface, vlan_id) on which at least one identifier has been discovered. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + DEVICE_ID_FIELD_NUMBER: builtins.int DEVICE_STATUS_FIELD_NUMBER: builtins.int INTERFACE_FIELD_NUMBER: builtins.int @@ -675,75 +571,82 @@ class Location(google.protobuf.message.Message): LIKELIHOOD_FIELD_NUMBER: builtins.int EXPLANATION_LIST_FIELD_NUMBER: builtins.int IDENTIFIER_LIST_FIELD_NUMBER: builtins.int + device_status: global___DeviceStatus.ValueType + """device_status is the status of the device identified by device_id.""" + mac_type: global___MacType.ValueType + """mac_type is how the port learned its MAC address identifier.""" + likelihood: global___Likelihood.ValueType + """likelihood is the probability level that the port is directly connected + to the queried endpoint. + """ @property def device_id(self) -> google.protobuf.wrappers_pb2.StringValue: """device_id identifies the device of the port.""" - pass - device_status: global___DeviceStatus.ValueType - """device_status is the status of the device identified by device_id.""" @property def interface(self) -> google.protobuf.wrappers_pb2.StringValue: """interface is the interface of the port.""" - pass + @property def vlan_id(self) -> google.protobuf.wrappers_pb2.UInt32Value: """vlan_id identifies the VLAN of the port.""" - pass + @property def learned_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """learned_time is when the port learned its identifiers.""" - pass - mac_type: global___MacType.ValueType - """mac_type is how the port learned its MAC address identifier.""" - - likelihood: global___Likelihood.ValueType - """likelihood is the probability level that the port is directly connected - to the queried endpoint. - """ @property def explanation_list(self) -> global___ExplanationList: """explanation_list holds the reasons that the port was assigned likelihood.""" - pass + @property def identifier_list(self) -> global___IdentifierList: """identifier_list holds the discovered identifiers of the port.""" - pass - def __init__(self, + + def __init__( + self, *, - device_id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., + device_id: google.protobuf.wrappers_pb2.StringValue | None = ..., device_status: global___DeviceStatus.ValueType = ..., - interface: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - vlan_id: typing.Optional[google.protobuf.wrappers_pb2.UInt32Value] = ..., - learned_time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + interface: google.protobuf.wrappers_pb2.StringValue | None = ..., + vlan_id: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + learned_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., mac_type: global___MacType.ValueType = ..., likelihood: global___Likelihood.ValueType = ..., - explanation_list: typing.Optional[global___ExplanationList] = ..., - identifier_list: typing.Optional[global___IdentifierList] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["device_id",b"device_id","explanation_list",b"explanation_list","identifier_list",b"identifier_list","interface",b"interface","learned_time",b"learned_time","vlan_id",b"vlan_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["device_id",b"device_id","device_status",b"device_status","explanation_list",b"explanation_list","identifier_list",b"identifier_list","interface",b"interface","learned_time",b"learned_time","likelihood",b"likelihood","mac_type",b"mac_type","vlan_id",b"vlan_id"]) -> None: ... + explanation_list: global___ExplanationList | None = ..., + identifier_list: global___IdentifierList | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["device_id", b"device_id", "explanation_list", b"explanation_list", "identifier_list", b"identifier_list", "interface", b"interface", "learned_time", b"learned_time", "vlan_id", b"vlan_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["device_id", b"device_id", "device_status", b"device_status", "explanation_list", b"explanation_list", "identifier_list", b"identifier_list", "interface", b"interface", "learned_time", b"learned_time", "likelihood", b"likelihood", "mac_type", b"mac_type", "vlan_id", b"vlan_id"]) -> None: ... + global___Location = Location +@typing.final class LocationList(google.protobuf.message.Message): """LocationList is a list of Location.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Location]: """values is a list of unique Location.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[global___Location]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[global___Location] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___LocationList = LocationList +@typing.final class DeviceInfo(google.protobuf.message.Message): """DeviceInfo holds various attributes of a device (typically an endpoint) from Fingerbank.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + DEVICE_NAME_FIELD_NUMBER: builtins.int MOBILE_FIELD_NUMBER: builtins.int TABLET_FIELD_NUMBER: builtins.int @@ -755,36 +658,36 @@ class DeviceInfo(google.protobuf.message.Message): @property def device_name(self) -> google.protobuf.wrappers_pb2.StringValue: """device_name is the name of the device.""" - pass + @property def mobile(self) -> google.protobuf.wrappers_pb2.BoolValue: """mobile indicates whether the device is a mobile.""" - pass + @property def tablet(self) -> google.protobuf.wrappers_pb2.BoolValue: """tablet indicates whether the device is a tablet.""" - pass + @property def score(self) -> google.protobuf.wrappers_pb2.UInt32Value: """score is a value from 0 to 100 that indicates how confident we are that the device has device_name. Fingerbank API documentation of score: https://api.fingerbank.org/api_doc/2/combinations.html """ - pass + @property def version(self) -> google.protobuf.wrappers_pb2.StringValue: """version is the version of device_name.""" - pass + @property def mac_vendor(self) -> google.protobuf.wrappers_pb2.StringValue: """mac_vendor is the enterprise that assigns the MAC address of the device.""" - pass + @property def classification(self) -> google.protobuf.wrappers_pb2.StringValue: """classification is the broadest category to which device_name belongs. This is the highest level in hierarchy. """ - pass + @property def hierarchy(self) -> fmp.wrappers_pb2.RepeatedString: """hierarchy is a list of categorizations of the device from most broad @@ -798,134 +701,157 @@ class DeviceInfo(google.protobuf.message.Message): In this hierarchy, "VoIP Device" is classification and "FooInc PhoneSet IP Model123" is device_name. """ - pass - def __init__(self, + + def __init__( + self, *, - device_name: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - mobile: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - tablet: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - score: typing.Optional[google.protobuf.wrappers_pb2.UInt32Value] = ..., - version: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - mac_vendor: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - classification: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - hierarchy: typing.Optional[fmp.wrappers_pb2.RepeatedString] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["classification",b"classification","device_name",b"device_name","hierarchy",b"hierarchy","mac_vendor",b"mac_vendor","mobile",b"mobile","score",b"score","tablet",b"tablet","version",b"version"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["classification",b"classification","device_name",b"device_name","hierarchy",b"hierarchy","mac_vendor",b"mac_vendor","mobile",b"mobile","score",b"score","tablet",b"tablet","version",b"version"]) -> None: ... + device_name: google.protobuf.wrappers_pb2.StringValue | None = ..., + mobile: google.protobuf.wrappers_pb2.BoolValue | None = ..., + tablet: google.protobuf.wrappers_pb2.BoolValue | None = ..., + score: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + version: google.protobuf.wrappers_pb2.StringValue | None = ..., + mac_vendor: google.protobuf.wrappers_pb2.StringValue | None = ..., + classification: google.protobuf.wrappers_pb2.StringValue | None = ..., + hierarchy: fmp.wrappers_pb2.RepeatedString | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["classification", b"classification", "device_name", b"device_name", "hierarchy", b"hierarchy", "mac_vendor", b"mac_vendor", "mobile", b"mobile", "score", b"score", "tablet", b"tablet", "version", b"version"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["classification", b"classification", "device_name", b"device_name", "hierarchy", b"hierarchy", "mac_vendor", b"mac_vendor", "mobile", b"mobile", "score", b"score", "tablet", b"tablet", "version", b"version"]) -> None: ... + global___DeviceInfo = DeviceInfo +@typing.final class Device(google.protobuf.message.Message): """Device holds information for a device matching a search term.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + IDENTIFIER_LIST_FIELD_NUMBER: builtins.int DEVICE_TYPE_FIELD_NUMBER: builtins.int LOCATION_LIST_FIELD_NUMBER: builtins.int DEVICE_STATUS_FIELD_NUMBER: builtins.int DEVICE_INFO_FIELD_NUMBER: builtins.int + device_type: global___DeviceType.ValueType + """device_type is the broad category of the device.""" + device_status: global___DeviceStatus.ValueType + """device_status is the network status of the device.""" @property def identifier_list(self) -> global___IdentifierList: """identifier_list holds the unique identifiers for the device.""" - pass - device_type: global___DeviceType.ValueType - """device_type is the broad category of the device.""" @property def location_list(self) -> global___LocationList: """location_list is the list of possible locations of the device. It is ordered from most likely to least likely. """ - pass - device_status: global___DeviceStatus.ValueType - """device_status is the network status of the device.""" @property def device_info(self) -> global___DeviceInfo: """device_info holds various attributes of the device.""" - pass - def __init__(self, + + def __init__( + self, *, - identifier_list: typing.Optional[global___IdentifierList] = ..., + identifier_list: global___IdentifierList | None = ..., device_type: global___DeviceType.ValueType = ..., - location_list: typing.Optional[global___LocationList] = ..., + location_list: global___LocationList | None = ..., device_status: global___DeviceStatus.ValueType = ..., - device_info: typing.Optional[global___DeviceInfo] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["device_info",b"device_info","identifier_list",b"identifier_list","location_list",b"location_list"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["device_info",b"device_info","device_status",b"device_status","device_type",b"device_type","identifier_list",b"identifier_list","location_list",b"location_list"]) -> None: ... + device_info: global___DeviceInfo | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["device_info", b"device_info", "identifier_list", b"identifier_list", "location_list", b"location_list"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["device_info", b"device_info", "device_status", b"device_status", "device_type", b"device_type", "identifier_list", b"identifier_list", "location_list", b"location_list"]) -> None: ... + global___Device = Device +@typing.final class DeviceMap(google.protobuf.message.Message): """DeviceMap is a collection of Device.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int - key: typing.Text + key: builtins.str @property def value(self) -> global___Device: ... - def __init__(self, + def __init__( + self, *, - key: typing.Text = ..., - value: typing.Optional[global___Device] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + key: builtins.str = ..., + value: global___Device | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property - def values(self) -> google.protobuf.internal.containers.MessageMap[typing.Text, global___Device]: + def values(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___Device]: """values is a map from most specific identifier to Device. The key could be device serial number or MAC address. """ - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[typing.Text, global___Device]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.str, global___Device] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___DeviceMap = DeviceMap +@typing.final class EndpointLocationKey(google.protobuf.message.Message): """EndpointLocationKey holds a search term used to locate an endpoint.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + SEARCH_TERM_FIELD_NUMBER: builtins.int @property def search_term(self) -> google.protobuf.wrappers_pb2.StringValue: """search_term is used to match against identifiers on devices. This could be a MAC/IP address, hostname, etc. """ - pass - def __init__(self, + + def __init__( + self, *, - search_term: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["search_term",b"search_term"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["search_term",b"search_term"]) -> None: ... + search_term: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["search_term", b"search_term"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["search_term", b"search_term"]) -> None: ... + global___EndpointLocationKey = EndpointLocationKey +@typing.final class EndpointLocation(google.protobuf.message.Message): """EndpointLocation is the entrypoint to searching for endpoints. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int DEVICE_MAP_FIELD_NUMBER: builtins.int @property def key(self) -> global___EndpointLocationKey: """key holds a search term used to locate an endpoint.""" - pass + @property def device_map(self) -> global___DeviceMap: """device_map holds the devices (and their potential locations) that match the search term. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[global___EndpointLocationKey] = ..., - device_map: typing.Optional[global___DeviceMap] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["device_map",b"device_map","key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["device_map",b"device_map","key",b"key"]) -> None: ... + key: global___EndpointLocationKey | None = ..., + device_map: global___DeviceMap | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["device_map", b"device_map", "key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["device_map", b"device_map", "key", b"key"]) -> None: ... + global___EndpointLocation = EndpointLocation diff --git a/arista/endpointlocation/v1/services/gen_pb2.pyi b/arista/endpointlocation/v1/services/gen_pb2.pyi index 9b742fe..9992520 100644 --- a/arista/endpointlocation/v1/services/gen_pb2.pyi +++ b/arista/endpointlocation/v1/services/gen_pb2.pyi @@ -1,53 +1,61 @@ """ @generated by mypy-protobuf. Do not edit manually! isort:skip_file + +Code generated by boomtown. DO NOT EDIT. """ + import arista.endpointlocation.v1.endpointlocation_pb2 import arista.subscriptions.subscriptions_pb2 import arista.time.time_pb2 import builtins +import collections.abc import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message import google.protobuf.timestamp_pb2 import google.protobuf.wrappers_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class MetaResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int COUNT_FIELD_NUMBER: builtins.int - @property - def time(self) -> google.protobuf.timestamp_pb2.Timestamp: - """Time holds the timestamp of the last item included in the metadata calculation.""" - pass type: arista.subscriptions.subscriptions_pb2.Operation.ValueType """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. """ + @property + def time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """Time holds the timestamp of the last item included in the metadata calculation.""" @property def count(self) -> google.protobuf.wrappers_pb2.UInt32Value: """Count is the number of items present under the conditions of the request.""" - pass - def __init__(self, + + def __init__( + self, *, - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - count: typing.Optional[google.protobuf.wrappers_pb2.UInt32Value] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["count",b"count","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["count",b"count","time",b"time","type",b"type"]) -> None: ... + count: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["count", b"count", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["count", b"count", "time", b"time", "type", b"type"]) -> None: ... + global___MetaResponse = MetaResponse +@typing.final class EndpointLocationRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -55,24 +63,28 @@ class EndpointLocationRequest(google.protobuf.message.Message): """Key uniquely identifies a EndpointLocation instance to retrieve. This value must be populated. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the time for which you are interested in the data. If no time is given, the server will use the time at which it makes the request. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.endpointlocation.v1.endpointlocation_pb2.EndpointLocationKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.endpointlocation.v1.endpointlocation_pb2.EndpointLocationKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___EndpointLocationRequest = EndpointLocationRequest +@typing.final class EndpointLocationResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -82,24 +94,28 @@ class EndpointLocationResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time carries the (UTC) timestamp of the last-modification of the EndpointLocation instance in this response. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.endpointlocation.v1.endpointlocation_pb2.EndpointLocation] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.endpointlocation.v1.endpointlocation_pb2.EndpointLocation | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___EndpointLocationResponse = EndpointLocationResponse +@typing.final class EndpointLocationSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -109,18 +125,22 @@ class EndpointLocationSomeRequest(google.protobuf.message.Message): """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. """ - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.endpointlocation.v1.endpointlocation_pb2.EndpointLocationKey]] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys","time",b"time"]) -> None: ... + keys: collections.abc.Iterable[arista.endpointlocation.v1.endpointlocation_pb2.EndpointLocationKey] | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys", "time", b"time"]) -> None: ... + global___EndpointLocationSomeRequest = EndpointLocationSomeRequest +@typing.final class EndpointLocationSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -131,27 +151,31 @@ class EndpointLocationSomeResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """Error is an optional field. It should be filled when there is an error in the GetSome process. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.endpointlocation.v1.endpointlocation_pb2.EndpointLocation] = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> None: ... + value: arista.endpointlocation.v1.endpointlocation_pb2.EndpointLocation | None = ..., + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> None: ... + global___EndpointLocationSomeResponse = EndpointLocationSomeResponse +@typing.final class EndpointLocationStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -162,7 +186,7 @@ class EndpointLocationStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -181,51 +205,58 @@ class EndpointLocationStreamRequest(google.protobuf.message.Message): This field is not allowed in the Subscribe RPC. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.endpointlocation.v1.endpointlocation_pb2.EndpointLocation]] = ..., - time: typing.Optional[arista.time.time_pb2.TimeBounds] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.endpointlocation.v1.endpointlocation_pb2.EndpointLocation] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___EndpointLocationStreamRequest = EndpointLocationStreamRequest +@typing.final class EndpointLocationStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int + type: arista.subscriptions.subscriptions_pb2.Operation.ValueType + """Operation indicates how the EndpointLocation 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. + """ @property def value(self) -> arista.endpointlocation.v1.endpointlocation_pb2.EndpointLocation: """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. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time holds the timestamp of this EndpointLocation's last modification.""" - pass - type: arista.subscriptions.subscriptions_pb2.Operation.ValueType - """Operation indicates how the EndpointLocation 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. - """ - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.endpointlocation.v1.endpointlocation_pb2.EndpointLocation] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + value: arista.endpointlocation.v1.endpointlocation_pb2.EndpointLocation | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "type", b"type", "value", b"value"]) -> None: ... + global___EndpointLocationStreamResponse = EndpointLocationStreamResponse +@typing.final class EndpointLocationBatchedStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int MAX_MESSAGES_FIELD_NUMBER: builtins.int @@ -237,7 +268,7 @@ class EndpointLocationBatchedStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -256,7 +287,7 @@ class EndpointLocationBatchedStreamRequest(google.protobuf.message.Message): 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. @@ -264,19 +295,23 @@ class EndpointLocationBatchedStreamRequest(google.protobuf.message.Message): 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, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.endpointlocation.v1.endpointlocation_pb2.EndpointLocation]] = ..., - 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","partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.endpointlocation.v1.endpointlocation_pb2.EndpointLocation] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + max_messages: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["max_messages", b"max_messages", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["max_messages", b"max_messages", "partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___EndpointLocationBatchedStreamRequest = EndpointLocationBatchedStreamRequest +@typing.final class EndpointLocationBatchedStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + RESPONSES_FIELD_NUMBER: builtins.int @property def responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___EndpointLocationStreamResponse]: @@ -284,10 +319,12 @@ class EndpointLocationBatchedStreamResponse(google.protobuf.message.Message): The length of this structure is guaranteed to be between (inclusive) 1 and min(req.max_messages, INTERNAL_BATCH_LIMIT). """ - pass - def __init__(self, + + def __init__( + self, *, - responses: typing.Optional[typing.Iterable[global___EndpointLocationStreamResponse]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["responses",b"responses"]) -> None: ... + responses: collections.abc.Iterable[global___EndpointLocationStreamResponse] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["responses", b"responses"]) -> None: ... + global___EndpointLocationBatchedStreamResponse = EndpointLocationBatchedStreamResponse diff --git a/arista/event/v1/event_pb2.pyi b/arista/event/v1/event_pb2.pyi index 6dbb3a1..2397a55 100644 --- a/arista/event/v1/event_pb2.pyi +++ b/arista/event/v1/event_pb2.pyi @@ -1,414 +1,444 @@ """ @generated by mypy-protobuf. Do not edit manually! isort:skip_file +Copyright (c) 2023 Arista Networks, Inc. All rights reserved. +Use of this source code is governed by the Apache License 2.0 +that can be found in the COPYING file. """ + import builtins +import collections.abc import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message import google.protobuf.timestamp_pb2 import google.protobuf.wrappers_pb2 +import sys import typing -import typing_extensions + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor class _EventSeverity: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _EventSeverityEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_EventSeverity.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor EVENT_SEVERITY_UNSPECIFIED: _EventSeverity.ValueType # 0 """EVENT_SEVERITY_UNSPECIFIED is the default value, if the severity is not specified.""" - EVENT_SEVERITY_INFO: _EventSeverity.ValueType # 1 """EVENT_SEVERITY_INFO is used for generally useful information.""" - EVENT_SEVERITY_WARNING: _EventSeverity.ValueType # 2 """EVENT_SEVERITY_WARNING is used for potentially harmful conditions.""" - EVENT_SEVERITY_ERROR: _EventSeverity.ValueType # 3 """EVENT_SEVERITY_ERROR is used for errors events that may allow for continued functioning.""" - EVENT_SEVERITY_CRITICAL: _EventSeverity.ValueType # 4 """EVENT_SEVERITY_CRITICAL is used to designate severe errors that impede functioning.""" - EVENT_SEVERITY_DEBUG: _EventSeverity.ValueType # 5 """EVENT_SEVERITY_DEBUG is used for debugging useful information.""" class EventSeverity(_EventSeverity, metaclass=_EventSeverityEnumTypeWrapper): """EventSeverity is the severity level of the event""" - pass EVENT_SEVERITY_UNSPECIFIED: EventSeverity.ValueType # 0 """EVENT_SEVERITY_UNSPECIFIED is the default value, if the severity is not specified.""" - EVENT_SEVERITY_INFO: EventSeverity.ValueType # 1 """EVENT_SEVERITY_INFO is used for generally useful information.""" - EVENT_SEVERITY_WARNING: EventSeverity.ValueType # 2 """EVENT_SEVERITY_WARNING is used for potentially harmful conditions.""" - EVENT_SEVERITY_ERROR: EventSeverity.ValueType # 3 """EVENT_SEVERITY_ERROR is used for errors events that may allow for continued functioning.""" - EVENT_SEVERITY_CRITICAL: EventSeverity.ValueType # 4 """EVENT_SEVERITY_CRITICAL is used to designate severe errors that impede functioning.""" - EVENT_SEVERITY_DEBUG: EventSeverity.ValueType # 5 """EVENT_SEVERITY_DEBUG is used for debugging useful information.""" - global___EventSeverity = EventSeverity - class _ComponentType: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _ComponentTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ComponentType.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor COMPONENT_TYPE_UNSPECIFIED: _ComponentType.ValueType # 0 """COMPONENT_TYPE_UNSPECIFIED is the default value, if the type is not specified.""" - COMPONENT_TYPE_DEVICE: _ComponentType.ValueType # 1 """COMPONENT_TYPE_DEVICE is used for device events.""" - COMPONENT_TYPE_INTERFACE: _ComponentType.ValueType # 2 """COMPONENT_TYPE_INTERFACE is used for device interface events.""" - COMPONENT_TYPE_TURBINE: _ComponentType.ValueType # 3 """COMPONENT_TYPE_TURBINE is used for events on the internal CVP turbine components. A turbine is an internal CV streaming analytics backend process. """ - COMPONENT_TYPE_VDS: _ComponentType.ValueType # 4 """COMPONENT_TYPE_VDS is used for VDS events. A vSphere Distributed Switch provides centralized management and monitoring of the networking configuration of all workload servers that are associated with the switch. """ - COMPONENT_TYPE_VDS_INTERFACE: _ComponentType.ValueType # 5 """COMPONENT_TYPE_VDS_INTERFACE is used for VDS interface events.""" - COMPONENT_TYPE_VM: _ComponentType.ValueType # 6 """COMPONENT_TYPE_VM is used for VM events. A VM is a software computer that, like a physical computer, runs an operating system and applications. """ - COMPONENT_TYPE_VM_INTERFACE: _ComponentType.ValueType # 7 """COMPONENT_TYPE_VM_INTERFACE is used for VM interface events.""" - COMPONENT_TYPE_WORKLOAD_SERVER: _ComponentType.ValueType # 8 """COMPONENT_TYPE_WORKLOAD_SERVER is used for workload server events. A workload server is a server/data storage device on which the hypervisor is installed. """ - COMPONENT_TYPE_WORKLOAD_SERVER_INTERFACE: _ComponentType.ValueType # 9 """COMPONENT_TYPE_WORKLOAD_SERVER_INTERFACE is used for workload server interface events.""" - COMPONENT_TYPE_APPLICATION: _ComponentType.ValueType # 10 """COMPONENT_TYPE_APPLICATION is used for application-service events.""" - COMPONENT_TYPE_CVP_NODE: _ComponentType.ValueType # 11 """COMPONENT_TYPE_CVP_NODE is used for CVP node events.""" class ComponentType(_ComponentType, metaclass=_ComponentTypeEnumTypeWrapper): """ComponentType describes the type of entity on which the event occurred""" - pass COMPONENT_TYPE_UNSPECIFIED: ComponentType.ValueType # 0 """COMPONENT_TYPE_UNSPECIFIED is the default value, if the type is not specified.""" - COMPONENT_TYPE_DEVICE: ComponentType.ValueType # 1 """COMPONENT_TYPE_DEVICE is used for device events.""" - COMPONENT_TYPE_INTERFACE: ComponentType.ValueType # 2 """COMPONENT_TYPE_INTERFACE is used for device interface events.""" - COMPONENT_TYPE_TURBINE: ComponentType.ValueType # 3 """COMPONENT_TYPE_TURBINE is used for events on the internal CVP turbine components. A turbine is an internal CV streaming analytics backend process. """ - COMPONENT_TYPE_VDS: ComponentType.ValueType # 4 """COMPONENT_TYPE_VDS is used for VDS events. A vSphere Distributed Switch provides centralized management and monitoring of the networking configuration of all workload servers that are associated with the switch. """ - COMPONENT_TYPE_VDS_INTERFACE: ComponentType.ValueType # 5 """COMPONENT_TYPE_VDS_INTERFACE is used for VDS interface events.""" - COMPONENT_TYPE_VM: ComponentType.ValueType # 6 """COMPONENT_TYPE_VM is used for VM events. A VM is a software computer that, like a physical computer, runs an operating system and applications. """ - COMPONENT_TYPE_VM_INTERFACE: ComponentType.ValueType # 7 """COMPONENT_TYPE_VM_INTERFACE is used for VM interface events.""" - COMPONENT_TYPE_WORKLOAD_SERVER: ComponentType.ValueType # 8 """COMPONENT_TYPE_WORKLOAD_SERVER is used for workload server events. A workload server is a server/data storage device on which the hypervisor is installed. """ - COMPONENT_TYPE_WORKLOAD_SERVER_INTERFACE: ComponentType.ValueType # 9 """COMPONENT_TYPE_WORKLOAD_SERVER_INTERFACE is used for workload server interface events.""" - COMPONENT_TYPE_APPLICATION: ComponentType.ValueType # 10 """COMPONENT_TYPE_APPLICATION is used for application-service events.""" - COMPONENT_TYPE_CVP_NODE: ComponentType.ValueType # 11 """COMPONENT_TYPE_CVP_NODE is used for CVP node events.""" - global___ComponentType = ComponentType - +@typing.final class EventComponent(google.protobuf.message.Message): """EventComponent describes an entity on which the event occurred""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ComponentsEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int - key: typing.Text - value: typing.Text - def __init__(self, + key: builtins.str + value: builtins.str + def __init__( + self, *, - key: typing.Text = ..., - value: typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + key: builtins.str = ..., + value: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... TYPE_FIELD_NUMBER: builtins.int COMPONENTS_FIELD_NUMBER: builtins.int type: global___ComponentType.ValueType """type is the type of component""" - @property - def components(self) -> google.protobuf.internal.containers.ScalarMap[typing.Text, typing.Text]: + def components(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: """components identifies the entity on which the event occurred""" - pass - def __init__(self, + + def __init__( + self, *, type: global___ComponentType.ValueType = ..., - components: typing.Optional[typing.Mapping[typing.Text, typing.Text]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["components",b"components","type",b"type"]) -> None: ... + components: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["components", b"components", "type", b"type"]) -> None: ... + global___EventComponent = EventComponent +@typing.final class EventComponents(google.protobuf.message.Message): """EventComponents contains entities on which an event occurred""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + COMPONENTS_FIELD_NUMBER: builtins.int @property def components(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___EventComponent]: """components describes the components on which an event occurred""" - pass - def __init__(self, + + def __init__( + self, *, - components: typing.Optional[typing.Iterable[global___EventComponent]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["components",b"components"]) -> None: ... + components: collections.abc.Iterable[global___EventComponent] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["components", b"components"]) -> None: ... + global___EventComponents = EventComponents +@typing.final class EventAck(google.protobuf.message.Message): """EventAck contains acknowledgement information of an event""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + ACK_FIELD_NUMBER: builtins.int ACKER_FIELD_NUMBER: builtins.int ACK_TIME_FIELD_NUMBER: builtins.int @property def ack(self) -> google.protobuf.wrappers_pb2.BoolValue: """ack is the acknowledgement state of an event""" - pass + @property def acker(self) -> google.protobuf.wrappers_pb2.StringValue: """acker is the user that acknowledged the event""" - pass + @property def ack_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """ack_time is the time of acknowledgement""" - pass - def __init__(self, + + def __init__( + self, *, - ack: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - acker: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ack_time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["ack",b"ack","ack_time",b"ack_time","acker",b"acker"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["ack",b"ack","ack_time",b"ack_time","acker",b"acker"]) -> None: ... + ack: google.protobuf.wrappers_pb2.BoolValue | None = ..., + acker: google.protobuf.wrappers_pb2.StringValue | None = ..., + ack_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["ack", b"ack", "ack_time", b"ack_time", "acker", b"acker"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["ack", b"ack", "ack_time", b"ack_time", "acker", b"acker"]) -> None: ... + global___EventAck = EventAck +@typing.final class EventRead(google.protobuf.message.Message): """EventRead contains read information of an event""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + READ_FIELD_NUMBER: builtins.int READER_FIELD_NUMBER: builtins.int READ_TIME_FIELD_NUMBER: builtins.int @property def read(self) -> google.protobuf.wrappers_pb2.BoolValue: """read is the read state of an event""" - pass + @property def reader(self) -> google.protobuf.wrappers_pb2.StringValue: """reader is the user that read the event""" - pass + @property def read_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """read_time is the time of read""" - pass - def __init__(self, + + def __init__( + self, *, - read: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - reader: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - read_time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["read",b"read","read_time",b"read_time","reader",b"reader"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["read",b"read","read_time",b"read_time","reader",b"reader"]) -> None: ... + read: google.protobuf.wrappers_pb2.BoolValue | None = ..., + reader: google.protobuf.wrappers_pb2.StringValue | None = ..., + read_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["read", b"read", "read_time", b"read_time", "reader", b"reader"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["read", b"read", "read_time", b"read_time", "reader", b"reader"]) -> None: ... + global___EventRead = EventRead +@typing.final class EventNoteConfig(google.protobuf.message.Message): """EventNoteConfig configures a note NOTE: note is required when used as an argument to Set. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + NOTE_FIELD_NUMBER: builtins.int @property def note(self) -> google.protobuf.wrappers_pb2.StringValue: """note is the text of the note""" - pass - def __init__(self, + + def __init__( + self, *, - note: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["note",b"note"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["note",b"note"]) -> None: ... + note: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["note", b"note"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["note", b"note"]) -> None: ... + global___EventNoteConfig = EventNoteConfig +@typing.final class EventNote(google.protobuf.message.Message): """EventNote is the state of a note""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + NOTE_FIELD_NUMBER: builtins.int NOTE_CREATOR_FIELD_NUMBER: builtins.int @property def note(self) -> google.protobuf.wrappers_pb2.StringValue: """note is the text of the note""" - pass + @property def note_creator(self) -> google.protobuf.wrappers_pb2.StringValue: """note_creator is the creator of the note""" - pass - def __init__(self, + + def __init__( + self, *, - note: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - note_creator: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["note",b"note","note_creator",b"note_creator"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["note",b"note","note_creator",b"note_creator"]) -> None: ... + note: google.protobuf.wrappers_pb2.StringValue | None = ..., + note_creator: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["note", b"note", "note_creator", b"note_creator"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["note", b"note", "note_creator", b"note_creator"]) -> None: ... + global___EventNote = EventNote +@typing.final class EventKey(google.protobuf.message.Message): """EventKey uniquely identifies an event NOTE: All fields are required when used as an argument to GetOne, Set or Delete. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIMESTAMP_FIELD_NUMBER: builtins.int @property def key(self) -> google.protobuf.wrappers_pb2.StringValue: """key is the event data identifier""" - pass + @property def timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: """timestamp is the time the event occurred""" - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - timestamp: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","timestamp",b"timestamp"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","timestamp",b"timestamp"]) -> None: ... + key: google.protobuf.wrappers_pb2.StringValue | None = ..., + timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "timestamp", b"timestamp"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "timestamp", b"timestamp"]) -> None: ... + global___EventKey = EventKey +@typing.final class EventData(google.protobuf.message.Message): """EventData is additional event data""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class DataEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int - key: typing.Text - value: typing.Text - def __init__(self, + key: builtins.str + value: builtins.str + def __init__( + self, *, - key: typing.Text = ..., - value: typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + key: builtins.str = ..., + value: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... DATA_FIELD_NUMBER: builtins.int @property - def data(self) -> google.protobuf.internal.containers.ScalarMap[typing.Text, typing.Text]: + def data(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: """data is event data specific to the type of this event""" - pass - def __init__(self, + + def __init__( + self, *, - data: typing.Optional[typing.Mapping[typing.Text, typing.Text]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["data",b"data"]) -> None: ... + data: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["data", b"data"]) -> None: ... + global___EventData = EventData +@typing.final class EventNotesConfig(google.protobuf.message.Message): """EventNotesConfig configures the notes of an event NOTE: notes is required when used as an argument to Set. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class NotesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int key: builtins.int @property def value(self) -> global___EventNoteConfig: ... - def __init__(self, + def __init__( + self, *, key: builtins.int = ..., - value: typing.Optional[global___EventNoteConfig] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + value: global___EventNoteConfig | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... NOTES_FIELD_NUMBER: builtins.int @property def notes(self) -> google.protobuf.internal.containers.MessageMap[builtins.int, global___EventNoteConfig]: """notes is keyed by desired note time in Unix time, in milliseconds""" - pass - def __init__(self, + + def __init__( + self, *, - notes: typing.Optional[typing.Mapping[builtins.int, global___EventNoteConfig]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["notes",b"notes"]) -> None: ... + notes: collections.abc.Mapping[builtins.int, global___EventNoteConfig] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["notes", b"notes"]) -> None: ... + global___EventNotesConfig = EventNotesConfig +@typing.final class EventAnnotationConfig(google.protobuf.message.Message): """EventAnnotationConfig configures an event annotation NOTE: Either 1) key and ack or 2) key and notes or 3) key and read are required when used as an argument to Set. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int ACK_FIELD_NUMBER: builtins.int NOTES_FIELD_NUMBER: builtins.int @@ -416,63 +446,76 @@ class EventAnnotationConfig(google.protobuf.message.Message): @property def key(self) -> global___EventKey: """key is the event instance identifier""" - pass + @property def ack(self) -> google.protobuf.wrappers_pb2.BoolValue: """ack is the acknowledgement state of an event""" - pass + @property def notes(self) -> global___EventNotesConfig: """notes is the notes on an event""" - pass + @property def read(self) -> google.protobuf.wrappers_pb2.BoolValue: """read is the read state of an event. Setting this implies that an event has been read by a user""" - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[global___EventKey] = ..., - ack: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - notes: typing.Optional[global___EventNotesConfig] = ..., - read: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["ack",b"ack","key",b"key","notes",b"notes","read",b"read"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["ack",b"ack","key",b"key","notes",b"notes","read",b"read"]) -> None: ... + key: global___EventKey | None = ..., + ack: google.protobuf.wrappers_pb2.BoolValue | None = ..., + notes: global___EventNotesConfig | None = ..., + read: google.protobuf.wrappers_pb2.BoolValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["ack", b"ack", "key", b"key", "notes", b"notes", "read", b"read"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["ack", b"ack", "key", b"key", "notes", b"notes", "read", b"read"]) -> None: ... + global___EventAnnotationConfig = EventAnnotationConfig +@typing.final class EventNotes(google.protobuf.message.Message): """EventNotes is the notes of an event state""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class NotesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int key: builtins.int @property def value(self) -> global___EventNote: ... - def __init__(self, + def __init__( + self, *, key: builtins.int = ..., - value: typing.Optional[global___EventNote] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + value: global___EventNote | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... NOTES_FIELD_NUMBER: builtins.int @property def notes(self) -> google.protobuf.internal.containers.MessageMap[builtins.int, global___EventNote]: """notes is keyed by the time desired""" - pass - def __init__(self, + + def __init__( + self, *, - notes: typing.Optional[typing.Mapping[builtins.int, global___EventNote]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["notes",b"notes"]) -> None: ... + notes: collections.abc.Mapping[builtins.int, global___EventNote] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["notes", b"notes"]) -> None: ... + global___EventNotes = EventNotes +@typing.final class Event(google.protobuf.message.Message): """Event is a telemetry event""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int SEVERITY_FIELD_NUMBER: builtins.int TITLE_FIELD_NUMBER: builtins.int @@ -486,95 +529,102 @@ class Event(google.protobuf.message.Message): READ_FIELD_NUMBER: builtins.int RULE_ID_FIELD_NUMBER: builtins.int DELETE_TIME_FIELD_NUMBER: builtins.int + severity: global___EventSeverity.ValueType + """severity is the severity of the event""" @property def key(self) -> global___EventKey: """key is the event instance identifier""" - pass - severity: global___EventSeverity.ValueType - """severity is the severity of the event""" @property def title(self) -> google.protobuf.wrappers_pb2.StringValue: """title is the title of the event""" - pass + @property def description(self) -> google.protobuf.wrappers_pb2.StringValue: """description is the description of the event""" - pass + @property def event_type(self) -> google.protobuf.wrappers_pb2.StringValue: """event_type is the type of the event""" - pass + @property def data(self) -> global___EventData: """data is the data of the event""" - pass + @property def components(self) -> global___EventComponents: """components is the components on which the event occurred""" - pass + @property def ack(self) -> global___EventAck: """ack is the acknowledgement status of the event""" - pass + @property def notes(self) -> global___EventNotes: """notes is the notes of the event""" - pass + @property def last_updated_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """last_updated_time is the time of the most recent update to the event""" - pass + @property def read(self) -> global___EventRead: """read is the read status of the event""" - pass + @property def rule_id(self) -> google.protobuf.wrappers_pb2.StringValue: """rule_id is the label of the rule associated with the event""" - pass + @property def delete_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """delete_time is the time when the event ended. It is nil if event is still ongoing """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[global___EventKey] = ..., + key: global___EventKey | None = ..., severity: global___EventSeverity.ValueType = ..., - title: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - description: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - event_type: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - data: typing.Optional[global___EventData] = ..., - components: typing.Optional[global___EventComponents] = ..., - ack: typing.Optional[global___EventAck] = ..., - notes: typing.Optional[global___EventNotes] = ..., - last_updated_time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - read: typing.Optional[global___EventRead] = ..., - rule_id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - delete_time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["ack",b"ack","components",b"components","data",b"data","delete_time",b"delete_time","description",b"description","event_type",b"event_type","key",b"key","last_updated_time",b"last_updated_time","notes",b"notes","read",b"read","rule_id",b"rule_id","title",b"title"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["ack",b"ack","components",b"components","data",b"data","delete_time",b"delete_time","description",b"description","event_type",b"event_type","key",b"key","last_updated_time",b"last_updated_time","notes",b"notes","read",b"read","rule_id",b"rule_id","severity",b"severity","title",b"title"]) -> None: ... + title: google.protobuf.wrappers_pb2.StringValue | None = ..., + description: google.protobuf.wrappers_pb2.StringValue | None = ..., + event_type: google.protobuf.wrappers_pb2.StringValue | None = ..., + data: global___EventData | None = ..., + components: global___EventComponents | None = ..., + ack: global___EventAck | None = ..., + notes: global___EventNotes | None = ..., + last_updated_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + read: global___EventRead | None = ..., + rule_id: google.protobuf.wrappers_pb2.StringValue | None = ..., + delete_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["ack", b"ack", "components", b"components", "data", b"data", "delete_time", b"delete_time", "description", b"description", "event_type", b"event_type", "key", b"key", "last_updated_time", b"last_updated_time", "notes", b"notes", "read", b"read", "rule_id", b"rule_id", "title", b"title"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["ack", b"ack", "components", b"components", "data", b"data", "delete_time", b"delete_time", "description", b"description", "event_type", b"event_type", "key", b"key", "last_updated_time", b"last_updated_time", "notes", b"notes", "read", b"read", "rule_id", b"rule_id", "severity", b"severity", "title", b"title"]) -> None: ... + global___Event = Event +@typing.final class UserEventCreationKey(google.protobuf.message.Message): """UserEventCreationKey uniquely identifies a user event request.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int @property def key(self) -> google.protobuf.wrappers_pb2.StringValue: """key is a unique string identifier""" - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key"]) -> None: ... + key: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key"]) -> None: ... + global___UserEventCreationKey = UserEventCreationKey +@typing.final class UserEventCreationConfig(google.protobuf.message.Message): """UserEventCreationConfig is the basis for the manual creation of new events. @@ -582,7 +632,9 @@ class UserEventCreationConfig(google.protobuf.message.Message): Objects are immediately deleted upon event creation. All fields are required to create a well-formed event. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int SEVERITY_FIELD_NUMBER: builtins.int TITLE_FIELD_NUMBER: builtins.int @@ -590,43 +642,44 @@ class UserEventCreationConfig(google.protobuf.message.Message): RULE_ID_FIELD_NUMBER: builtins.int COMPONENTS_FIELD_NUMBER: builtins.int START_TIME_FIELD_NUMBER: builtins.int + severity: global___EventSeverity.ValueType + """severity is the severity of the event""" @property def key(self) -> global___UserEventCreationKey: """key is the event instance identifier""" - pass - severity: global___EventSeverity.ValueType - """severity is the severity of the event""" @property def title(self) -> google.protobuf.wrappers_pb2.StringValue: """title is the title of the event""" - pass + @property def description(self) -> google.protobuf.wrappers_pb2.StringValue: """description is the description of the event""" - pass + @property def rule_id(self) -> google.protobuf.wrappers_pb2.StringValue: """rule_id is the label of the rule associated with the event""" - pass + @property def components(self) -> global___EventComponents: """components is the components on which the event occurred""" - pass + @property def start_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """start_time is the time point at which the event occurred""" - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[global___UserEventCreationKey] = ..., + key: global___UserEventCreationKey | None = ..., severity: global___EventSeverity.ValueType = ..., - title: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - description: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - rule_id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - components: typing.Optional[global___EventComponents] = ..., - start_time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["components",b"components","description",b"description","key",b"key","rule_id",b"rule_id","start_time",b"start_time","title",b"title"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["components",b"components","description",b"description","key",b"key","rule_id",b"rule_id","severity",b"severity","start_time",b"start_time","title",b"title"]) -> None: ... + title: google.protobuf.wrappers_pb2.StringValue | None = ..., + description: google.protobuf.wrappers_pb2.StringValue | None = ..., + rule_id: google.protobuf.wrappers_pb2.StringValue | None = ..., + components: global___EventComponents | None = ..., + start_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["components", b"components", "description", b"description", "key", b"key", "rule_id", b"rule_id", "start_time", b"start_time", "title", b"title"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["components", b"components", "description", b"description", "key", b"key", "rule_id", b"rule_id", "severity", b"severity", "start_time", b"start_time", "title", b"title"]) -> None: ... + global___UserEventCreationConfig = UserEventCreationConfig diff --git a/arista/event/v1/services/gen_pb2.pyi b/arista/event/v1/services/gen_pb2.pyi index 0b3c807..592d0b2 100644 --- a/arista/event/v1/services/gen_pb2.pyi +++ b/arista/event/v1/services/gen_pb2.pyi @@ -1,11 +1,15 @@ """ @generated by mypy-protobuf. Do not edit manually! isort:skip_file + +Code generated by boomtown. DO NOT EDIT. """ + import arista.event.v1.event_pb2 import arista.subscriptions.subscriptions_pb2 import arista.time.time_pb2 import builtins +import collections.abc import fmp.deletes_pb2 import google.protobuf.descriptor import google.protobuf.internal.containers @@ -13,42 +17,46 @@ import google.protobuf.message import google.protobuf.timestamp_pb2 import google.protobuf.wrappers_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class MetaResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int COUNT_FIELD_NUMBER: builtins.int - @property - def time(self) -> google.protobuf.timestamp_pb2.Timestamp: - """Time holds the timestamp of the last item included in the metadata calculation.""" - pass type: arista.subscriptions.subscriptions_pb2.Operation.ValueType """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. """ + @property + def time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """Time holds the timestamp of the last item included in the metadata calculation.""" @property def count(self) -> google.protobuf.wrappers_pb2.UInt32Value: """Count is the number of items present under the conditions of the request.""" - pass - def __init__(self, + + def __init__( + self, *, - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - count: typing.Optional[google.protobuf.wrappers_pb2.UInt32Value] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["count",b"count","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["count",b"count","time",b"time","type",b"type"]) -> None: ... + count: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["count", b"count", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["count", b"count", "time", b"time", "type", b"type"]) -> None: ... + global___MetaResponse = MetaResponse +@typing.final class EventRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -56,24 +64,28 @@ class EventRequest(google.protobuf.message.Message): """Key uniquely identifies a Event instance to retrieve. This value must be populated. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the time for which you are interested in the data. If no time is given, the server will use the time at which it makes the request. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.event.v1.event_pb2.EventKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.event.v1.event_pb2.EventKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___EventRequest = EventRequest +@typing.final class EventResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -83,24 +95,28 @@ class EventResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time carries the (UTC) timestamp of the last-modification of the Event instance in this response. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.event.v1.event_pb2.Event] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.event.v1.event_pb2.Event | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___EventResponse = EventResponse +@typing.final class EventSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -110,18 +126,22 @@ class EventSomeRequest(google.protobuf.message.Message): """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. """ - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.event.v1.event_pb2.EventKey]] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys","time",b"time"]) -> None: ... + keys: collections.abc.Iterable[arista.event.v1.event_pb2.EventKey] | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys", "time", b"time"]) -> None: ... + global___EventSomeRequest = EventSomeRequest +@typing.final class EventSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -132,27 +152,31 @@ class EventSomeResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """Error is an optional field. It should be filled when there is an error in the GetSome process. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - def __init__(self, - *, - value: typing.Optional[arista.event.v1.event_pb2.Event] = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> None: ... + def __init__( + self, + *, + value: arista.event.v1.event_pb2.Event | None = ..., + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> None: ... + global___EventSomeResponse = EventSomeResponse +@typing.final class EventStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -163,7 +187,7 @@ class EventStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -182,51 +206,58 @@ class EventStreamRequest(google.protobuf.message.Message): This field is not allowed in the Subscribe RPC. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.event.v1.event_pb2.Event]] = ..., - time: typing.Optional[arista.time.time_pb2.TimeBounds] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.event.v1.event_pb2.Event] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___EventStreamRequest = EventStreamRequest +@typing.final class EventStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int + type: arista.subscriptions.subscriptions_pb2.Operation.ValueType + """Operation indicates how the Event 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. + """ @property def value(self) -> arista.event.v1.event_pb2.Event: """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. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time holds the timestamp of this Event's last modification.""" - pass - type: arista.subscriptions.subscriptions_pb2.Operation.ValueType - """Operation indicates how the Event 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. - """ - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.event.v1.event_pb2.Event] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + value: arista.event.v1.event_pb2.Event | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "type", b"type", "value", b"value"]) -> None: ... + global___EventStreamResponse = EventStreamResponse +@typing.final class EventAnnotationConfigRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -234,24 +265,28 @@ class EventAnnotationConfigRequest(google.protobuf.message.Message): """Key uniquely identifies a EventAnnotationConfig instance to retrieve. This value must be populated. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the time for which you are interested in the data. If no time is given, the server will use the time at which it makes the request. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.event.v1.event_pb2.EventKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.event.v1.event_pb2.EventKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___EventAnnotationConfigRequest = EventAnnotationConfigRequest +@typing.final class EventAnnotationConfigResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -261,24 +296,28 @@ class EventAnnotationConfigResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time carries the (UTC) timestamp of the last-modification of the EventAnnotationConfig instance in this response. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.event.v1.event_pb2.EventAnnotationConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.event.v1.event_pb2.EventAnnotationConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___EventAnnotationConfigResponse = EventAnnotationConfigResponse +@typing.final class EventAnnotationConfigSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -288,18 +327,22 @@ class EventAnnotationConfigSomeRequest(google.protobuf.message.Message): """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. """ - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.event.v1.event_pb2.EventKey]] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys","time",b"time"]) -> None: ... + keys: collections.abc.Iterable[arista.event.v1.event_pb2.EventKey] | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys", "time", b"time"]) -> None: ... + global___EventAnnotationConfigSomeRequest = EventAnnotationConfigSomeRequest +@typing.final class EventAnnotationConfigSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -310,27 +353,31 @@ class EventAnnotationConfigSomeResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """Error is an optional field. It should be filled when there is an error in the GetSome process. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - def __init__(self, - *, - value: typing.Optional[arista.event.v1.event_pb2.EventAnnotationConfig] = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> None: ... + def __init__( + self, + *, + value: arista.event.v1.event_pb2.EventAnnotationConfig | None = ..., + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> None: ... + global___EventAnnotationConfigSomeResponse = EventAnnotationConfigSomeResponse +@typing.final class EventAnnotationConfigStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -341,7 +388,7 @@ class EventAnnotationConfigStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -360,68 +407,79 @@ class EventAnnotationConfigStreamRequest(google.protobuf.message.Message): This field is not allowed in the Subscribe RPC. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.event.v1.event_pb2.EventAnnotationConfig]] = ..., - time: typing.Optional[arista.time.time_pb2.TimeBounds] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.event.v1.event_pb2.EventAnnotationConfig] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___EventAnnotationConfigStreamRequest = EventAnnotationConfigStreamRequest +@typing.final class EventAnnotationConfigStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int + type: arista.subscriptions.subscriptions_pb2.Operation.ValueType + """Operation indicates how the EventAnnotationConfig 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. + """ @property def value(self) -> arista.event.v1.event_pb2.EventAnnotationConfig: """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. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time holds the timestamp of this EventAnnotationConfig's last modification.""" - pass - type: arista.subscriptions.subscriptions_pb2.Operation.ValueType - """Operation indicates how the EventAnnotationConfig 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. - """ - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.event.v1.event_pb2.EventAnnotationConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + value: arista.event.v1.event_pb2.EventAnnotationConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "type", b"type", "value", b"value"]) -> None: ... + global___EventAnnotationConfigStreamResponse = EventAnnotationConfigStreamResponse +@typing.final class EventAnnotationConfigSetRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int @property def value(self) -> arista.event.v1.event_pb2.EventAnnotationConfig: """EventAnnotationConfig carries the value to set into the datastore. See the documentation on the EventAnnotationConfig struct for which fields are required. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.event.v1.event_pb2.EventAnnotationConfig] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["value",b"value"]) -> None: ... + value: arista.event.v1.event_pb2.EventAnnotationConfig | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["value", b"value"]) -> None: ... + global___EventAnnotationConfigSetRequest = EventAnnotationConfigSetRequest +@typing.final class EventAnnotationConfigSetResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -429,7 +487,7 @@ class EventAnnotationConfigSetResponse(google.protobuf.message.Message): """Value carries all the values given in the EventAnnotationConfigSetRequest as well as any server-generated values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp at which the system recognizes the @@ -438,18 +496,22 @@ class EventAnnotationConfigSetResponse(google.protobuf.message.Message): - it is after the time the request was received - a time-ranged query with StartTime==CreatedAt will include this instance. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.event.v1.event_pb2.EventAnnotationConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.event.v1.event_pb2.EventAnnotationConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___EventAnnotationConfigSetResponse = EventAnnotationConfigSetResponse +@typing.final class EventAnnotationConfigSetSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.event.v1.event_pb2.EventAnnotationConfig]: @@ -460,55 +522,67 @@ class EventAnnotationConfigSetSomeRequest(google.protobuf.message.Message): If this error occurs you must reduce the number of values sent. See gRPC "maximum message size" documentation for more information. """ - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[arista.event.v1.event_pb2.EventAnnotationConfig]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[arista.event.v1.event_pb2.EventAnnotationConfig] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___EventAnnotationConfigSetSomeRequest = EventAnnotationConfigSetSomeRequest +@typing.final class EventAnnotationConfigSetSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int + error: builtins.str @property def key(self) -> arista.event.v1.event_pb2.EventKey: ... - error: typing.Text - def __init__(self, - *, - key: typing.Optional[arista.event.v1.event_pb2.EventKey] = ..., - error: typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key"]) -> None: ... + def __init__( + self, + *, + key: arista.event.v1.event_pb2.EventKey | None = ..., + error: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key"]) -> None: ... + global___EventAnnotationConfigSetSomeResponse = EventAnnotationConfigSetSomeResponse +@typing.final class EventAnnotationConfigDeleteRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int @property def key(self) -> arista.event.v1.event_pb2.EventKey: """Key indicates which EventAnnotationConfig instance to remove. This field must always be set. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.event.v1.event_pb2.EventKey] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key"]) -> None: ... + key: arista.event.v1.event_pb2.EventKey | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key"]) -> None: ... + global___EventAnnotationConfigDeleteRequest = EventAnnotationConfigDeleteRequest +@typing.final class EventAnnotationConfigDeleteResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property def key(self) -> arista.event.v1.event_pb2.EventKey: """Key echoes back the key of the deleted EventAnnotationConfig instance.""" - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp at which the system recognizes the @@ -517,49 +591,62 @@ class EventAnnotationConfigDeleteResponse(google.protobuf.message.Message): - it is after the time the request was received - a time-ranged query with StartTime==DeletedAt will not include this instance. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.event.v1.event_pb2.EventKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.event.v1.event_pb2.EventKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___EventAnnotationConfigDeleteResponse = EventAnnotationConfigDeleteResponse +@typing.final class EventAnnotationConfigDeleteSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int @property def keys(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.event.v1.event_pb2.EventKey]: """key contains a list of EventAnnotationConfig keys to delete""" - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.event.v1.event_pb2.EventKey]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys"]) -> None: ... + keys: collections.abc.Iterable[arista.event.v1.event_pb2.EventKey] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys"]) -> None: ... + global___EventAnnotationConfigDeleteSomeRequest = EventAnnotationConfigDeleteSomeRequest +@typing.final class EventAnnotationConfigDeleteSomeResponse(google.protobuf.message.Message): """EventAnnotationConfigDeleteSomeResponse is only sent when there is an error.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int + error: builtins.str @property def key(self) -> arista.event.v1.event_pb2.EventKey: ... - error: typing.Text - def __init__(self, - *, - key: typing.Optional[arista.event.v1.event_pb2.EventKey] = ..., - error: typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key"]) -> None: ... + def __init__( + self, + *, + key: arista.event.v1.event_pb2.EventKey | None = ..., + error: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key"]) -> None: ... + global___EventAnnotationConfigDeleteSomeResponse = EventAnnotationConfigDeleteSomeResponse +@typing.final class EventAnnotationConfigDeleteAllRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int @property def partial_eq_filter(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.event.v1.event_pb2.EventAnnotationConfig]: @@ -567,16 +654,20 @@ class EventAnnotationConfigDeleteAllRequest(google.protobuf.message.Message): This requires all provided fields to be equal to the response. A filtered DeleteAll will use GetAll with filter to find things to delete. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.event.v1.event_pb2.EventAnnotationConfig]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.event.v1.event_pb2.EventAnnotationConfig] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter"]) -> None: ... + global___EventAnnotationConfigDeleteAllRequest = EventAnnotationConfigDeleteAllRequest +@typing.final class EventAnnotationConfigDeleteAllResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TYPE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int KEY_FIELD_NUMBER: builtins.int @@ -585,32 +676,35 @@ class EventAnnotationConfigDeleteAllResponse(google.protobuf.message.Message): """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: """This indicates the error message from the delete failure.""" - pass + @property def key(self) -> arista.event.v1.event_pb2.EventKey: """This is the key of the EventAnnotationConfig instance that failed to be deleted.""" - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp when the key was being deleted.""" - pass - def __init__(self, + + def __init__( + self, *, type: fmp.deletes_pb2.DeleteError.ValueType = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - key: typing.Optional[arista.event.v1.event_pb2.EventKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key","time",b"time","type",b"type"]) -> None: ... + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + key: arista.event.v1.event_pb2.EventKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key", "time", b"time", "type", b"type"]) -> None: ... + global___EventAnnotationConfigDeleteAllResponse = EventAnnotationConfigDeleteAllResponse +@typing.final class UserEventCreationConfigRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -618,24 +712,28 @@ class UserEventCreationConfigRequest(google.protobuf.message.Message): """Key uniquely identifies a UserEventCreationConfig instance to retrieve. This value must be populated. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the time for which you are interested in the data. If no time is given, the server will use the time at which it makes the request. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.event.v1.event_pb2.UserEventCreationKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.event.v1.event_pb2.UserEventCreationKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___UserEventCreationConfigRequest = UserEventCreationConfigRequest +@typing.final class UserEventCreationConfigResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -645,24 +743,28 @@ class UserEventCreationConfigResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time carries the (UTC) timestamp of the last-modification of the UserEventCreationConfig instance in this response. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.event.v1.event_pb2.UserEventCreationConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.event.v1.event_pb2.UserEventCreationConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___UserEventCreationConfigResponse = UserEventCreationConfigResponse +@typing.final class UserEventCreationConfigSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -672,18 +774,22 @@ class UserEventCreationConfigSomeRequest(google.protobuf.message.Message): """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. """ - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.event.v1.event_pb2.UserEventCreationKey]] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys","time",b"time"]) -> None: ... + keys: collections.abc.Iterable[arista.event.v1.event_pb2.UserEventCreationKey] | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys", "time", b"time"]) -> None: ... + global___UserEventCreationConfigSomeRequest = UserEventCreationConfigSomeRequest +@typing.final class UserEventCreationConfigSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -694,27 +800,31 @@ class UserEventCreationConfigSomeResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """Error is an optional field. It should be filled when there is an error in the GetSome process. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - def __init__(self, - *, - value: typing.Optional[arista.event.v1.event_pb2.UserEventCreationConfig] = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> None: ... + def __init__( + self, + *, + value: arista.event.v1.event_pb2.UserEventCreationConfig | None = ..., + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> None: ... + global___UserEventCreationConfigSomeResponse = UserEventCreationConfigSomeResponse +@typing.final class UserEventCreationConfigStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -725,7 +835,7 @@ class UserEventCreationConfigStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -744,68 +854,79 @@ class UserEventCreationConfigStreamRequest(google.protobuf.message.Message): This field is not allowed in the Subscribe RPC. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.event.v1.event_pb2.UserEventCreationConfig]] = ..., - time: typing.Optional[arista.time.time_pb2.TimeBounds] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.event.v1.event_pb2.UserEventCreationConfig] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___UserEventCreationConfigStreamRequest = UserEventCreationConfigStreamRequest +@typing.final class UserEventCreationConfigStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int + type: arista.subscriptions.subscriptions_pb2.Operation.ValueType + """Operation indicates how the UserEventCreationConfig 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. + """ @property def value(self) -> arista.event.v1.event_pb2.UserEventCreationConfig: """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. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time holds the timestamp of this UserEventCreationConfig's last modification.""" - pass - type: arista.subscriptions.subscriptions_pb2.Operation.ValueType - """Operation indicates how the UserEventCreationConfig 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. - """ - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.event.v1.event_pb2.UserEventCreationConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + value: arista.event.v1.event_pb2.UserEventCreationConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "type", b"type", "value", b"value"]) -> None: ... + global___UserEventCreationConfigStreamResponse = UserEventCreationConfigStreamResponse +@typing.final class UserEventCreationConfigSetRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int @property def value(self) -> arista.event.v1.event_pb2.UserEventCreationConfig: """UserEventCreationConfig carries the value to set into the datastore. See the documentation on the UserEventCreationConfig struct for which fields are required. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.event.v1.event_pb2.UserEventCreationConfig] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["value",b"value"]) -> None: ... + value: arista.event.v1.event_pb2.UserEventCreationConfig | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["value", b"value"]) -> None: ... + global___UserEventCreationConfigSetRequest = UserEventCreationConfigSetRequest +@typing.final class UserEventCreationConfigSetResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -813,7 +934,7 @@ class UserEventCreationConfigSetResponse(google.protobuf.message.Message): """Value carries all the values given in the UserEventCreationConfigSetRequest as well as any server-generated values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp at which the system recognizes the @@ -822,18 +943,22 @@ class UserEventCreationConfigSetResponse(google.protobuf.message.Message): - it is after the time the request was received - a time-ranged query with StartTime==CreatedAt will include this instance. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.event.v1.event_pb2.UserEventCreationConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.event.v1.event_pb2.UserEventCreationConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___UserEventCreationConfigSetResponse = UserEventCreationConfigSetResponse +@typing.final class UserEventCreationConfigSetSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.event.v1.event_pb2.UserEventCreationConfig]: @@ -844,55 +969,67 @@ class UserEventCreationConfigSetSomeRequest(google.protobuf.message.Message): If this error occurs you must reduce the number of values sent. See gRPC "maximum message size" documentation for more information. """ - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[arista.event.v1.event_pb2.UserEventCreationConfig]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[arista.event.v1.event_pb2.UserEventCreationConfig] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___UserEventCreationConfigSetSomeRequest = UserEventCreationConfigSetSomeRequest +@typing.final class UserEventCreationConfigSetSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int + error: builtins.str @property def key(self) -> arista.event.v1.event_pb2.UserEventCreationKey: ... - error: typing.Text - def __init__(self, - *, - key: typing.Optional[arista.event.v1.event_pb2.UserEventCreationKey] = ..., - error: typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key"]) -> None: ... + def __init__( + self, + *, + key: arista.event.v1.event_pb2.UserEventCreationKey | None = ..., + error: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key"]) -> None: ... + global___UserEventCreationConfigSetSomeResponse = UserEventCreationConfigSetSomeResponse +@typing.final class UserEventCreationConfigDeleteRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int @property def key(self) -> arista.event.v1.event_pb2.UserEventCreationKey: """Key indicates which UserEventCreationConfig instance to remove. This field must always be set. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.event.v1.event_pb2.UserEventCreationKey] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key"]) -> None: ... + key: arista.event.v1.event_pb2.UserEventCreationKey | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key"]) -> None: ... + global___UserEventCreationConfigDeleteRequest = UserEventCreationConfigDeleteRequest +@typing.final class UserEventCreationConfigDeleteResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property def key(self) -> arista.event.v1.event_pb2.UserEventCreationKey: """Key echoes back the key of the deleted UserEventCreationConfig instance.""" - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp at which the system recognizes the @@ -901,49 +1038,62 @@ class UserEventCreationConfigDeleteResponse(google.protobuf.message.Message): - it is after the time the request was received - a time-ranged query with StartTime==DeletedAt will not include this instance. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.event.v1.event_pb2.UserEventCreationKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.event.v1.event_pb2.UserEventCreationKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___UserEventCreationConfigDeleteResponse = UserEventCreationConfigDeleteResponse +@typing.final class UserEventCreationConfigDeleteSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int @property def keys(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.event.v1.event_pb2.UserEventCreationKey]: """key contains a list of UserEventCreationConfig keys to delete""" - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.event.v1.event_pb2.UserEventCreationKey]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys"]) -> None: ... + keys: collections.abc.Iterable[arista.event.v1.event_pb2.UserEventCreationKey] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys"]) -> None: ... + global___UserEventCreationConfigDeleteSomeRequest = UserEventCreationConfigDeleteSomeRequest +@typing.final class UserEventCreationConfigDeleteSomeResponse(google.protobuf.message.Message): """UserEventCreationConfigDeleteSomeResponse is only sent when there is an error.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int + error: builtins.str @property def key(self) -> arista.event.v1.event_pb2.UserEventCreationKey: ... - error: typing.Text - def __init__(self, - *, - key: typing.Optional[arista.event.v1.event_pb2.UserEventCreationKey] = ..., - error: typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key"]) -> None: ... + def __init__( + self, + *, + key: arista.event.v1.event_pb2.UserEventCreationKey | None = ..., + error: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key"]) -> None: ... + global___UserEventCreationConfigDeleteSomeResponse = UserEventCreationConfigDeleteSomeResponse +@typing.final class UserEventCreationConfigDeleteAllRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int @property def partial_eq_filter(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.event.v1.event_pb2.UserEventCreationConfig]: @@ -951,16 +1101,20 @@ class UserEventCreationConfigDeleteAllRequest(google.protobuf.message.Message): This requires all provided fields to be equal to the response. A filtered DeleteAll will use GetAll with filter to find things to delete. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.event.v1.event_pb2.UserEventCreationConfig]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.event.v1.event_pb2.UserEventCreationConfig] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter"]) -> None: ... + global___UserEventCreationConfigDeleteAllRequest = UserEventCreationConfigDeleteAllRequest +@typing.final class UserEventCreationConfigDeleteAllResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TYPE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int KEY_FIELD_NUMBER: builtins.int @@ -969,26 +1123,27 @@ class UserEventCreationConfigDeleteAllResponse(google.protobuf.message.Message): """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: """This indicates the error message from the delete failure.""" - pass + @property def key(self) -> arista.event.v1.event_pb2.UserEventCreationKey: """This is the key of the UserEventCreationConfig instance that failed to be deleted.""" - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp when the key was being deleted.""" - pass - def __init__(self, + + def __init__( + self, *, type: fmp.deletes_pb2.DeleteError.ValueType = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - key: typing.Optional[arista.event.v1.event_pb2.UserEventCreationKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key","time",b"time","type",b"type"]) -> None: ... + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + key: arista.event.v1.event_pb2.UserEventCreationKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key", "time", b"time", "type", b"type"]) -> None: ... + global___UserEventCreationConfigDeleteAllResponse = UserEventCreationConfigDeleteAllResponse diff --git a/arista/identityprovider/v1/identityprovider_pb2.pyi b/arista/identityprovider/v1/identityprovider_pb2.pyi index 28ad6b6..7786e62 100644 --- a/arista/identityprovider/v1/identityprovider_pb2.pyi +++ b/arista/identityprovider/v1/identityprovider_pb2.pyi @@ -1,67 +1,78 @@ """ @generated by mypy-protobuf. Do not edit manually! isort:skip_file +Copyright (c) 2023 Arista Networks, Inc. All rights reserved. +Use of this source code is governed by the Apache License 2.0 +that can be found in the COPYING file. """ + import builtins import fmp.wrappers_pb2 import google.protobuf.descriptor import google.protobuf.internal.enum_type_wrapper import google.protobuf.message import google.protobuf.wrappers_pb2 +import sys import typing -import typing_extensions + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor class _ProtocolBinding: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _ProtocolBindingEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ProtocolBinding.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor PROTOCOL_BINDING_UNSPECIFIED: _ProtocolBinding.ValueType # 0 """PROTOCOL_BINDING_UNSPECIFIED indicates that a protocol binding is unspecified.""" - PROTOCOL_BINDING_HTTP_POST: _ProtocolBinding.ValueType # 1 """PROTOCOL_BINDING_HTTP_POST indicates HTTP-POST SAML protocol binding.""" - PROTOCOL_BINDING_HTTP_REDIRECT: _ProtocolBinding.ValueType # 2 """PROTOCOL_BINDING_HTTP_REDIRECT indicates HTTP-Redirect SAML protocol binding.""" class ProtocolBinding(_ProtocolBinding, metaclass=_ProtocolBindingEnumTypeWrapper): """ProtocolBinding indicates SAML protocol binding to be used.""" - pass PROTOCOL_BINDING_UNSPECIFIED: ProtocolBinding.ValueType # 0 """PROTOCOL_BINDING_UNSPECIFIED indicates that a protocol binding is unspecified.""" - PROTOCOL_BINDING_HTTP_POST: ProtocolBinding.ValueType # 1 """PROTOCOL_BINDING_HTTP_POST indicates HTTP-POST SAML protocol binding.""" - PROTOCOL_BINDING_HTTP_REDIRECT: ProtocolBinding.ValueType # 2 """PROTOCOL_BINDING_HTTP_REDIRECT indicates HTTP-Redirect SAML protocol binding.""" - global___ProtocolBinding = ProtocolBinding - +@typing.final class OAuthKey(google.protobuf.message.Message): """OAuthKey contains OAuth provider ID.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + PROVIDER_ID_FIELD_NUMBER: builtins.int @property def provider_id(self) -> google.protobuf.wrappers_pb2.StringValue: """provider_id is the ID of the OAuth provider.""" - pass - def __init__(self, + + def __init__( + self, *, - provider_id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["provider_id",b"provider_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["provider_id",b"provider_id"]) -> None: ... + provider_id: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["provider_id", b"provider_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["provider_id", b"provider_id"]) -> None: ... + global___OAuthKey = OAuthKey +@typing.final class OAuthConfig(google.protobuf.message.Message): """OAuthConfig holds the configuration for an OAuth provider.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int ENDPOINT_FIELD_NUMBER: builtins.int CLIENT_ID_FIELD_NUMBER: builtins.int @@ -76,7 +87,7 @@ class OAuthConfig(google.protobuf.message.Message): @property def key(self) -> global___OAuthKey: """key is the ID of the OAuth provider.""" - pass + @property def endpoint(self) -> google.protobuf.wrappers_pb2.StringValue: """endpoint is the URL that identifies an OAuth authorization server. @@ -84,44 +95,44 @@ class OAuthConfig(google.protobuf.message.Message): URI [RFC3986] with a scheme component that must be https, a host component, and optionally, port and path components, but no query or fragment components. """ - pass + @property def client_id(self) -> google.protobuf.wrappers_pb2.StringValue: """client_id is the ID that the OAuth authorization server issues to the registered client. """ - pass + @property def client_secret(self) -> google.protobuf.wrappers_pb2.StringValue: """client_secret is the secret that the OAuth authorization server issues to the registered client. """ - pass + @property def algorithms(self) -> fmp.wrappers_pb2.RepeatedString: """algorithms is the set of signing algorithms. This is an optional field. If specified, only this set of algorithms may be used to sign the JWT. Otherwise, this defaults to the set of algorithms that the provider supports. """ - pass + @property def link_to_shared_provider(self) -> google.protobuf.wrappers_pb2.BoolValue: """link_to_shared_provider indicates whether or not use the provider as a shared provider. This is an optional field and set to false by default. """ - pass + @property def jwks_uri(self) -> google.protobuf.wrappers_pb2.StringValue: """jwks_uri is where signing keys are downloaded. This is an optional field. Only needed if the default construction from endpoint would be incorrect. """ - pass + @property def permitted_email_domains(self) -> fmp.wrappers_pb2.RepeatedString: """permitted_email_domains are domains of emails that users are allowed to use. This is an optional field. If not set, all domains are accepted by default. """ - pass + @property def roles_scope_name(self) -> google.protobuf.wrappers_pb2.StringValue: """roles_scope_name is the name for a scope tied to a claim that holds @@ -132,7 +143,7 @@ class OAuthConfig(google.protobuf.message.Message): mapping roles from the provider is disabled. If it's set, roles_claim_name also needs to be set. """ - pass + @property def bearer_token_introspection_endpoint(self) -> google.protobuf.wrappers_pb2.StringValue: """bearer_token_introspection_endpoint is the provider instrospection endpoint used @@ -140,7 +151,7 @@ class OAuthConfig(google.protobuf.message.Message): If specified, this endpoint will be used to verify bearer tokens generated via the provider to log in automated user accounts. """ - pass + @property def roles_claim_name(self) -> google.protobuf.wrappers_pb2.StringValue: """roles_claim_name is the name for a claim that holds CloudVision roles in ID Token. @@ -149,44 +160,54 @@ class OAuthConfig(google.protobuf.message.Message): mapping roles from the provider is disabled. If it's set, roles_scope_name also needs to be set. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[global___OAuthKey] = ..., - endpoint: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - client_id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - client_secret: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - algorithms: typing.Optional[fmp.wrappers_pb2.RepeatedString] = ..., - link_to_shared_provider: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - jwks_uri: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - permitted_email_domains: typing.Optional[fmp.wrappers_pb2.RepeatedString] = ..., - roles_scope_name: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - bearer_token_introspection_endpoint: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - roles_claim_name: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["algorithms",b"algorithms","bearer_token_introspection_endpoint",b"bearer_token_introspection_endpoint","client_id",b"client_id","client_secret",b"client_secret","endpoint",b"endpoint","jwks_uri",b"jwks_uri","key",b"key","link_to_shared_provider",b"link_to_shared_provider","permitted_email_domains",b"permitted_email_domains","roles_claim_name",b"roles_claim_name","roles_scope_name",b"roles_scope_name"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["algorithms",b"algorithms","bearer_token_introspection_endpoint",b"bearer_token_introspection_endpoint","client_id",b"client_id","client_secret",b"client_secret","endpoint",b"endpoint","jwks_uri",b"jwks_uri","key",b"key","link_to_shared_provider",b"link_to_shared_provider","permitted_email_domains",b"permitted_email_domains","roles_claim_name",b"roles_claim_name","roles_scope_name",b"roles_scope_name"]) -> None: ... + key: global___OAuthKey | None = ..., + endpoint: google.protobuf.wrappers_pb2.StringValue | None = ..., + client_id: google.protobuf.wrappers_pb2.StringValue | None = ..., + client_secret: google.protobuf.wrappers_pb2.StringValue | None = ..., + algorithms: fmp.wrappers_pb2.RepeatedString | None = ..., + link_to_shared_provider: google.protobuf.wrappers_pb2.BoolValue | None = ..., + jwks_uri: google.protobuf.wrappers_pb2.StringValue | None = ..., + permitted_email_domains: fmp.wrappers_pb2.RepeatedString | None = ..., + roles_scope_name: google.protobuf.wrappers_pb2.StringValue | None = ..., + bearer_token_introspection_endpoint: google.protobuf.wrappers_pb2.StringValue | None = ..., + roles_claim_name: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["algorithms", b"algorithms", "bearer_token_introspection_endpoint", b"bearer_token_introspection_endpoint", "client_id", b"client_id", "client_secret", b"client_secret", "endpoint", b"endpoint", "jwks_uri", b"jwks_uri", "key", b"key", "link_to_shared_provider", b"link_to_shared_provider", "permitted_email_domains", b"permitted_email_domains", "roles_claim_name", b"roles_claim_name", "roles_scope_name", b"roles_scope_name"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["algorithms", b"algorithms", "bearer_token_introspection_endpoint", b"bearer_token_introspection_endpoint", "client_id", b"client_id", "client_secret", b"client_secret", "endpoint", b"endpoint", "jwks_uri", b"jwks_uri", "key", b"key", "link_to_shared_provider", b"link_to_shared_provider", "permitted_email_domains", b"permitted_email_domains", "roles_claim_name", b"roles_claim_name", "roles_scope_name", b"roles_scope_name"]) -> None: ... + global___OAuthConfig = OAuthConfig +@typing.final class SAMLKey(google.protobuf.message.Message): """SAMLKey contains SAML Provider ID.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + PROVIDER_ID_FIELD_NUMBER: builtins.int @property def provider_id(self) -> google.protobuf.wrappers_pb2.StringValue: """provider_id is the ID of the SAML provider.""" - pass - def __init__(self, + + def __init__( + self, *, - provider_id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["provider_id",b"provider_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["provider_id",b"provider_id"]) -> None: ... + provider_id: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["provider_id", b"provider_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["provider_id", b"provider_id"]) -> None: ... + global___SAMLKey = SAMLKey +@typing.final class SAMLConfig(google.protobuf.message.Message): """SAMLConfig holds the configuration for a SAML provider.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int IDP_ISSUER_FIELD_NUMBER: builtins.int IDP_METADATA_URL_FIELD_NUMBER: builtins.int @@ -198,58 +219,57 @@ class SAMLConfig(google.protobuf.message.Message): ROLES_ATTRNAME_FIELD_NUMBER: builtins.int ORG_ATTRNAME_FIELD_NUMBER: builtins.int USERNAME_ATTRNAME_FIELD_NUMBER: builtins.int + authreq_binding: global___ProtocolBinding.ValueType + """authreq_binding specifies the ProtocolBinding used to send SAML authentication + request to the SAML provider. + """ @property def key(self) -> global___SAMLKey: """key is the ID of the SAML provider.""" - pass + @property def idp_issuer(self) -> google.protobuf.wrappers_pb2.StringValue: """idp_issuer identifies the SAML provider. There is no restriction on its format other than a string to carry the issuer's name. """ - pass + @property def idp_metadata_url(self) -> google.protobuf.wrappers_pb2.StringValue: """idp_metadata_url is the URL that CloudVision uses to fetch the SAML provider metadata. """ - pass - authreq_binding: global___ProtocolBinding.ValueType - """authreq_binding specifies the ProtocolBinding used to send SAML authentication - request to the SAML provider. - """ @property def email_attrname(self) -> google.protobuf.wrappers_pb2.StringValue: """email_attrname specifies the Attribute name for email ID in Assertion of SAMLResponse from the SAML provider. """ - pass + @property def link_to_shared_provider(self) -> google.protobuf.wrappers_pb2.BoolValue: """link_to_shared_provider indicates whether or not use the provider as a shared provider. This is an optional field and set to false by default. """ - pass + @property def permitted_email_domains(self) -> fmp.wrappers_pb2.RepeatedString: """permitted_email_domains are domains of emails that users are allowed to use. This is an optional field. If not set, all domains are accepted by default. """ - pass + @property def force_saml_authn(self) -> google.protobuf.wrappers_pb2.BoolValue: """force_saml_authn indicates wether or not enable force authentication in SAML login. This is an optional field. If not set, it defaults to false. """ - pass + @property def roles_attrname(self) -> google.protobuf.wrappers_pb2.StringValue: """roles_attrname specifies the Attribute name for CloudVision roles in the Assertion of SAMLResponse. This is an optional field. If not set, CloudVision determines that mapping roles from the provider is disabled. """ - pass + @property def org_attrname(self) -> google.protobuf.wrappers_pb2.StringValue: """org_attrname specifies the Attribute name for CloudVision organization/tenant in @@ -266,28 +286,30 @@ class SAMLConfig(google.protobuf.message.Message): disabled for a given organization using shared Identity Provider if this attribute is not specified. """ - pass + @property def username_attrname(self) -> google.protobuf.wrappers_pb2.StringValue: """username_attrname specifies Attribute name for CloudVision users' username in the Assertion of SAMLResponse. This is an optional field as long as mapping roles from provider is not enabled. Once enabled, this field becomes mandatory. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[global___SAMLKey] = ..., - idp_issuer: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - idp_metadata_url: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., + key: global___SAMLKey | None = ..., + idp_issuer: google.protobuf.wrappers_pb2.StringValue | None = ..., + idp_metadata_url: google.protobuf.wrappers_pb2.StringValue | None = ..., authreq_binding: global___ProtocolBinding.ValueType = ..., - email_attrname: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - link_to_shared_provider: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - permitted_email_domains: typing.Optional[fmp.wrappers_pb2.RepeatedString] = ..., - force_saml_authn: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - roles_attrname: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - org_attrname: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - username_attrname: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["email_attrname",b"email_attrname","force_saml_authn",b"force_saml_authn","idp_issuer",b"idp_issuer","idp_metadata_url",b"idp_metadata_url","key",b"key","link_to_shared_provider",b"link_to_shared_provider","org_attrname",b"org_attrname","permitted_email_domains",b"permitted_email_domains","roles_attrname",b"roles_attrname","username_attrname",b"username_attrname"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["authreq_binding",b"authreq_binding","email_attrname",b"email_attrname","force_saml_authn",b"force_saml_authn","idp_issuer",b"idp_issuer","idp_metadata_url",b"idp_metadata_url","key",b"key","link_to_shared_provider",b"link_to_shared_provider","org_attrname",b"org_attrname","permitted_email_domains",b"permitted_email_domains","roles_attrname",b"roles_attrname","username_attrname",b"username_attrname"]) -> None: ... + email_attrname: google.protobuf.wrappers_pb2.StringValue | None = ..., + link_to_shared_provider: google.protobuf.wrappers_pb2.BoolValue | None = ..., + permitted_email_domains: fmp.wrappers_pb2.RepeatedString | None = ..., + force_saml_authn: google.protobuf.wrappers_pb2.BoolValue | None = ..., + roles_attrname: google.protobuf.wrappers_pb2.StringValue | None = ..., + org_attrname: google.protobuf.wrappers_pb2.StringValue | None = ..., + username_attrname: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["email_attrname", b"email_attrname", "force_saml_authn", b"force_saml_authn", "idp_issuer", b"idp_issuer", "idp_metadata_url", b"idp_metadata_url", "key", b"key", "link_to_shared_provider", b"link_to_shared_provider", "org_attrname", b"org_attrname", "permitted_email_domains", b"permitted_email_domains", "roles_attrname", b"roles_attrname", "username_attrname", b"username_attrname"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["authreq_binding", b"authreq_binding", "email_attrname", b"email_attrname", "force_saml_authn", b"force_saml_authn", "idp_issuer", b"idp_issuer", "idp_metadata_url", b"idp_metadata_url", "key", b"key", "link_to_shared_provider", b"link_to_shared_provider", "org_attrname", b"org_attrname", "permitted_email_domains", b"permitted_email_domains", "roles_attrname", b"roles_attrname", "username_attrname", b"username_attrname"]) -> None: ... + global___SAMLConfig = SAMLConfig diff --git a/arista/identityprovider/v1/services/gen_pb2.pyi b/arista/identityprovider/v1/services/gen_pb2.pyi index 9017ae9..1d3dfe6 100644 --- a/arista/identityprovider/v1/services/gen_pb2.pyi +++ b/arista/identityprovider/v1/services/gen_pb2.pyi @@ -1,11 +1,15 @@ """ @generated by mypy-protobuf. Do not edit manually! isort:skip_file + +Code generated by boomtown. DO NOT EDIT. """ + import arista.identityprovider.v1.identityprovider_pb2 import arista.subscriptions.subscriptions_pb2 import arista.time.time_pb2 import builtins +import collections.abc import fmp.deletes_pb2 import google.protobuf.descriptor import google.protobuf.internal.containers @@ -13,42 +17,46 @@ import google.protobuf.message import google.protobuf.timestamp_pb2 import google.protobuf.wrappers_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class MetaResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int COUNT_FIELD_NUMBER: builtins.int - @property - def time(self) -> google.protobuf.timestamp_pb2.Timestamp: - """Time holds the timestamp of the last item included in the metadata calculation.""" - pass type: arista.subscriptions.subscriptions_pb2.Operation.ValueType """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. """ + @property + def time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """Time holds the timestamp of the last item included in the metadata calculation.""" @property def count(self) -> google.protobuf.wrappers_pb2.UInt32Value: """Count is the number of items present under the conditions of the request.""" - pass - def __init__(self, + + def __init__( + self, *, - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - count: typing.Optional[google.protobuf.wrappers_pb2.UInt32Value] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["count",b"count","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["count",b"count","time",b"time","type",b"type"]) -> None: ... + count: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["count", b"count", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["count", b"count", "time", b"time", "type", b"type"]) -> None: ... + global___MetaResponse = MetaResponse +@typing.final class OAuthConfigRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -56,24 +64,28 @@ class OAuthConfigRequest(google.protobuf.message.Message): """Key uniquely identifies a OAuthConfig instance to retrieve. This value must be populated. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the time for which you are interested in the data. If no time is given, the server will use the time at which it makes the request. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.identityprovider.v1.identityprovider_pb2.OAuthKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.identityprovider.v1.identityprovider_pb2.OAuthKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___OAuthConfigRequest = OAuthConfigRequest +@typing.final class OAuthConfigResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -83,24 +95,28 @@ class OAuthConfigResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time carries the (UTC) timestamp of the last-modification of the OAuthConfig instance in this response. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.identityprovider.v1.identityprovider_pb2.OAuthConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.identityprovider.v1.identityprovider_pb2.OAuthConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___OAuthConfigResponse = OAuthConfigResponse +@typing.final class OAuthConfigSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -110,18 +126,22 @@ class OAuthConfigSomeRequest(google.protobuf.message.Message): """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. """ - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.identityprovider.v1.identityprovider_pb2.OAuthKey]] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys","time",b"time"]) -> None: ... + keys: collections.abc.Iterable[arista.identityprovider.v1.identityprovider_pb2.OAuthKey] | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys", "time", b"time"]) -> None: ... + global___OAuthConfigSomeRequest = OAuthConfigSomeRequest +@typing.final class OAuthConfigSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -132,27 +152,31 @@ class OAuthConfigSomeResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """Error is an optional field. It should be filled when there is an error in the GetSome process. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - def __init__(self, - *, - value: typing.Optional[arista.identityprovider.v1.identityprovider_pb2.OAuthConfig] = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> None: ... + def __init__( + self, + *, + value: arista.identityprovider.v1.identityprovider_pb2.OAuthConfig | None = ..., + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> None: ... + global___OAuthConfigSomeResponse = OAuthConfigSomeResponse +@typing.final class OAuthConfigStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -163,7 +187,7 @@ class OAuthConfigStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -182,51 +206,58 @@ class OAuthConfigStreamRequest(google.protobuf.message.Message): This field is not allowed in the Subscribe RPC. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.identityprovider.v1.identityprovider_pb2.OAuthConfig]] = ..., - time: typing.Optional[arista.time.time_pb2.TimeBounds] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.identityprovider.v1.identityprovider_pb2.OAuthConfig] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___OAuthConfigStreamRequest = OAuthConfigStreamRequest +@typing.final class OAuthConfigStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int + type: arista.subscriptions.subscriptions_pb2.Operation.ValueType + """Operation indicates how the OAuthConfig 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. + """ @property def value(self) -> arista.identityprovider.v1.identityprovider_pb2.OAuthConfig: """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. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time holds the timestamp of this OAuthConfig's last modification.""" - pass - type: arista.subscriptions.subscriptions_pb2.Operation.ValueType - """Operation indicates how the OAuthConfig 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. - """ - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.identityprovider.v1.identityprovider_pb2.OAuthConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + value: arista.identityprovider.v1.identityprovider_pb2.OAuthConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "type", b"type", "value", b"value"]) -> None: ... + global___OAuthConfigStreamResponse = OAuthConfigStreamResponse +@typing.final class OAuthConfigBatchedStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int MAX_MESSAGES_FIELD_NUMBER: builtins.int @@ -238,7 +269,7 @@ class OAuthConfigBatchedStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -257,7 +288,7 @@ class OAuthConfigBatchedStreamRequest(google.protobuf.message.Message): 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. @@ -265,19 +296,23 @@ class OAuthConfigBatchedStreamRequest(google.protobuf.message.Message): 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, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.identityprovider.v1.identityprovider_pb2.OAuthConfig]] = ..., - 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","partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.identityprovider.v1.identityprovider_pb2.OAuthConfig] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + max_messages: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["max_messages", b"max_messages", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["max_messages", b"max_messages", "partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___OAuthConfigBatchedStreamRequest = OAuthConfigBatchedStreamRequest +@typing.final class OAuthConfigBatchedStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + RESPONSES_FIELD_NUMBER: builtins.int @property def responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___OAuthConfigStreamResponse]: @@ -285,33 +320,41 @@ class OAuthConfigBatchedStreamResponse(google.protobuf.message.Message): The length of this structure is guaranteed to be between (inclusive) 1 and min(req.max_messages, INTERNAL_BATCH_LIMIT). """ - pass - def __init__(self, + + def __init__( + self, *, - responses: typing.Optional[typing.Iterable[global___OAuthConfigStreamResponse]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["responses",b"responses"]) -> None: ... + responses: collections.abc.Iterable[global___OAuthConfigStreamResponse] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["responses", b"responses"]) -> None: ... + global___OAuthConfigBatchedStreamResponse = OAuthConfigBatchedStreamResponse +@typing.final class OAuthConfigSetRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int @property def value(self) -> arista.identityprovider.v1.identityprovider_pb2.OAuthConfig: """OAuthConfig carries the value to set into the datastore. See the documentation on the OAuthConfig struct for which fields are required. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.identityprovider.v1.identityprovider_pb2.OAuthConfig] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["value",b"value"]) -> None: ... + value: arista.identityprovider.v1.identityprovider_pb2.OAuthConfig | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["value", b"value"]) -> None: ... + global___OAuthConfigSetRequest = OAuthConfigSetRequest +@typing.final class OAuthConfigSetResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -319,7 +362,7 @@ class OAuthConfigSetResponse(google.protobuf.message.Message): """Value carries all the values given in the OAuthConfigSetRequest as well as any server-generated values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp at which the system recognizes the @@ -328,18 +371,22 @@ class OAuthConfigSetResponse(google.protobuf.message.Message): - it is after the time the request was received - a time-ranged query with StartTime==CreatedAt will include this instance. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.identityprovider.v1.identityprovider_pb2.OAuthConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.identityprovider.v1.identityprovider_pb2.OAuthConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___OAuthConfigSetResponse = OAuthConfigSetResponse +@typing.final class OAuthConfigSetSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.identityprovider.v1.identityprovider_pb2.OAuthConfig]: @@ -350,55 +397,67 @@ class OAuthConfigSetSomeRequest(google.protobuf.message.Message): If this error occurs you must reduce the number of values sent. See gRPC "maximum message size" documentation for more information. """ - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[arista.identityprovider.v1.identityprovider_pb2.OAuthConfig]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[arista.identityprovider.v1.identityprovider_pb2.OAuthConfig] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___OAuthConfigSetSomeRequest = OAuthConfigSetSomeRequest +@typing.final class OAuthConfigSetSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int + error: builtins.str @property def key(self) -> arista.identityprovider.v1.identityprovider_pb2.OAuthKey: ... - error: typing.Text - def __init__(self, - *, - key: typing.Optional[arista.identityprovider.v1.identityprovider_pb2.OAuthKey] = ..., - error: typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key"]) -> None: ... + def __init__( + self, + *, + key: arista.identityprovider.v1.identityprovider_pb2.OAuthKey | None = ..., + error: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key"]) -> None: ... + global___OAuthConfigSetSomeResponse = OAuthConfigSetSomeResponse +@typing.final class OAuthConfigDeleteRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int @property def key(self) -> arista.identityprovider.v1.identityprovider_pb2.OAuthKey: """Key indicates which OAuthConfig instance to remove. This field must always be set. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.identityprovider.v1.identityprovider_pb2.OAuthKey] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key"]) -> None: ... + key: arista.identityprovider.v1.identityprovider_pb2.OAuthKey | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key"]) -> None: ... + global___OAuthConfigDeleteRequest = OAuthConfigDeleteRequest +@typing.final class OAuthConfigDeleteResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property def key(self) -> arista.identityprovider.v1.identityprovider_pb2.OAuthKey: """Key echoes back the key of the deleted OAuthConfig instance.""" - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp at which the system recognizes the @@ -407,49 +466,62 @@ class OAuthConfigDeleteResponse(google.protobuf.message.Message): - it is after the time the request was received - a time-ranged query with StartTime==DeletedAt will not include this instance. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.identityprovider.v1.identityprovider_pb2.OAuthKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.identityprovider.v1.identityprovider_pb2.OAuthKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___OAuthConfigDeleteResponse = OAuthConfigDeleteResponse +@typing.final class OAuthConfigDeleteSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int @property def keys(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.identityprovider.v1.identityprovider_pb2.OAuthKey]: """key contains a list of OAuthConfig keys to delete""" - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.identityprovider.v1.identityprovider_pb2.OAuthKey]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys"]) -> None: ... + keys: collections.abc.Iterable[arista.identityprovider.v1.identityprovider_pb2.OAuthKey] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys"]) -> None: ... + global___OAuthConfigDeleteSomeRequest = OAuthConfigDeleteSomeRequest +@typing.final class OAuthConfigDeleteSomeResponse(google.protobuf.message.Message): """OAuthConfigDeleteSomeResponse is only sent when there is an error.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int + error: builtins.str @property def key(self) -> arista.identityprovider.v1.identityprovider_pb2.OAuthKey: ... - error: typing.Text - def __init__(self, - *, - key: typing.Optional[arista.identityprovider.v1.identityprovider_pb2.OAuthKey] = ..., - error: typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key"]) -> None: ... + def __init__( + self, + *, + key: arista.identityprovider.v1.identityprovider_pb2.OAuthKey | None = ..., + error: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key"]) -> None: ... + global___OAuthConfigDeleteSomeResponse = OAuthConfigDeleteSomeResponse +@typing.final class OAuthConfigDeleteAllRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int @property def partial_eq_filter(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.identityprovider.v1.identityprovider_pb2.OAuthConfig]: @@ -457,16 +529,20 @@ class OAuthConfigDeleteAllRequest(google.protobuf.message.Message): This requires all provided fields to be equal to the response. A filtered DeleteAll will use GetAll with filter to find things to delete. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.identityprovider.v1.identityprovider_pb2.OAuthConfig]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.identityprovider.v1.identityprovider_pb2.OAuthConfig] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter"]) -> None: ... + global___OAuthConfigDeleteAllRequest = OAuthConfigDeleteAllRequest +@typing.final class OAuthConfigDeleteAllResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TYPE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int KEY_FIELD_NUMBER: builtins.int @@ -475,32 +551,35 @@ class OAuthConfigDeleteAllResponse(google.protobuf.message.Message): """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: """This indicates the error message from the delete failure.""" - pass + @property def key(self) -> arista.identityprovider.v1.identityprovider_pb2.OAuthKey: """This is the key of the OAuthConfig instance that failed to be deleted.""" - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp when the key was being deleted.""" - pass - def __init__(self, + + def __init__( + self, *, type: fmp.deletes_pb2.DeleteError.ValueType = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - key: typing.Optional[arista.identityprovider.v1.identityprovider_pb2.OAuthKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key","time",b"time","type",b"type"]) -> None: ... + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + key: arista.identityprovider.v1.identityprovider_pb2.OAuthKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key", "time", b"time", "type", b"type"]) -> None: ... + global___OAuthConfigDeleteAllResponse = OAuthConfigDeleteAllResponse +@typing.final class SAMLConfigRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -508,24 +587,28 @@ class SAMLConfigRequest(google.protobuf.message.Message): """Key uniquely identifies a SAMLConfig instance to retrieve. This value must be populated. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the time for which you are interested in the data. If no time is given, the server will use the time at which it makes the request. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.identityprovider.v1.identityprovider_pb2.SAMLKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.identityprovider.v1.identityprovider_pb2.SAMLKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___SAMLConfigRequest = SAMLConfigRequest +@typing.final class SAMLConfigResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -535,24 +618,28 @@ class SAMLConfigResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time carries the (UTC) timestamp of the last-modification of the SAMLConfig instance in this response. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.identityprovider.v1.identityprovider_pb2.SAMLConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.identityprovider.v1.identityprovider_pb2.SAMLConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___SAMLConfigResponse = SAMLConfigResponse +@typing.final class SAMLConfigSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -562,18 +649,22 @@ class SAMLConfigSomeRequest(google.protobuf.message.Message): """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. """ - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.identityprovider.v1.identityprovider_pb2.SAMLKey]] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys","time",b"time"]) -> None: ... + keys: collections.abc.Iterable[arista.identityprovider.v1.identityprovider_pb2.SAMLKey] | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys", "time", b"time"]) -> None: ... + global___SAMLConfigSomeRequest = SAMLConfigSomeRequest +@typing.final class SAMLConfigSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -584,27 +675,31 @@ class SAMLConfigSomeResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """Error is an optional field. It should be filled when there is an error in the GetSome process. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - def __init__(self, - *, - value: typing.Optional[arista.identityprovider.v1.identityprovider_pb2.SAMLConfig] = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> None: ... + def __init__( + self, + *, + value: arista.identityprovider.v1.identityprovider_pb2.SAMLConfig | None = ..., + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> None: ... + global___SAMLConfigSomeResponse = SAMLConfigSomeResponse +@typing.final class SAMLConfigStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -615,7 +710,7 @@ class SAMLConfigStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -634,51 +729,58 @@ class SAMLConfigStreamRequest(google.protobuf.message.Message): This field is not allowed in the Subscribe RPC. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.identityprovider.v1.identityprovider_pb2.SAMLConfig]] = ..., - time: typing.Optional[arista.time.time_pb2.TimeBounds] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.identityprovider.v1.identityprovider_pb2.SAMLConfig] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___SAMLConfigStreamRequest = SAMLConfigStreamRequest +@typing.final class SAMLConfigStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int + type: arista.subscriptions.subscriptions_pb2.Operation.ValueType + """Operation indicates how the SAMLConfig 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. + """ @property def value(self) -> arista.identityprovider.v1.identityprovider_pb2.SAMLConfig: """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. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time holds the timestamp of this SAMLConfig's last modification.""" - pass - type: arista.subscriptions.subscriptions_pb2.Operation.ValueType - """Operation indicates how the SAMLConfig 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. - """ - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.identityprovider.v1.identityprovider_pb2.SAMLConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + value: arista.identityprovider.v1.identityprovider_pb2.SAMLConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "type", b"type", "value", b"value"]) -> None: ... + global___SAMLConfigStreamResponse = SAMLConfigStreamResponse +@typing.final class SAMLConfigBatchedStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int MAX_MESSAGES_FIELD_NUMBER: builtins.int @@ -690,7 +792,7 @@ class SAMLConfigBatchedStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -709,7 +811,7 @@ class SAMLConfigBatchedStreamRequest(google.protobuf.message.Message): 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. @@ -717,19 +819,23 @@ class SAMLConfigBatchedStreamRequest(google.protobuf.message.Message): 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, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.identityprovider.v1.identityprovider_pb2.SAMLConfig]] = ..., - 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","partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.identityprovider.v1.identityprovider_pb2.SAMLConfig] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + max_messages: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["max_messages", b"max_messages", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["max_messages", b"max_messages", "partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___SAMLConfigBatchedStreamRequest = SAMLConfigBatchedStreamRequest +@typing.final class SAMLConfigBatchedStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + RESPONSES_FIELD_NUMBER: builtins.int @property def responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SAMLConfigStreamResponse]: @@ -737,33 +843,41 @@ class SAMLConfigBatchedStreamResponse(google.protobuf.message.Message): The length of this structure is guaranteed to be between (inclusive) 1 and min(req.max_messages, INTERNAL_BATCH_LIMIT). """ - pass - def __init__(self, + + def __init__( + self, *, - responses: typing.Optional[typing.Iterable[global___SAMLConfigStreamResponse]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["responses",b"responses"]) -> None: ... + responses: collections.abc.Iterable[global___SAMLConfigStreamResponse] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["responses", b"responses"]) -> None: ... + global___SAMLConfigBatchedStreamResponse = SAMLConfigBatchedStreamResponse +@typing.final class SAMLConfigSetRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int @property def value(self) -> arista.identityprovider.v1.identityprovider_pb2.SAMLConfig: """SAMLConfig carries the value to set into the datastore. See the documentation on the SAMLConfig struct for which fields are required. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.identityprovider.v1.identityprovider_pb2.SAMLConfig] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["value",b"value"]) -> None: ... + value: arista.identityprovider.v1.identityprovider_pb2.SAMLConfig | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["value", b"value"]) -> None: ... + global___SAMLConfigSetRequest = SAMLConfigSetRequest +@typing.final class SAMLConfigSetResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -771,7 +885,7 @@ class SAMLConfigSetResponse(google.protobuf.message.Message): """Value carries all the values given in the SAMLConfigSetRequest as well as any server-generated values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp at which the system recognizes the @@ -780,18 +894,22 @@ class SAMLConfigSetResponse(google.protobuf.message.Message): - it is after the time the request was received - a time-ranged query with StartTime==CreatedAt will include this instance. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.identityprovider.v1.identityprovider_pb2.SAMLConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.identityprovider.v1.identityprovider_pb2.SAMLConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___SAMLConfigSetResponse = SAMLConfigSetResponse +@typing.final class SAMLConfigSetSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.identityprovider.v1.identityprovider_pb2.SAMLConfig]: @@ -802,55 +920,67 @@ class SAMLConfigSetSomeRequest(google.protobuf.message.Message): If this error occurs you must reduce the number of values sent. See gRPC "maximum message size" documentation for more information. """ - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[arista.identityprovider.v1.identityprovider_pb2.SAMLConfig]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[arista.identityprovider.v1.identityprovider_pb2.SAMLConfig] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___SAMLConfigSetSomeRequest = SAMLConfigSetSomeRequest +@typing.final class SAMLConfigSetSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int + error: builtins.str @property def key(self) -> arista.identityprovider.v1.identityprovider_pb2.SAMLKey: ... - error: typing.Text - def __init__(self, - *, - key: typing.Optional[arista.identityprovider.v1.identityprovider_pb2.SAMLKey] = ..., - error: typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key"]) -> None: ... + def __init__( + self, + *, + key: arista.identityprovider.v1.identityprovider_pb2.SAMLKey | None = ..., + error: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key"]) -> None: ... + global___SAMLConfigSetSomeResponse = SAMLConfigSetSomeResponse +@typing.final class SAMLConfigDeleteRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int @property def key(self) -> arista.identityprovider.v1.identityprovider_pb2.SAMLKey: """Key indicates which SAMLConfig instance to remove. This field must always be set. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.identityprovider.v1.identityprovider_pb2.SAMLKey] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key"]) -> None: ... + key: arista.identityprovider.v1.identityprovider_pb2.SAMLKey | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key"]) -> None: ... + global___SAMLConfigDeleteRequest = SAMLConfigDeleteRequest +@typing.final class SAMLConfigDeleteResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property def key(self) -> arista.identityprovider.v1.identityprovider_pb2.SAMLKey: """Key echoes back the key of the deleted SAMLConfig instance.""" - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp at which the system recognizes the @@ -859,49 +989,62 @@ class SAMLConfigDeleteResponse(google.protobuf.message.Message): - it is after the time the request was received - a time-ranged query with StartTime==DeletedAt will not include this instance. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.identityprovider.v1.identityprovider_pb2.SAMLKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.identityprovider.v1.identityprovider_pb2.SAMLKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___SAMLConfigDeleteResponse = SAMLConfigDeleteResponse +@typing.final class SAMLConfigDeleteSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int @property def keys(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.identityprovider.v1.identityprovider_pb2.SAMLKey]: """key contains a list of SAMLConfig keys to delete""" - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.identityprovider.v1.identityprovider_pb2.SAMLKey]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys"]) -> None: ... + keys: collections.abc.Iterable[arista.identityprovider.v1.identityprovider_pb2.SAMLKey] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys"]) -> None: ... + global___SAMLConfigDeleteSomeRequest = SAMLConfigDeleteSomeRequest +@typing.final class SAMLConfigDeleteSomeResponse(google.protobuf.message.Message): """SAMLConfigDeleteSomeResponse is only sent when there is an error.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int + error: builtins.str @property def key(self) -> arista.identityprovider.v1.identityprovider_pb2.SAMLKey: ... - error: typing.Text - def __init__(self, - *, - key: typing.Optional[arista.identityprovider.v1.identityprovider_pb2.SAMLKey] = ..., - error: typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key"]) -> None: ... + def __init__( + self, + *, + key: arista.identityprovider.v1.identityprovider_pb2.SAMLKey | None = ..., + error: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key"]) -> None: ... + global___SAMLConfigDeleteSomeResponse = SAMLConfigDeleteSomeResponse +@typing.final class SAMLConfigDeleteAllRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int @property def partial_eq_filter(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.identityprovider.v1.identityprovider_pb2.SAMLConfig]: @@ -909,16 +1052,20 @@ class SAMLConfigDeleteAllRequest(google.protobuf.message.Message): This requires all provided fields to be equal to the response. A filtered DeleteAll will use GetAll with filter to find things to delete. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.identityprovider.v1.identityprovider_pb2.SAMLConfig]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.identityprovider.v1.identityprovider_pb2.SAMLConfig] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter"]) -> None: ... + global___SAMLConfigDeleteAllRequest = SAMLConfigDeleteAllRequest +@typing.final class SAMLConfigDeleteAllResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TYPE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int KEY_FIELD_NUMBER: builtins.int @@ -927,26 +1074,27 @@ class SAMLConfigDeleteAllResponse(google.protobuf.message.Message): """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: """This indicates the error message from the delete failure.""" - pass + @property def key(self) -> arista.identityprovider.v1.identityprovider_pb2.SAMLKey: """This is the key of the SAMLConfig instance that failed to be deleted.""" - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp when the key was being deleted.""" - pass - def __init__(self, + + def __init__( + self, *, type: fmp.deletes_pb2.DeleteError.ValueType = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - key: typing.Optional[arista.identityprovider.v1.identityprovider_pb2.SAMLKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key","time",b"time","type",b"type"]) -> None: ... + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + key: arista.identityprovider.v1.identityprovider_pb2.SAMLKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key", "time", b"time", "type", b"type"]) -> None: ... + global___SAMLConfigDeleteAllResponse = SAMLConfigDeleteAllResponse diff --git a/arista/imagestatus/v1/imagestatus_pb2.pyi b/arista/imagestatus/v1/imagestatus_pb2.pyi index d191e75..44baba6 100644 --- a/arista/imagestatus/v1/imagestatus_pb2.pyi +++ b/arista/imagestatus/v1/imagestatus_pb2.pyi @@ -1,33 +1,41 @@ """ @generated by mypy-protobuf. Do not edit manually! isort:skip_file +Copyright (c) 2023 Arista Networks, Inc. All rights reserved. +Use of this source code is governed by the Apache License 2.0 +that can be found in the COPYING file. """ + import builtins +import collections.abc import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message import google.protobuf.timestamp_pb2 import google.protobuf.wrappers_pb2 +import sys import typing -import typing_extensions + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor class _ExtensionInstallStatus: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _ExtensionInstallStatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ExtensionInstallStatus.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor EXTENSION_INSTALL_STATUS_UNSPECIFIED: _ExtensionInstallStatus.ValueType # 0 """EXTENSION_INSTALL_STATUS_UNSPECIFIED indicates extensions install status is unspecified.""" - EXTENSION_INSTALL_STATUS_NOT_INSTALLED: _ExtensionInstallStatus.ValueType # 1 """EXTENSION_INSTALL_STATUS_NOT_INSTALLED indicates extension is not installed on the device.""" - EXTENSION_INSTALL_STATUS_INSTALLED: _ExtensionInstallStatus.ValueType # 2 """EXTENSION_INSTALL_STATUS_INSTALLED indicates extension is installed on the device.""" - EXTENSION_INSTALL_STATUS_FORCE_INSTALLED: _ExtensionInstallStatus.ValueType # 3 """EXTENSION_INSTALL_STATUS_FORCE_INSTALLED indicates extension is force installed on device. @@ -37,38 +45,31 @@ class ExtensionInstallStatus(_ExtensionInstallStatus, metaclass=_ExtensionInstal """ExtensionInstallStatus indicates whether an extension is installed, not installed or force installed. """ - pass EXTENSION_INSTALL_STATUS_UNSPECIFIED: ExtensionInstallStatus.ValueType # 0 """EXTENSION_INSTALL_STATUS_UNSPECIFIED indicates extensions install status is unspecified.""" - EXTENSION_INSTALL_STATUS_NOT_INSTALLED: ExtensionInstallStatus.ValueType # 1 """EXTENSION_INSTALL_STATUS_NOT_INSTALLED indicates extension is not installed on the device.""" - EXTENSION_INSTALL_STATUS_INSTALLED: ExtensionInstallStatus.ValueType # 2 """EXTENSION_INSTALL_STATUS_INSTALLED indicates extension is installed on the device.""" - EXTENSION_INSTALL_STATUS_FORCE_INSTALLED: ExtensionInstallStatus.ValueType # 3 """EXTENSION_INSTALL_STATUS_FORCE_INSTALLED indicates extension is force installed on device. """ - global___ExtensionInstallStatus = ExtensionInstallStatus - class _SoftwareComplianceCode: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _SoftwareComplianceCodeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_SoftwareComplianceCode.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor SOFTWARE_COMPLIANCE_CODE_UNSPECIFIED: _SoftwareComplianceCode.ValueType # 0 """SOFTWARE_COMPLIANCE_CODE_UNSPECIFIED indicates compliance code is unspecified.""" - SOFTWARE_COMPLIANCE_CODE_IN_SYNC: _SoftwareComplianceCode.ValueType # 1 """SOFTWARE_COMPLIANCE_CODE_IN_SYNC indicates designed and running images/extensions are identical. """ - SOFTWARE_COMPLIANCE_CODE_OUT_OF_SYNC: _SoftwareComplianceCode.ValueType # 2 """SOFTWARE_COMPLIANCE_CODE_OUT_OF_SYNC indicates designed and running images/extensions are not identical. @@ -76,41 +77,33 @@ class _SoftwareComplianceCodeEnumTypeWrapper(google.protobuf.internal.enum_type_ class SoftwareComplianceCode(_SoftwareComplianceCode, metaclass=_SoftwareComplianceCodeEnumTypeWrapper): """SoftwareComplianceCode indicates possible compliance status.""" - pass SOFTWARE_COMPLIANCE_CODE_UNSPECIFIED: SoftwareComplianceCode.ValueType # 0 """SOFTWARE_COMPLIANCE_CODE_UNSPECIFIED indicates compliance code is unspecified.""" - SOFTWARE_COMPLIANCE_CODE_IN_SYNC: SoftwareComplianceCode.ValueType # 1 """SOFTWARE_COMPLIANCE_CODE_IN_SYNC indicates designed and running images/extensions are identical. """ - SOFTWARE_COMPLIANCE_CODE_OUT_OF_SYNC: SoftwareComplianceCode.ValueType # 2 """SOFTWARE_COMPLIANCE_CODE_OUT_OF_SYNC indicates designed and running images/extensions are not identical. """ - global___SoftwareComplianceCode = SoftwareComplianceCode - class _DiffOp: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _DiffOpEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_DiffOp.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor DIFF_OP_UNSPECIFIED: _DiffOp.ValueType # 0 """DIFF_OP_UNSPECIFIED indicates op code is unspecified.""" - DIFF_OP_NOP: _DiffOp.ValueType # 1 """DIFF_OP_NOP indicates no change.""" - DIFF_OP_ADD: _DiffOp.ValueType # 2 """DIFF_OP_ADD is an addition of a software.""" - DIFF_OP_DELETE: _DiffOp.ValueType # 3 """DIFF_OP_DELETE is deletion of a software.""" - DIFF_OP_CHANGE: _DiffOp.ValueType # 4 """DIFF_OP_CHANGE is an update to the software.""" @@ -118,116 +111,93 @@ class DiffOp(_DiffOp, metaclass=_DiffOpEnumTypeWrapper): """DiffOp represents the operation performed to get from one side of the diff to the other. """ - pass DIFF_OP_UNSPECIFIED: DiffOp.ValueType # 0 """DIFF_OP_UNSPECIFIED indicates op code is unspecified.""" - DIFF_OP_NOP: DiffOp.ValueType # 1 """DIFF_OP_NOP indicates no change.""" - DIFF_OP_ADD: DiffOp.ValueType # 2 """DIFF_OP_ADD is an addition of a software.""" - DIFF_OP_DELETE: DiffOp.ValueType # 3 """DIFF_OP_DELETE is deletion of a software.""" - DIFF_OP_CHANGE: DiffOp.ValueType # 4 """DIFF_OP_CHANGE is an update to the software.""" - global___DiffOp = DiffOp - class _ErrorCode: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _ErrorCodeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ErrorCode.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor ERROR_CODE_UNSPECIFIED: _ErrorCode.ValueType # 0 """ERROR_CODE_UNSPECIFIED indicates error code is unspecified.""" - ERROR_CODE_SUPPORT_NOT_INTRODUCED: _ErrorCode.ValueType # 1 """ERROR_CODE_SUPPORT_NOT_INTRODUCED represents case where the given EOS version does not support the SKU. Deprecated - use ERROR_CODE_EOS_SUPPORT_NOT_INTRODUCED """ - ERROR_CODE_SUPPORT_REMOVED: _ErrorCode.ValueType # 2 """ERROR_CODE_SUPPORT_REMOVED represents case where the given EOS version no longer supports the SKU. Deprecated - use ERROR_CODE_EOS_SUPPORT_REMOVED """ - ERROR_CODE_DEVICE_UNREACHABLE: _ErrorCode.ValueType # 3 """ERROR_CODE_DEVICE_UNREACHABLE represents the case where the device is unreachable during a compliance computation. """ - ERROR_CODE_VALIDATION_FAILED: _ErrorCode.ValueType # 4 """ERROR_CODE_VALIDATION_FAILED represents case where the validations checks failed. """ - ERROR_CODE_GET_PROPOSED_IMAGE_INFO_FAILED: _ErrorCode.ValueType # 5 """ERROR_CODE_GET_PROPOSED_IMAGE_INFO_FAILED represents case where we are unable to get proposed image information for a device. """ - ERROR_CODE_GET_RUNNING_IMAGE_INFO_FROM_ACTIVE_SUPERVISOR_FAILED: _ErrorCode.ValueType # 6 """ERROR_CODE_GET_RUNNING_IMAGE_INFO_FROM_ACTIVE_SUPERVISOR_FAILED represents case where we fail to get running image information from an active supervisor. """ - ERROR_CODE_GET_RUNNING_IMAGE_INFO_FROM_PEER_SUPERVISOR_FAILED: _ErrorCode.ValueType # 7 """ERROR_CODE_GET_RUNNING_IMAGE_INFO_FROM_PEER_SUPERVISOR_FAILED represents case when we fail to get information from peer supervisor. """ - ERROR_CODE_EOS_TA_ARCHITECTURE_INCOMPATIBLE: _ErrorCode.ValueType # 8 """ERROR_CODE_EOS_TA_ARCHITECTURE_INCOMPATIBLE represents the case where EOS architecture and TerminAttr architecture are incompatible. """ - ERROR_CODE_TA_CV_INCOMPATIBLE: _ErrorCode.ValueType # 9 """ERROR_CODE_TA_CV_INCOMPATIBLE represents the case where TerminAttr is incompatible with CloudVision; i.e., the TerminAttr version is below CloudVision's minimum supported version. """ - ERROR_CODE_EOS_CV_INCOMPATIBLE: _ErrorCode.ValueType # 10 """ERROR_CODE_EOS_CV_INCOMPATIBLE represents the case where the EOS version is incompatible with CloudVision; i.e., the EOS version is outside of CloudVision's supported range of versions. """ - ERROR_CODE_EOS_SUPPORT_NOT_INTRODUCED: _ErrorCode.ValueType # 11 """ERROR_CODE_EOS_SUPPORT_NOT_INTRODUCED represents the case where the given EOS version does not support the SKU. """ - ERROR_CODE_EOS_SUPPORT_REMOVED: _ErrorCode.ValueType # 12 """ERROR_CODE_EOS_SUPPORT_REMOVED represents the case where the given EOS version no longer supports the SKU. """ - ERROR_CODE_PHYSICAL_DEVICE_EOS_INCOMPATIBLE: _ErrorCode.ValueType # 13 """ERROR_CODE_PHYSICAL_DEVICE_EOS_INCOMPATIBLE represents the case where the physical device does not support the given EOS type. """ - ERROR_CODE_TA_EMBEDDEDEXT_INCOMPATIBLE: _ErrorCode.ValueType # 14 """ERROR_CODE_TA_EMBEDDEDEXT_INCOMPATIBLE represents the case where the extension TerminAttr version is lower than the embedded TerminAttr version in SWI. """ - ERROR_CODE_DEVICE_EOS_2GB_INCOMPATIBLE: _ErrorCode.ValueType # 15 """ERROR_CODE_DEVICE_EOS_2GB_INCOMPATIBLE represents the case where a 2GB-device is incompatible with a non-2GB EOS or a non-2GB device is incompatible with a 2GB-EOS. """ - ERROR_CODE_EOS_EXTENSION_VERSION_INCOMPATIBLE: _ErrorCode.ValueType # 16 """ERROR_CODE_EOS_EXTENSION_VERSION_INCOMPATIBLE represents the case where the given extension version doesn't support the given EOS version. """ - ERROR_CODE_ARCH_UNSUPPORTED: _ErrorCode.ValueType # 17 """ERROR_CODE_ARCH_UNSUPPORTED represents the case where the given image architecture is not supported by CloudVision. @@ -235,182 +205,147 @@ class _ErrorCodeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._Enum class ErrorCode(_ErrorCode, metaclass=_ErrorCodeEnumTypeWrapper): """ErrorCode indicates errors produced during image validations.""" - pass ERROR_CODE_UNSPECIFIED: ErrorCode.ValueType # 0 """ERROR_CODE_UNSPECIFIED indicates error code is unspecified.""" - ERROR_CODE_SUPPORT_NOT_INTRODUCED: ErrorCode.ValueType # 1 """ERROR_CODE_SUPPORT_NOT_INTRODUCED represents case where the given EOS version does not support the SKU. Deprecated - use ERROR_CODE_EOS_SUPPORT_NOT_INTRODUCED """ - ERROR_CODE_SUPPORT_REMOVED: ErrorCode.ValueType # 2 """ERROR_CODE_SUPPORT_REMOVED represents case where the given EOS version no longer supports the SKU. Deprecated - use ERROR_CODE_EOS_SUPPORT_REMOVED """ - ERROR_CODE_DEVICE_UNREACHABLE: ErrorCode.ValueType # 3 """ERROR_CODE_DEVICE_UNREACHABLE represents the case where the device is unreachable during a compliance computation. """ - ERROR_CODE_VALIDATION_FAILED: ErrorCode.ValueType # 4 """ERROR_CODE_VALIDATION_FAILED represents case where the validations checks failed. """ - ERROR_CODE_GET_PROPOSED_IMAGE_INFO_FAILED: ErrorCode.ValueType # 5 """ERROR_CODE_GET_PROPOSED_IMAGE_INFO_FAILED represents case where we are unable to get proposed image information for a device. """ - ERROR_CODE_GET_RUNNING_IMAGE_INFO_FROM_ACTIVE_SUPERVISOR_FAILED: ErrorCode.ValueType # 6 """ERROR_CODE_GET_RUNNING_IMAGE_INFO_FROM_ACTIVE_SUPERVISOR_FAILED represents case where we fail to get running image information from an active supervisor. """ - ERROR_CODE_GET_RUNNING_IMAGE_INFO_FROM_PEER_SUPERVISOR_FAILED: ErrorCode.ValueType # 7 """ERROR_CODE_GET_RUNNING_IMAGE_INFO_FROM_PEER_SUPERVISOR_FAILED represents case when we fail to get information from peer supervisor. """ - ERROR_CODE_EOS_TA_ARCHITECTURE_INCOMPATIBLE: ErrorCode.ValueType # 8 """ERROR_CODE_EOS_TA_ARCHITECTURE_INCOMPATIBLE represents the case where EOS architecture and TerminAttr architecture are incompatible. """ - ERROR_CODE_TA_CV_INCOMPATIBLE: ErrorCode.ValueType # 9 """ERROR_CODE_TA_CV_INCOMPATIBLE represents the case where TerminAttr is incompatible with CloudVision; i.e., the TerminAttr version is below CloudVision's minimum supported version. """ - ERROR_CODE_EOS_CV_INCOMPATIBLE: ErrorCode.ValueType # 10 """ERROR_CODE_EOS_CV_INCOMPATIBLE represents the case where the EOS version is incompatible with CloudVision; i.e., the EOS version is outside of CloudVision's supported range of versions. """ - ERROR_CODE_EOS_SUPPORT_NOT_INTRODUCED: ErrorCode.ValueType # 11 """ERROR_CODE_EOS_SUPPORT_NOT_INTRODUCED represents the case where the given EOS version does not support the SKU. """ - ERROR_CODE_EOS_SUPPORT_REMOVED: ErrorCode.ValueType # 12 """ERROR_CODE_EOS_SUPPORT_REMOVED represents the case where the given EOS version no longer supports the SKU. """ - ERROR_CODE_PHYSICAL_DEVICE_EOS_INCOMPATIBLE: ErrorCode.ValueType # 13 """ERROR_CODE_PHYSICAL_DEVICE_EOS_INCOMPATIBLE represents the case where the physical device does not support the given EOS type. """ - ERROR_CODE_TA_EMBEDDEDEXT_INCOMPATIBLE: ErrorCode.ValueType # 14 """ERROR_CODE_TA_EMBEDDEDEXT_INCOMPATIBLE represents the case where the extension TerminAttr version is lower than the embedded TerminAttr version in SWI. """ - ERROR_CODE_DEVICE_EOS_2GB_INCOMPATIBLE: ErrorCode.ValueType # 15 """ERROR_CODE_DEVICE_EOS_2GB_INCOMPATIBLE represents the case where a 2GB-device is incompatible with a non-2GB EOS or a non-2GB device is incompatible with a 2GB-EOS. """ - ERROR_CODE_EOS_EXTENSION_VERSION_INCOMPATIBLE: ErrorCode.ValueType # 16 """ERROR_CODE_EOS_EXTENSION_VERSION_INCOMPATIBLE represents the case where the given extension version doesn't support the given EOS version. """ - ERROR_CODE_ARCH_UNSUPPORTED: ErrorCode.ValueType # 17 """ERROR_CODE_ARCH_UNSUPPORTED represents the case where the given image architecture is not supported by CloudVision. """ - global___ErrorCode = ErrorCode - class _WarningCode: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _WarningCodeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_WarningCode.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor WARNING_CODE_UNSPECIFIED: _WarningCode.ValueType # 0 """WARNING_CODE_UNSPECIFIED indicates warning code is unspecified.""" - WARNING_CODE_NOT_APPLICABLE: _WarningCode.ValueType # 1 """WARNING_CODE_NOT_APPLICABLE represents cases where EOS <-> SKU/TA compatibility is not applicable for non physical switches like vEos. """ - WARNING_CODE_SKUINFO_UNAVAILABLE: _WarningCode.ValueType # 2 """WARNING_CODE_SKUINFO_UNAVAILABLE represents case where information about certain skus is missing. """ - WARNING_CODE_DEVICE_SKU_UNAVAILABLE: _WarningCode.ValueType # 3 """WARNING_CODE_DEVICE_SKU_UNAVAILABLE represents unavailability of skus for an EOS Device.""" - WARNING_CODE_SWI_UNKNOWN: _WarningCode.ValueType # 4 """WARNING_CODE_SWI_UNKNOWN represents cases where EOS version is not found in release database.""" - WARNING_CODE_TA_EOS_INCOMPATIBLE: _WarningCode.ValueType # 5 """WARNING_CODE_TA_EOS_INCOMPATIBLE represents cases where TA and EOS are not compatible. TA is lower than embedded TA in swi or given TA is unsupported by the EOS. """ - WARNING_CODE_TA_CV_INCOMPATIBLE: _WarningCode.ValueType # 6 """WARNING_CODE_TA_CV_INCOMPATIBLE represents cases where TA is incompatible with CV. TA is lower than minimum supported TA on CV. Deprecated - use ERROR_CODE_TA_CV_INCOMPATIBLE. """ - WARNING_CODE_EOS_CV_INCOMPATIBLE: _WarningCode.ValueType # 7 """WARNING_CODE_EOS_CV_INCOMPATIBLE represents cases where EOS is no longer or not yet supported by CV. Given EOS is outside range of CV's minimum and maximum EOS. Deprecated - use ERROR_CODE_EOS_CV_INCOMPATIBLE. """ - WARNING_CODE_EOS_ARCH_UNKNOWN: _WarningCode.ValueType # 8 """WARNING_CODE_EOS_ARCH_UNKNOWN represents cases where the specified architecture is not valid for EOS. """ - WARNING_CODE_TA_EMBEDDEDEXT_INCOMPATIBLE: _WarningCode.ValueType # 9 """WARNING_CODE_TA_EMBEDDEDEXT_INCOMPATIBLE represents cases where TA extension is lower in version than embedded TA in SWI. """ - WARNING_CODE_ARCH_INCOMPATIBLE: _WarningCode.ValueType # 10 """WARNING_CODE_ARCH_INCOMPATIBLE represents cases where EOS arch and TA arch are different. Deprecated. """ - WARNING_CODE_EOS_END_OF_LIFE_DATE_PASSED: _WarningCode.ValueType # 11 """WARNING_CODE_EOS_END_OF_LIFE_DATE_PASSED represents cases where the given EOS has passed its end of life date. """ - WARNING_CODE_SUPPORT_NOT_INTRODUCED: _WarningCode.ValueType # 12 """WARNING_CODE_SUPPORT_NOT_INTRODUCED represents cases where the given EOS version does not support the SKUs. """ - WARNING_CODE_SUPPORT_REMOVED: _WarningCode.ValueType # 13 """WARNING_CODE_SUPPORT_REMOVED represents cases where the given EOS version no longer supports the SKUs. """ - WARNING_CODE_RUNNING_TA_BELOW_MIN_SUPPORTED_VERSION: _WarningCode.ValueType # 14 """WARNING_CODE_RUNNING_TA_BELOW_MIN_SUPPORTED_VERSION represents cases where the running TerminAttr version is below CloudVision's minimum supported version. """ - WARNING_CODE_TA_STUDIO_INCOMPATIBLE: _WarningCode.ValueType # 15 """WARNING_CODE_TA_STUDIO_INCOMPATIBLE represents cases where the TerminAttr is incompatible with Software Management Studio. """ - WARNING_CODE_BUGALERTS_DATA_MISSING: _WarningCode.ValueType # 16 """WARNING_CODE_BUGALERTS_DATA_MISSING represents cases where some of the BugAlerts data under Aeris analytics dataset is missing. @@ -418,100 +353,81 @@ class _WarningCodeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._En class WarningCode(_WarningCode, metaclass=_WarningCodeEnumTypeWrapper): """WarningCode indicates warnings produced during image validations.""" - pass WARNING_CODE_UNSPECIFIED: WarningCode.ValueType # 0 """WARNING_CODE_UNSPECIFIED indicates warning code is unspecified.""" - WARNING_CODE_NOT_APPLICABLE: WarningCode.ValueType # 1 """WARNING_CODE_NOT_APPLICABLE represents cases where EOS <-> SKU/TA compatibility is not applicable for non physical switches like vEos. """ - WARNING_CODE_SKUINFO_UNAVAILABLE: WarningCode.ValueType # 2 """WARNING_CODE_SKUINFO_UNAVAILABLE represents case where information about certain skus is missing. """ - WARNING_CODE_DEVICE_SKU_UNAVAILABLE: WarningCode.ValueType # 3 """WARNING_CODE_DEVICE_SKU_UNAVAILABLE represents unavailability of skus for an EOS Device.""" - WARNING_CODE_SWI_UNKNOWN: WarningCode.ValueType # 4 """WARNING_CODE_SWI_UNKNOWN represents cases where EOS version is not found in release database.""" - WARNING_CODE_TA_EOS_INCOMPATIBLE: WarningCode.ValueType # 5 """WARNING_CODE_TA_EOS_INCOMPATIBLE represents cases where TA and EOS are not compatible. TA is lower than embedded TA in swi or given TA is unsupported by the EOS. """ - WARNING_CODE_TA_CV_INCOMPATIBLE: WarningCode.ValueType # 6 """WARNING_CODE_TA_CV_INCOMPATIBLE represents cases where TA is incompatible with CV. TA is lower than minimum supported TA on CV. Deprecated - use ERROR_CODE_TA_CV_INCOMPATIBLE. """ - WARNING_CODE_EOS_CV_INCOMPATIBLE: WarningCode.ValueType # 7 """WARNING_CODE_EOS_CV_INCOMPATIBLE represents cases where EOS is no longer or not yet supported by CV. Given EOS is outside range of CV's minimum and maximum EOS. Deprecated - use ERROR_CODE_EOS_CV_INCOMPATIBLE. """ - WARNING_CODE_EOS_ARCH_UNKNOWN: WarningCode.ValueType # 8 """WARNING_CODE_EOS_ARCH_UNKNOWN represents cases where the specified architecture is not valid for EOS. """ - WARNING_CODE_TA_EMBEDDEDEXT_INCOMPATIBLE: WarningCode.ValueType # 9 """WARNING_CODE_TA_EMBEDDEDEXT_INCOMPATIBLE represents cases where TA extension is lower in version than embedded TA in SWI. """ - WARNING_CODE_ARCH_INCOMPATIBLE: WarningCode.ValueType # 10 """WARNING_CODE_ARCH_INCOMPATIBLE represents cases where EOS arch and TA arch are different. Deprecated. """ - WARNING_CODE_EOS_END_OF_LIFE_DATE_PASSED: WarningCode.ValueType # 11 """WARNING_CODE_EOS_END_OF_LIFE_DATE_PASSED represents cases where the given EOS has passed its end of life date. """ - WARNING_CODE_SUPPORT_NOT_INTRODUCED: WarningCode.ValueType # 12 """WARNING_CODE_SUPPORT_NOT_INTRODUCED represents cases where the given EOS version does not support the SKUs. """ - WARNING_CODE_SUPPORT_REMOVED: WarningCode.ValueType # 13 """WARNING_CODE_SUPPORT_REMOVED represents cases where the given EOS version no longer supports the SKUs. """ - WARNING_CODE_RUNNING_TA_BELOW_MIN_SUPPORTED_VERSION: WarningCode.ValueType # 14 """WARNING_CODE_RUNNING_TA_BELOW_MIN_SUPPORTED_VERSION represents cases where the running TerminAttr version is below CloudVision's minimum supported version. """ - WARNING_CODE_TA_STUDIO_INCOMPATIBLE: WarningCode.ValueType # 15 """WARNING_CODE_TA_STUDIO_INCOMPATIBLE represents cases where the TerminAttr is incompatible with Software Management Studio. """ - WARNING_CODE_BUGALERTS_DATA_MISSING: WarningCode.ValueType # 16 """WARNING_CODE_BUGALERTS_DATA_MISSING represents cases where some of the BugAlerts data under Aeris analytics dataset is missing. """ - global___WarningCode = WarningCode - class _InfoCode: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _InfoCodeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_InfoCode.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor INFO_CODE_UNSPECIFIED: _InfoCode.ValueType # 0 """INFO_CODE_UNSPECIFIED indicates info code is unspecified.""" - INFO_CODE_NEWER_VERSION_AVAILABLE: _InfoCode.ValueType # 1 """INFO_CODE_NEWER_VERSION_AVAILABLE represents cases where a newer EOS maintainance release is available for download. @@ -519,50 +435,54 @@ class _InfoCodeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumT class InfoCode(_InfoCode, metaclass=_InfoCodeEnumTypeWrapper): """InfoCode indicates info messages produced during image validations.""" - pass INFO_CODE_UNSPECIFIED: InfoCode.ValueType # 0 """INFO_CODE_UNSPECIFIED indicates info code is unspecified.""" - INFO_CODE_NEWER_VERSION_AVAILABLE: InfoCode.ValueType # 1 """INFO_CODE_NEWER_VERSION_AVAILABLE represents cases where a newer EOS maintainance release is available for download. """ - global___InfoCode = InfoCode - +@typing.final class SoftwareImage(google.protobuf.message.Message): """SoftwareImage provides information of the running/designed EOS image.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + NAME_FIELD_NUMBER: builtins.int VERSION_FIELD_NUMBER: builtins.int METADATA_FIELD_NUMBER: builtins.int @property def name(self) -> google.protobuf.wrappers_pb2.StringValue: """name is the name of the EOS image.""" - pass + @property def version(self) -> google.protobuf.wrappers_pb2.StringValue: """version is the version of the EOS image.""" - pass + @property def metadata(self) -> global___ImageMetadata: """metadata is the metadata of EOS image.""" - pass - def __init__(self, + + def __init__( + self, *, - name: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - version: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - metadata: typing.Optional[global___ImageMetadata] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["metadata",b"metadata","name",b"name","version",b"version"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["metadata",b"metadata","name",b"name","version",b"version"]) -> None: ... + name: google.protobuf.wrappers_pb2.StringValue | None = ..., + version: google.protobuf.wrappers_pb2.StringValue | None = ..., + metadata: global___ImageMetadata | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["metadata", b"metadata", "name", b"name", "version", b"version"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["metadata", b"metadata", "name", b"name", "version", b"version"]) -> None: ... + global___SoftwareImage = SoftwareImage +@typing.final class ImageMetadata(google.protobuf.message.Message): """ImageMetadata provides information regarding the software image.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + VERSION_FIELD_NUMBER: builtins.int RELEASE_FIELD_NUMBER: builtins.int FLAVOR_FIELD_NUMBER: builtins.int @@ -571,42 +491,47 @@ class ImageMetadata(google.protobuf.message.Message): @property def version(self) -> google.protobuf.wrappers_pb2.StringValue: """version is the version of the EOS image.""" - pass + @property def release(self) -> google.protobuf.wrappers_pb2.StringValue: """release is the release name of the EOS image.""" - pass + @property def flavor(self) -> google.protobuf.wrappers_pb2.StringValue: """flavor is the flavor information of the EOS image. default flavor is DEFAULT. Other flavors can be DPE, 2GB, etc. """ - pass + @property def variant(self) -> google.protobuf.wrappers_pb2.StringValue: """variant is the variant information of the EOS image. possible values: INT or US. """ - pass + @property def arch(self) -> google.protobuf.wrappers_pb2.StringValue: """arch is the architecture of the EOS image.""" - pass - def __init__(self, + + def __init__( + self, *, - version: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - release: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - flavor: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - variant: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - arch: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["arch",b"arch","flavor",b"flavor","release",b"release","variant",b"variant","version",b"version"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["arch",b"arch","flavor",b"flavor","release",b"release","variant",b"variant","version",b"version"]) -> None: ... + version: google.protobuf.wrappers_pb2.StringValue | None = ..., + release: google.protobuf.wrappers_pb2.StringValue | None = ..., + flavor: google.protobuf.wrappers_pb2.StringValue | None = ..., + variant: google.protobuf.wrappers_pb2.StringValue | None = ..., + arch: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["arch", b"arch", "flavor", b"flavor", "release", b"release", "variant", b"variant", "version", b"version"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["arch", b"arch", "flavor", b"flavor", "release", b"release", "variant", b"variant", "version", b"version"]) -> None: ... + global___ImageMetadata = ImageMetadata +@typing.final class Extension(google.protobuf.message.Message): """Extension provides information of the running/designed extensions.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + NAME_FIELD_NUMBER: builtins.int VERSION_FIELD_NUMBER: builtins.int REBOOT_REQUIRED_FIELD_NUMBER: builtins.int @@ -614,133 +539,152 @@ class Extension(google.protobuf.message.Message): INSTALLED_FIELD_NUMBER: builtins.int STATUS_DETAIL_FIELD_NUMBER: builtins.int IS_EMBEDDED_FIELD_NUMBER: builtins.int + installed: global___ExtensionInstallStatus.ValueType + """installed indicates whether the extension is installed, not + installed or force installed. + """ @property def name(self) -> google.protobuf.wrappers_pb2.StringValue: """name is the name of the extension.""" - pass + @property def version(self) -> google.protobuf.wrappers_pb2.StringValue: """version is the version of the extension.""" - pass + @property def reboot_required(self) -> google.protobuf.wrappers_pb2.BoolValue: """reboot_required indicates whether applying/deleting this extension would result in a reboot. """ - pass + @property def present(self) -> google.protobuf.wrappers_pb2.BoolValue: """present indicates whether the extension is present in the device or not. """ - pass - installed: global___ExtensionInstallStatus.ValueType - """installed indicates whether the extension is installed, not - installed or force installed. - """ @property def status_detail(self) -> google.protobuf.wrappers_pb2.StringValue: """status_detail gives the details behind installation of the extension.""" - pass + @property def is_embedded(self) -> google.protobuf.wrappers_pb2.BoolValue: """is_embedded indicates whether the extension is embedded in the EOS swi or not. """ - pass - def __init__(self, + + def __init__( + self, *, - name: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - version: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - reboot_required: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - present: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., + name: google.protobuf.wrappers_pb2.StringValue | None = ..., + version: google.protobuf.wrappers_pb2.StringValue | None = ..., + reboot_required: google.protobuf.wrappers_pb2.BoolValue | None = ..., + present: google.protobuf.wrappers_pb2.BoolValue | None = ..., installed: global___ExtensionInstallStatus.ValueType = ..., - status_detail: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - is_embedded: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["is_embedded",b"is_embedded","name",b"name","present",b"present","reboot_required",b"reboot_required","status_detail",b"status_detail","version",b"version"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["installed",b"installed","is_embedded",b"is_embedded","name",b"name","present",b"present","reboot_required",b"reboot_required","status_detail",b"status_detail","version",b"version"]) -> None: ... + status_detail: google.protobuf.wrappers_pb2.StringValue | None = ..., + is_embedded: google.protobuf.wrappers_pb2.BoolValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["is_embedded", b"is_embedded", "name", b"name", "present", b"present", "reboot_required", b"reboot_required", "status_detail", b"status_detail", "version", b"version"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["installed", b"installed", "is_embedded", b"is_embedded", "name", b"name", "present", b"present", "reboot_required", b"reboot_required", "status_detail", b"status_detail", "version", b"version"]) -> None: ... + global___Extension = Extension +@typing.final class Extensions(google.protobuf.message.Message): """Extensions provides an ordered list of running/designed extensions.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Extension]: """values represents extension information.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[global___Extension]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[global___Extension] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___Extensions = Extensions +@typing.final class ComplianceStatus(google.protobuf.message.Message): """ComplianceStatus indicates compliance status for software image, terminattr and extensions. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + SOFTWARE_IMAGE_COMPLIANCE_CODE_FIELD_NUMBER: builtins.int TERMINATTR_COMPLIANCE_CODE_FIELD_NUMBER: builtins.int EXTENSIONS_COMPLIANCE_CODE_FIELD_NUMBER: builtins.int software_image_compliance_code: global___SoftwareComplianceCode.ValueType """software_image_compliance_code is the compliance code for images.""" - terminattr_compliance_code: global___SoftwareComplianceCode.ValueType """terminattr_compliance_code is the compliance code for TerminAttr.""" - extensions_compliance_code: global___SoftwareComplianceCode.ValueType """extensions_compliance_code is the compliance code for extensions.""" - - def __init__(self, + def __init__( + self, *, software_image_compliance_code: global___SoftwareComplianceCode.ValueType = ..., terminattr_compliance_code: global___SoftwareComplianceCode.ValueType = ..., extensions_compliance_code: global___SoftwareComplianceCode.ValueType = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["extensions_compliance_code",b"extensions_compliance_code","software_image_compliance_code",b"software_image_compliance_code","terminattr_compliance_code",b"terminattr_compliance_code"]) -> None: ... + ) -> None: ... + def ClearField(self, field_name: typing.Literal["extensions_compliance_code", b"extensions_compliance_code", "software_image_compliance_code", b"software_image_compliance_code", "terminattr_compliance_code", b"terminattr_compliance_code"]) -> None: ... + global___ComplianceStatus = ComplianceStatus +@typing.final class ComplianceStatusBySup(google.protobuf.message.Message): """ComplianceStatusBySup is a map that indicates the compliance code for each supervisor. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int - key: typing.Text + key: builtins.str @property def value(self) -> global___ComplianceStatus: ... - def __init__(self, + def __init__( + self, *, - key: typing.Text = ..., - value: typing.Optional[global___ComplianceStatus] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + key: builtins.str = ..., + value: global___ComplianceStatus | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property - def values(self) -> google.protobuf.internal.containers.MessageMap[typing.Text, global___ComplianceStatus]: + def values(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___ComplianceStatus]: """values is the mapping of supervisor type to compliance code.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[typing.Text, global___ComplianceStatus]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.str, global___ComplianceStatus] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___ComplianceStatusBySup = ComplianceStatusBySup +@typing.final class RebootRequired(google.protobuf.message.Message): """RebootRequired indicates the reboot information per software image, terminattr and extension for the switch as a whole. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + SOFTWARE_IMAGE_REBOOT_REQUIRED_FIELD_NUMBER: builtins.int TERMINATTR_REBOOT_REQUIRED_FIELD_NUMBER: builtins.int EXTENSION_REBOOT_REQUIRED_FIELD_NUMBER: builtins.int @@ -749,32 +693,37 @@ class RebootRequired(google.protobuf.message.Message): """software_image_reboot_required indicates whether reboot is required for the software image being applied. """ - pass + @property def terminattr_reboot_required(self) -> google.protobuf.wrappers_pb2.BoolValue: """terminattr_reboot_required indicates whether reboot is required for the terminattr being applied/deleted. """ - pass + @property def extension_reboot_required(self) -> google.protobuf.wrappers_pb2.BoolValue: """extension_reboot_required indicates whether reboot is required for the extensions being applied/deleted. """ - pass - def __init__(self, + + def __init__( + self, *, - software_image_reboot_required: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - terminattr_reboot_required: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - extension_reboot_required: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["extension_reboot_required",b"extension_reboot_required","software_image_reboot_required",b"software_image_reboot_required","terminattr_reboot_required",b"terminattr_reboot_required"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["extension_reboot_required",b"extension_reboot_required","software_image_reboot_required",b"software_image_reboot_required","terminattr_reboot_required",b"terminattr_reboot_required"]) -> None: ... + software_image_reboot_required: google.protobuf.wrappers_pb2.BoolValue | None = ..., + terminattr_reboot_required: google.protobuf.wrappers_pb2.BoolValue | None = ..., + extension_reboot_required: google.protobuf.wrappers_pb2.BoolValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["extension_reboot_required", b"extension_reboot_required", "software_image_reboot_required", b"software_image_reboot_required", "terminattr_reboot_required", b"terminattr_reboot_required"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["extension_reboot_required", b"extension_reboot_required", "software_image_reboot_required", b"software_image_reboot_required", "terminattr_reboot_required", b"terminattr_reboot_required"]) -> None: ... + global___RebootRequired = RebootRequired +@typing.final class SoftwareImageDiff(google.protobuf.message.Message): """SoftwareImageDiff is the diff for the running/designed images.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + CODE_FIELD_NUMBER: builtins.int A_FIELD_NUMBER: builtins.int B_FIELD_NUMBER: builtins.int @@ -783,64 +732,75 @@ class SoftwareImageDiff(google.protobuf.message.Message): """code indicates the operation performed to get from one side of the diff to the other. """ - + text_code: global___DiffOp.ValueType + """text_code is the color in the diff view page.""" @property def a(self) -> global___SoftwareImage: """a is the software image on the a side (left hand side).""" - pass + @property def b(self) -> global___SoftwareImage: """b is the software image on the b side (right hand side).""" - pass - text_code: global___DiffOp.ValueType - """text_code is the color in the diff view page.""" - def __init__(self, + def __init__( + self, *, code: global___DiffOp.ValueType = ..., - a: typing.Optional[global___SoftwareImage] = ..., - b: typing.Optional[global___SoftwareImage] = ..., + a: global___SoftwareImage | None = ..., + b: global___SoftwareImage | None = ..., text_code: global___DiffOp.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["a",b"a","b",b"b"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["a",b"a","b",b"b","code",b"code","text_code",b"text_code"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["a", b"a", "b", b"b"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["a", b"a", "b", b"b", "code", b"code", "text_code", b"text_code"]) -> None: ... + global___SoftwareImageDiff = SoftwareImageDiff +@typing.final class SoftwareImageDiffsBySup(google.protobuf.message.Message): """SoftwareImageDiffsBySup is software image diff information for each supervisor. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int - key: typing.Text + key: builtins.str @property def value(self) -> global___SoftwareImageDiff: ... - def __init__(self, + def __init__( + self, *, - key: typing.Text = ..., - value: typing.Optional[global___SoftwareImageDiff] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + key: builtins.str = ..., + value: global___SoftwareImageDiff | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property - def values(self) -> google.protobuf.internal.containers.MessageMap[typing.Text, global___SoftwareImageDiff]: + def values(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___SoftwareImageDiff]: """values is the mapping of supervisor type to image diff.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[typing.Text, global___SoftwareImageDiff]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.str, global___SoftwareImageDiff] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___SoftwareImageDiffsBySup = SoftwareImageDiffsBySup +@typing.final class ExtensionDiff(google.protobuf.message.Message): """ExtensionDiff is the diff for the running/designed extensions.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + CODE_FIELD_NUMBER: builtins.int A_FIELD_NUMBER: builtins.int B_FIELD_NUMBER: builtins.int @@ -849,109 +809,133 @@ class ExtensionDiff(google.protobuf.message.Message): """code indicates the operation performed to get from one side of the diff to the other. """ - + text_code: global___DiffOp.ValueType + """text_code is the color in the diff view page.""" @property def a(self) -> global___Extension: """a is the extension on the a side (left hand side).""" - pass + @property def b(self) -> global___Extension: """b is the extension on the b side (right hand side).""" - pass - text_code: global___DiffOp.ValueType - """text_code is the color in the diff view page.""" - def __init__(self, + def __init__( + self, *, code: global___DiffOp.ValueType = ..., - a: typing.Optional[global___Extension] = ..., - b: typing.Optional[global___Extension] = ..., + a: global___Extension | None = ..., + b: global___Extension | None = ..., text_code: global___DiffOp.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["a",b"a","b",b"b"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["a",b"a","b",b"b","code",b"code","text_code",b"text_code"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["a", b"a", "b", b"b"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["a", b"a", "b", b"b", "code", b"code", "text_code", b"text_code"]) -> None: ... + global___ExtensionDiff = ExtensionDiff +@typing.final class TerminAttrDiffsBySup(google.protobuf.message.Message): """TerminAttrDiffsBySup is the terminattr diff information for each supervisor.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int - key: typing.Text + key: builtins.str @property def value(self) -> global___ExtensionDiff: ... - def __init__(self, + def __init__( + self, *, - key: typing.Text = ..., - value: typing.Optional[global___ExtensionDiff] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + key: builtins.str = ..., + value: global___ExtensionDiff | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property - def values(self) -> google.protobuf.internal.containers.MessageMap[typing.Text, global___ExtensionDiff]: + def values(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___ExtensionDiff]: """values is the mapping of supervisor type to terminattr diff.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[typing.Text, global___ExtensionDiff]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.str, global___ExtensionDiff] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___TerminAttrDiffsBySup = TerminAttrDiffsBySup +@typing.final class ExtensionDiffs(google.protobuf.message.Message): """ExtensionDiffs is a list of extension diff information in the order they will be applied. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ExtensionDiff]: """values is an ordered list of extension diffs applied to the device.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[global___ExtensionDiff]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[global___ExtensionDiff] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___ExtensionDiffs = ExtensionDiffs +@typing.final class ExtensionDiffsBySup(google.protobuf.message.Message): """ExtensionDiffsBySup is the extension diff information for each supervisor.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int - key: typing.Text + key: builtins.str @property def value(self) -> global___ExtensionDiffs: ... - def __init__(self, + def __init__( + self, *, - key: typing.Text = ..., - value: typing.Optional[global___ExtensionDiffs] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + key: builtins.str = ..., + value: global___ExtensionDiffs | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property - def values(self) -> google.protobuf.internal.containers.MessageMap[typing.Text, global___ExtensionDiffs]: + def values(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___ExtensionDiffs]: """values is the mapping of supervisor type to extension diff.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[typing.Text, global___ExtensionDiffs]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.str, global___ExtensionDiffs] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___ExtensionDiffsBySup = ExtensionDiffsBySup +@typing.final class ImageSummary(google.protobuf.message.Message): """ImageSummary represents device image summary.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + SKU_FIELD_NUMBER: builtins.int RUNNING_IMAGE_UPDATE_TIME_FIELD_NUMBER: builtins.int DESIGNED_IMAGE_UPDATE_TIME_FIELD_NUMBER: builtins.int @@ -965,65 +949,64 @@ class ImageSummary(google.protobuf.message.Message): COMPLIANCE_FIELD_NUMBER: builtins.int REBOOT_REQUIRED_FIELD_NUMBER: builtins.int DIGEST_FIELD_NUMBER: builtins.int + compliance_status: global___SoftwareComplianceCode.ValueType + """compliance_status is the aggregated compliance status (including both + active/standby and image/TA/extension compliance). + """ @property def sku(self) -> google.protobuf.wrappers_pb2.StringValue: """sku indicates the top-level sku or model number.""" - pass + @property def running_image_update_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """running_image_update_time is the most recent timestamp at which one of running image side properties is updated. """ - pass + @property def designed_image_update_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """designed_image_update_time is the most recent timestamp at which one of designed image side properties is updated. """ - pass + @property def dual_sup(self) -> google.protobuf.wrappers_pb2.BoolValue: """dual_sup indicates if a device is a dual supervisor.""" - pass + @property def active_slot(self) -> google.protobuf.wrappers_pb2.Int32Value: """active_slot indicates the physical slot number for the the active supervisor. """ - pass + @property def standby_slot(self) -> google.protobuf.wrappers_pb2.Int32Value: """standby_slot indicates the physical slot number for the standby supervisor. """ - pass + @property def software_image_diff(self) -> global___SoftwareImageDiffsBySup: """software_image_diff indicates the image diff for each supervisor.""" - pass + @property def terminattr_diff(self) -> global___TerminAttrDiffsBySup: """terminattr_diff indicates the terminattr diff for each supervisor.""" - pass + @property def extensions_diff(self) -> global___ExtensionDiffsBySup: """extensions_diff indicates the extension diff for each supervisor.""" - pass - compliance_status: global___SoftwareComplianceCode.ValueType - """compliance_status is the aggregated compliance status (including both - active/standby and image/TA/extension compliance). - """ @property def compliance(self) -> global___ComplianceStatusBySup: """compliance provides compliance information for each supervisor.""" - pass + @property def reboot_required(self) -> global___RebootRequired: """reboot_required indicates whether a reboot is required if the designed image is pushed to the device. """ - pass + @property def digest(self) -> google.protobuf.wrappers_pb2.StringValue: """digest is the digest of the image summary. It can use SHA-256 hash @@ -1031,46 +1014,56 @@ class ImageSummary(google.protobuf.message.Message): software_image_diff, terminattr_diff and extensions_diff and computing the hash. """ - pass - def __init__(self, + + def __init__( + self, *, - sku: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - running_image_update_time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - designed_image_update_time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - dual_sup: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - active_slot: typing.Optional[google.protobuf.wrappers_pb2.Int32Value] = ..., - standby_slot: typing.Optional[google.protobuf.wrappers_pb2.Int32Value] = ..., - software_image_diff: typing.Optional[global___SoftwareImageDiffsBySup] = ..., - terminattr_diff: typing.Optional[global___TerminAttrDiffsBySup] = ..., - extensions_diff: typing.Optional[global___ExtensionDiffsBySup] = ..., + sku: google.protobuf.wrappers_pb2.StringValue | None = ..., + running_image_update_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + designed_image_update_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + dual_sup: google.protobuf.wrappers_pb2.BoolValue | None = ..., + active_slot: google.protobuf.wrappers_pb2.Int32Value | None = ..., + standby_slot: google.protobuf.wrappers_pb2.Int32Value | None = ..., + software_image_diff: global___SoftwareImageDiffsBySup | None = ..., + terminattr_diff: global___TerminAttrDiffsBySup | None = ..., + extensions_diff: global___ExtensionDiffsBySup | None = ..., compliance_status: global___SoftwareComplianceCode.ValueType = ..., - compliance: typing.Optional[global___ComplianceStatusBySup] = ..., - reboot_required: typing.Optional[global___RebootRequired] = ..., - digest: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["active_slot",b"active_slot","compliance",b"compliance","designed_image_update_time",b"designed_image_update_time","digest",b"digest","dual_sup",b"dual_sup","extensions_diff",b"extensions_diff","reboot_required",b"reboot_required","running_image_update_time",b"running_image_update_time","sku",b"sku","software_image_diff",b"software_image_diff","standby_slot",b"standby_slot","terminattr_diff",b"terminattr_diff"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["active_slot",b"active_slot","compliance",b"compliance","compliance_status",b"compliance_status","designed_image_update_time",b"designed_image_update_time","digest",b"digest","dual_sup",b"dual_sup","extensions_diff",b"extensions_diff","reboot_required",b"reboot_required","running_image_update_time",b"running_image_update_time","sku",b"sku","software_image_diff",b"software_image_diff","standby_slot",b"standby_slot","terminattr_diff",b"terminattr_diff"]) -> None: ... + compliance: global___ComplianceStatusBySup | None = ..., + reboot_required: global___RebootRequired | None = ..., + digest: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["active_slot", b"active_slot", "compliance", b"compliance", "designed_image_update_time", b"designed_image_update_time", "digest", b"digest", "dual_sup", b"dual_sup", "extensions_diff", b"extensions_diff", "reboot_required", b"reboot_required", "running_image_update_time", b"running_image_update_time", "sku", b"sku", "software_image_diff", b"software_image_diff", "standby_slot", b"standby_slot", "terminattr_diff", b"terminattr_diff"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["active_slot", b"active_slot", "compliance", b"compliance", "compliance_status", b"compliance_status", "designed_image_update_time", b"designed_image_update_time", "digest", b"digest", "dual_sup", b"dual_sup", "extensions_diff", b"extensions_diff", "reboot_required", b"reboot_required", "running_image_update_time", b"running_image_update_time", "sku", b"sku", "software_image_diff", b"software_image_diff", "standby_slot", b"standby_slot", "terminattr_diff", b"terminattr_diff"]) -> None: ... + global___ImageSummary = ImageSummary +@typing.final class SummaryKey(google.protobuf.message.Message): """SummaryKey uniquely identifies a device summary request.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + DEVICE_ID_FIELD_NUMBER: builtins.int @property def device_id(self) -> google.protobuf.wrappers_pb2.StringValue: """device_id is the serial number of the device""" - pass - def __init__(self, + + def __init__( + self, *, - device_id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["device_id",b"device_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["device_id",b"device_id"]) -> None: ... + device_id: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["device_id", b"device_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["device_id", b"device_id"]) -> None: ... + global___SummaryKey = SummaryKey +@typing.final class Summary(google.protobuf.message.Message): """Summary represents the device image summary.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int SUMMARY_FIELD_NUMBER: builtins.int ERRORS_FIELD_NUMBER: builtins.int @@ -1079,167 +1072,196 @@ class Summary(google.protobuf.message.Message): @property def key(self) -> global___SummaryKey: """key represents the image summary key.""" - pass + @property def summary(self) -> global___ImageSummary: """summary is the image diff summary.""" - pass + @property def errors(self) -> global___ImageErrors: """errors are the image errors encountered while validating the image. These are displayed on the workspace build results page. """ - pass + @property def warnings(self) -> global___ImageWarnings: """warnings are the image warnings encountered while validating the image. These are displayed on the workspace build results page. """ - pass + @property def infos(self) -> global___ImageInfos: """infos are the image infos encountered while validating the image. These are displayed on the workspace build results page. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[global___SummaryKey] = ..., - summary: typing.Optional[global___ImageSummary] = ..., - errors: typing.Optional[global___ImageErrors] = ..., - warnings: typing.Optional[global___ImageWarnings] = ..., - infos: typing.Optional[global___ImageInfos] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["errors",b"errors","infos",b"infos","key",b"key","summary",b"summary","warnings",b"warnings"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["errors",b"errors","infos",b"infos","key",b"key","summary",b"summary","warnings",b"warnings"]) -> None: ... + key: global___SummaryKey | None = ..., + summary: global___ImageSummary | None = ..., + errors: global___ImageErrors | None = ..., + warnings: global___ImageWarnings | None = ..., + infos: global___ImageInfos | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["errors", b"errors", "infos", b"infos", "key", b"key", "summary", b"summary", "warnings", b"warnings"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["errors", b"errors", "infos", b"infos", "key", b"key", "summary", b"summary", "warnings", b"warnings"]) -> None: ... + global___Summary = Summary +@typing.final class ImageError(google.protobuf.message.Message): """ImageError wraps `ErrorCode` enum with a reason string.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + SKU_FIELD_NUMBER: builtins.int ERROR_CODE_FIELD_NUMBER: builtins.int ERROR_MSG_FIELD_NUMBER: builtins.int + error_code: global___ErrorCode.ValueType + """error_code is the error code.""" @property def sku(self) -> google.protobuf.wrappers_pb2.StringValue: """sku represents the name of the sku.""" - pass - error_code: global___ErrorCode.ValueType - """error_code is the error code.""" @property def error_msg(self) -> google.protobuf.wrappers_pb2.StringValue: """error_msg provides a description of the error.""" - pass - def __init__(self, + + def __init__( + self, *, - sku: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., + sku: google.protobuf.wrappers_pb2.StringValue | None = ..., error_code: global___ErrorCode.ValueType = ..., - error_msg: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error_msg",b"error_msg","sku",b"sku"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error_code",b"error_code","error_msg",b"error_msg","sku",b"sku"]) -> None: ... + error_msg: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error_msg", b"error_msg", "sku", b"sku"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error_code", b"error_code", "error_msg", b"error_msg", "sku", b"sku"]) -> None: ... + global___ImageError = ImageError +@typing.final class ImageErrors(google.protobuf.message.Message): """ImageErrors is the list of errors reported by CVP when handling image validations. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ImageError]: """values is a list of image errors.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[global___ImageError]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[global___ImageError] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___ImageErrors = ImageErrors +@typing.final class ImageWarning(google.protobuf.message.Message): """ImageWarning wraps `WarningCode` enum with a reason string.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + SKU_FIELD_NUMBER: builtins.int WARNING_CODE_FIELD_NUMBER: builtins.int WARNING_MSG_FIELD_NUMBER: builtins.int + warning_code: global___WarningCode.ValueType + """warning_code is the warning code.""" @property def sku(self) -> google.protobuf.wrappers_pb2.StringValue: """sku represents the name of the sku.""" - pass - warning_code: global___WarningCode.ValueType - """warning_code is the warning code.""" @property def warning_msg(self) -> google.protobuf.wrappers_pb2.StringValue: """warning_msg provides a description of the warning.""" - pass - def __init__(self, + + def __init__( + self, *, - sku: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., + sku: google.protobuf.wrappers_pb2.StringValue | None = ..., warning_code: global___WarningCode.ValueType = ..., - warning_msg: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["sku",b"sku","warning_msg",b"warning_msg"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["sku",b"sku","warning_code",b"warning_code","warning_msg",b"warning_msg"]) -> None: ... + warning_msg: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["sku", b"sku", "warning_msg", b"warning_msg"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["sku", b"sku", "warning_code", b"warning_code", "warning_msg", b"warning_msg"]) -> None: ... + global___ImageWarning = ImageWarning +@typing.final class ImageWarnings(google.protobuf.message.Message): """ImageWarnings is the list of warnings reported by CVP when handling image validations. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ImageWarning]: """values is a list of image warnings.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[global___ImageWarning]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[global___ImageWarning] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___ImageWarnings = ImageWarnings +@typing.final class ImageInfo(google.protobuf.message.Message): """ImageInfo wraps `InfoCode` enum with a reason string.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + SKU_FIELD_NUMBER: builtins.int INFO_CODE_FIELD_NUMBER: builtins.int INFO_MSG_FIELD_NUMBER: builtins.int + info_code: global___InfoCode.ValueType + """info_code is the info code.""" @property def sku(self) -> google.protobuf.wrappers_pb2.StringValue: """sku represents the name of the sku.""" - pass - info_code: global___InfoCode.ValueType - """info_code is the info code.""" @property def info_msg(self) -> google.protobuf.wrappers_pb2.StringValue: """info_msg provides a description of the info.""" - pass - def __init__(self, + + def __init__( + self, *, - sku: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., + sku: google.protobuf.wrappers_pb2.StringValue | None = ..., info_code: global___InfoCode.ValueType = ..., - info_msg: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["info_msg",b"info_msg","sku",b"sku"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["info_code",b"info_code","info_msg",b"info_msg","sku",b"sku"]) -> None: ... + info_msg: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["info_msg", b"info_msg", "sku", b"sku"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["info_code", b"info_code", "info_msg", b"info_msg", "sku", b"sku"]) -> None: ... + global___ImageInfo = ImageInfo +@typing.final class ImageInfos(google.protobuf.message.Message): """ImageInfos is the list of info messages reported by CVP when handling image validations.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ImageInfo]: """values is a list of image infos.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[global___ImageInfo]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[global___ImageInfo] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___ImageInfos = ImageInfos diff --git a/arista/imagestatus/v1/services/gen_pb2.pyi b/arista/imagestatus/v1/services/gen_pb2.pyi index 39e6c97..a0d2e57 100644 --- a/arista/imagestatus/v1/services/gen_pb2.pyi +++ b/arista/imagestatus/v1/services/gen_pb2.pyi @@ -1,53 +1,61 @@ """ @generated by mypy-protobuf. Do not edit manually! isort:skip_file + +Code generated by boomtown. DO NOT EDIT. """ + import arista.imagestatus.v1.imagestatus_pb2 import arista.subscriptions.subscriptions_pb2 import arista.time.time_pb2 import builtins +import collections.abc import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message import google.protobuf.timestamp_pb2 import google.protobuf.wrappers_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class MetaResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int COUNT_FIELD_NUMBER: builtins.int - @property - def time(self) -> google.protobuf.timestamp_pb2.Timestamp: - """Time holds the timestamp of the last item included in the metadata calculation.""" - pass type: arista.subscriptions.subscriptions_pb2.Operation.ValueType """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. """ + @property + def time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """Time holds the timestamp of the last item included in the metadata calculation.""" @property def count(self) -> google.protobuf.wrappers_pb2.UInt32Value: """Count is the number of items present under the conditions of the request.""" - pass - def __init__(self, + + def __init__( + self, *, - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - count: typing.Optional[google.protobuf.wrappers_pb2.UInt32Value] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["count",b"count","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["count",b"count","time",b"time","type",b"type"]) -> None: ... + count: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["count", b"count", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["count", b"count", "time", b"time", "type", b"type"]) -> None: ... + global___MetaResponse = MetaResponse +@typing.final class SummaryRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -55,24 +63,28 @@ class SummaryRequest(google.protobuf.message.Message): """Key uniquely identifies a Summary instance to retrieve. This value must be populated. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the time for which you are interested in the data. If no time is given, the server will use the time at which it makes the request. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.imagestatus.v1.imagestatus_pb2.SummaryKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.imagestatus.v1.imagestatus_pb2.SummaryKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___SummaryRequest = SummaryRequest +@typing.final class SummaryResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -82,24 +94,28 @@ class SummaryResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time carries the (UTC) timestamp of the last-modification of the Summary instance in this response. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.imagestatus.v1.imagestatus_pb2.Summary] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.imagestatus.v1.imagestatus_pb2.Summary | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___SummaryResponse = SummaryResponse +@typing.final class SummarySomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -109,18 +125,22 @@ class SummarySomeRequest(google.protobuf.message.Message): """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. """ - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.imagestatus.v1.imagestatus_pb2.SummaryKey]] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys","time",b"time"]) -> None: ... + keys: collections.abc.Iterable[arista.imagestatus.v1.imagestatus_pb2.SummaryKey] | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys", "time", b"time"]) -> None: ... + global___SummarySomeRequest = SummarySomeRequest +@typing.final class SummarySomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -131,27 +151,31 @@ class SummarySomeResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """Error is an optional field. It should be filled when there is an error in the GetSome process. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.imagestatus.v1.imagestatus_pb2.Summary] = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> None: ... + value: arista.imagestatus.v1.imagestatus_pb2.Summary | None = ..., + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> None: ... + global___SummarySomeResponse = SummarySomeResponse +@typing.final class SummaryStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -162,7 +186,7 @@ class SummaryStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -181,51 +205,58 @@ class SummaryStreamRequest(google.protobuf.message.Message): This field is not allowed in the Subscribe RPC. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.imagestatus.v1.imagestatus_pb2.Summary]] = ..., - time: typing.Optional[arista.time.time_pb2.TimeBounds] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.imagestatus.v1.imagestatus_pb2.Summary] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___SummaryStreamRequest = SummaryStreamRequest +@typing.final class SummaryStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int + type: arista.subscriptions.subscriptions_pb2.Operation.ValueType + """Operation indicates how the Summary 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. + """ @property def value(self) -> arista.imagestatus.v1.imagestatus_pb2.Summary: """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. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time holds the timestamp of this Summary's last modification.""" - pass - type: arista.subscriptions.subscriptions_pb2.Operation.ValueType - """Operation indicates how the Summary 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. - """ - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.imagestatus.v1.imagestatus_pb2.Summary] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + value: arista.imagestatus.v1.imagestatus_pb2.Summary | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "type", b"type", "value", b"value"]) -> None: ... + global___SummaryStreamResponse = SummaryStreamResponse +@typing.final class SummaryBatchedStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int MAX_MESSAGES_FIELD_NUMBER: builtins.int @@ -237,7 +268,7 @@ class SummaryBatchedStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -256,7 +287,7 @@ class SummaryBatchedStreamRequest(google.protobuf.message.Message): 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. @@ -264,19 +295,23 @@ class SummaryBatchedStreamRequest(google.protobuf.message.Message): 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, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.imagestatus.v1.imagestatus_pb2.Summary]] = ..., - 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","partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.imagestatus.v1.imagestatus_pb2.Summary] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + max_messages: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["max_messages", b"max_messages", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["max_messages", b"max_messages", "partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___SummaryBatchedStreamRequest = SummaryBatchedStreamRequest +@typing.final class SummaryBatchedStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + RESPONSES_FIELD_NUMBER: builtins.int @property def responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SummaryStreamResponse]: @@ -284,10 +319,12 @@ class SummaryBatchedStreamResponse(google.protobuf.message.Message): The length of this structure is guaranteed to be between (inclusive) 1 and min(req.max_messages, INTERNAL_BATCH_LIMIT). """ - pass - def __init__(self, + + def __init__( + self, *, - responses: typing.Optional[typing.Iterable[global___SummaryStreamResponse]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["responses",b"responses"]) -> None: ... + responses: collections.abc.Iterable[global___SummaryStreamResponse] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["responses", b"responses"]) -> None: ... + global___SummaryBatchedStreamResponse = SummaryBatchedStreamResponse diff --git a/arista/inventory/v1/inventory_pb2.pyi b/arista/inventory/v1/inventory_pb2.pyi index 3abda8d..cee5878 100644 --- a/arista/inventory/v1/inventory_pb2.pyi +++ b/arista/inventory/v1/inventory_pb2.pyi @@ -1,8 +1,13 @@ """ @generated by mypy-protobuf. Do not edit manually! isort:skip_file +Copyright (c) 2020 Arista Networks, Inc. All rights reserved. +Use of this source code is governed by the Apache License 2.0 +that can be found in the COPYING file. """ + import builtins +import collections.abc import fmp.inet_pb2 import google.protobuf.descriptor import google.protobuf.internal.containers @@ -10,55 +15,52 @@ import google.protobuf.internal.enum_type_wrapper import google.protobuf.message import google.protobuf.timestamp_pb2 import google.protobuf.wrappers_pb2 +import sys import typing -import typing_extensions + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor class _StreamingStatus: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _StreamingStatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_StreamingStatus.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor STREAMING_STATUS_UNSPECIFIED: _StreamingStatus.ValueType # 0 """STREAMING_STATUS_UNSPECIFIED indicates the device streaming telemetry status is unspecified.""" - STREAMING_STATUS_INACTIVE: _StreamingStatus.ValueType # 1 """STREAMING_STATUS_INACTIVE indicates the device is not streaming telemetry.""" - STREAMING_STATUS_ACTIVE: _StreamingStatus.ValueType # 2 """STREAMING_STATUS_ACTIVE indicates the device is streaming telemetry.""" class StreamingStatus(_StreamingStatus, metaclass=_StreamingStatusEnumTypeWrapper): """StreamingStatus defines the status of telemetry streaming for a device.""" - pass STREAMING_STATUS_UNSPECIFIED: StreamingStatus.ValueType # 0 """STREAMING_STATUS_UNSPECIFIED indicates the device streaming telemetry status is unspecified.""" - STREAMING_STATUS_INACTIVE: StreamingStatus.ValueType # 1 """STREAMING_STATUS_INACTIVE indicates the device is not streaming telemetry.""" - STREAMING_STATUS_ACTIVE: StreamingStatus.ValueType # 2 """STREAMING_STATUS_ACTIVE indicates the device is streaming telemetry.""" - global___StreamingStatus = StreamingStatus - class _OnboardingStatus: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _OnboardingStatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_OnboardingStatus.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor ONBOARDING_STATUS_UNSPECIFIED: _OnboardingStatus.ValueType # 0 """ONBOARDING_STATUS_UNSPECIFIED indicates onboarding status is unspecified.""" - ONBOARDING_STATUS_IN_PROGRESS: _OnboardingStatus.ValueType # 1 """ONBOARDING_STATUS_IN_PROGRESS indicates onboarding is in progress.""" - ONBOARDING_STATUS_FAILURE: _OnboardingStatus.ValueType # 2 """ONBOARDING_STATUS_FAILURE indicates onboarding failed.""" - ONBOARDING_STATUS_SUCCESS: _OnboardingStatus.ValueType # 3 """ONBOARDING_STATUS_SUCCESS indicates onboarding succeeded.""" @@ -66,37 +68,29 @@ class OnboardingStatus(_OnboardingStatus, metaclass=_OnboardingStatusEnumTypeWra """OnboardingStatus defines the set of possible states in the onboarding process for a device. """ - pass ONBOARDING_STATUS_UNSPECIFIED: OnboardingStatus.ValueType # 0 """ONBOARDING_STATUS_UNSPECIFIED indicates onboarding status is unspecified.""" - ONBOARDING_STATUS_IN_PROGRESS: OnboardingStatus.ValueType # 1 """ONBOARDING_STATUS_IN_PROGRESS indicates onboarding is in progress.""" - ONBOARDING_STATUS_FAILURE: OnboardingStatus.ValueType # 2 """ONBOARDING_STATUS_FAILURE indicates onboarding failed.""" - ONBOARDING_STATUS_SUCCESS: OnboardingStatus.ValueType # 3 """ONBOARDING_STATUS_SUCCESS indicates onboarding succeeded.""" - global___OnboardingStatus = OnboardingStatus - class _DecommissioningStatus: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _DecommissioningStatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_DecommissioningStatus.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor DECOMMISSIONING_STATUS_UNSPECIFIED: _DecommissioningStatus.ValueType # 0 """DECOMMISSIONING_STATUS_UNSPECIFIED indicates decommissioning status is unspecified.""" - DECOMMISSIONING_STATUS_IN_PROGRESS: _DecommissioningStatus.ValueType # 1 """DECOMMISSIONING_STATUS_IN_PROGRESS indicates decommissioning is in progress.""" - DECOMMISSIONING_STATUS_FAILURE: _DecommissioningStatus.ValueType # 2 """DECOMMISSIONING_STATUS_FAILURE indicates decommissioning failed.""" - DECOMMISSIONING_STATUS_SUCCESS: _DecommissioningStatus.ValueType # 3 """DECOMMISSIONING_STATUS_SUCCESS indicates decommissioning succeeded.""" @@ -104,37 +98,29 @@ class DecommissioningStatus(_DecommissioningStatus, metaclass=_DecommissioningSt """DecommissioningStatus defines the set of possible states in the decommissioning process for a device. """ - pass DECOMMISSIONING_STATUS_UNSPECIFIED: DecommissioningStatus.ValueType # 0 """DECOMMISSIONING_STATUS_UNSPECIFIED indicates decommissioning status is unspecified.""" - DECOMMISSIONING_STATUS_IN_PROGRESS: DecommissioningStatus.ValueType # 1 """DECOMMISSIONING_STATUS_IN_PROGRESS indicates decommissioning is in progress.""" - DECOMMISSIONING_STATUS_FAILURE: DecommissioningStatus.ValueType # 2 """DECOMMISSIONING_STATUS_FAILURE indicates decommissioning failed.""" - DECOMMISSIONING_STATUS_SUCCESS: DecommissioningStatus.ValueType # 3 """DECOMMISSIONING_STATUS_SUCCESS indicates decommissioning succeeded.""" - global___DecommissioningStatus = DecommissioningStatus - class _ProvisioningStatus: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _ProvisioningStatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ProvisioningStatus.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor PROVISIONING_STATUS_UNSPECIFIED: _ProvisioningStatus.ValueType # 0 """PROVISIONING_STATUS_UNSPECIFIED indicates provisioning status is unspecified.""" - PROVISIONING_STATUS_IN_PROGRESS: _ProvisioningStatus.ValueType # 1 """PROVISIONING_STATUS_IN_PROGRESS indicates provisioning is in progress.""" - PROVISIONING_STATUS_FAILURE: _ProvisioningStatus.ValueType # 2 """PROVISIONING_STATUS_FAILURE indicates provisioning failed.""" - PROVISIONING_STATUS_SUCCESS: _ProvisioningStatus.ValueType # 3 """PROVISIONING_STATUS_SUCCESS indicates provisioning succeeded.""" @@ -142,92 +128,105 @@ class ProvisioningStatus(_ProvisioningStatus, metaclass=_ProvisioningStatusEnumT """ProvisioningStatus defines the set of possible states in the provisioning process for a device. """ - pass PROVISIONING_STATUS_UNSPECIFIED: ProvisioningStatus.ValueType # 0 """PROVISIONING_STATUS_UNSPECIFIED indicates provisioning status is unspecified.""" - PROVISIONING_STATUS_IN_PROGRESS: ProvisioningStatus.ValueType # 1 """PROVISIONING_STATUS_IN_PROGRESS indicates provisioning is in progress.""" - PROVISIONING_STATUS_FAILURE: ProvisioningStatus.ValueType # 2 """PROVISIONING_STATUS_FAILURE indicates provisioning failed.""" - PROVISIONING_STATUS_SUCCESS: ProvisioningStatus.ValueType # 3 """PROVISIONING_STATUS_SUCCESS indicates provisioning succeeded.""" - global___ProvisioningStatus = ProvisioningStatus - +@typing.final class ExtendedAttributes(google.protobuf.message.Message): """ExtendedAttributes wraps any additional, potentially non-standard, features or attributes the device reports. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class FeatureEnabledEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int - key: typing.Text + key: builtins.str value: builtins.bool - def __init__(self, + def __init__( + self, *, - key: typing.Text = ..., + key: builtins.str = ..., value: builtins.bool = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... FEATURE_ENABLED_FIELD_NUMBER: builtins.int @property - def feature_enabled(self) -> google.protobuf.internal.containers.ScalarMap[typing.Text, builtins.bool]: + def feature_enabled(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.bool]: """feature_enabled is a map of feature name to enabled status. If a feature is missing from this map it can be assumed off. """ - pass - def __init__(self, + + def __init__( + self, *, - feature_enabled: typing.Optional[typing.Mapping[typing.Text, builtins.bool]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["feature_enabled",b"feature_enabled"]) -> None: ... + feature_enabled: collections.abc.Mapping[builtins.str, builtins.bool] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["feature_enabled", b"feature_enabled"]) -> None: ... + global___ExtendedAttributes = ExtendedAttributes +@typing.final class DeviceKey(google.protobuf.message.Message): """DeviceKey uniquely identifies a single device.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + DEVICE_ID_FIELD_NUMBER: builtins.int @property def device_id(self) -> google.protobuf.wrappers_pb2.StringValue: """device_id is the unique identifier of the device.""" - pass - def __init__(self, + + def __init__( + self, *, - device_id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["device_id",b"device_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["device_id",b"device_id"]) -> None: ... + device_id: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["device_id", b"device_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["device_id", b"device_id"]) -> None: ... + global___DeviceKey = DeviceKey +@typing.final class DeviceConfiguration(google.protobuf.message.Message): """DeviceConfiguration holds the device-specific configuration for a third-party device, as defined in https://github.com/aristanetworks/cloudvision-go. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class OptionsEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int - key: typing.Text - value: typing.Text - def __init__(self, + key: builtins.str + value: builtins.str + def __init__( + self, *, - key: typing.Text = ..., - value: typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + key: builtins.str = ..., + value: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... OPTIONS_FIELD_NUMBER: builtins.int @property - def options(self) -> google.protobuf.internal.containers.ScalarMap[typing.Text, typing.Text]: + def options(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: """options is a map from device option to value. E.g., for an SNMP device, this could be the following: @@ -235,30 +234,38 @@ class DeviceConfiguration(google.protobuf.message.Message): "address": "my_snmp_hostname", "community": "public" """ - pass - def __init__(self, + + def __init__( + self, *, - options: typing.Optional[typing.Mapping[typing.Text, typing.Text]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["options",b"options"]) -> None: ... + options: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["options", b"options"]) -> None: ... + global___DeviceConfiguration = DeviceConfiguration +@typing.final class UUIDKey(google.protobuf.message.Message): """UUIDKey is a key that holds a UUID for an onboarding or decommissioning request.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + REQUEST_ID_FIELD_NUMBER: builtins.int @property def request_id(self) -> google.protobuf.wrappers_pb2.StringValue: """request_id should be a UUID for the request.""" - pass - def __init__(self, + + def __init__( + self, *, - request_id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["request_id",b"request_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["request_id",b"request_id"]) -> None: ... + request_id: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["request_id", b"request_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["request_id", b"request_id"]) -> None: ... + global___UUIDKey = UUIDKey +@typing.final class DeviceOnboardingConfig(google.protobuf.message.Message): """DeviceOnboardingConfig describes a device onboarding request. "Onboarding" refers to the process of initiating device streaming to CloudVision and @@ -274,7 +281,9 @@ class DeviceOnboardingConfig(google.protobuf.message.Message): 4. The user may do a GetOne or Subscribe on DeviceOnboarding using the same UUID to see the status of the request. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int HOSTNAME_OR_IP_FIELD_NUMBER: builtins.int DEVICE_TYPE_FIELD_NUMBER: builtins.int @@ -282,75 +291,82 @@ class DeviceOnboardingConfig(google.protobuf.message.Message): @property def key(self) -> global___UUIDKey: """key identifies the request to onboard the device at hostname_or_ip.""" - pass + @property def hostname_or_ip(self) -> google.protobuf.wrappers_pb2.StringValue: """hostname_or_ip is a hostname or an IP at which the device can be reached.""" - pass + @property def device_type(self) -> google.protobuf.wrappers_pb2.StringValue: """device_type describes the method by which to retrieve information for the device. The value should be "eos" for eos devices. For third-party devices, supported values are: "openconfig", "snmp", "cvp", "mwm", and "vCenter". """ - pass + @property def device_config(self) -> global___DeviceConfiguration: """device_config is the configuration for a third-party device.""" - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[global___UUIDKey] = ..., - hostname_or_ip: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - device_type: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - device_config: typing.Optional[global___DeviceConfiguration] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["device_config",b"device_config","device_type",b"device_type","hostname_or_ip",b"hostname_or_ip","key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["device_config",b"device_config","device_type",b"device_type","hostname_or_ip",b"hostname_or_ip","key",b"key"]) -> None: ... + key: global___UUIDKey | None = ..., + hostname_or_ip: google.protobuf.wrappers_pb2.StringValue | None = ..., + device_type: google.protobuf.wrappers_pb2.StringValue | None = ..., + device_config: global___DeviceConfiguration | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["device_config", b"device_config", "device_type", b"device_type", "hostname_or_ip", b"hostname_or_ip", "key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["device_config", b"device_config", "device_type", b"device_type", "hostname_or_ip", b"hostname_or_ip", "key", b"key"]) -> None: ... + global___DeviceOnboardingConfig = DeviceOnboardingConfig +@typing.final class DeviceOnboarding(google.protobuf.message.Message): """DeviceOnboarding describes the status of an onboarding process.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int DEVICE_ID_FIELD_NUMBER: builtins.int STATUS_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int STATUS_MESSAGE_FIELD_NUMBER: builtins.int + status: global___OnboardingStatus.ValueType + """status describes the onboarding status of the device.""" @property def key(self) -> global___UUIDKey: """key identifies the request for which to retrieve an onboarding status.""" - pass + @property def device_id(self) -> google.protobuf.wrappers_pb2.StringValue: """device_id is the unique device ID that is discovered via onboarding.""" - pass - status: global___OnboardingStatus.ValueType - """status describes the onboarding status of the device.""" @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """error is the error that caused status to become ONBOARDING_STATUS_FAILURE.""" - pass + @property def status_message(self) -> google.protobuf.wrappers_pb2.StringValue: """status_message contains information on the status of the onboarding attempt, if any. This is generally an unstructured log message that is for display purposes only (its structure and contents may change). """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[global___UUIDKey] = ..., - device_id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., + key: global___UUIDKey | None = ..., + device_id: google.protobuf.wrappers_pb2.StringValue | None = ..., status: global___OnboardingStatus.ValueType = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - status_message: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["device_id",b"device_id","error",b"error","key",b"key","status_message",b"status_message"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["device_id",b"device_id","error",b"error","key",b"key","status",b"status","status_message",b"status_message"]) -> None: ... + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + status_message: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["device_id", b"device_id", "error", b"error", "key", b"key", "status_message", b"status_message"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["device_id", b"device_id", "error", b"error", "key", b"key", "status", b"status", "status_message", b"status_message"]) -> None: ... + global___DeviceOnboarding = DeviceOnboarding +@typing.final class DeviceDecommissioningConfig(google.protobuf.message.Message): """DeviceDecommissioningConfig describes a device decommissioning request. "Decommissioning" refers to the process of stopping device streaming to @@ -366,7 +382,9 @@ class DeviceDecommissioningConfig(google.protobuf.message.Message): 4. The user may do a GetOne or Subscribe on DeviceDecommissioning using the same UUID to see the status of the request. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int DEVICE_ID_FIELD_NUMBER: builtins.int FORCE_FIELD_NUMBER: builtins.int @@ -374,11 +392,11 @@ class DeviceDecommissioningConfig(google.protobuf.message.Message): @property def key(self) -> global___UUIDKey: """key identifies the request to decommission the device.""" - pass + @property def device_id(self) -> google.protobuf.wrappers_pb2.StringValue: """device_id is the unique device ID that was discovered via onboarding.""" - pass + @property def force(self) -> google.protobuf.wrappers_pb2.BoolValue: """force is a flag that indicates if the decommission is to be forced. @@ -386,61 +404,70 @@ class DeviceDecommissioningConfig(google.protobuf.message.Message): the decommission would fail. In case of a forced decommission, such blocking tasks would be ignored and decommissioning will be continued. """ - pass + @property def user_name(self) -> google.protobuf.wrappers_pb2.StringValue: """user_name is name of the user who decommissioned the device.""" - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[global___UUIDKey] = ..., - device_id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - force: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - user_name: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["device_id",b"device_id","force",b"force","key",b"key","user_name",b"user_name"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["device_id",b"device_id","force",b"force","key",b"key","user_name",b"user_name"]) -> None: ... + key: global___UUIDKey | None = ..., + device_id: google.protobuf.wrappers_pb2.StringValue | None = ..., + force: google.protobuf.wrappers_pb2.BoolValue | None = ..., + user_name: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["device_id", b"device_id", "force", b"force", "key", b"key", "user_name", b"user_name"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["device_id", b"device_id", "force", b"force", "key", b"key", "user_name", b"user_name"]) -> None: ... + global___DeviceDecommissioningConfig = DeviceDecommissioningConfig +@typing.final class DeviceDecommissioning(google.protobuf.message.Message): """DeviceDecommissioning describes the status of a decommissioning process.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int STATUS_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int STATUS_MESSAGE_FIELD_NUMBER: builtins.int + status: global___DecommissioningStatus.ValueType + """status describes the decommissioning status of the device.""" @property def key(self) -> global___UUIDKey: """key identifies the request for which to retrieve a decommissioning status.""" - pass - status: global___DecommissioningStatus.ValueType - """status describes the decommissioning status of the device.""" @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """error is the error that caused status to become DECOMMISSIONING_STATUS_FAILURE.""" - pass + @property def status_message(self) -> google.protobuf.wrappers_pb2.StringValue: """status_message contains information on the status of the decommissioning attempt, if any. This is generally an unstructured log message that is for display purposes only (its structure and contents may change). """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[global___UUIDKey] = ..., + key: global___UUIDKey | None = ..., status: global___DecommissioningStatus.ValueType = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - status_message: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key","status_message",b"status_message"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key","status",b"status","status_message",b"status_message"]) -> None: ... + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + status_message: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "key", b"key", "status_message", b"status_message"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key", "status", b"status", "status_message", b"status_message"]) -> None: ... + global___DeviceDecommissioning = DeviceDecommissioning +@typing.final class Device(google.protobuf.message.Message): """Device describes an onboarded device.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int SOFTWARE_VERSION_FIELD_NUMBER: builtins.int MODEL_NAME_FIELD_NUMBER: builtins.int @@ -452,99 +479,102 @@ class Device(google.protobuf.message.Message): BOOT_TIME_FIELD_NUMBER: builtins.int STREAMING_STATUS_FIELD_NUMBER: builtins.int EXTENDED_ATTRIBUTES_FIELD_NUMBER: builtins.int + streaming_status: global___StreamingStatus.ValueType + """streaming_status is the status of telemetry streaming for this device.""" @property def key(self) -> global___DeviceKey: """key uniquely identifies the device.""" - pass + @property def software_version(self) -> google.protobuf.wrappers_pb2.StringValue: """software_version gives the currently running device software version.""" - pass + @property def model_name(self) -> google.protobuf.wrappers_pb2.StringValue: """model_name describes the hardware model of this device.""" - pass + @property def hardware_revision(self) -> google.protobuf.wrappers_pb2.StringValue: """hardware_revision describes any revisional data to the model name.""" - pass + @property def fqdn(self) -> google.protobuf.wrappers_pb2.StringValue: """fqdn gives the device's fully qualified domain name.""" - pass + @property def hostname(self) -> google.protobuf.wrappers_pb2.StringValue: """hostname is the hostname as reported on the device.""" - pass + @property def domain_name(self) -> google.protobuf.wrappers_pb2.StringValue: """domain_name provides the domain name on which the device is registered.""" - pass + @property def system_mac_address(self) -> google.protobuf.wrappers_pb2.StringValue: """system_mac_address provides the MAC address of the management port.""" - pass + @property def boot_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """boot_time indicates when the device was last booted.""" - pass - streaming_status: global___StreamingStatus.ValueType - """streaming_status is the status of telemetry streaming for this device.""" @property def extended_attributes(self) -> global___ExtendedAttributes: """extended_attributes wraps any additional, potentially non-standard, features or attributes that the device reports. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[global___DeviceKey] = ..., - software_version: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - model_name: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - hardware_revision: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - fqdn: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - hostname: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - domain_name: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - system_mac_address: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - boot_time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + key: global___DeviceKey | None = ..., + software_version: google.protobuf.wrappers_pb2.StringValue | None = ..., + model_name: google.protobuf.wrappers_pb2.StringValue | None = ..., + hardware_revision: google.protobuf.wrappers_pb2.StringValue | None = ..., + fqdn: google.protobuf.wrappers_pb2.StringValue | None = ..., + hostname: google.protobuf.wrappers_pb2.StringValue | None = ..., + domain_name: google.protobuf.wrappers_pb2.StringValue | None = ..., + system_mac_address: google.protobuf.wrappers_pb2.StringValue | None = ..., + boot_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., streaming_status: global___StreamingStatus.ValueType = ..., - extended_attributes: typing.Optional[global___ExtendedAttributes] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["boot_time",b"boot_time","domain_name",b"domain_name","extended_attributes",b"extended_attributes","fqdn",b"fqdn","hardware_revision",b"hardware_revision","hostname",b"hostname","key",b"key","model_name",b"model_name","software_version",b"software_version","system_mac_address",b"system_mac_address"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["boot_time",b"boot_time","domain_name",b"domain_name","extended_attributes",b"extended_attributes","fqdn",b"fqdn","hardware_revision",b"hardware_revision","hostname",b"hostname","key",b"key","model_name",b"model_name","software_version",b"software_version","streaming_status",b"streaming_status","system_mac_address",b"system_mac_address"]) -> None: ... + extended_attributes: global___ExtendedAttributes | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["boot_time", b"boot_time", "domain_name", b"domain_name", "extended_attributes", b"extended_attributes", "fqdn", b"fqdn", "hardware_revision", b"hardware_revision", "hostname", b"hostname", "key", b"key", "model_name", b"model_name", "software_version", b"software_version", "system_mac_address", b"system_mac_address"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["boot_time", b"boot_time", "domain_name", b"domain_name", "extended_attributes", b"extended_attributes", "fqdn", b"fqdn", "hardware_revision", b"hardware_revision", "hostname", b"hostname", "key", b"key", "model_name", b"model_name", "software_version", b"software_version", "streaming_status", b"streaming_status", "system_mac_address", b"system_mac_address"]) -> None: ... + global___Device = Device +@typing.final class ProvisionedDevice(google.protobuf.message.Message): """ProvisionedDevice describes the provisioning status of an onboarded device if the onboarded device is configured for provisioning. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int STATUS_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int ZTP_MODE_FIELD_NUMBER: builtins.int IP_ADDRESS_FIELD_NUMBER: builtins.int PROVISIONING_GROUP_NAME_FIELD_NUMBER: builtins.int + status: global___ProvisioningStatus.ValueType + """status describes the onboarded device's provisioning status.""" @property def key(self) -> global___DeviceKey: """key uniquely identifies the device.""" - pass - status: global___ProvisioningStatus.ValueType - """status describes the onboarded device's provisioning status.""" @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """error is the error that caused status to become PROVISIONING_STATUS_FAILURE.""" - pass + @property def ztp_mode(self) -> google.protobuf.wrappers_pb2.BoolValue: """ztp_mode indicates whether the device is in ZTP mode.""" - pass + @property def ip_address(self) -> fmp.inet_pb2.IPAddress: """ip_address is the current (post-provisioning) IP address of the device.""" - pass + @property def provisioning_group_name(self) -> google.protobuf.wrappers_pb2.StringValue: """provisioning_group_name is the name of the group (also known as a container) @@ -554,16 +584,18 @@ class ProvisionedDevice(google.protobuf.message.Message): which indicates that the device does not yet belong to a group. At this point, a user may set it to an existing group. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[global___DeviceKey] = ..., + key: global___DeviceKey | None = ..., status: global___ProvisioningStatus.ValueType = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ztp_mode: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - ip_address: typing.Optional[fmp.inet_pb2.IPAddress] = ..., - provisioning_group_name: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","ip_address",b"ip_address","key",b"key","provisioning_group_name",b"provisioning_group_name","ztp_mode",b"ztp_mode"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","ip_address",b"ip_address","key",b"key","provisioning_group_name",b"provisioning_group_name","status",b"status","ztp_mode",b"ztp_mode"]) -> None: ... + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + ztp_mode: google.protobuf.wrappers_pb2.BoolValue | None = ..., + ip_address: fmp.inet_pb2.IPAddress | None = ..., + provisioning_group_name: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "ip_address", b"ip_address", "key", b"key", "provisioning_group_name", b"provisioning_group_name", "ztp_mode", b"ztp_mode"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "ip_address", b"ip_address", "key", b"key", "provisioning_group_name", b"provisioning_group_name", "status", b"status", "ztp_mode", b"ztp_mode"]) -> None: ... + global___ProvisionedDevice = ProvisionedDevice diff --git a/arista/inventory/v1/services/gen_pb2.pyi b/arista/inventory/v1/services/gen_pb2.pyi index 5b0ce75..094f820 100644 --- a/arista/inventory/v1/services/gen_pb2.pyi +++ b/arista/inventory/v1/services/gen_pb2.pyi @@ -1,11 +1,15 @@ """ @generated by mypy-protobuf. Do not edit manually! isort:skip_file + +Code generated by boomtown. DO NOT EDIT. """ + import arista.inventory.v1.inventory_pb2 import arista.subscriptions.subscriptions_pb2 import arista.time.time_pb2 import builtins +import collections.abc import fmp.deletes_pb2 import google.protobuf.descriptor import google.protobuf.internal.containers @@ -13,42 +17,46 @@ import google.protobuf.message import google.protobuf.timestamp_pb2 import google.protobuf.wrappers_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class MetaResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int COUNT_FIELD_NUMBER: builtins.int - @property - def time(self) -> google.protobuf.timestamp_pb2.Timestamp: - """Time holds the timestamp of the last item included in the metadata calculation.""" - pass type: arista.subscriptions.subscriptions_pb2.Operation.ValueType """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. """ + @property + def time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """Time holds the timestamp of the last item included in the metadata calculation.""" @property def count(self) -> google.protobuf.wrappers_pb2.UInt32Value: """Count is the number of items present under the conditions of the request.""" - pass - def __init__(self, + + def __init__( + self, *, - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - count: typing.Optional[google.protobuf.wrappers_pb2.UInt32Value] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["count",b"count","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["count",b"count","time",b"time","type",b"type"]) -> None: ... + count: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["count", b"count", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["count", b"count", "time", b"time", "type", b"type"]) -> None: ... + global___MetaResponse = MetaResponse +@typing.final class DeviceRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -56,24 +64,28 @@ class DeviceRequest(google.protobuf.message.Message): """Key uniquely identifies a Device instance to retrieve. This value must be populated. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the time for which you are interested in the data. If no time is given, the server will use the time at which it makes the request. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.inventory.v1.inventory_pb2.DeviceKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.inventory.v1.inventory_pb2.DeviceKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___DeviceRequest = DeviceRequest +@typing.final class DeviceResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -83,24 +95,28 @@ class DeviceResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time carries the (UTC) timestamp of the last-modification of the Device instance in this response. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.inventory.v1.inventory_pb2.Device] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.inventory.v1.inventory_pb2.Device | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___DeviceResponse = DeviceResponse +@typing.final class DeviceSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -110,18 +126,22 @@ class DeviceSomeRequest(google.protobuf.message.Message): """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. """ - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.inventory.v1.inventory_pb2.DeviceKey]] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys","time",b"time"]) -> None: ... + keys: collections.abc.Iterable[arista.inventory.v1.inventory_pb2.DeviceKey] | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys", "time", b"time"]) -> None: ... + global___DeviceSomeRequest = DeviceSomeRequest +@typing.final class DeviceSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -132,27 +152,31 @@ class DeviceSomeResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """Error is an optional field. It should be filled when there is an error in the GetSome process. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - def __init__(self, - *, - value: typing.Optional[arista.inventory.v1.inventory_pb2.Device] = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> None: ... + def __init__( + self, + *, + value: arista.inventory.v1.inventory_pb2.Device | None = ..., + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> None: ... + global___DeviceSomeResponse = DeviceSomeResponse +@typing.final class DeviceStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -163,7 +187,7 @@ class DeviceStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -182,51 +206,58 @@ class DeviceStreamRequest(google.protobuf.message.Message): This field is not allowed in the Subscribe RPC. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.inventory.v1.inventory_pb2.Device]] = ..., - time: typing.Optional[arista.time.time_pb2.TimeBounds] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.inventory.v1.inventory_pb2.Device] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___DeviceStreamRequest = DeviceStreamRequest +@typing.final class DeviceStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int + type: arista.subscriptions.subscriptions_pb2.Operation.ValueType + """Operation indicates how the Device 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. + """ @property def value(self) -> arista.inventory.v1.inventory_pb2.Device: """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. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time holds the timestamp of this Device's last modification.""" - pass - type: arista.subscriptions.subscriptions_pb2.Operation.ValueType - """Operation indicates how the Device 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. - """ - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.inventory.v1.inventory_pb2.Device] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + value: arista.inventory.v1.inventory_pb2.Device | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "type", b"type", "value", b"value"]) -> None: ... + global___DeviceStreamResponse = DeviceStreamResponse +@typing.final class DeviceBatchedStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int MAX_MESSAGES_FIELD_NUMBER: builtins.int @@ -238,7 +269,7 @@ class DeviceBatchedStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -257,7 +288,7 @@ class DeviceBatchedStreamRequest(google.protobuf.message.Message): 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. @@ -265,19 +296,23 @@ class DeviceBatchedStreamRequest(google.protobuf.message.Message): 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, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.inventory.v1.inventory_pb2.Device]] = ..., - 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","partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.inventory.v1.inventory_pb2.Device] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + max_messages: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["max_messages", b"max_messages", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["max_messages", b"max_messages", "partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___DeviceBatchedStreamRequest = DeviceBatchedStreamRequest +@typing.final class DeviceBatchedStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + RESPONSES_FIELD_NUMBER: builtins.int @property def responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___DeviceStreamResponse]: @@ -285,16 +320,20 @@ class DeviceBatchedStreamResponse(google.protobuf.message.Message): The length of this structure is guaranteed to be between (inclusive) 1 and min(req.max_messages, INTERNAL_BATCH_LIMIT). """ - pass - def __init__(self, + + def __init__( + self, *, - responses: typing.Optional[typing.Iterable[global___DeviceStreamResponse]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["responses",b"responses"]) -> None: ... + responses: collections.abc.Iterable[global___DeviceStreamResponse] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["responses", b"responses"]) -> None: ... + global___DeviceBatchedStreamResponse = DeviceBatchedStreamResponse +@typing.final class DeviceDecommissioningRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -302,24 +341,28 @@ class DeviceDecommissioningRequest(google.protobuf.message.Message): """Key uniquely identifies a DeviceDecommissioning instance to retrieve. This value must be populated. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the time for which you are interested in the data. If no time is given, the server will use the time at which it makes the request. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.inventory.v1.inventory_pb2.UUIDKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.inventory.v1.inventory_pb2.UUIDKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___DeviceDecommissioningRequest = DeviceDecommissioningRequest +@typing.final class DeviceDecommissioningResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -329,24 +372,28 @@ class DeviceDecommissioningResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time carries the (UTC) timestamp of the last-modification of the DeviceDecommissioning instance in this response. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.inventory.v1.inventory_pb2.DeviceDecommissioning] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.inventory.v1.inventory_pb2.DeviceDecommissioning | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___DeviceDecommissioningResponse = DeviceDecommissioningResponse +@typing.final class DeviceDecommissioningSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -356,18 +403,22 @@ class DeviceDecommissioningSomeRequest(google.protobuf.message.Message): """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. """ - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.inventory.v1.inventory_pb2.UUIDKey]] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys","time",b"time"]) -> None: ... + keys: collections.abc.Iterable[arista.inventory.v1.inventory_pb2.UUIDKey] | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys", "time", b"time"]) -> None: ... + global___DeviceDecommissioningSomeRequest = DeviceDecommissioningSomeRequest +@typing.final class DeviceDecommissioningSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -378,27 +429,31 @@ class DeviceDecommissioningSomeResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """Error is an optional field. It should be filled when there is an error in the GetSome process. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - def __init__(self, - *, - value: typing.Optional[arista.inventory.v1.inventory_pb2.DeviceDecommissioning] = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> None: ... + def __init__( + self, + *, + value: arista.inventory.v1.inventory_pb2.DeviceDecommissioning | None = ..., + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> None: ... + global___DeviceDecommissioningSomeResponse = DeviceDecommissioningSomeResponse +@typing.final class DeviceDecommissioningStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -409,7 +464,7 @@ class DeviceDecommissioningStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -428,51 +483,58 @@ class DeviceDecommissioningStreamRequest(google.protobuf.message.Message): This field is not allowed in the Subscribe RPC. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.inventory.v1.inventory_pb2.DeviceDecommissioning]] = ..., - time: typing.Optional[arista.time.time_pb2.TimeBounds] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.inventory.v1.inventory_pb2.DeviceDecommissioning] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___DeviceDecommissioningStreamRequest = DeviceDecommissioningStreamRequest +@typing.final class DeviceDecommissioningStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int + type: arista.subscriptions.subscriptions_pb2.Operation.ValueType + """Operation indicates how the DeviceDecommissioning 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. + """ @property def value(self) -> arista.inventory.v1.inventory_pb2.DeviceDecommissioning: """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. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time holds the timestamp of this DeviceDecommissioning's last modification.""" - pass - type: arista.subscriptions.subscriptions_pb2.Operation.ValueType - """Operation indicates how the DeviceDecommissioning 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. - """ - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.inventory.v1.inventory_pb2.DeviceDecommissioning] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + value: arista.inventory.v1.inventory_pb2.DeviceDecommissioning | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "type", b"type", "value", b"value"]) -> None: ... + global___DeviceDecommissioningStreamResponse = DeviceDecommissioningStreamResponse +@typing.final class DeviceDecommissioningBatchedStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int MAX_MESSAGES_FIELD_NUMBER: builtins.int @@ -484,7 +546,7 @@ class DeviceDecommissioningBatchedStreamRequest(google.protobuf.message.Message) While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -503,7 +565,7 @@ class DeviceDecommissioningBatchedStreamRequest(google.protobuf.message.Message) 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. @@ -511,19 +573,23 @@ class DeviceDecommissioningBatchedStreamRequest(google.protobuf.message.Message) 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, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.inventory.v1.inventory_pb2.DeviceDecommissioning]] = ..., - 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","partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.inventory.v1.inventory_pb2.DeviceDecommissioning] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + max_messages: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["max_messages", b"max_messages", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["max_messages", b"max_messages", "partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___DeviceDecommissioningBatchedStreamRequest = DeviceDecommissioningBatchedStreamRequest +@typing.final class DeviceDecommissioningBatchedStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + RESPONSES_FIELD_NUMBER: builtins.int @property def responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___DeviceDecommissioningStreamResponse]: @@ -531,16 +597,20 @@ class DeviceDecommissioningBatchedStreamResponse(google.protobuf.message.Message The length of this structure is guaranteed to be between (inclusive) 1 and min(req.max_messages, INTERNAL_BATCH_LIMIT). """ - pass - def __init__(self, + + def __init__( + self, *, - responses: typing.Optional[typing.Iterable[global___DeviceDecommissioningStreamResponse]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["responses",b"responses"]) -> None: ... + responses: collections.abc.Iterable[global___DeviceDecommissioningStreamResponse] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["responses", b"responses"]) -> None: ... + global___DeviceDecommissioningBatchedStreamResponse = DeviceDecommissioningBatchedStreamResponse +@typing.final class DeviceDecommissioningConfigRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -548,24 +618,28 @@ class DeviceDecommissioningConfigRequest(google.protobuf.message.Message): """Key uniquely identifies a DeviceDecommissioningConfig instance to retrieve. This value must be populated. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the time for which you are interested in the data. If no time is given, the server will use the time at which it makes the request. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.inventory.v1.inventory_pb2.UUIDKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.inventory.v1.inventory_pb2.UUIDKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___DeviceDecommissioningConfigRequest = DeviceDecommissioningConfigRequest +@typing.final class DeviceDecommissioningConfigResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -575,24 +649,28 @@ class DeviceDecommissioningConfigResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time carries the (UTC) timestamp of the last-modification of the DeviceDecommissioningConfig instance in this response. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.inventory.v1.inventory_pb2.DeviceDecommissioningConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.inventory.v1.inventory_pb2.DeviceDecommissioningConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___DeviceDecommissioningConfigResponse = DeviceDecommissioningConfigResponse +@typing.final class DeviceDecommissioningConfigSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -602,18 +680,22 @@ class DeviceDecommissioningConfigSomeRequest(google.protobuf.message.Message): """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. """ - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.inventory.v1.inventory_pb2.UUIDKey]] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys","time",b"time"]) -> None: ... + keys: collections.abc.Iterable[arista.inventory.v1.inventory_pb2.UUIDKey] | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys", "time", b"time"]) -> None: ... + global___DeviceDecommissioningConfigSomeRequest = DeviceDecommissioningConfigSomeRequest +@typing.final class DeviceDecommissioningConfigSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -624,27 +706,31 @@ class DeviceDecommissioningConfigSomeResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """Error is an optional field. It should be filled when there is an error in the GetSome process. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - def __init__(self, - *, - value: typing.Optional[arista.inventory.v1.inventory_pb2.DeviceDecommissioningConfig] = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> None: ... + def __init__( + self, + *, + value: arista.inventory.v1.inventory_pb2.DeviceDecommissioningConfig | None = ..., + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> None: ... + global___DeviceDecommissioningConfigSomeResponse = DeviceDecommissioningConfigSomeResponse +@typing.final class DeviceDecommissioningConfigStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -655,7 +741,7 @@ class DeviceDecommissioningConfigStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -674,51 +760,58 @@ class DeviceDecommissioningConfigStreamRequest(google.protobuf.message.Message): This field is not allowed in the Subscribe RPC. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.inventory.v1.inventory_pb2.DeviceDecommissioningConfig]] = ..., - time: typing.Optional[arista.time.time_pb2.TimeBounds] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.inventory.v1.inventory_pb2.DeviceDecommissioningConfig] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___DeviceDecommissioningConfigStreamRequest = DeviceDecommissioningConfigStreamRequest +@typing.final class DeviceDecommissioningConfigStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int + type: arista.subscriptions.subscriptions_pb2.Operation.ValueType + """Operation indicates how the DeviceDecommissioningConfig 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. + """ @property def value(self) -> arista.inventory.v1.inventory_pb2.DeviceDecommissioningConfig: """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. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time holds the timestamp of this DeviceDecommissioningConfig's last modification.""" - pass - type: arista.subscriptions.subscriptions_pb2.Operation.ValueType - """Operation indicates how the DeviceDecommissioningConfig 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. - """ - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.inventory.v1.inventory_pb2.DeviceDecommissioningConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + value: arista.inventory.v1.inventory_pb2.DeviceDecommissioningConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "type", b"type", "value", b"value"]) -> None: ... + global___DeviceDecommissioningConfigStreamResponse = DeviceDecommissioningConfigStreamResponse +@typing.final class DeviceDecommissioningConfigBatchedStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int MAX_MESSAGES_FIELD_NUMBER: builtins.int @@ -730,7 +823,7 @@ class DeviceDecommissioningConfigBatchedStreamRequest(google.protobuf.message.Me While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -749,7 +842,7 @@ class DeviceDecommissioningConfigBatchedStreamRequest(google.protobuf.message.Me 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. @@ -757,19 +850,23 @@ class DeviceDecommissioningConfigBatchedStreamRequest(google.protobuf.message.Me 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, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.inventory.v1.inventory_pb2.DeviceDecommissioningConfig]] = ..., - 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","partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.inventory.v1.inventory_pb2.DeviceDecommissioningConfig] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + max_messages: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["max_messages", b"max_messages", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["max_messages", b"max_messages", "partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___DeviceDecommissioningConfigBatchedStreamRequest = DeviceDecommissioningConfigBatchedStreamRequest +@typing.final class DeviceDecommissioningConfigBatchedStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + RESPONSES_FIELD_NUMBER: builtins.int @property def responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___DeviceDecommissioningConfigStreamResponse]: @@ -777,33 +874,41 @@ class DeviceDecommissioningConfigBatchedStreamResponse(google.protobuf.message.M The length of this structure is guaranteed to be between (inclusive) 1 and min(req.max_messages, INTERNAL_BATCH_LIMIT). """ - pass - def __init__(self, + + def __init__( + self, *, - responses: typing.Optional[typing.Iterable[global___DeviceDecommissioningConfigStreamResponse]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["responses",b"responses"]) -> None: ... + responses: collections.abc.Iterable[global___DeviceDecommissioningConfigStreamResponse] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["responses", b"responses"]) -> None: ... + global___DeviceDecommissioningConfigBatchedStreamResponse = DeviceDecommissioningConfigBatchedStreamResponse +@typing.final class DeviceDecommissioningConfigSetRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int @property def value(self) -> arista.inventory.v1.inventory_pb2.DeviceDecommissioningConfig: """DeviceDecommissioningConfig carries the value to set into the datastore. See the documentation on the DeviceDecommissioningConfig struct for which fields are required. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.inventory.v1.inventory_pb2.DeviceDecommissioningConfig] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["value",b"value"]) -> None: ... + value: arista.inventory.v1.inventory_pb2.DeviceDecommissioningConfig | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["value", b"value"]) -> None: ... + global___DeviceDecommissioningConfigSetRequest = DeviceDecommissioningConfigSetRequest +@typing.final class DeviceDecommissioningConfigSetResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -811,7 +916,7 @@ class DeviceDecommissioningConfigSetResponse(google.protobuf.message.Message): """Value carries all the values given in the DeviceDecommissioningConfigSetRequest as well as any server-generated values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp at which the system recognizes the @@ -820,18 +925,22 @@ class DeviceDecommissioningConfigSetResponse(google.protobuf.message.Message): - it is after the time the request was received - a time-ranged query with StartTime==CreatedAt will include this instance. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.inventory.v1.inventory_pb2.DeviceDecommissioningConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.inventory.v1.inventory_pb2.DeviceDecommissioningConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___DeviceDecommissioningConfigSetResponse = DeviceDecommissioningConfigSetResponse +@typing.final class DeviceDecommissioningConfigSetSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.inventory.v1.inventory_pb2.DeviceDecommissioningConfig]: @@ -842,55 +951,67 @@ class DeviceDecommissioningConfigSetSomeRequest(google.protobuf.message.Message) If this error occurs you must reduce the number of values sent. See gRPC "maximum message size" documentation for more information. """ - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[arista.inventory.v1.inventory_pb2.DeviceDecommissioningConfig]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[arista.inventory.v1.inventory_pb2.DeviceDecommissioningConfig] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___DeviceDecommissioningConfigSetSomeRequest = DeviceDecommissioningConfigSetSomeRequest +@typing.final class DeviceDecommissioningConfigSetSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int + error: builtins.str @property def key(self) -> arista.inventory.v1.inventory_pb2.UUIDKey: ... - error: typing.Text - def __init__(self, - *, - key: typing.Optional[arista.inventory.v1.inventory_pb2.UUIDKey] = ..., - error: typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key"]) -> None: ... + def __init__( + self, + *, + key: arista.inventory.v1.inventory_pb2.UUIDKey | None = ..., + error: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key"]) -> None: ... + global___DeviceDecommissioningConfigSetSomeResponse = DeviceDecommissioningConfigSetSomeResponse +@typing.final class DeviceDecommissioningConfigDeleteRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int @property def key(self) -> arista.inventory.v1.inventory_pb2.UUIDKey: """Key indicates which DeviceDecommissioningConfig instance to remove. This field must always be set. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.inventory.v1.inventory_pb2.UUIDKey] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key"]) -> None: ... + key: arista.inventory.v1.inventory_pb2.UUIDKey | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key"]) -> None: ... + global___DeviceDecommissioningConfigDeleteRequest = DeviceDecommissioningConfigDeleteRequest +@typing.final class DeviceDecommissioningConfigDeleteResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property def key(self) -> arista.inventory.v1.inventory_pb2.UUIDKey: """Key echoes back the key of the deleted DeviceDecommissioningConfig instance.""" - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp at which the system recognizes the @@ -899,49 +1020,62 @@ class DeviceDecommissioningConfigDeleteResponse(google.protobuf.message.Message) - it is after the time the request was received - a time-ranged query with StartTime==DeletedAt will not include this instance. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.inventory.v1.inventory_pb2.UUIDKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.inventory.v1.inventory_pb2.UUIDKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___DeviceDecommissioningConfigDeleteResponse = DeviceDecommissioningConfigDeleteResponse +@typing.final class DeviceDecommissioningConfigDeleteSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int @property def keys(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.inventory.v1.inventory_pb2.UUIDKey]: """key contains a list of DeviceDecommissioningConfig keys to delete""" - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.inventory.v1.inventory_pb2.UUIDKey]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys"]) -> None: ... + keys: collections.abc.Iterable[arista.inventory.v1.inventory_pb2.UUIDKey] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys"]) -> None: ... + global___DeviceDecommissioningConfigDeleteSomeRequest = DeviceDecommissioningConfigDeleteSomeRequest +@typing.final class DeviceDecommissioningConfigDeleteSomeResponse(google.protobuf.message.Message): """DeviceDecommissioningConfigDeleteSomeResponse is only sent when there is an error.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int + error: builtins.str @property def key(self) -> arista.inventory.v1.inventory_pb2.UUIDKey: ... - error: typing.Text - def __init__(self, - *, - key: typing.Optional[arista.inventory.v1.inventory_pb2.UUIDKey] = ..., - error: typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key"]) -> None: ... + def __init__( + self, + *, + key: arista.inventory.v1.inventory_pb2.UUIDKey | None = ..., + error: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key"]) -> None: ... + global___DeviceDecommissioningConfigDeleteSomeResponse = DeviceDecommissioningConfigDeleteSomeResponse +@typing.final class DeviceDecommissioningConfigDeleteAllRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int @property def partial_eq_filter(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.inventory.v1.inventory_pb2.DeviceDecommissioningConfig]: @@ -949,16 +1083,20 @@ class DeviceDecommissioningConfigDeleteAllRequest(google.protobuf.message.Messag This requires all provided fields to be equal to the response. A filtered DeleteAll will use GetAll with filter to find things to delete. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.inventory.v1.inventory_pb2.DeviceDecommissioningConfig]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.inventory.v1.inventory_pb2.DeviceDecommissioningConfig] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter"]) -> None: ... + global___DeviceDecommissioningConfigDeleteAllRequest = DeviceDecommissioningConfigDeleteAllRequest +@typing.final class DeviceDecommissioningConfigDeleteAllResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TYPE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int KEY_FIELD_NUMBER: builtins.int @@ -967,32 +1105,35 @@ class DeviceDecommissioningConfigDeleteAllResponse(google.protobuf.message.Messa """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: """This indicates the error message from the delete failure.""" - pass + @property def key(self) -> arista.inventory.v1.inventory_pb2.UUIDKey: """This is the key of the DeviceDecommissioningConfig instance that failed to be deleted.""" - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp when the key was being deleted.""" - pass - def __init__(self, + + def __init__( + self, *, type: fmp.deletes_pb2.DeleteError.ValueType = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - key: typing.Optional[arista.inventory.v1.inventory_pb2.UUIDKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key","time",b"time","type",b"type"]) -> None: ... + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + key: arista.inventory.v1.inventory_pb2.UUIDKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key", "time", b"time", "type", b"type"]) -> None: ... + global___DeviceDecommissioningConfigDeleteAllResponse = DeviceDecommissioningConfigDeleteAllResponse +@typing.final class DeviceOnboardingRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -1000,24 +1141,28 @@ class DeviceOnboardingRequest(google.protobuf.message.Message): """Key uniquely identifies a DeviceOnboarding instance to retrieve. This value must be populated. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the time for which you are interested in the data. If no time is given, the server will use the time at which it makes the request. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.inventory.v1.inventory_pb2.UUIDKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.inventory.v1.inventory_pb2.UUIDKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___DeviceOnboardingRequest = DeviceOnboardingRequest +@typing.final class DeviceOnboardingResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -1027,24 +1172,28 @@ class DeviceOnboardingResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time carries the (UTC) timestamp of the last-modification of the DeviceOnboarding instance in this response. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.inventory.v1.inventory_pb2.DeviceOnboarding] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.inventory.v1.inventory_pb2.DeviceOnboarding | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___DeviceOnboardingResponse = DeviceOnboardingResponse +@typing.final class DeviceOnboardingSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -1054,18 +1203,22 @@ class DeviceOnboardingSomeRequest(google.protobuf.message.Message): """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. """ - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.inventory.v1.inventory_pb2.UUIDKey]] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys","time",b"time"]) -> None: ... + keys: collections.abc.Iterable[arista.inventory.v1.inventory_pb2.UUIDKey] | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys", "time", b"time"]) -> None: ... + global___DeviceOnboardingSomeRequest = DeviceOnboardingSomeRequest +@typing.final class DeviceOnboardingSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -1076,27 +1229,31 @@ class DeviceOnboardingSomeResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """Error is an optional field. It should be filled when there is an error in the GetSome process. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - def __init__(self, - *, - value: typing.Optional[arista.inventory.v1.inventory_pb2.DeviceOnboarding] = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> None: ... + def __init__( + self, + *, + value: arista.inventory.v1.inventory_pb2.DeviceOnboarding | None = ..., + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> None: ... + global___DeviceOnboardingSomeResponse = DeviceOnboardingSomeResponse +@typing.final class DeviceOnboardingStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -1107,7 +1264,7 @@ class DeviceOnboardingStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -1126,51 +1283,58 @@ class DeviceOnboardingStreamRequest(google.protobuf.message.Message): This field is not allowed in the Subscribe RPC. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.inventory.v1.inventory_pb2.DeviceOnboarding]] = ..., - time: typing.Optional[arista.time.time_pb2.TimeBounds] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.inventory.v1.inventory_pb2.DeviceOnboarding] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___DeviceOnboardingStreamRequest = DeviceOnboardingStreamRequest +@typing.final class DeviceOnboardingStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int + type: arista.subscriptions.subscriptions_pb2.Operation.ValueType + """Operation indicates how the DeviceOnboarding 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. + """ @property def value(self) -> arista.inventory.v1.inventory_pb2.DeviceOnboarding: """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. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time holds the timestamp of this DeviceOnboarding's last modification.""" - pass - type: arista.subscriptions.subscriptions_pb2.Operation.ValueType - """Operation indicates how the DeviceOnboarding 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. - """ - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.inventory.v1.inventory_pb2.DeviceOnboarding] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + value: arista.inventory.v1.inventory_pb2.DeviceOnboarding | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "type", b"type", "value", b"value"]) -> None: ... + global___DeviceOnboardingStreamResponse = DeviceOnboardingStreamResponse +@typing.final class DeviceOnboardingBatchedStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int MAX_MESSAGES_FIELD_NUMBER: builtins.int @@ -1182,7 +1346,7 @@ class DeviceOnboardingBatchedStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -1201,7 +1365,7 @@ class DeviceOnboardingBatchedStreamRequest(google.protobuf.message.Message): 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. @@ -1209,19 +1373,23 @@ class DeviceOnboardingBatchedStreamRequest(google.protobuf.message.Message): 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, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.inventory.v1.inventory_pb2.DeviceOnboarding]] = ..., - 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","partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.inventory.v1.inventory_pb2.DeviceOnboarding] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + max_messages: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["max_messages", b"max_messages", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["max_messages", b"max_messages", "partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___DeviceOnboardingBatchedStreamRequest = DeviceOnboardingBatchedStreamRequest +@typing.final class DeviceOnboardingBatchedStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + RESPONSES_FIELD_NUMBER: builtins.int @property def responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___DeviceOnboardingStreamResponse]: @@ -1229,16 +1397,20 @@ class DeviceOnboardingBatchedStreamResponse(google.protobuf.message.Message): The length of this structure is guaranteed to be between (inclusive) 1 and min(req.max_messages, INTERNAL_BATCH_LIMIT). """ - pass - def __init__(self, + + def __init__( + self, *, - responses: typing.Optional[typing.Iterable[global___DeviceOnboardingStreamResponse]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["responses",b"responses"]) -> None: ... + responses: collections.abc.Iterable[global___DeviceOnboardingStreamResponse] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["responses", b"responses"]) -> None: ... + global___DeviceOnboardingBatchedStreamResponse = DeviceOnboardingBatchedStreamResponse +@typing.final class DeviceOnboardingConfigRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -1246,24 +1418,28 @@ class DeviceOnboardingConfigRequest(google.protobuf.message.Message): """Key uniquely identifies a DeviceOnboardingConfig instance to retrieve. This value must be populated. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the time for which you are interested in the data. If no time is given, the server will use the time at which it makes the request. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.inventory.v1.inventory_pb2.UUIDKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.inventory.v1.inventory_pb2.UUIDKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___DeviceOnboardingConfigRequest = DeviceOnboardingConfigRequest +@typing.final class DeviceOnboardingConfigResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -1273,24 +1449,28 @@ class DeviceOnboardingConfigResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time carries the (UTC) timestamp of the last-modification of the DeviceOnboardingConfig instance in this response. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.inventory.v1.inventory_pb2.DeviceOnboardingConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.inventory.v1.inventory_pb2.DeviceOnboardingConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___DeviceOnboardingConfigResponse = DeviceOnboardingConfigResponse +@typing.final class DeviceOnboardingConfigSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -1300,18 +1480,22 @@ class DeviceOnboardingConfigSomeRequest(google.protobuf.message.Message): """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. """ - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.inventory.v1.inventory_pb2.UUIDKey]] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys","time",b"time"]) -> None: ... + keys: collections.abc.Iterable[arista.inventory.v1.inventory_pb2.UUIDKey] | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys", "time", b"time"]) -> None: ... + global___DeviceOnboardingConfigSomeRequest = DeviceOnboardingConfigSomeRequest +@typing.final class DeviceOnboardingConfigSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -1322,27 +1506,31 @@ class DeviceOnboardingConfigSomeResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """Error is an optional field. It should be filled when there is an error in the GetSome process. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - def __init__(self, - *, - value: typing.Optional[arista.inventory.v1.inventory_pb2.DeviceOnboardingConfig] = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> None: ... + def __init__( + self, + *, + value: arista.inventory.v1.inventory_pb2.DeviceOnboardingConfig | None = ..., + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> None: ... + global___DeviceOnboardingConfigSomeResponse = DeviceOnboardingConfigSomeResponse +@typing.final class DeviceOnboardingConfigStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -1353,7 +1541,7 @@ class DeviceOnboardingConfigStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -1372,51 +1560,58 @@ class DeviceOnboardingConfigStreamRequest(google.protobuf.message.Message): This field is not allowed in the Subscribe RPC. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.inventory.v1.inventory_pb2.DeviceOnboardingConfig]] = ..., - time: typing.Optional[arista.time.time_pb2.TimeBounds] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.inventory.v1.inventory_pb2.DeviceOnboardingConfig] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___DeviceOnboardingConfigStreamRequest = DeviceOnboardingConfigStreamRequest +@typing.final class DeviceOnboardingConfigStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int + type: arista.subscriptions.subscriptions_pb2.Operation.ValueType + """Operation indicates how the DeviceOnboardingConfig 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. + """ @property def value(self) -> arista.inventory.v1.inventory_pb2.DeviceOnboardingConfig: """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. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time holds the timestamp of this DeviceOnboardingConfig's last modification.""" - pass - type: arista.subscriptions.subscriptions_pb2.Operation.ValueType - """Operation indicates how the DeviceOnboardingConfig 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. - """ - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.inventory.v1.inventory_pb2.DeviceOnboardingConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + value: arista.inventory.v1.inventory_pb2.DeviceOnboardingConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "type", b"type", "value", b"value"]) -> None: ... + global___DeviceOnboardingConfigStreamResponse = DeviceOnboardingConfigStreamResponse +@typing.final class DeviceOnboardingConfigBatchedStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int MAX_MESSAGES_FIELD_NUMBER: builtins.int @@ -1428,7 +1623,7 @@ class DeviceOnboardingConfigBatchedStreamRequest(google.protobuf.message.Message While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -1447,7 +1642,7 @@ class DeviceOnboardingConfigBatchedStreamRequest(google.protobuf.message.Message 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. @@ -1455,19 +1650,23 @@ class DeviceOnboardingConfigBatchedStreamRequest(google.protobuf.message.Message 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, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.inventory.v1.inventory_pb2.DeviceOnboardingConfig]] = ..., - 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","partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.inventory.v1.inventory_pb2.DeviceOnboardingConfig] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + max_messages: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["max_messages", b"max_messages", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["max_messages", b"max_messages", "partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___DeviceOnboardingConfigBatchedStreamRequest = DeviceOnboardingConfigBatchedStreamRequest +@typing.final class DeviceOnboardingConfigBatchedStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + RESPONSES_FIELD_NUMBER: builtins.int @property def responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___DeviceOnboardingConfigStreamResponse]: @@ -1475,33 +1674,41 @@ class DeviceOnboardingConfigBatchedStreamResponse(google.protobuf.message.Messag The length of this structure is guaranteed to be between (inclusive) 1 and min(req.max_messages, INTERNAL_BATCH_LIMIT). """ - pass - def __init__(self, + + def __init__( + self, *, - responses: typing.Optional[typing.Iterable[global___DeviceOnboardingConfigStreamResponse]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["responses",b"responses"]) -> None: ... + responses: collections.abc.Iterable[global___DeviceOnboardingConfigStreamResponse] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["responses", b"responses"]) -> None: ... + global___DeviceOnboardingConfigBatchedStreamResponse = DeviceOnboardingConfigBatchedStreamResponse +@typing.final class DeviceOnboardingConfigSetRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int @property def value(self) -> arista.inventory.v1.inventory_pb2.DeviceOnboardingConfig: """DeviceOnboardingConfig carries the value to set into the datastore. See the documentation on the DeviceOnboardingConfig struct for which fields are required. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.inventory.v1.inventory_pb2.DeviceOnboardingConfig] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["value",b"value"]) -> None: ... + value: arista.inventory.v1.inventory_pb2.DeviceOnboardingConfig | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["value", b"value"]) -> None: ... + global___DeviceOnboardingConfigSetRequest = DeviceOnboardingConfigSetRequest +@typing.final class DeviceOnboardingConfigSetResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -1509,7 +1716,7 @@ class DeviceOnboardingConfigSetResponse(google.protobuf.message.Message): """Value carries all the values given in the DeviceOnboardingConfigSetRequest as well as any server-generated values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp at which the system recognizes the @@ -1518,18 +1725,22 @@ class DeviceOnboardingConfigSetResponse(google.protobuf.message.Message): - it is after the time the request was received - a time-ranged query with StartTime==CreatedAt will include this instance. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.inventory.v1.inventory_pb2.DeviceOnboardingConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.inventory.v1.inventory_pb2.DeviceOnboardingConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___DeviceOnboardingConfigSetResponse = DeviceOnboardingConfigSetResponse +@typing.final class DeviceOnboardingConfigSetSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.inventory.v1.inventory_pb2.DeviceOnboardingConfig]: @@ -1540,55 +1751,67 @@ class DeviceOnboardingConfigSetSomeRequest(google.protobuf.message.Message): If this error occurs you must reduce the number of values sent. See gRPC "maximum message size" documentation for more information. """ - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[arista.inventory.v1.inventory_pb2.DeviceOnboardingConfig]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[arista.inventory.v1.inventory_pb2.DeviceOnboardingConfig] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___DeviceOnboardingConfigSetSomeRequest = DeviceOnboardingConfigSetSomeRequest +@typing.final class DeviceOnboardingConfigSetSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int + error: builtins.str @property def key(self) -> arista.inventory.v1.inventory_pb2.UUIDKey: ... - error: typing.Text - def __init__(self, - *, - key: typing.Optional[arista.inventory.v1.inventory_pb2.UUIDKey] = ..., - error: typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key"]) -> None: ... + def __init__( + self, + *, + key: arista.inventory.v1.inventory_pb2.UUIDKey | None = ..., + error: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key"]) -> None: ... + global___DeviceOnboardingConfigSetSomeResponse = DeviceOnboardingConfigSetSomeResponse +@typing.final class DeviceOnboardingConfigDeleteRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int @property def key(self) -> arista.inventory.v1.inventory_pb2.UUIDKey: """Key indicates which DeviceOnboardingConfig instance to remove. This field must always be set. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.inventory.v1.inventory_pb2.UUIDKey] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key"]) -> None: ... + key: arista.inventory.v1.inventory_pb2.UUIDKey | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key"]) -> None: ... + global___DeviceOnboardingConfigDeleteRequest = DeviceOnboardingConfigDeleteRequest +@typing.final class DeviceOnboardingConfigDeleteResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property def key(self) -> arista.inventory.v1.inventory_pb2.UUIDKey: """Key echoes back the key of the deleted DeviceOnboardingConfig instance.""" - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp at which the system recognizes the @@ -1597,49 +1820,62 @@ class DeviceOnboardingConfigDeleteResponse(google.protobuf.message.Message): - it is after the time the request was received - a time-ranged query with StartTime==DeletedAt will not include this instance. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.inventory.v1.inventory_pb2.UUIDKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.inventory.v1.inventory_pb2.UUIDKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___DeviceOnboardingConfigDeleteResponse = DeviceOnboardingConfigDeleteResponse +@typing.final class DeviceOnboardingConfigDeleteSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int @property def keys(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.inventory.v1.inventory_pb2.UUIDKey]: """key contains a list of DeviceOnboardingConfig keys to delete""" - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.inventory.v1.inventory_pb2.UUIDKey]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys"]) -> None: ... + keys: collections.abc.Iterable[arista.inventory.v1.inventory_pb2.UUIDKey] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys"]) -> None: ... + global___DeviceOnboardingConfigDeleteSomeRequest = DeviceOnboardingConfigDeleteSomeRequest +@typing.final class DeviceOnboardingConfigDeleteSomeResponse(google.protobuf.message.Message): """DeviceOnboardingConfigDeleteSomeResponse is only sent when there is an error.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int + error: builtins.str @property def key(self) -> arista.inventory.v1.inventory_pb2.UUIDKey: ... - error: typing.Text - def __init__(self, - *, - key: typing.Optional[arista.inventory.v1.inventory_pb2.UUIDKey] = ..., - error: typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key"]) -> None: ... + def __init__( + self, + *, + key: arista.inventory.v1.inventory_pb2.UUIDKey | None = ..., + error: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key"]) -> None: ... + global___DeviceOnboardingConfigDeleteSomeResponse = DeviceOnboardingConfigDeleteSomeResponse +@typing.final class DeviceOnboardingConfigDeleteAllRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int @property def partial_eq_filter(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.inventory.v1.inventory_pb2.DeviceOnboardingConfig]: @@ -1647,16 +1883,20 @@ class DeviceOnboardingConfigDeleteAllRequest(google.protobuf.message.Message): This requires all provided fields to be equal to the response. A filtered DeleteAll will use GetAll with filter to find things to delete. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.inventory.v1.inventory_pb2.DeviceOnboardingConfig]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.inventory.v1.inventory_pb2.DeviceOnboardingConfig] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter"]) -> None: ... + global___DeviceOnboardingConfigDeleteAllRequest = DeviceOnboardingConfigDeleteAllRequest +@typing.final class DeviceOnboardingConfigDeleteAllResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TYPE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int KEY_FIELD_NUMBER: builtins.int @@ -1665,32 +1905,35 @@ class DeviceOnboardingConfigDeleteAllResponse(google.protobuf.message.Message): """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: """This indicates the error message from the delete failure.""" - pass + @property def key(self) -> arista.inventory.v1.inventory_pb2.UUIDKey: """This is the key of the DeviceOnboardingConfig instance that failed to be deleted.""" - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp when the key was being deleted.""" - pass - def __init__(self, + + def __init__( + self, *, type: fmp.deletes_pb2.DeleteError.ValueType = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - key: typing.Optional[arista.inventory.v1.inventory_pb2.UUIDKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key","time",b"time","type",b"type"]) -> None: ... + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + key: arista.inventory.v1.inventory_pb2.UUIDKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key", "time", b"time", "type", b"type"]) -> None: ... + global___DeviceOnboardingConfigDeleteAllResponse = DeviceOnboardingConfigDeleteAllResponse +@typing.final class ProvisionedDeviceRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -1698,24 +1941,28 @@ class ProvisionedDeviceRequest(google.protobuf.message.Message): """Key uniquely identifies a ProvisionedDevice instance to retrieve. This value must be populated. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the time for which you are interested in the data. If no time is given, the server will use the time at which it makes the request. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.inventory.v1.inventory_pb2.DeviceKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.inventory.v1.inventory_pb2.DeviceKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___ProvisionedDeviceRequest = ProvisionedDeviceRequest +@typing.final class ProvisionedDeviceResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -1725,24 +1972,28 @@ class ProvisionedDeviceResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time carries the (UTC) timestamp of the last-modification of the ProvisionedDevice instance in this response. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.inventory.v1.inventory_pb2.ProvisionedDevice] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.inventory.v1.inventory_pb2.ProvisionedDevice | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___ProvisionedDeviceResponse = ProvisionedDeviceResponse +@typing.final class ProvisionedDeviceSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -1752,18 +2003,22 @@ class ProvisionedDeviceSomeRequest(google.protobuf.message.Message): """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. """ - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.inventory.v1.inventory_pb2.DeviceKey]] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys","time",b"time"]) -> None: ... + keys: collections.abc.Iterable[arista.inventory.v1.inventory_pb2.DeviceKey] | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys", "time", b"time"]) -> None: ... + global___ProvisionedDeviceSomeRequest = ProvisionedDeviceSomeRequest +@typing.final class ProvisionedDeviceSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -1774,27 +2029,31 @@ class ProvisionedDeviceSomeResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """Error is an optional field. It should be filled when there is an error in the GetSome process. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - def __init__(self, - *, - value: typing.Optional[arista.inventory.v1.inventory_pb2.ProvisionedDevice] = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> None: ... + def __init__( + self, + *, + value: arista.inventory.v1.inventory_pb2.ProvisionedDevice | None = ..., + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> None: ... + global___ProvisionedDeviceSomeResponse = ProvisionedDeviceSomeResponse +@typing.final class ProvisionedDeviceStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -1805,7 +2064,7 @@ class ProvisionedDeviceStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -1824,51 +2083,58 @@ class ProvisionedDeviceStreamRequest(google.protobuf.message.Message): This field is not allowed in the Subscribe RPC. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.inventory.v1.inventory_pb2.ProvisionedDevice]] = ..., - time: typing.Optional[arista.time.time_pb2.TimeBounds] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.inventory.v1.inventory_pb2.ProvisionedDevice] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___ProvisionedDeviceStreamRequest = ProvisionedDeviceStreamRequest +@typing.final class ProvisionedDeviceStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int + type: arista.subscriptions.subscriptions_pb2.Operation.ValueType + """Operation indicates how the ProvisionedDevice 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. + """ @property def value(self) -> arista.inventory.v1.inventory_pb2.ProvisionedDevice: """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. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time holds the timestamp of this ProvisionedDevice's last modification.""" - pass - type: arista.subscriptions.subscriptions_pb2.Operation.ValueType - """Operation indicates how the ProvisionedDevice 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. - """ - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.inventory.v1.inventory_pb2.ProvisionedDevice] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + value: arista.inventory.v1.inventory_pb2.ProvisionedDevice | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "type", b"type", "value", b"value"]) -> None: ... + global___ProvisionedDeviceStreamResponse = ProvisionedDeviceStreamResponse +@typing.final class ProvisionedDeviceBatchedStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int MAX_MESSAGES_FIELD_NUMBER: builtins.int @@ -1880,7 +2146,7 @@ class ProvisionedDeviceBatchedStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -1899,7 +2165,7 @@ class ProvisionedDeviceBatchedStreamRequest(google.protobuf.message.Message): 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. @@ -1907,19 +2173,23 @@ class ProvisionedDeviceBatchedStreamRequest(google.protobuf.message.Message): 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, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.inventory.v1.inventory_pb2.ProvisionedDevice]] = ..., - 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","partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.inventory.v1.inventory_pb2.ProvisionedDevice] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + max_messages: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["max_messages", b"max_messages", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["max_messages", b"max_messages", "partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___ProvisionedDeviceBatchedStreamRequest = ProvisionedDeviceBatchedStreamRequest +@typing.final class ProvisionedDeviceBatchedStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + RESPONSES_FIELD_NUMBER: builtins.int @property def responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ProvisionedDeviceStreamResponse]: @@ -1927,10 +2197,12 @@ class ProvisionedDeviceBatchedStreamResponse(google.protobuf.message.Message): The length of this structure is guaranteed to be between (inclusive) 1 and min(req.max_messages, INTERNAL_BATCH_LIMIT). """ - pass - def __init__(self, + + def __init__( + self, *, - responses: typing.Optional[typing.Iterable[global___ProvisionedDeviceStreamResponse]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["responses",b"responses"]) -> None: ... + responses: collections.abc.Iterable[global___ProvisionedDeviceStreamResponse] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["responses", b"responses"]) -> None: ... + global___ProvisionedDeviceBatchedStreamResponse = ProvisionedDeviceBatchedStreamResponse diff --git a/arista/lifecycle/v1/lifecycle_pb2.pyi b/arista/lifecycle/v1/lifecycle_pb2.pyi index da560a8..97245ac 100644 --- a/arista/lifecycle/v1/lifecycle_pb2.pyi +++ b/arista/lifecycle/v1/lifecycle_pb2.pyi @@ -1,7 +1,11 @@ """ @generated by mypy-protobuf. Do not edit manually! isort:skip_file +Copyright (c) 2023 Arista Networks, Inc. All rights reserved. +Use of this source code is governed by the Apache License 2.0 +that can be found in the COPYING file. """ + import builtins import fmp.wrappers_pb2 import google.protobuf.descriptor @@ -9,79 +13,96 @@ import google.protobuf.message import google.protobuf.timestamp_pb2 import google.protobuf.wrappers_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class DeviceLifecycleSummaryKey(google.protobuf.message.Message): """DeviceLifecycleSummaryKey is the key type for DeviceLifecycleSummary model """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + DEVICE_ID_FIELD_NUMBER: builtins.int @property def device_id(self) -> google.protobuf.wrappers_pb2.StringValue: """device_id is the device ID""" - pass - def __init__(self, + + def __init__( + self, *, - device_id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["device_id",b"device_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["device_id",b"device_id"]) -> None: ... + device_id: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["device_id", b"device_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["device_id", b"device_id"]) -> None: ... + global___DeviceLifecycleSummaryKey = DeviceLifecycleSummaryKey +@typing.final class SoftwareEOL(google.protobuf.message.Message): """SoftwareEOL represents a software end of life""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + VERSION_FIELD_NUMBER: builtins.int END_OF_SUPPORT_FIELD_NUMBER: builtins.int @property def version(self) -> google.protobuf.wrappers_pb2.StringValue: """version of a SoftwareEOL""" - pass + @property def end_of_support(self) -> google.protobuf.timestamp_pb2.Timestamp: """end_of_support of a SoftwareEOL""" - pass - def __init__(self, + + def __init__( + self, *, - version: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - end_of_support: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["end_of_support",b"end_of_support","version",b"version"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["end_of_support",b"end_of_support","version",b"version"]) -> None: ... + version: google.protobuf.wrappers_pb2.StringValue | None = ..., + end_of_support: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["end_of_support", b"end_of_support", "version", b"version"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["end_of_support", b"end_of_support", "version", b"version"]) -> None: ... + global___SoftwareEOL = SoftwareEOL +@typing.final class DateAndModels(google.protobuf.message.Message): """DateAndModels has an "end of" date along with the models that has this exact "end of" date """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + DATE_FIELD_NUMBER: builtins.int MODELS_FIELD_NUMBER: builtins.int @property def date(self) -> google.protobuf.timestamp_pb2.Timestamp: """"end of" date""" - pass + @property def models(self) -> fmp.wrappers_pb2.MapStringInt32: """models with this exact "end of" date mapped to its count """ - pass - def __init__(self, + + def __init__( + self, *, - date: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - models: typing.Optional[fmp.wrappers_pb2.MapStringInt32] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["date",b"date","models",b"models"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["date",b"date","models",b"models"]) -> None: ... + date: google.protobuf.timestamp_pb2.Timestamp | None = ..., + models: fmp.wrappers_pb2.MapStringInt32 | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["date", b"date", "models", b"models"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["date", b"date", "models", b"models"]) -> None: ... + global___DateAndModels = DateAndModels +@typing.final class HardwareLifecycleSummary(google.protobuf.message.Message): """HardwareLifecycleSummary represents a hardware lifecycle summary""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + END_OF_LIFE_FIELD_NUMBER: builtins.int END_OF_SALE_FIELD_NUMBER: builtins.int END_OF_TAC_SUPPORT_FIELD_NUMBER: builtins.int @@ -89,35 +110,40 @@ class HardwareLifecycleSummary(google.protobuf.message.Message): @property def end_of_life(self) -> global___DateAndModels: """end_of_life of a HardwareLifecycleSummary""" - pass + @property def end_of_sale(self) -> global___DateAndModels: """end_of_sale of a HardwareLifecycleSummary""" - pass + @property def end_of_tac_support(self) -> global___DateAndModels: """end_of_tac_support of a HardwareLifecycleSummary""" - pass + @property def end_of_hardware_rma_requests(self) -> global___DateAndModels: """end_of_hardware_rma_requests of a HardwareLifecycleSummary""" - pass - def __init__(self, + + def __init__( + self, *, - end_of_life: typing.Optional[global___DateAndModels] = ..., - end_of_sale: typing.Optional[global___DateAndModels] = ..., - end_of_tac_support: typing.Optional[global___DateAndModels] = ..., - end_of_hardware_rma_requests: typing.Optional[global___DateAndModels] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["end_of_hardware_rma_requests",b"end_of_hardware_rma_requests","end_of_life",b"end_of_life","end_of_sale",b"end_of_sale","end_of_tac_support",b"end_of_tac_support"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["end_of_hardware_rma_requests",b"end_of_hardware_rma_requests","end_of_life",b"end_of_life","end_of_sale",b"end_of_sale","end_of_tac_support",b"end_of_tac_support"]) -> None: ... + end_of_life: global___DateAndModels | None = ..., + end_of_sale: global___DateAndModels | None = ..., + end_of_tac_support: global___DateAndModels | None = ..., + end_of_hardware_rma_requests: global___DateAndModels | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["end_of_hardware_rma_requests", b"end_of_hardware_rma_requests", "end_of_life", b"end_of_life", "end_of_sale", b"end_of_sale", "end_of_tac_support", b"end_of_tac_support"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["end_of_hardware_rma_requests", b"end_of_hardware_rma_requests", "end_of_life", b"end_of_life", "end_of_sale", b"end_of_sale", "end_of_tac_support", b"end_of_tac_support"]) -> None: ... + global___HardwareLifecycleSummary = HardwareLifecycleSummary +@typing.final class DeviceLifecycleSummary(google.protobuf.message.Message): """DeviceLifecycleSummary is the state model that represents the lifecycle summary of a device """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int SOFTWARE_EOL_FIELD_NUMBER: builtins.int HARDWARE_LIFECYCLE_SUMMARY_FIELD_NUMBER: builtins.int @@ -126,25 +152,27 @@ class DeviceLifecycleSummary(google.protobuf.message.Message): """DeviceLifecycleSummaryKey is the key of DeviceLifecycleSummary """ - pass + @property def software_eol(self) -> global___SoftwareEOL: """software_eol is the software end of life of a device """ - pass + @property def hardware_lifecycle_summary(self) -> global___HardwareLifecycleSummary: """hardware_lifecycle_summary is the hardware lifecycle summary of a device """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[global___DeviceLifecycleSummaryKey] = ..., - software_eol: typing.Optional[global___SoftwareEOL] = ..., - hardware_lifecycle_summary: typing.Optional[global___HardwareLifecycleSummary] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["hardware_lifecycle_summary",b"hardware_lifecycle_summary","key",b"key","software_eol",b"software_eol"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["hardware_lifecycle_summary",b"hardware_lifecycle_summary","key",b"key","software_eol",b"software_eol"]) -> None: ... + key: global___DeviceLifecycleSummaryKey | None = ..., + software_eol: global___SoftwareEOL | None = ..., + hardware_lifecycle_summary: global___HardwareLifecycleSummary | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["hardware_lifecycle_summary", b"hardware_lifecycle_summary", "key", b"key", "software_eol", b"software_eol"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["hardware_lifecycle_summary", b"hardware_lifecycle_summary", "key", b"key", "software_eol", b"software_eol"]) -> None: ... + global___DeviceLifecycleSummary = DeviceLifecycleSummary diff --git a/arista/lifecycle/v1/services/gen_pb2.pyi b/arista/lifecycle/v1/services/gen_pb2.pyi index d6ee29f..a0d3bb7 100644 --- a/arista/lifecycle/v1/services/gen_pb2.pyi +++ b/arista/lifecycle/v1/services/gen_pb2.pyi @@ -1,53 +1,61 @@ """ @generated by mypy-protobuf. Do not edit manually! isort:skip_file + +Code generated by boomtown. DO NOT EDIT. """ + import arista.lifecycle.v1.lifecycle_pb2 import arista.subscriptions.subscriptions_pb2 import arista.time.time_pb2 import builtins +import collections.abc import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message import google.protobuf.timestamp_pb2 import google.protobuf.wrappers_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class MetaResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int COUNT_FIELD_NUMBER: builtins.int - @property - def time(self) -> google.protobuf.timestamp_pb2.Timestamp: - """Time holds the timestamp of the last item included in the metadata calculation.""" - pass type: arista.subscriptions.subscriptions_pb2.Operation.ValueType """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. """ + @property + def time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """Time holds the timestamp of the last item included in the metadata calculation.""" @property def count(self) -> google.protobuf.wrappers_pb2.UInt32Value: """Count is the number of items present under the conditions of the request.""" - pass - def __init__(self, + + def __init__( + self, *, - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - count: typing.Optional[google.protobuf.wrappers_pb2.UInt32Value] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["count",b"count","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["count",b"count","time",b"time","type",b"type"]) -> None: ... + count: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["count", b"count", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["count", b"count", "time", b"time", "type", b"type"]) -> None: ... + global___MetaResponse = MetaResponse +@typing.final class DeviceLifecycleSummaryRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -55,24 +63,28 @@ class DeviceLifecycleSummaryRequest(google.protobuf.message.Message): """Key uniquely identifies a DeviceLifecycleSummary instance to retrieve. This value must be populated. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the time for which you are interested in the data. If no time is given, the server will use the time at which it makes the request. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.lifecycle.v1.lifecycle_pb2.DeviceLifecycleSummaryKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.lifecycle.v1.lifecycle_pb2.DeviceLifecycleSummaryKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___DeviceLifecycleSummaryRequest = DeviceLifecycleSummaryRequest +@typing.final class DeviceLifecycleSummaryResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -82,24 +94,28 @@ class DeviceLifecycleSummaryResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time carries the (UTC) timestamp of the last-modification of the DeviceLifecycleSummary instance in this response. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.lifecycle.v1.lifecycle_pb2.DeviceLifecycleSummary] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.lifecycle.v1.lifecycle_pb2.DeviceLifecycleSummary | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___DeviceLifecycleSummaryResponse = DeviceLifecycleSummaryResponse +@typing.final class DeviceLifecycleSummaryStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -110,7 +126,7 @@ class DeviceLifecycleSummaryStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -129,45 +145,50 @@ class DeviceLifecycleSummaryStreamRequest(google.protobuf.message.Message): This field is not allowed in the Subscribe RPC. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.lifecycle.v1.lifecycle_pb2.DeviceLifecycleSummary]] = ..., - time: typing.Optional[arista.time.time_pb2.TimeBounds] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.lifecycle.v1.lifecycle_pb2.DeviceLifecycleSummary] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___DeviceLifecycleSummaryStreamRequest = DeviceLifecycleSummaryStreamRequest +@typing.final class DeviceLifecycleSummaryStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int + type: arista.subscriptions.subscriptions_pb2.Operation.ValueType + """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. + """ @property def value(self) -> arista.lifecycle.v1.lifecycle_pb2.DeviceLifecycleSummary: """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. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time holds the timestamp of this DeviceLifecycleSummary's last modification.""" - pass - type: arista.subscriptions.subscriptions_pb2.Operation.ValueType - """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. - """ - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.lifecycle.v1.lifecycle_pb2.DeviceLifecycleSummary] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + value: arista.lifecycle.v1.lifecycle_pb2.DeviceLifecycleSummary | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "type", b"type", "value", b"value"]) -> None: ... + global___DeviceLifecycleSummaryStreamResponse = DeviceLifecycleSummaryStreamResponse diff --git a/arista/redirector/v1/redirector_pb2.pyi b/arista/redirector/v1/redirector_pb2.pyi index 87add47..a98ce9b 100644 --- a/arista/redirector/v1/redirector_pb2.pyi +++ b/arista/redirector/v1/redirector_pb2.pyi @@ -1,76 +1,97 @@ """ @generated by mypy-protobuf. Do not edit manually! isort:skip_file +Copyright (c) 2022 Arista Networks, Inc. All rights reserved. +Use of this source code is governed by the Apache License 2.0 +that can be found in the COPYING file. """ + import builtins +import collections.abc import fmp.wrappers_pb2 import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message import google.protobuf.wrappers_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class AssignmentKey(google.protobuf.message.Message): """AssignmentKey allows to uniquely identify an assignment.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + SYSTEM_ID_FIELD_NUMBER: builtins.int @property def system_id(self) -> google.protobuf.wrappers_pb2.StringValue: """system_id is the unique identifier of a device.""" - pass - def __init__(self, + + def __init__( + self, *, - system_id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["system_id",b"system_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["system_id",b"system_id"]) -> None: ... + system_id: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["system_id", b"system_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["system_id", b"system_id"]) -> None: ... + global___AssignmentKey = AssignmentKey +@typing.final class Assignment(google.protobuf.message.Message): """Assignment returns the information about the regional clusters that the system is assigned to. Each cluster consists of a series of hosts, each of which the client can use to connect. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int CLUSTERS_FIELD_NUMBER: builtins.int @property def key(self) -> global___AssignmentKey: """key uniquely identifies the assignment of system_id to the cluster.""" - pass + @property def clusters(self) -> global___Clusters: """clusters that the system is assigned to.""" - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[global___AssignmentKey] = ..., - clusters: typing.Optional[global___Clusters] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["clusters",b"clusters","key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["clusters",b"clusters","key",b"key"]) -> None: ... + key: global___AssignmentKey | None = ..., + clusters: global___Clusters | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["clusters", b"clusters", "key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["clusters", b"clusters", "key", b"key"]) -> None: ... + global___Assignment = Assignment +@typing.final class Clusters(google.protobuf.message.Message): """Clusters wraps a cluster list which contain the information about the hosts.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Cluster]: """values contains the list of clusters associated with the region""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[global___Cluster]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[global___Cluster] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___Clusters = Clusters +@typing.final class Cluster(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + NAME_FIELD_NUMBER: builtins.int HOSTS_FIELD_NUMBER: builtins.int @property @@ -78,16 +99,18 @@ class Cluster(google.protobuf.message.Message): """name of the cluster. The name can change over time as new clusters are added or removed. """ - pass + @property def hosts(self) -> fmp.wrappers_pb2.RepeatedString: """hosts in the cluster that the devices can connect to.""" - pass - def __init__(self, + + def __init__( + self, *, - name: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - hosts: typing.Optional[fmp.wrappers_pb2.RepeatedString] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["hosts",b"hosts","name",b"name"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["hosts",b"hosts","name",b"name"]) -> None: ... + name: google.protobuf.wrappers_pb2.StringValue | None = ..., + hosts: fmp.wrappers_pb2.RepeatedString | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["hosts", b"hosts", "name", b"name"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["hosts", b"hosts", "name", b"name"]) -> None: ... + global___Cluster = Cluster diff --git a/arista/redirector/v1/services/gen_pb2.pyi b/arista/redirector/v1/services/gen_pb2.pyi index e3c1965..67aebff 100644 --- a/arista/redirector/v1/services/gen_pb2.pyi +++ b/arista/redirector/v1/services/gen_pb2.pyi @@ -1,53 +1,61 @@ """ @generated by mypy-protobuf. Do not edit manually! isort:skip_file + +Code generated by boomtown. DO NOT EDIT. """ + import arista.redirector.v1.redirector_pb2 import arista.subscriptions.subscriptions_pb2 import arista.time.time_pb2 import builtins +import collections.abc import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message import google.protobuf.timestamp_pb2 import google.protobuf.wrappers_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class MetaResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int COUNT_FIELD_NUMBER: builtins.int - @property - def time(self) -> google.protobuf.timestamp_pb2.Timestamp: - """Time holds the timestamp of the last item included in the metadata calculation.""" - pass type: arista.subscriptions.subscriptions_pb2.Operation.ValueType """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. """ + @property + def time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """Time holds the timestamp of the last item included in the metadata calculation.""" @property def count(self) -> google.protobuf.wrappers_pb2.UInt32Value: """Count is the number of items present under the conditions of the request.""" - pass - def __init__(self, + + def __init__( + self, *, - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - count: typing.Optional[google.protobuf.wrappers_pb2.UInt32Value] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["count",b"count","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["count",b"count","time",b"time","type",b"type"]) -> None: ... + count: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["count", b"count", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["count", b"count", "time", b"time", "type", b"type"]) -> None: ... + global___MetaResponse = MetaResponse +@typing.final class AssignmentRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -55,24 +63,28 @@ class AssignmentRequest(google.protobuf.message.Message): """Key uniquely identifies a Assignment instance to retrieve. This value must be populated. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the time for which you are interested in the data. If no time is given, the server will use the time at which it makes the request. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.redirector.v1.redirector_pb2.AssignmentKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.redirector.v1.redirector_pb2.AssignmentKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___AssignmentRequest = AssignmentRequest +@typing.final class AssignmentResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -82,24 +94,28 @@ class AssignmentResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time carries the (UTC) timestamp of the last-modification of the Assignment instance in this response. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.redirector.v1.redirector_pb2.Assignment] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.redirector.v1.redirector_pb2.Assignment | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___AssignmentResponse = AssignmentResponse +@typing.final class AssignmentSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -109,18 +125,22 @@ class AssignmentSomeRequest(google.protobuf.message.Message): """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. """ - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.redirector.v1.redirector_pb2.AssignmentKey]] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys","time",b"time"]) -> None: ... + keys: collections.abc.Iterable[arista.redirector.v1.redirector_pb2.AssignmentKey] | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys", "time", b"time"]) -> None: ... + global___AssignmentSomeRequest = AssignmentSomeRequest +@typing.final class AssignmentSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -131,27 +151,31 @@ class AssignmentSomeResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """Error is an optional field. It should be filled when there is an error in the GetSome process. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.redirector.v1.redirector_pb2.Assignment] = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> None: ... + value: arista.redirector.v1.redirector_pb2.Assignment | None = ..., + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> None: ... + global___AssignmentSomeResponse = AssignmentSomeResponse +@typing.final class AssignmentStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -162,7 +186,7 @@ class AssignmentStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -181,51 +205,58 @@ class AssignmentStreamRequest(google.protobuf.message.Message): This field is not allowed in the Subscribe RPC. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.redirector.v1.redirector_pb2.Assignment]] = ..., - time: typing.Optional[arista.time.time_pb2.TimeBounds] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.redirector.v1.redirector_pb2.Assignment] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___AssignmentStreamRequest = AssignmentStreamRequest +@typing.final class AssignmentStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int + type: arista.subscriptions.subscriptions_pb2.Operation.ValueType + """Operation indicates how the Assignment 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. + """ @property def value(self) -> arista.redirector.v1.redirector_pb2.Assignment: """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. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time holds the timestamp of this Assignment's last modification.""" - pass - type: arista.subscriptions.subscriptions_pb2.Operation.ValueType - """Operation indicates how the Assignment 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. - """ - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.redirector.v1.redirector_pb2.Assignment] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + value: arista.redirector.v1.redirector_pb2.Assignment | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "type", b"type", "value", b"value"]) -> None: ... + global___AssignmentStreamResponse = AssignmentStreamResponse +@typing.final class AssignmentBatchedStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int MAX_MESSAGES_FIELD_NUMBER: builtins.int @@ -237,7 +268,7 @@ class AssignmentBatchedStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -256,7 +287,7 @@ class AssignmentBatchedStreamRequest(google.protobuf.message.Message): 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. @@ -264,19 +295,23 @@ class AssignmentBatchedStreamRequest(google.protobuf.message.Message): 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, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.redirector.v1.redirector_pb2.Assignment]] = ..., - 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","partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.redirector.v1.redirector_pb2.Assignment] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + max_messages: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["max_messages", b"max_messages", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["max_messages", b"max_messages", "partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___AssignmentBatchedStreamRequest = AssignmentBatchedStreamRequest +@typing.final class AssignmentBatchedStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + RESPONSES_FIELD_NUMBER: builtins.int @property def responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___AssignmentStreamResponse]: @@ -284,10 +319,12 @@ class AssignmentBatchedStreamResponse(google.protobuf.message.Message): The length of this structure is guaranteed to be between (inclusive) 1 and min(req.max_messages, INTERNAL_BATCH_LIMIT). """ - pass - def __init__(self, + + def __init__( + self, *, - responses: typing.Optional[typing.Iterable[global___AssignmentStreamResponse]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["responses",b"responses"]) -> None: ... + responses: collections.abc.Iterable[global___AssignmentStreamResponse] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["responses", b"responses"]) -> None: ... + global___AssignmentBatchedStreamResponse = AssignmentBatchedStreamResponse diff --git a/arista/serviceaccount/v1/serviceaccount_pb2.pyi b/arista/serviceaccount/v1/serviceaccount_pb2.pyi index 687448a..67b3553 100644 --- a/arista/serviceaccount/v1/serviceaccount_pb2.pyi +++ b/arista/serviceaccount/v1/serviceaccount_pb2.pyi @@ -1,7 +1,11 @@ """ @generated by mypy-protobuf. Do not edit manually! isort:skip_file +Copyright (c) 2020 Arista Networks, Inc. All rights reserved. +Use of this source code is governed by the Apache License 2.0 +that can be found in the COPYING file. """ + import builtins import fmp.wrappers_pb2 import google.protobuf.descriptor @@ -10,158 +14,178 @@ import google.protobuf.internal.enum_type_wrapper import google.protobuf.message import google.protobuf.timestamp_pb2 import google.protobuf.wrappers_pb2 +import sys import typing -import typing_extensions + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor class _AccountStatus: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _AccountStatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_AccountStatus.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor ACCOUNT_STATUS_UNSPECIFIED: _AccountStatus.ValueType # 0 """ACCOUNT_STATUS_UNSPECIFIED indicates the service account status is unspecified.""" - ACCOUNT_STATUS_ENABLED: _AccountStatus.ValueType # 1 """ACCOUNT_STATUS_ENABLED indicates the service account is enabled.""" - ACCOUNT_STATUS_DISABLED: _AccountStatus.ValueType # 2 """ACCOUNT_STATUS_DISABLED indicates the service account is disabled.""" class AccountStatus(_AccountStatus, metaclass=_AccountStatusEnumTypeWrapper): """AccountStatus determines whether an service account is enabled or disabled.""" - pass ACCOUNT_STATUS_UNSPECIFIED: AccountStatus.ValueType # 0 """ACCOUNT_STATUS_UNSPECIFIED indicates the service account status is unspecified.""" - ACCOUNT_STATUS_ENABLED: AccountStatus.ValueType # 1 """ACCOUNT_STATUS_ENABLED indicates the service account is enabled.""" - ACCOUNT_STATUS_DISABLED: AccountStatus.ValueType # 2 """ACCOUNT_STATUS_DISABLED indicates the service account is disabled.""" - global___AccountStatus = AccountStatus - +@typing.final class AccountKey(google.protobuf.message.Message): """AccountKey contains the name of the service account.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + NAME_FIELD_NUMBER: builtins.int @property def name(self) -> google.protobuf.wrappers_pb2.StringValue: """name is the unique identifier of the service account.""" - pass - def __init__(self, + + def __init__( + self, *, - name: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["name",b"name"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["name",b"name"]) -> None: ... + name: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["name", b"name"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["name", b"name"]) -> None: ... + global___AccountKey = AccountKey +@typing.final class AccountConfig(google.protobuf.message.Message): """AccountConfig holds the configuration for a service account.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int STATUS_FIELD_NUMBER: builtins.int DESCRIPTION_FIELD_NUMBER: builtins.int GROUPS_FIELD_NUMBER: builtins.int - @property - def key(self) -> global___AccountKey: - """key contains the name of the service account.""" - pass status: global___AccountStatus.ValueType """status determines if the service account is enabled or disabled. New service accounts are enabled by default. """ + @property + def key(self) -> global___AccountKey: + """key contains the name of the service account.""" @property def description(self) -> google.protobuf.wrappers_pb2.StringValue: """description is a comment describing the service account.""" - pass + @property def groups(self) -> fmp.wrappers_pb2.RepeatedString: """groups is a list of roles that the service account inherits permissions from.""" - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[global___AccountKey] = ..., + key: global___AccountKey | None = ..., status: global___AccountStatus.ValueType = ..., - description: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - groups: typing.Optional[fmp.wrappers_pb2.RepeatedString] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["description",b"description","groups",b"groups","key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["description",b"description","groups",b"groups","key",b"key","status",b"status"]) -> None: ... + description: google.protobuf.wrappers_pb2.StringValue | None = ..., + groups: fmp.wrappers_pb2.RepeatedString | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["description", b"description", "groups", b"groups", "key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["description", b"description", "groups", b"groups", "key", b"key", "status", b"status"]) -> None: ... + global___AccountConfig = AccountConfig +@typing.final class Account(google.protobuf.message.Message): """Account describes a service account.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int STATUS_FIELD_NUMBER: builtins.int DESCRIPTION_FIELD_NUMBER: builtins.int GROUPS_FIELD_NUMBER: builtins.int CREATED_BY_FIELD_NUMBER: builtins.int LAST_ACCESS_FIELD_NUMBER: builtins.int + status: global___AccountStatus.ValueType + """status determines whether the service account is enabled or disabled.""" @property def key(self) -> global___AccountKey: """key uniquely identifies the service account.""" - pass - status: global___AccountStatus.ValueType - """status determines whether the service account is enabled or disabled.""" @property def description(self) -> google.protobuf.wrappers_pb2.StringValue: """description is a comment describing the service account.""" - pass + @property def groups(self) -> fmp.wrappers_pb2.RepeatedString: """groups is a list of roles that the service account inherits permissions from.""" - pass + @property def created_by(self) -> google.protobuf.wrappers_pb2.StringValue: """created_by is the name of the entity that created the service account.""" - pass + @property def last_access(self) -> google.protobuf.timestamp_pb2.Timestamp: """last_access is the time when the service account was last fetched.""" - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[global___AccountKey] = ..., + key: global___AccountKey | None = ..., status: global___AccountStatus.ValueType = ..., - description: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - groups: typing.Optional[fmp.wrappers_pb2.RepeatedString] = ..., - created_by: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - last_access: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["created_by",b"created_by","description",b"description","groups",b"groups","key",b"key","last_access",b"last_access"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["created_by",b"created_by","description",b"description","groups",b"groups","key",b"key","last_access",b"last_access","status",b"status"]) -> None: ... + description: google.protobuf.wrappers_pb2.StringValue | None = ..., + groups: fmp.wrappers_pb2.RepeatedString | None = ..., + created_by: google.protobuf.wrappers_pb2.StringValue | None = ..., + last_access: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["created_by", b"created_by", "description", b"description", "groups", b"groups", "key", b"key", "last_access", b"last_access"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["created_by", b"created_by", "description", b"description", "groups", b"groups", "key", b"key", "last_access", b"last_access", "status", b"status"]) -> None: ... + global___Account = Account +@typing.final class TokenKey(google.protobuf.message.Message): """TokenKey contains service account token ID.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + ID_FIELD_NUMBER: builtins.int @property def id(self) -> google.protobuf.wrappers_pb2.StringValue: """id is the unique identifier of the service account token.""" - pass - def __init__(self, + + def __init__( + self, *, - id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["id",b"id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["id",b"id"]) -> None: ... + id: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["id", b"id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["id", b"id"]) -> None: ... + global___TokenKey = TokenKey +@typing.final class TokenConfig(google.protobuf.message.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. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int USER_FIELD_NUMBER: builtins.int DESCRIPTION_FIELD_NUMBER: builtins.int @@ -170,40 +194,45 @@ class TokenConfig(google.protobuf.message.Message): @property def key(self) -> global___TokenKey: """key uniquely identifies the service account token.""" - pass + @property def user(self) -> google.protobuf.wrappers_pb2.StringValue: """user is the name of the service account that the token is generated for.""" - pass + @property def description(self) -> google.protobuf.wrappers_pb2.StringValue: """description is a short name or comment used to identify the service account token.""" - pass + @property def valid_for(self) -> google.protobuf.duration_pb2.Duration: """valid_for determines the duration that the service account token will be valid for.""" - pass + @property def token(self) -> google.protobuf.wrappers_pb2.StringValue: """token is the JWT token generated for a service account token. It is only populated in Set response. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[global___TokenKey] = ..., - user: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - description: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - valid_for: typing.Optional[google.protobuf.duration_pb2.Duration] = ..., - token: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["description",b"description","key",b"key","token",b"token","user",b"user","valid_for",b"valid_for"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["description",b"description","key",b"key","token",b"token","user",b"user","valid_for",b"valid_for"]) -> None: ... + key: global___TokenKey | None = ..., + user: google.protobuf.wrappers_pb2.StringValue | None = ..., + description: google.protobuf.wrappers_pb2.StringValue | None = ..., + valid_for: google.protobuf.duration_pb2.Duration | None = ..., + token: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["description", b"description", "key", b"key", "token", b"token", "user", b"user", "valid_for", b"valid_for"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["description", b"description", "key", b"key", "token", b"token", "user", b"user", "valid_for", b"valid_for"]) -> None: ... + global___TokenConfig = TokenConfig +@typing.final class Token(google.protobuf.message.Message): """Token describes a service account token.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int USER_FIELD_NUMBER: builtins.int DESCRIPTION_FIELD_NUMBER: builtins.int @@ -213,36 +242,38 @@ class Token(google.protobuf.message.Message): @property def key(self) -> global___TokenKey: """key uniquely identifies the service account token.""" - pass + @property def user(self) -> google.protobuf.wrappers_pb2.StringValue: """user is the name of the service account that the token is generated for.""" - pass + @property def description(self) -> google.protobuf.wrappers_pb2.StringValue: """description is a short name or comment used to identify the service account token.""" - pass + @property def valid_until(self) -> google.protobuf.timestamp_pb2.Timestamp: """valid_until is the time that the service account token will be valid until.""" - pass + @property def created_by(self) -> google.protobuf.wrappers_pb2.StringValue: """created_by is the name of the entity that created the service account token.""" - pass + @property def last_used(self) -> google.protobuf.timestamp_pb2.Timestamp: """last_used is the time when the service account token was last used to authenticate.""" - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[global___TokenKey] = ..., - user: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - description: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - valid_until: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - created_by: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - last_used: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["created_by",b"created_by","description",b"description","key",b"key","last_used",b"last_used","user",b"user","valid_until",b"valid_until"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["created_by",b"created_by","description",b"description","key",b"key","last_used",b"last_used","user",b"user","valid_until",b"valid_until"]) -> None: ... + key: global___TokenKey | None = ..., + user: google.protobuf.wrappers_pb2.StringValue | None = ..., + description: google.protobuf.wrappers_pb2.StringValue | None = ..., + valid_until: google.protobuf.timestamp_pb2.Timestamp | None = ..., + created_by: google.protobuf.wrappers_pb2.StringValue | None = ..., + last_used: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["created_by", b"created_by", "description", b"description", "key", b"key", "last_used", b"last_used", "user", b"user", "valid_until", b"valid_until"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["created_by", b"created_by", "description", b"description", "key", b"key", "last_used", b"last_used", "user", b"user", "valid_until", b"valid_until"]) -> None: ... + global___Token = Token diff --git a/arista/serviceaccount/v1/services/gen_pb2.pyi b/arista/serviceaccount/v1/services/gen_pb2.pyi index b5c35d9..99893f4 100644 --- a/arista/serviceaccount/v1/services/gen_pb2.pyi +++ b/arista/serviceaccount/v1/services/gen_pb2.pyi @@ -1,11 +1,15 @@ """ @generated by mypy-protobuf. Do not edit manually! isort:skip_file + +Code generated by boomtown. DO NOT EDIT. """ + import arista.serviceaccount.v1.serviceaccount_pb2 import arista.subscriptions.subscriptions_pb2 import arista.time.time_pb2 import builtins +import collections.abc import fmp.deletes_pb2 import google.protobuf.descriptor import google.protobuf.internal.containers @@ -13,42 +17,46 @@ import google.protobuf.message import google.protobuf.timestamp_pb2 import google.protobuf.wrappers_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class MetaResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int COUNT_FIELD_NUMBER: builtins.int - @property - def time(self) -> google.protobuf.timestamp_pb2.Timestamp: - """Time holds the timestamp of the last item included in the metadata calculation.""" - pass type: arista.subscriptions.subscriptions_pb2.Operation.ValueType """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. """ + @property + def time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """Time holds the timestamp of the last item included in the metadata calculation.""" @property def count(self) -> google.protobuf.wrappers_pb2.UInt32Value: """Count is the number of items present under the conditions of the request.""" - pass - def __init__(self, + + def __init__( + self, *, - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - count: typing.Optional[google.protobuf.wrappers_pb2.UInt32Value] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["count",b"count","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["count",b"count","time",b"time","type",b"type"]) -> None: ... + count: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["count", b"count", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["count", b"count", "time", b"time", "type", b"type"]) -> None: ... + global___MetaResponse = MetaResponse +@typing.final class AccountRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -56,24 +64,28 @@ class AccountRequest(google.protobuf.message.Message): """Key uniquely identifies a Account instance to retrieve. This value must be populated. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the time for which you are interested in the data. If no time is given, the server will use the time at which it makes the request. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.serviceaccount.v1.serviceaccount_pb2.AccountKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.serviceaccount.v1.serviceaccount_pb2.AccountKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___AccountRequest = AccountRequest +@typing.final class AccountResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -83,24 +95,28 @@ class AccountResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time carries the (UTC) timestamp of the last-modification of the Account instance in this response. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.serviceaccount.v1.serviceaccount_pb2.Account] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.serviceaccount.v1.serviceaccount_pb2.Account | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___AccountResponse = AccountResponse +@typing.final class AccountSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -110,18 +126,22 @@ class AccountSomeRequest(google.protobuf.message.Message): """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. """ - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.serviceaccount.v1.serviceaccount_pb2.AccountKey]] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys","time",b"time"]) -> None: ... + keys: collections.abc.Iterable[arista.serviceaccount.v1.serviceaccount_pb2.AccountKey] | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys", "time", b"time"]) -> None: ... + global___AccountSomeRequest = AccountSomeRequest +@typing.final class AccountSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -132,27 +152,31 @@ class AccountSomeResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """Error is an optional field. It should be filled when there is an error in the GetSome process. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.serviceaccount.v1.serviceaccount_pb2.Account] = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> None: ... + value: arista.serviceaccount.v1.serviceaccount_pb2.Account | None = ..., + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> None: ... + global___AccountSomeResponse = AccountSomeResponse +@typing.final class AccountStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -163,7 +187,7 @@ class AccountStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -182,51 +206,58 @@ class AccountStreamRequest(google.protobuf.message.Message): This field is not allowed in the Subscribe RPC. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.serviceaccount.v1.serviceaccount_pb2.Account]] = ..., - time: typing.Optional[arista.time.time_pb2.TimeBounds] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.serviceaccount.v1.serviceaccount_pb2.Account] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___AccountStreamRequest = AccountStreamRequest +@typing.final class AccountStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int + type: arista.subscriptions.subscriptions_pb2.Operation.ValueType + """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. + """ @property def value(self) -> arista.serviceaccount.v1.serviceaccount_pb2.Account: """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. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time holds the timestamp of this Account's last modification.""" - pass - type: arista.subscriptions.subscriptions_pb2.Operation.ValueType - """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. - """ - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.serviceaccount.v1.serviceaccount_pb2.Account] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + value: arista.serviceaccount.v1.serviceaccount_pb2.Account | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "type", b"type", "value", b"value"]) -> None: ... + global___AccountStreamResponse = AccountStreamResponse +@typing.final class AccountConfigRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -234,24 +265,28 @@ class AccountConfigRequest(google.protobuf.message.Message): """Key uniquely identifies a AccountConfig instance to retrieve. This value must be populated. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the time for which you are interested in the data. If no time is given, the server will use the time at which it makes the request. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.serviceaccount.v1.serviceaccount_pb2.AccountKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.serviceaccount.v1.serviceaccount_pb2.AccountKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___AccountConfigRequest = AccountConfigRequest +@typing.final class AccountConfigResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -261,24 +296,28 @@ class AccountConfigResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time carries the (UTC) timestamp of the last-modification of the AccountConfig instance in this response. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.serviceaccount.v1.serviceaccount_pb2.AccountConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.serviceaccount.v1.serviceaccount_pb2.AccountConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___AccountConfigResponse = AccountConfigResponse +@typing.final class AccountConfigSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -288,18 +327,22 @@ class AccountConfigSomeRequest(google.protobuf.message.Message): """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. """ - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.serviceaccount.v1.serviceaccount_pb2.AccountKey]] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys","time",b"time"]) -> None: ... + keys: collections.abc.Iterable[arista.serviceaccount.v1.serviceaccount_pb2.AccountKey] | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys", "time", b"time"]) -> None: ... + global___AccountConfigSomeRequest = AccountConfigSomeRequest +@typing.final class AccountConfigSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -310,27 +353,31 @@ class AccountConfigSomeResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """Error is an optional field. It should be filled when there is an error in the GetSome process. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.serviceaccount.v1.serviceaccount_pb2.AccountConfig] = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> None: ... + value: arista.serviceaccount.v1.serviceaccount_pb2.AccountConfig | None = ..., + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> None: ... + global___AccountConfigSomeResponse = AccountConfigSomeResponse +@typing.final class AccountConfigStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -341,7 +388,7 @@ class AccountConfigStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -360,68 +407,79 @@ class AccountConfigStreamRequest(google.protobuf.message.Message): This field is not allowed in the Subscribe RPC. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.serviceaccount.v1.serviceaccount_pb2.AccountConfig]] = ..., - time: typing.Optional[arista.time.time_pb2.TimeBounds] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.serviceaccount.v1.serviceaccount_pb2.AccountConfig] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___AccountConfigStreamRequest = AccountConfigStreamRequest +@typing.final class AccountConfigStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int + type: arista.subscriptions.subscriptions_pb2.Operation.ValueType + """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. + """ @property def value(self) -> arista.serviceaccount.v1.serviceaccount_pb2.AccountConfig: """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. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time holds the timestamp of this AccountConfig's last modification.""" - pass - type: arista.subscriptions.subscriptions_pb2.Operation.ValueType - """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. - """ - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.serviceaccount.v1.serviceaccount_pb2.AccountConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + value: arista.serviceaccount.v1.serviceaccount_pb2.AccountConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "type", b"type", "value", b"value"]) -> None: ... + global___AccountConfigStreamResponse = AccountConfigStreamResponse +@typing.final class AccountConfigSetRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int @property def value(self) -> arista.serviceaccount.v1.serviceaccount_pb2.AccountConfig: """AccountConfig carries the value to set into the datastore. See the documentation on the AccountConfig struct for which fields are required. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.serviceaccount.v1.serviceaccount_pb2.AccountConfig] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["value",b"value"]) -> None: ... + value: arista.serviceaccount.v1.serviceaccount_pb2.AccountConfig | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["value", b"value"]) -> None: ... + global___AccountConfigSetRequest = AccountConfigSetRequest +@typing.final class AccountConfigSetResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -429,7 +487,7 @@ class AccountConfigSetResponse(google.protobuf.message.Message): """Value carries all the values given in the AccountConfigSetRequest as well as any server-generated values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp at which the system recognizes the @@ -438,18 +496,22 @@ class AccountConfigSetResponse(google.protobuf.message.Message): - it is after the time the request was received - a time-ranged query with StartTime==CreatedAt will include this instance. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.serviceaccount.v1.serviceaccount_pb2.AccountConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.serviceaccount.v1.serviceaccount_pb2.AccountConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___AccountConfigSetResponse = AccountConfigSetResponse +@typing.final class AccountConfigSetSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.serviceaccount.v1.serviceaccount_pb2.AccountConfig]: @@ -460,55 +522,67 @@ class AccountConfigSetSomeRequest(google.protobuf.message.Message): If this error occurs you must reduce the number of values sent. See gRPC "maximum message size" documentation for more information. """ - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[arista.serviceaccount.v1.serviceaccount_pb2.AccountConfig]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[arista.serviceaccount.v1.serviceaccount_pb2.AccountConfig] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___AccountConfigSetSomeRequest = AccountConfigSetSomeRequest +@typing.final class AccountConfigSetSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int + error: builtins.str @property def key(self) -> arista.serviceaccount.v1.serviceaccount_pb2.AccountKey: ... - error: typing.Text - def __init__(self, + def __init__( + self, *, - key: typing.Optional[arista.serviceaccount.v1.serviceaccount_pb2.AccountKey] = ..., - error: typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key"]) -> None: ... + key: arista.serviceaccount.v1.serviceaccount_pb2.AccountKey | None = ..., + error: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key"]) -> None: ... + global___AccountConfigSetSomeResponse = AccountConfigSetSomeResponse +@typing.final class AccountConfigDeleteRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int @property def key(self) -> arista.serviceaccount.v1.serviceaccount_pb2.AccountKey: """Key indicates which AccountConfig instance to remove. This field must always be set. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.serviceaccount.v1.serviceaccount_pb2.AccountKey] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key"]) -> None: ... + key: arista.serviceaccount.v1.serviceaccount_pb2.AccountKey | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key"]) -> None: ... + global___AccountConfigDeleteRequest = AccountConfigDeleteRequest +@typing.final class AccountConfigDeleteResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property def key(self) -> arista.serviceaccount.v1.serviceaccount_pb2.AccountKey: """Key echoes back the key of the deleted AccountConfig instance.""" - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp at which the system recognizes the @@ -517,49 +591,62 @@ class AccountConfigDeleteResponse(google.protobuf.message.Message): - it is after the time the request was received - a time-ranged query with StartTime==DeletedAt will not include this instance. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.serviceaccount.v1.serviceaccount_pb2.AccountKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.serviceaccount.v1.serviceaccount_pb2.AccountKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___AccountConfigDeleteResponse = AccountConfigDeleteResponse +@typing.final class AccountConfigDeleteSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int @property def keys(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.serviceaccount.v1.serviceaccount_pb2.AccountKey]: """key contains a list of AccountConfig keys to delete""" - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.serviceaccount.v1.serviceaccount_pb2.AccountKey]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys"]) -> None: ... + keys: collections.abc.Iterable[arista.serviceaccount.v1.serviceaccount_pb2.AccountKey] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys"]) -> None: ... + global___AccountConfigDeleteSomeRequest = AccountConfigDeleteSomeRequest +@typing.final class AccountConfigDeleteSomeResponse(google.protobuf.message.Message): """AccountConfigDeleteSomeResponse is only sent when there is an error.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int + error: builtins.str @property def key(self) -> arista.serviceaccount.v1.serviceaccount_pb2.AccountKey: ... - error: typing.Text - def __init__(self, + def __init__( + self, *, - key: typing.Optional[arista.serviceaccount.v1.serviceaccount_pb2.AccountKey] = ..., - error: typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key"]) -> None: ... + key: arista.serviceaccount.v1.serviceaccount_pb2.AccountKey | None = ..., + error: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key"]) -> None: ... + global___AccountConfigDeleteSomeResponse = AccountConfigDeleteSomeResponse +@typing.final class AccountConfigDeleteAllRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int @property def partial_eq_filter(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.serviceaccount.v1.serviceaccount_pb2.AccountConfig]: @@ -567,16 +654,20 @@ class AccountConfigDeleteAllRequest(google.protobuf.message.Message): This requires all provided fields to be equal to the response. A filtered DeleteAll will use GetAll with filter to find things to delete. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.serviceaccount.v1.serviceaccount_pb2.AccountConfig]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.serviceaccount.v1.serviceaccount_pb2.AccountConfig] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter"]) -> None: ... + global___AccountConfigDeleteAllRequest = AccountConfigDeleteAllRequest +@typing.final class AccountConfigDeleteAllResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TYPE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int KEY_FIELD_NUMBER: builtins.int @@ -585,32 +676,35 @@ class AccountConfigDeleteAllResponse(google.protobuf.message.Message): """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: """This indicates the error message from the delete failure.""" - pass + @property def key(self) -> arista.serviceaccount.v1.serviceaccount_pb2.AccountKey: """This is the key of the AccountConfig instance that failed to be deleted.""" - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp when the key was being deleted.""" - pass - def __init__(self, + + def __init__( + self, *, type: fmp.deletes_pb2.DeleteError.ValueType = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - key: typing.Optional[arista.serviceaccount.v1.serviceaccount_pb2.AccountKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key","time",b"time","type",b"type"]) -> None: ... + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + key: arista.serviceaccount.v1.serviceaccount_pb2.AccountKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key", "time", b"time", "type", b"type"]) -> None: ... + global___AccountConfigDeleteAllResponse = AccountConfigDeleteAllResponse +@typing.final class TokenRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -618,24 +712,28 @@ class TokenRequest(google.protobuf.message.Message): """Key uniquely identifies a Token instance to retrieve. This value must be populated. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the time for which you are interested in the data. If no time is given, the server will use the time at which it makes the request. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.serviceaccount.v1.serviceaccount_pb2.TokenKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.serviceaccount.v1.serviceaccount_pb2.TokenKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___TokenRequest = TokenRequest +@typing.final class TokenResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -645,24 +743,28 @@ class TokenResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time carries the (UTC) timestamp of the last-modification of the Token instance in this response. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.serviceaccount.v1.serviceaccount_pb2.Token] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.serviceaccount.v1.serviceaccount_pb2.Token | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___TokenResponse = TokenResponse +@typing.final class TokenSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -672,18 +774,22 @@ class TokenSomeRequest(google.protobuf.message.Message): """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. """ - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.serviceaccount.v1.serviceaccount_pb2.TokenKey]] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys","time",b"time"]) -> None: ... + keys: collections.abc.Iterable[arista.serviceaccount.v1.serviceaccount_pb2.TokenKey] | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys", "time", b"time"]) -> None: ... + global___TokenSomeRequest = TokenSomeRequest +@typing.final class TokenSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -694,27 +800,31 @@ class TokenSomeResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """Error is an optional field. It should be filled when there is an error in the GetSome process. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.serviceaccount.v1.serviceaccount_pb2.Token] = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> None: ... + value: arista.serviceaccount.v1.serviceaccount_pb2.Token | None = ..., + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> None: ... + global___TokenSomeResponse = TokenSomeResponse +@typing.final class TokenStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -725,7 +835,7 @@ class TokenStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -744,51 +854,58 @@ class TokenStreamRequest(google.protobuf.message.Message): This field is not allowed in the Subscribe RPC. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.serviceaccount.v1.serviceaccount_pb2.Token]] = ..., - time: typing.Optional[arista.time.time_pb2.TimeBounds] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.serviceaccount.v1.serviceaccount_pb2.Token] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___TokenStreamRequest = TokenStreamRequest +@typing.final class TokenStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int + type: arista.subscriptions.subscriptions_pb2.Operation.ValueType + """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. + """ @property def value(self) -> arista.serviceaccount.v1.serviceaccount_pb2.Token: """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. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time holds the timestamp of this Token's last modification.""" - pass - type: arista.subscriptions.subscriptions_pb2.Operation.ValueType - """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. - """ - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.serviceaccount.v1.serviceaccount_pb2.Token] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + value: arista.serviceaccount.v1.serviceaccount_pb2.Token | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "type", b"type", "value", b"value"]) -> None: ... + global___TokenStreamResponse = TokenStreamResponse +@typing.final class TokenConfigRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -796,24 +913,28 @@ class TokenConfigRequest(google.protobuf.message.Message): """Key uniquely identifies a TokenConfig instance to retrieve. This value must be populated. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the time for which you are interested in the data. If no time is given, the server will use the time at which it makes the request. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.serviceaccount.v1.serviceaccount_pb2.TokenKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.serviceaccount.v1.serviceaccount_pb2.TokenKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___TokenConfigRequest = TokenConfigRequest +@typing.final class TokenConfigResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -823,24 +944,28 @@ class TokenConfigResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time carries the (UTC) timestamp of the last-modification of the TokenConfig instance in this response. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.serviceaccount.v1.serviceaccount_pb2.TokenConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.serviceaccount.v1.serviceaccount_pb2.TokenConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___TokenConfigResponse = TokenConfigResponse +@typing.final class TokenConfigSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -850,18 +975,22 @@ class TokenConfigSomeRequest(google.protobuf.message.Message): """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. """ - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.serviceaccount.v1.serviceaccount_pb2.TokenKey]] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys","time",b"time"]) -> None: ... + keys: collections.abc.Iterable[arista.serviceaccount.v1.serviceaccount_pb2.TokenKey] | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys", "time", b"time"]) -> None: ... + global___TokenConfigSomeRequest = TokenConfigSomeRequest +@typing.final class TokenConfigSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -872,27 +1001,31 @@ class TokenConfigSomeResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """Error is an optional field. It should be filled when there is an error in the GetSome process. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.serviceaccount.v1.serviceaccount_pb2.TokenConfig] = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> None: ... + value: arista.serviceaccount.v1.serviceaccount_pb2.TokenConfig | None = ..., + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> None: ... + global___TokenConfigSomeResponse = TokenConfigSomeResponse +@typing.final class TokenConfigStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -903,7 +1036,7 @@ class TokenConfigStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -922,68 +1055,79 @@ class TokenConfigStreamRequest(google.protobuf.message.Message): This field is not allowed in the Subscribe RPC. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.serviceaccount.v1.serviceaccount_pb2.TokenConfig]] = ..., - time: typing.Optional[arista.time.time_pb2.TimeBounds] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.serviceaccount.v1.serviceaccount_pb2.TokenConfig] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___TokenConfigStreamRequest = TokenConfigStreamRequest +@typing.final class TokenConfigStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int + type: arista.subscriptions.subscriptions_pb2.Operation.ValueType + """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. + """ @property def value(self) -> arista.serviceaccount.v1.serviceaccount_pb2.TokenConfig: """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. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time holds the timestamp of this TokenConfig's last modification.""" - pass - type: arista.subscriptions.subscriptions_pb2.Operation.ValueType - """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. - """ - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.serviceaccount.v1.serviceaccount_pb2.TokenConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + value: arista.serviceaccount.v1.serviceaccount_pb2.TokenConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "type", b"type", "value", b"value"]) -> None: ... + global___TokenConfigStreamResponse = TokenConfigStreamResponse +@typing.final class TokenConfigSetRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int @property def value(self) -> arista.serviceaccount.v1.serviceaccount_pb2.TokenConfig: """TokenConfig carries the value to set into the datastore. See the documentation on the TokenConfig struct for which fields are required. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.serviceaccount.v1.serviceaccount_pb2.TokenConfig] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["value",b"value"]) -> None: ... + value: arista.serviceaccount.v1.serviceaccount_pb2.TokenConfig | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["value", b"value"]) -> None: ... + global___TokenConfigSetRequest = TokenConfigSetRequest +@typing.final class TokenConfigSetResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -991,7 +1135,7 @@ class TokenConfigSetResponse(google.protobuf.message.Message): """Value carries all the values given in the TokenConfigSetRequest as well as any server-generated values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp at which the system recognizes the @@ -1000,18 +1144,22 @@ class TokenConfigSetResponse(google.protobuf.message.Message): - it is after the time the request was received - a time-ranged query with StartTime==CreatedAt will include this instance. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.serviceaccount.v1.serviceaccount_pb2.TokenConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.serviceaccount.v1.serviceaccount_pb2.TokenConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___TokenConfigSetResponse = TokenConfigSetResponse +@typing.final class TokenConfigSetSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.serviceaccount.v1.serviceaccount_pb2.TokenConfig]: @@ -1022,55 +1170,67 @@ class TokenConfigSetSomeRequest(google.protobuf.message.Message): If this error occurs you must reduce the number of values sent. See gRPC "maximum message size" documentation for more information. """ - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[arista.serviceaccount.v1.serviceaccount_pb2.TokenConfig]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[arista.serviceaccount.v1.serviceaccount_pb2.TokenConfig] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___TokenConfigSetSomeRequest = TokenConfigSetSomeRequest +@typing.final class TokenConfigSetSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int + error: builtins.str @property def key(self) -> arista.serviceaccount.v1.serviceaccount_pb2.TokenKey: ... - error: typing.Text - def __init__(self, + def __init__( + self, *, - key: typing.Optional[arista.serviceaccount.v1.serviceaccount_pb2.TokenKey] = ..., - error: typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key"]) -> None: ... + key: arista.serviceaccount.v1.serviceaccount_pb2.TokenKey | None = ..., + error: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key"]) -> None: ... + global___TokenConfigSetSomeResponse = TokenConfigSetSomeResponse +@typing.final class TokenConfigDeleteRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int @property def key(self) -> arista.serviceaccount.v1.serviceaccount_pb2.TokenKey: """Key indicates which TokenConfig instance to remove. This field must always be set. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.serviceaccount.v1.serviceaccount_pb2.TokenKey] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key"]) -> None: ... + key: arista.serviceaccount.v1.serviceaccount_pb2.TokenKey | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key"]) -> None: ... + global___TokenConfigDeleteRequest = TokenConfigDeleteRequest +@typing.final class TokenConfigDeleteResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property def key(self) -> arista.serviceaccount.v1.serviceaccount_pb2.TokenKey: """Key echoes back the key of the deleted TokenConfig instance.""" - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp at which the system recognizes the @@ -1079,49 +1239,62 @@ class TokenConfigDeleteResponse(google.protobuf.message.Message): - it is after the time the request was received - a time-ranged query with StartTime==DeletedAt will not include this instance. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.serviceaccount.v1.serviceaccount_pb2.TokenKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.serviceaccount.v1.serviceaccount_pb2.TokenKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___TokenConfigDeleteResponse = TokenConfigDeleteResponse +@typing.final class TokenConfigDeleteSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int @property def keys(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.serviceaccount.v1.serviceaccount_pb2.TokenKey]: """key contains a list of TokenConfig keys to delete""" - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.serviceaccount.v1.serviceaccount_pb2.TokenKey]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys"]) -> None: ... + keys: collections.abc.Iterable[arista.serviceaccount.v1.serviceaccount_pb2.TokenKey] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys"]) -> None: ... + global___TokenConfigDeleteSomeRequest = TokenConfigDeleteSomeRequest +@typing.final class TokenConfigDeleteSomeResponse(google.protobuf.message.Message): """TokenConfigDeleteSomeResponse is only sent when there is an error.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int + error: builtins.str @property def key(self) -> arista.serviceaccount.v1.serviceaccount_pb2.TokenKey: ... - error: typing.Text - def __init__(self, + def __init__( + self, *, - key: typing.Optional[arista.serviceaccount.v1.serviceaccount_pb2.TokenKey] = ..., - error: typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key"]) -> None: ... + key: arista.serviceaccount.v1.serviceaccount_pb2.TokenKey | None = ..., + error: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key"]) -> None: ... + global___TokenConfigDeleteSomeResponse = TokenConfigDeleteSomeResponse +@typing.final class TokenConfigDeleteAllRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int @property def partial_eq_filter(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.serviceaccount.v1.serviceaccount_pb2.TokenConfig]: @@ -1129,16 +1302,20 @@ class TokenConfigDeleteAllRequest(google.protobuf.message.Message): This requires all provided fields to be equal to the response. A filtered DeleteAll will use GetAll with filter to find things to delete. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.serviceaccount.v1.serviceaccount_pb2.TokenConfig]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.serviceaccount.v1.serviceaccount_pb2.TokenConfig] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter"]) -> None: ... + global___TokenConfigDeleteAllRequest = TokenConfigDeleteAllRequest +@typing.final class TokenConfigDeleteAllResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TYPE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int KEY_FIELD_NUMBER: builtins.int @@ -1147,26 +1324,27 @@ class TokenConfigDeleteAllResponse(google.protobuf.message.Message): """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: """This indicates the error message from the delete failure.""" - pass + @property def key(self) -> arista.serviceaccount.v1.serviceaccount_pb2.TokenKey: """This is the key of the TokenConfig instance that failed to be deleted.""" - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp when the key was being deleted.""" - pass - def __init__(self, + + def __init__( + self, *, type: fmp.deletes_pb2.DeleteError.ValueType = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - key: typing.Optional[arista.serviceaccount.v1.serviceaccount_pb2.TokenKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key","time",b"time","type",b"type"]) -> None: ... + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + key: arista.serviceaccount.v1.serviceaccount_pb2.TokenKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key", "time", b"time", "type", b"type"]) -> None: ... + global___TokenConfigDeleteAllResponse = TokenConfigDeleteAllResponse diff --git a/arista/studio/v1/services/gen_pb2.pyi b/arista/studio/v1/services/gen_pb2.pyi index 8434f4e..52e5ca6 100644 --- a/arista/studio/v1/services/gen_pb2.pyi +++ b/arista/studio/v1/services/gen_pb2.pyi @@ -1,11 +1,15 @@ """ @generated by mypy-protobuf. Do not edit manually! isort:skip_file + +Code generated by boomtown. DO NOT EDIT. """ + import arista.studio.v1.studio_pb2 import arista.subscriptions.subscriptions_pb2 import arista.time.time_pb2 import builtins +import collections.abc import fmp.deletes_pb2 import google.protobuf.descriptor import google.protobuf.internal.containers @@ -13,42 +17,46 @@ import google.protobuf.message import google.protobuf.timestamp_pb2 import google.protobuf.wrappers_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class MetaResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int COUNT_FIELD_NUMBER: builtins.int - @property - def time(self) -> google.protobuf.timestamp_pb2.Timestamp: - """Time holds the timestamp of the last item included in the metadata calculation.""" - pass type: arista.subscriptions.subscriptions_pb2.Operation.ValueType """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. """ + @property + def time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """Time holds the timestamp of the last item included in the metadata calculation.""" @property def count(self) -> google.protobuf.wrappers_pb2.UInt32Value: """Count is the number of items present under the conditions of the request.""" - pass - def __init__(self, + + def __init__( + self, *, - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - count: typing.Optional[google.protobuf.wrappers_pb2.UInt32Value] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["count",b"count","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["count",b"count","time",b"time","type",b"type"]) -> None: ... + count: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["count", b"count", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["count", b"count", "time", b"time", "type", b"type"]) -> None: ... + global___MetaResponse = MetaResponse +@typing.final class AssignedTagsRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -56,24 +64,28 @@ class AssignedTagsRequest(google.protobuf.message.Message): """Key uniquely identifies a AssignedTags instance to retrieve. This value must be populated. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the time for which you are interested in the data. If no time is given, the server will use the time at which it makes the request. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.studio.v1.studio_pb2.StudioKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.studio.v1.studio_pb2.StudioKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___AssignedTagsRequest = AssignedTagsRequest +@typing.final class AssignedTagsResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -83,24 +95,28 @@ class AssignedTagsResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time carries the (UTC) timestamp of the last-modification of the AssignedTags instance in this response. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.studio.v1.studio_pb2.AssignedTags] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.studio.v1.studio_pb2.AssignedTags | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___AssignedTagsResponse = AssignedTagsResponse +@typing.final class AssignedTagsSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -110,18 +126,22 @@ class AssignedTagsSomeRequest(google.protobuf.message.Message): """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. """ - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.studio.v1.studio_pb2.StudioKey]] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys","time",b"time"]) -> None: ... + keys: collections.abc.Iterable[arista.studio.v1.studio_pb2.StudioKey] | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys", "time", b"time"]) -> None: ... + global___AssignedTagsSomeRequest = AssignedTagsSomeRequest +@typing.final class AssignedTagsSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -132,27 +152,31 @@ class AssignedTagsSomeResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """Error is an optional field. It should be filled when there is an error in the GetSome process. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - def __init__(self, - *, - value: typing.Optional[arista.studio.v1.studio_pb2.AssignedTags] = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> None: ... + def __init__( + self, + *, + value: arista.studio.v1.studio_pb2.AssignedTags | None = ..., + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> None: ... + global___AssignedTagsSomeResponse = AssignedTagsSomeResponse +@typing.final class AssignedTagsStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -163,7 +187,7 @@ class AssignedTagsStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -182,51 +206,58 @@ class AssignedTagsStreamRequest(google.protobuf.message.Message): This field is not allowed in the Subscribe RPC. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.studio.v1.studio_pb2.AssignedTags]] = ..., - time: typing.Optional[arista.time.time_pb2.TimeBounds] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.studio.v1.studio_pb2.AssignedTags] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___AssignedTagsStreamRequest = AssignedTagsStreamRequest +@typing.final class AssignedTagsStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int + type: arista.subscriptions.subscriptions_pb2.Operation.ValueType + """Operation indicates how the AssignedTags 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. + """ @property def value(self) -> arista.studio.v1.studio_pb2.AssignedTags: """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. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time holds the timestamp of this AssignedTags's last modification.""" - pass - type: arista.subscriptions.subscriptions_pb2.Operation.ValueType - """Operation indicates how the AssignedTags 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. - """ - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.studio.v1.studio_pb2.AssignedTags] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + value: arista.studio.v1.studio_pb2.AssignedTags | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "type", b"type", "value", b"value"]) -> None: ... + global___AssignedTagsStreamResponse = AssignedTagsStreamResponse +@typing.final class AssignedTagsBatchedStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int MAX_MESSAGES_FIELD_NUMBER: builtins.int @@ -238,7 +269,7 @@ class AssignedTagsBatchedStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -257,7 +288,7 @@ class AssignedTagsBatchedStreamRequest(google.protobuf.message.Message): 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. @@ -265,19 +296,23 @@ class AssignedTagsBatchedStreamRequest(google.protobuf.message.Message): 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, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.studio.v1.studio_pb2.AssignedTags]] = ..., - 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","partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.studio.v1.studio_pb2.AssignedTags] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + max_messages: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["max_messages", b"max_messages", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["max_messages", b"max_messages", "partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___AssignedTagsBatchedStreamRequest = AssignedTagsBatchedStreamRequest +@typing.final class AssignedTagsBatchedStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + RESPONSES_FIELD_NUMBER: builtins.int @property def responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___AssignedTagsStreamResponse]: @@ -285,16 +320,20 @@ class AssignedTagsBatchedStreamResponse(google.protobuf.message.Message): The length of this structure is guaranteed to be between (inclusive) 1 and min(req.max_messages, INTERNAL_BATCH_LIMIT). """ - pass - def __init__(self, + + def __init__( + self, *, - responses: typing.Optional[typing.Iterable[global___AssignedTagsStreamResponse]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["responses",b"responses"]) -> None: ... + responses: collections.abc.Iterable[global___AssignedTagsStreamResponse] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["responses", b"responses"]) -> None: ... + global___AssignedTagsBatchedStreamResponse = AssignedTagsBatchedStreamResponse +@typing.final class AssignedTagsConfigRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -302,24 +341,28 @@ class AssignedTagsConfigRequest(google.protobuf.message.Message): """Key uniquely identifies a AssignedTagsConfig instance to retrieve. This value must be populated. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the time for which you are interested in the data. If no time is given, the server will use the time at which it makes the request. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.studio.v1.studio_pb2.StudioKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.studio.v1.studio_pb2.StudioKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___AssignedTagsConfigRequest = AssignedTagsConfigRequest +@typing.final class AssignedTagsConfigResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -329,24 +372,28 @@ class AssignedTagsConfigResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time carries the (UTC) timestamp of the last-modification of the AssignedTagsConfig instance in this response. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.studio.v1.studio_pb2.AssignedTagsConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.studio.v1.studio_pb2.AssignedTagsConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___AssignedTagsConfigResponse = AssignedTagsConfigResponse +@typing.final class AssignedTagsConfigSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -356,18 +403,22 @@ class AssignedTagsConfigSomeRequest(google.protobuf.message.Message): """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. """ - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.studio.v1.studio_pb2.StudioKey]] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys","time",b"time"]) -> None: ... + keys: collections.abc.Iterable[arista.studio.v1.studio_pb2.StudioKey] | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys", "time", b"time"]) -> None: ... + global___AssignedTagsConfigSomeRequest = AssignedTagsConfigSomeRequest +@typing.final class AssignedTagsConfigSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -378,27 +429,31 @@ class AssignedTagsConfigSomeResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """Error is an optional field. It should be filled when there is an error in the GetSome process. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - def __init__(self, - *, - value: typing.Optional[arista.studio.v1.studio_pb2.AssignedTagsConfig] = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> None: ... + def __init__( + self, + *, + value: arista.studio.v1.studio_pb2.AssignedTagsConfig | None = ..., + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> None: ... + global___AssignedTagsConfigSomeResponse = AssignedTagsConfigSomeResponse +@typing.final class AssignedTagsConfigStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -409,7 +464,7 @@ class AssignedTagsConfigStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -428,51 +483,58 @@ class AssignedTagsConfigStreamRequest(google.protobuf.message.Message): This field is not allowed in the Subscribe RPC. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.studio.v1.studio_pb2.AssignedTagsConfig]] = ..., - time: typing.Optional[arista.time.time_pb2.TimeBounds] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.studio.v1.studio_pb2.AssignedTagsConfig] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___AssignedTagsConfigStreamRequest = AssignedTagsConfigStreamRequest +@typing.final class AssignedTagsConfigStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int + type: arista.subscriptions.subscriptions_pb2.Operation.ValueType + """Operation indicates how the AssignedTagsConfig 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. + """ @property def value(self) -> arista.studio.v1.studio_pb2.AssignedTagsConfig: """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. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time holds the timestamp of this AssignedTagsConfig's last modification.""" - pass - type: arista.subscriptions.subscriptions_pb2.Operation.ValueType - """Operation indicates how the AssignedTagsConfig 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. - """ - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.studio.v1.studio_pb2.AssignedTagsConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + value: arista.studio.v1.studio_pb2.AssignedTagsConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "type", b"type", "value", b"value"]) -> None: ... + global___AssignedTagsConfigStreamResponse = AssignedTagsConfigStreamResponse +@typing.final class AssignedTagsConfigBatchedStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int MAX_MESSAGES_FIELD_NUMBER: builtins.int @@ -484,7 +546,7 @@ class AssignedTagsConfigBatchedStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -503,7 +565,7 @@ class AssignedTagsConfigBatchedStreamRequest(google.protobuf.message.Message): 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. @@ -511,19 +573,23 @@ class AssignedTagsConfigBatchedStreamRequest(google.protobuf.message.Message): 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, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.studio.v1.studio_pb2.AssignedTagsConfig]] = ..., - 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","partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.studio.v1.studio_pb2.AssignedTagsConfig] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + max_messages: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["max_messages", b"max_messages", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["max_messages", b"max_messages", "partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___AssignedTagsConfigBatchedStreamRequest = AssignedTagsConfigBatchedStreamRequest +@typing.final class AssignedTagsConfigBatchedStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + RESPONSES_FIELD_NUMBER: builtins.int @property def responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___AssignedTagsConfigStreamResponse]: @@ -531,33 +597,41 @@ class AssignedTagsConfigBatchedStreamResponse(google.protobuf.message.Message): The length of this structure is guaranteed to be between (inclusive) 1 and min(req.max_messages, INTERNAL_BATCH_LIMIT). """ - pass - def __init__(self, + + def __init__( + self, *, - responses: typing.Optional[typing.Iterable[global___AssignedTagsConfigStreamResponse]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["responses",b"responses"]) -> None: ... + responses: collections.abc.Iterable[global___AssignedTagsConfigStreamResponse] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["responses", b"responses"]) -> None: ... + global___AssignedTagsConfigBatchedStreamResponse = AssignedTagsConfigBatchedStreamResponse +@typing.final class AssignedTagsConfigSetRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int @property def value(self) -> arista.studio.v1.studio_pb2.AssignedTagsConfig: """AssignedTagsConfig carries the value to set into the datastore. See the documentation on the AssignedTagsConfig struct for which fields are required. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.studio.v1.studio_pb2.AssignedTagsConfig] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["value",b"value"]) -> None: ... + value: arista.studio.v1.studio_pb2.AssignedTagsConfig | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["value", b"value"]) -> None: ... + global___AssignedTagsConfigSetRequest = AssignedTagsConfigSetRequest +@typing.final class AssignedTagsConfigSetResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -565,7 +639,7 @@ class AssignedTagsConfigSetResponse(google.protobuf.message.Message): """Value carries all the values given in the AssignedTagsConfigSetRequest as well as any server-generated values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp at which the system recognizes the @@ -574,18 +648,22 @@ class AssignedTagsConfigSetResponse(google.protobuf.message.Message): - it is after the time the request was received - a time-ranged query with StartTime==CreatedAt will include this instance. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.studio.v1.studio_pb2.AssignedTagsConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.studio.v1.studio_pb2.AssignedTagsConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___AssignedTagsConfigSetResponse = AssignedTagsConfigSetResponse +@typing.final class AssignedTagsConfigSetSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.studio.v1.studio_pb2.AssignedTagsConfig]: @@ -596,55 +674,67 @@ class AssignedTagsConfigSetSomeRequest(google.protobuf.message.Message): If this error occurs you must reduce the number of values sent. See gRPC "maximum message size" documentation for more information. """ - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[arista.studio.v1.studio_pb2.AssignedTagsConfig]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[arista.studio.v1.studio_pb2.AssignedTagsConfig] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___AssignedTagsConfigSetSomeRequest = AssignedTagsConfigSetSomeRequest +@typing.final class AssignedTagsConfigSetSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int + error: builtins.str @property def key(self) -> arista.studio.v1.studio_pb2.StudioKey: ... - error: typing.Text - def __init__(self, - *, - key: typing.Optional[arista.studio.v1.studio_pb2.StudioKey] = ..., - error: typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key"]) -> None: ... + def __init__( + self, + *, + key: arista.studio.v1.studio_pb2.StudioKey | None = ..., + error: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key"]) -> None: ... + global___AssignedTagsConfigSetSomeResponse = AssignedTagsConfigSetSomeResponse +@typing.final class AssignedTagsConfigDeleteRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int @property def key(self) -> arista.studio.v1.studio_pb2.StudioKey: """Key indicates which AssignedTagsConfig instance to remove. This field must always be set. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.studio.v1.studio_pb2.StudioKey] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key"]) -> None: ... + key: arista.studio.v1.studio_pb2.StudioKey | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key"]) -> None: ... + global___AssignedTagsConfigDeleteRequest = AssignedTagsConfigDeleteRequest +@typing.final class AssignedTagsConfigDeleteResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property def key(self) -> arista.studio.v1.studio_pb2.StudioKey: """Key echoes back the key of the deleted AssignedTagsConfig instance.""" - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp at which the system recognizes the @@ -653,49 +743,62 @@ class AssignedTagsConfigDeleteResponse(google.protobuf.message.Message): - it is after the time the request was received - a time-ranged query with StartTime==DeletedAt will not include this instance. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.studio.v1.studio_pb2.StudioKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.studio.v1.studio_pb2.StudioKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___AssignedTagsConfigDeleteResponse = AssignedTagsConfigDeleteResponse +@typing.final class AssignedTagsConfigDeleteSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int @property def keys(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.studio.v1.studio_pb2.StudioKey]: """key contains a list of AssignedTagsConfig keys to delete""" - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.studio.v1.studio_pb2.StudioKey]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys"]) -> None: ... + keys: collections.abc.Iterable[arista.studio.v1.studio_pb2.StudioKey] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys"]) -> None: ... + global___AssignedTagsConfigDeleteSomeRequest = AssignedTagsConfigDeleteSomeRequest +@typing.final class AssignedTagsConfigDeleteSomeResponse(google.protobuf.message.Message): """AssignedTagsConfigDeleteSomeResponse is only sent when there is an error.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int + error: builtins.str @property def key(self) -> arista.studio.v1.studio_pb2.StudioKey: ... - error: typing.Text - def __init__(self, - *, - key: typing.Optional[arista.studio.v1.studio_pb2.StudioKey] = ..., - error: typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key"]) -> None: ... + def __init__( + self, + *, + key: arista.studio.v1.studio_pb2.StudioKey | None = ..., + error: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key"]) -> None: ... + global___AssignedTagsConfigDeleteSomeResponse = AssignedTagsConfigDeleteSomeResponse +@typing.final class AssignedTagsConfigDeleteAllRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int @property def partial_eq_filter(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.studio.v1.studio_pb2.AssignedTagsConfig]: @@ -703,16 +806,20 @@ class AssignedTagsConfigDeleteAllRequest(google.protobuf.message.Message): This requires all provided fields to be equal to the response. A filtered DeleteAll will use GetAll with filter to find things to delete. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.studio.v1.studio_pb2.AssignedTagsConfig]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.studio.v1.studio_pb2.AssignedTagsConfig] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter"]) -> None: ... + global___AssignedTagsConfigDeleteAllRequest = AssignedTagsConfigDeleteAllRequest +@typing.final class AssignedTagsConfigDeleteAllResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TYPE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int KEY_FIELD_NUMBER: builtins.int @@ -721,32 +828,35 @@ class AssignedTagsConfigDeleteAllResponse(google.protobuf.message.Message): """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: """This indicates the error message from the delete failure.""" - pass + @property def key(self) -> arista.studio.v1.studio_pb2.StudioKey: """This is the key of the AssignedTagsConfig instance that failed to be deleted.""" - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp when the key was being deleted.""" - pass - def __init__(self, + + def __init__( + self, *, type: fmp.deletes_pb2.DeleteError.ValueType = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - key: typing.Optional[arista.studio.v1.studio_pb2.StudioKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key","time",b"time","type",b"type"]) -> None: ... + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + key: arista.studio.v1.studio_pb2.StudioKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key", "time", b"time", "type", b"type"]) -> None: ... + global___AssignedTagsConfigDeleteAllResponse = AssignedTagsConfigDeleteAllResponse +@typing.final class AutofillActionRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -754,24 +864,28 @@ class AutofillActionRequest(google.protobuf.message.Message): """Key uniquely identifies a AutofillAction instance to retrieve. This value must be populated. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the time for which you are interested in the data. If no time is given, the server will use the time at which it makes the request. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.studio.v1.studio_pb2.AutofillActionKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.studio.v1.studio_pb2.AutofillActionKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___AutofillActionRequest = AutofillActionRequest +@typing.final class AutofillActionResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -781,24 +895,28 @@ class AutofillActionResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time carries the (UTC) timestamp of the last-modification of the AutofillAction instance in this response. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.studio.v1.studio_pb2.AutofillAction] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.studio.v1.studio_pb2.AutofillAction | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___AutofillActionResponse = AutofillActionResponse +@typing.final class AutofillActionSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -808,18 +926,22 @@ class AutofillActionSomeRequest(google.protobuf.message.Message): """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. """ - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.studio.v1.studio_pb2.AutofillActionKey]] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys","time",b"time"]) -> None: ... + keys: collections.abc.Iterable[arista.studio.v1.studio_pb2.AutofillActionKey] | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys", "time", b"time"]) -> None: ... + global___AutofillActionSomeRequest = AutofillActionSomeRequest +@typing.final class AutofillActionSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -830,27 +952,31 @@ class AutofillActionSomeResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """Error is an optional field. It should be filled when there is an error in the GetSome process. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - def __init__(self, - *, - value: typing.Optional[arista.studio.v1.studio_pb2.AutofillAction] = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> None: ... + def __init__( + self, + *, + value: arista.studio.v1.studio_pb2.AutofillAction | None = ..., + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> None: ... + global___AutofillActionSomeResponse = AutofillActionSomeResponse +@typing.final class AutofillActionStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -861,7 +987,7 @@ class AutofillActionStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -880,51 +1006,58 @@ class AutofillActionStreamRequest(google.protobuf.message.Message): This field is not allowed in the Subscribe RPC. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.studio.v1.studio_pb2.AutofillAction]] = ..., - time: typing.Optional[arista.time.time_pb2.TimeBounds] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.studio.v1.studio_pb2.AutofillAction] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___AutofillActionStreamRequest = AutofillActionStreamRequest +@typing.final class AutofillActionStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int + type: arista.subscriptions.subscriptions_pb2.Operation.ValueType + """Operation indicates how the AutofillAction 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. + """ @property def value(self) -> arista.studio.v1.studio_pb2.AutofillAction: """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. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time holds the timestamp of this AutofillAction's last modification.""" - pass - type: arista.subscriptions.subscriptions_pb2.Operation.ValueType - """Operation indicates how the AutofillAction 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. - """ - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.studio.v1.studio_pb2.AutofillAction] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + value: arista.studio.v1.studio_pb2.AutofillAction | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "type", b"type", "value", b"value"]) -> None: ... + global___AutofillActionStreamResponse = AutofillActionStreamResponse +@typing.final class AutofillActionBatchedStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int MAX_MESSAGES_FIELD_NUMBER: builtins.int @@ -936,7 +1069,7 @@ class AutofillActionBatchedStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -955,7 +1088,7 @@ class AutofillActionBatchedStreamRequest(google.protobuf.message.Message): 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. @@ -963,19 +1096,23 @@ class AutofillActionBatchedStreamRequest(google.protobuf.message.Message): 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, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.studio.v1.studio_pb2.AutofillAction]] = ..., - 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","partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.studio.v1.studio_pb2.AutofillAction] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + max_messages: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["max_messages", b"max_messages", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["max_messages", b"max_messages", "partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___AutofillActionBatchedStreamRequest = AutofillActionBatchedStreamRequest +@typing.final class AutofillActionBatchedStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + RESPONSES_FIELD_NUMBER: builtins.int @property def responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___AutofillActionStreamResponse]: @@ -983,16 +1120,20 @@ class AutofillActionBatchedStreamResponse(google.protobuf.message.Message): The length of this structure is guaranteed to be between (inclusive) 1 and min(req.max_messages, INTERNAL_BATCH_LIMIT). """ - pass - def __init__(self, + + def __init__( + self, *, - responses: typing.Optional[typing.Iterable[global___AutofillActionStreamResponse]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["responses",b"responses"]) -> None: ... + responses: collections.abc.Iterable[global___AutofillActionStreamResponse] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["responses", b"responses"]) -> None: ... + global___AutofillActionBatchedStreamResponse = AutofillActionBatchedStreamResponse +@typing.final class AutofillActionConfigRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -1000,24 +1141,28 @@ class AutofillActionConfigRequest(google.protobuf.message.Message): """Key uniquely identifies a AutofillActionConfig instance to retrieve. This value must be populated. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the time for which you are interested in the data. If no time is given, the server will use the time at which it makes the request. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.studio.v1.studio_pb2.AutofillActionKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.studio.v1.studio_pb2.AutofillActionKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___AutofillActionConfigRequest = AutofillActionConfigRequest +@typing.final class AutofillActionConfigResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -1027,24 +1172,28 @@ class AutofillActionConfigResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time carries the (UTC) timestamp of the last-modification of the AutofillActionConfig instance in this response. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.studio.v1.studio_pb2.AutofillActionConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.studio.v1.studio_pb2.AutofillActionConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___AutofillActionConfigResponse = AutofillActionConfigResponse +@typing.final class AutofillActionConfigSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -1054,18 +1203,22 @@ class AutofillActionConfigSomeRequest(google.protobuf.message.Message): """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. """ - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.studio.v1.studio_pb2.AutofillActionKey]] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys","time",b"time"]) -> None: ... + keys: collections.abc.Iterable[arista.studio.v1.studio_pb2.AutofillActionKey] | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys", "time", b"time"]) -> None: ... + global___AutofillActionConfigSomeRequest = AutofillActionConfigSomeRequest +@typing.final class AutofillActionConfigSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -1076,27 +1229,31 @@ class AutofillActionConfigSomeResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """Error is an optional field. It should be filled when there is an error in the GetSome process. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - def __init__(self, - *, - value: typing.Optional[arista.studio.v1.studio_pb2.AutofillActionConfig] = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> None: ... + def __init__( + self, + *, + value: arista.studio.v1.studio_pb2.AutofillActionConfig | None = ..., + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> None: ... + global___AutofillActionConfigSomeResponse = AutofillActionConfigSomeResponse +@typing.final class AutofillActionConfigStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -1107,7 +1264,7 @@ class AutofillActionConfigStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -1126,51 +1283,58 @@ class AutofillActionConfigStreamRequest(google.protobuf.message.Message): This field is not allowed in the Subscribe RPC. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.studio.v1.studio_pb2.AutofillActionConfig]] = ..., - time: typing.Optional[arista.time.time_pb2.TimeBounds] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.studio.v1.studio_pb2.AutofillActionConfig] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___AutofillActionConfigStreamRequest = AutofillActionConfigStreamRequest +@typing.final class AutofillActionConfigStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int + type: arista.subscriptions.subscriptions_pb2.Operation.ValueType + """Operation indicates how the AutofillActionConfig 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. + """ @property def value(self) -> arista.studio.v1.studio_pb2.AutofillActionConfig: """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. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time holds the timestamp of this AutofillActionConfig's last modification.""" - pass - type: arista.subscriptions.subscriptions_pb2.Operation.ValueType - """Operation indicates how the AutofillActionConfig 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. - """ - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.studio.v1.studio_pb2.AutofillActionConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + value: arista.studio.v1.studio_pb2.AutofillActionConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "type", b"type", "value", b"value"]) -> None: ... + global___AutofillActionConfigStreamResponse = AutofillActionConfigStreamResponse +@typing.final class AutofillActionConfigBatchedStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int MAX_MESSAGES_FIELD_NUMBER: builtins.int @@ -1182,7 +1346,7 @@ class AutofillActionConfigBatchedStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -1201,7 +1365,7 @@ class AutofillActionConfigBatchedStreamRequest(google.protobuf.message.Message): 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. @@ -1209,19 +1373,23 @@ class AutofillActionConfigBatchedStreamRequest(google.protobuf.message.Message): 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, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.studio.v1.studio_pb2.AutofillActionConfig]] = ..., - 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","partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.studio.v1.studio_pb2.AutofillActionConfig] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + max_messages: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["max_messages", b"max_messages", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["max_messages", b"max_messages", "partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___AutofillActionConfigBatchedStreamRequest = AutofillActionConfigBatchedStreamRequest +@typing.final class AutofillActionConfigBatchedStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + RESPONSES_FIELD_NUMBER: builtins.int @property def responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___AutofillActionConfigStreamResponse]: @@ -1229,33 +1397,41 @@ class AutofillActionConfigBatchedStreamResponse(google.protobuf.message.Message) The length of this structure is guaranteed to be between (inclusive) 1 and min(req.max_messages, INTERNAL_BATCH_LIMIT). """ - pass - def __init__(self, + + def __init__( + self, *, - responses: typing.Optional[typing.Iterable[global___AutofillActionConfigStreamResponse]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["responses",b"responses"]) -> None: ... + responses: collections.abc.Iterable[global___AutofillActionConfigStreamResponse] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["responses", b"responses"]) -> None: ... + global___AutofillActionConfigBatchedStreamResponse = AutofillActionConfigBatchedStreamResponse +@typing.final class AutofillActionConfigSetRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int @property def value(self) -> arista.studio.v1.studio_pb2.AutofillActionConfig: """AutofillActionConfig carries the value to set into the datastore. See the documentation on the AutofillActionConfig struct for which fields are required. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.studio.v1.studio_pb2.AutofillActionConfig] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["value",b"value"]) -> None: ... + value: arista.studio.v1.studio_pb2.AutofillActionConfig | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["value", b"value"]) -> None: ... + global___AutofillActionConfigSetRequest = AutofillActionConfigSetRequest +@typing.final class AutofillActionConfigSetResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -1263,7 +1439,7 @@ class AutofillActionConfigSetResponse(google.protobuf.message.Message): """Value carries all the values given in the AutofillActionConfigSetRequest as well as any server-generated values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp at which the system recognizes the @@ -1272,18 +1448,22 @@ class AutofillActionConfigSetResponse(google.protobuf.message.Message): - it is after the time the request was received - a time-ranged query with StartTime==CreatedAt will include this instance. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.studio.v1.studio_pb2.AutofillActionConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.studio.v1.studio_pb2.AutofillActionConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___AutofillActionConfigSetResponse = AutofillActionConfigSetResponse +@typing.final class AutofillActionConfigSetSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.studio.v1.studio_pb2.AutofillActionConfig]: @@ -1294,55 +1474,67 @@ class AutofillActionConfigSetSomeRequest(google.protobuf.message.Message): If this error occurs you must reduce the number of values sent. See gRPC "maximum message size" documentation for more information. """ - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[arista.studio.v1.studio_pb2.AutofillActionConfig]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[arista.studio.v1.studio_pb2.AutofillActionConfig] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___AutofillActionConfigSetSomeRequest = AutofillActionConfigSetSomeRequest +@typing.final class AutofillActionConfigSetSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int + error: builtins.str @property def key(self) -> arista.studio.v1.studio_pb2.AutofillActionKey: ... - error: typing.Text - def __init__(self, - *, - key: typing.Optional[arista.studio.v1.studio_pb2.AutofillActionKey] = ..., - error: typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key"]) -> None: ... + def __init__( + self, + *, + key: arista.studio.v1.studio_pb2.AutofillActionKey | None = ..., + error: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key"]) -> None: ... + global___AutofillActionConfigSetSomeResponse = AutofillActionConfigSetSomeResponse +@typing.final class AutofillActionConfigDeleteRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int @property def key(self) -> arista.studio.v1.studio_pb2.AutofillActionKey: """Key indicates which AutofillActionConfig instance to remove. This field must always be set. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.studio.v1.studio_pb2.AutofillActionKey] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key"]) -> None: ... + key: arista.studio.v1.studio_pb2.AutofillActionKey | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key"]) -> None: ... + global___AutofillActionConfigDeleteRequest = AutofillActionConfigDeleteRequest +@typing.final class AutofillActionConfigDeleteResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property def key(self) -> arista.studio.v1.studio_pb2.AutofillActionKey: """Key echoes back the key of the deleted AutofillActionConfig instance.""" - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp at which the system recognizes the @@ -1351,49 +1543,62 @@ class AutofillActionConfigDeleteResponse(google.protobuf.message.Message): - it is after the time the request was received - a time-ranged query with StartTime==DeletedAt will not include this instance. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.studio.v1.studio_pb2.AutofillActionKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.studio.v1.studio_pb2.AutofillActionKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___AutofillActionConfigDeleteResponse = AutofillActionConfigDeleteResponse +@typing.final class AutofillActionConfigDeleteSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int @property def keys(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.studio.v1.studio_pb2.AutofillActionKey]: """key contains a list of AutofillActionConfig keys to delete""" - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.studio.v1.studio_pb2.AutofillActionKey]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys"]) -> None: ... + keys: collections.abc.Iterable[arista.studio.v1.studio_pb2.AutofillActionKey] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys"]) -> None: ... + global___AutofillActionConfigDeleteSomeRequest = AutofillActionConfigDeleteSomeRequest +@typing.final class AutofillActionConfigDeleteSomeResponse(google.protobuf.message.Message): """AutofillActionConfigDeleteSomeResponse is only sent when there is an error.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int + error: builtins.str @property def key(self) -> arista.studio.v1.studio_pb2.AutofillActionKey: ... - error: typing.Text - def __init__(self, - *, - key: typing.Optional[arista.studio.v1.studio_pb2.AutofillActionKey] = ..., - error: typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key"]) -> None: ... + def __init__( + self, + *, + key: arista.studio.v1.studio_pb2.AutofillActionKey | None = ..., + error: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key"]) -> None: ... + global___AutofillActionConfigDeleteSomeResponse = AutofillActionConfigDeleteSomeResponse +@typing.final class AutofillActionConfigDeleteAllRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int @property def partial_eq_filter(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.studio.v1.studio_pb2.AutofillActionConfig]: @@ -1401,16 +1606,20 @@ class AutofillActionConfigDeleteAllRequest(google.protobuf.message.Message): This requires all provided fields to be equal to the response. A filtered DeleteAll will use GetAll with filter to find things to delete. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.studio.v1.studio_pb2.AutofillActionConfig]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.studio.v1.studio_pb2.AutofillActionConfig] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter"]) -> None: ... + global___AutofillActionConfigDeleteAllRequest = AutofillActionConfigDeleteAllRequest +@typing.final class AutofillActionConfigDeleteAllResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TYPE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int KEY_FIELD_NUMBER: builtins.int @@ -1419,32 +1628,35 @@ class AutofillActionConfigDeleteAllResponse(google.protobuf.message.Message): """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: """This indicates the error message from the delete failure.""" - pass + @property def key(self) -> arista.studio.v1.studio_pb2.AutofillActionKey: """This is the key of the AutofillActionConfig instance that failed to be deleted.""" - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp when the key was being deleted.""" - pass - def __init__(self, + + def __init__( + self, *, type: fmp.deletes_pb2.DeleteError.ValueType = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - key: typing.Optional[arista.studio.v1.studio_pb2.AutofillActionKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key","time",b"time","type",b"type"]) -> None: ... + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + key: arista.studio.v1.studio_pb2.AutofillActionKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key", "time", b"time", "type", b"type"]) -> None: ... + global___AutofillActionConfigDeleteAllResponse = AutofillActionConfigDeleteAllResponse +@typing.final class InputsRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -1452,24 +1664,28 @@ class InputsRequest(google.protobuf.message.Message): """Key uniquely identifies a Inputs instance to retrieve. This value must be populated. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the time for which you are interested in the data. If no time is given, the server will use the time at which it makes the request. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.studio.v1.studio_pb2.InputsKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.studio.v1.studio_pb2.InputsKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___InputsRequest = InputsRequest +@typing.final class InputsResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -1479,24 +1695,28 @@ class InputsResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time carries the (UTC) timestamp of the last-modification of the Inputs instance in this response. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.studio.v1.studio_pb2.Inputs] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.studio.v1.studio_pb2.Inputs | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___InputsResponse = InputsResponse +@typing.final class InputsSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -1506,18 +1726,22 @@ class InputsSomeRequest(google.protobuf.message.Message): """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. """ - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.studio.v1.studio_pb2.InputsKey]] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys","time",b"time"]) -> None: ... + keys: collections.abc.Iterable[arista.studio.v1.studio_pb2.InputsKey] | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys", "time", b"time"]) -> None: ... + global___InputsSomeRequest = InputsSomeRequest +@typing.final class InputsSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -1528,27 +1752,31 @@ class InputsSomeResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """Error is an optional field. It should be filled when there is an error in the GetSome process. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - def __init__(self, - *, - value: typing.Optional[arista.studio.v1.studio_pb2.Inputs] = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> None: ... + def __init__( + self, + *, + value: arista.studio.v1.studio_pb2.Inputs | None = ..., + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> None: ... + global___InputsSomeResponse = InputsSomeResponse +@typing.final class InputsStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -1559,7 +1787,7 @@ class InputsStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -1578,51 +1806,58 @@ class InputsStreamRequest(google.protobuf.message.Message): This field is not allowed in the Subscribe RPC. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.studio.v1.studio_pb2.Inputs]] = ..., - time: typing.Optional[arista.time.time_pb2.TimeBounds] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.studio.v1.studio_pb2.Inputs] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___InputsStreamRequest = InputsStreamRequest +@typing.final class InputsStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int + type: arista.subscriptions.subscriptions_pb2.Operation.ValueType + """Operation indicates how the Inputs 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. + """ @property def value(self) -> arista.studio.v1.studio_pb2.Inputs: """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. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time holds the timestamp of this Inputs's last modification.""" - pass - type: arista.subscriptions.subscriptions_pb2.Operation.ValueType - """Operation indicates how the Inputs 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. - """ - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.studio.v1.studio_pb2.Inputs] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + value: arista.studio.v1.studio_pb2.Inputs | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "type", b"type", "value", b"value"]) -> None: ... + global___InputsStreamResponse = InputsStreamResponse +@typing.final class InputsBatchedStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int MAX_MESSAGES_FIELD_NUMBER: builtins.int @@ -1634,7 +1869,7 @@ class InputsBatchedStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -1653,7 +1888,7 @@ class InputsBatchedStreamRequest(google.protobuf.message.Message): 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. @@ -1661,19 +1896,23 @@ class InputsBatchedStreamRequest(google.protobuf.message.Message): 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, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.studio.v1.studio_pb2.Inputs]] = ..., - 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","partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.studio.v1.studio_pb2.Inputs] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + max_messages: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["max_messages", b"max_messages", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["max_messages", b"max_messages", "partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___InputsBatchedStreamRequest = InputsBatchedStreamRequest +@typing.final class InputsBatchedStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + RESPONSES_FIELD_NUMBER: builtins.int @property def responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___InputsStreamResponse]: @@ -1681,16 +1920,20 @@ class InputsBatchedStreamResponse(google.protobuf.message.Message): The length of this structure is guaranteed to be between (inclusive) 1 and min(req.max_messages, INTERNAL_BATCH_LIMIT). """ - pass - def __init__(self, + + def __init__( + self, *, - responses: typing.Optional[typing.Iterable[global___InputsStreamResponse]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["responses",b"responses"]) -> None: ... + responses: collections.abc.Iterable[global___InputsStreamResponse] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["responses", b"responses"]) -> None: ... + global___InputsBatchedStreamResponse = InputsBatchedStreamResponse +@typing.final class InputsConfigRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -1698,24 +1941,28 @@ class InputsConfigRequest(google.protobuf.message.Message): """Key uniquely identifies a InputsConfig instance to retrieve. This value must be populated. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the time for which you are interested in the data. If no time is given, the server will use the time at which it makes the request. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.studio.v1.studio_pb2.InputsKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.studio.v1.studio_pb2.InputsKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___InputsConfigRequest = InputsConfigRequest +@typing.final class InputsConfigResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -1725,24 +1972,28 @@ class InputsConfigResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time carries the (UTC) timestamp of the last-modification of the InputsConfig instance in this response. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.studio.v1.studio_pb2.InputsConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.studio.v1.studio_pb2.InputsConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___InputsConfigResponse = InputsConfigResponse +@typing.final class InputsConfigSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -1752,18 +2003,22 @@ class InputsConfigSomeRequest(google.protobuf.message.Message): """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. """ - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.studio.v1.studio_pb2.InputsKey]] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys","time",b"time"]) -> None: ... + keys: collections.abc.Iterable[arista.studio.v1.studio_pb2.InputsKey] | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys", "time", b"time"]) -> None: ... + global___InputsConfigSomeRequest = InputsConfigSomeRequest +@typing.final class InputsConfigSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -1774,27 +2029,31 @@ class InputsConfigSomeResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """Error is an optional field. It should be filled when there is an error in the GetSome process. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - def __init__(self, - *, - value: typing.Optional[arista.studio.v1.studio_pb2.InputsConfig] = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> None: ... + def __init__( + self, + *, + value: arista.studio.v1.studio_pb2.InputsConfig | None = ..., + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> None: ... + global___InputsConfigSomeResponse = InputsConfigSomeResponse +@typing.final class InputsConfigStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -1805,7 +2064,7 @@ class InputsConfigStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -1824,51 +2083,58 @@ class InputsConfigStreamRequest(google.protobuf.message.Message): This field is not allowed in the Subscribe RPC. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.studio.v1.studio_pb2.InputsConfig]] = ..., - time: typing.Optional[arista.time.time_pb2.TimeBounds] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.studio.v1.studio_pb2.InputsConfig] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___InputsConfigStreamRequest = InputsConfigStreamRequest +@typing.final class InputsConfigStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int - @property - def value(self) -> arista.studio.v1.studio_pb2.InputsConfig: - """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. - """ - pass - @property - def time(self) -> google.protobuf.timestamp_pb2.Timestamp: - """Time holds the timestamp of this InputsConfig's last modification.""" - pass type: arista.subscriptions.subscriptions_pb2.Operation.ValueType """Operation indicates how the InputsConfig 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. """ + @property + def value(self) -> arista.studio.v1.studio_pb2.InputsConfig: + """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. + """ + + @property + def time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """Time holds the timestamp of this InputsConfig's last modification.""" - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.studio.v1.studio_pb2.InputsConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + value: arista.studio.v1.studio_pb2.InputsConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "type", b"type", "value", b"value"]) -> None: ... + global___InputsConfigStreamResponse = InputsConfigStreamResponse +@typing.final class InputsConfigBatchedStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int MAX_MESSAGES_FIELD_NUMBER: builtins.int @@ -1880,7 +2146,7 @@ class InputsConfigBatchedStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -1899,7 +2165,7 @@ class InputsConfigBatchedStreamRequest(google.protobuf.message.Message): 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. @@ -1907,19 +2173,23 @@ class InputsConfigBatchedStreamRequest(google.protobuf.message.Message): 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, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.studio.v1.studio_pb2.InputsConfig]] = ..., - 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","partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.studio.v1.studio_pb2.InputsConfig] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + max_messages: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["max_messages", b"max_messages", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["max_messages", b"max_messages", "partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___InputsConfigBatchedStreamRequest = InputsConfigBatchedStreamRequest +@typing.final class InputsConfigBatchedStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + RESPONSES_FIELD_NUMBER: builtins.int @property def responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___InputsConfigStreamResponse]: @@ -1927,33 +2197,41 @@ class InputsConfigBatchedStreamResponse(google.protobuf.message.Message): The length of this structure is guaranteed to be between (inclusive) 1 and min(req.max_messages, INTERNAL_BATCH_LIMIT). """ - pass - def __init__(self, + + def __init__( + self, *, - responses: typing.Optional[typing.Iterable[global___InputsConfigStreamResponse]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["responses",b"responses"]) -> None: ... + responses: collections.abc.Iterable[global___InputsConfigStreamResponse] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["responses", b"responses"]) -> None: ... + global___InputsConfigBatchedStreamResponse = InputsConfigBatchedStreamResponse +@typing.final class InputsConfigSetRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int @property def value(self) -> arista.studio.v1.studio_pb2.InputsConfig: """InputsConfig carries the value to set into the datastore. See the documentation on the InputsConfig struct for which fields are required. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.studio.v1.studio_pb2.InputsConfig] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["value",b"value"]) -> None: ... + value: arista.studio.v1.studio_pb2.InputsConfig | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["value", b"value"]) -> None: ... + global___InputsConfigSetRequest = InputsConfigSetRequest +@typing.final class InputsConfigSetResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -1961,7 +2239,7 @@ class InputsConfigSetResponse(google.protobuf.message.Message): """Value carries all the values given in the InputsConfigSetRequest as well as any server-generated values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp at which the system recognizes the @@ -1970,18 +2248,22 @@ class InputsConfigSetResponse(google.protobuf.message.Message): - it is after the time the request was received - a time-ranged query with StartTime==CreatedAt will include this instance. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.studio.v1.studio_pb2.InputsConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.studio.v1.studio_pb2.InputsConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___InputsConfigSetResponse = InputsConfigSetResponse +@typing.final class InputsConfigSetSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.studio.v1.studio_pb2.InputsConfig]: @@ -1992,55 +2274,67 @@ class InputsConfigSetSomeRequest(google.protobuf.message.Message): If this error occurs you must reduce the number of values sent. See gRPC "maximum message size" documentation for more information. """ - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[arista.studio.v1.studio_pb2.InputsConfig]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[arista.studio.v1.studio_pb2.InputsConfig] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___InputsConfigSetSomeRequest = InputsConfigSetSomeRequest +@typing.final class InputsConfigSetSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int + error: builtins.str @property def key(self) -> arista.studio.v1.studio_pb2.InputsKey: ... - error: typing.Text - def __init__(self, - *, - key: typing.Optional[arista.studio.v1.studio_pb2.InputsKey] = ..., - error: typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key"]) -> None: ... + def __init__( + self, + *, + key: arista.studio.v1.studio_pb2.InputsKey | None = ..., + error: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key"]) -> None: ... + global___InputsConfigSetSomeResponse = InputsConfigSetSomeResponse +@typing.final class InputsConfigDeleteRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int @property def key(self) -> arista.studio.v1.studio_pb2.InputsKey: """Key indicates which InputsConfig instance to remove. This field must always be set. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.studio.v1.studio_pb2.InputsKey] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key"]) -> None: ... + key: arista.studio.v1.studio_pb2.InputsKey | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key"]) -> None: ... + global___InputsConfigDeleteRequest = InputsConfigDeleteRequest +@typing.final class InputsConfigDeleteResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property def key(self) -> arista.studio.v1.studio_pb2.InputsKey: """Key echoes back the key of the deleted InputsConfig instance.""" - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp at which the system recognizes the @@ -2049,49 +2343,62 @@ class InputsConfigDeleteResponse(google.protobuf.message.Message): - it is after the time the request was received - a time-ranged query with StartTime==DeletedAt will not include this instance. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.studio.v1.studio_pb2.InputsKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.studio.v1.studio_pb2.InputsKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___InputsConfigDeleteResponse = InputsConfigDeleteResponse +@typing.final class InputsConfigDeleteSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int @property def keys(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.studio.v1.studio_pb2.InputsKey]: """key contains a list of InputsConfig keys to delete""" - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.studio.v1.studio_pb2.InputsKey]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys"]) -> None: ... + keys: collections.abc.Iterable[arista.studio.v1.studio_pb2.InputsKey] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys"]) -> None: ... + global___InputsConfigDeleteSomeRequest = InputsConfigDeleteSomeRequest +@typing.final class InputsConfigDeleteSomeResponse(google.protobuf.message.Message): """InputsConfigDeleteSomeResponse is only sent when there is an error.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int + error: builtins.str @property def key(self) -> arista.studio.v1.studio_pb2.InputsKey: ... - error: typing.Text - def __init__(self, - *, - key: typing.Optional[arista.studio.v1.studio_pb2.InputsKey] = ..., - error: typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key"]) -> None: ... + def __init__( + self, + *, + key: arista.studio.v1.studio_pb2.InputsKey | None = ..., + error: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key"]) -> None: ... + global___InputsConfigDeleteSomeResponse = InputsConfigDeleteSomeResponse +@typing.final class InputsConfigDeleteAllRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int @property def partial_eq_filter(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.studio.v1.studio_pb2.InputsConfig]: @@ -2099,16 +2406,20 @@ class InputsConfigDeleteAllRequest(google.protobuf.message.Message): This requires all provided fields to be equal to the response. A filtered DeleteAll will use GetAll with filter to find things to delete. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.studio.v1.studio_pb2.InputsConfig]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.studio.v1.studio_pb2.InputsConfig] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter"]) -> None: ... + global___InputsConfigDeleteAllRequest = InputsConfigDeleteAllRequest +@typing.final class InputsConfigDeleteAllResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TYPE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int KEY_FIELD_NUMBER: builtins.int @@ -2117,32 +2428,35 @@ class InputsConfigDeleteAllResponse(google.protobuf.message.Message): """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: """This indicates the error message from the delete failure.""" - pass + @property def key(self) -> arista.studio.v1.studio_pb2.InputsKey: """This is the key of the InputsConfig instance that failed to be deleted.""" - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp when the key was being deleted.""" - pass - def __init__(self, + + def __init__( + self, *, type: fmp.deletes_pb2.DeleteError.ValueType = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - key: typing.Optional[arista.studio.v1.studio_pb2.InputsKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key","time",b"time","type",b"type"]) -> None: ... + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + key: arista.studio.v1.studio_pb2.InputsKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key", "time", b"time", "type", b"type"]) -> None: ... + global___InputsConfigDeleteAllResponse = InputsConfigDeleteAllResponse +@typing.final class SecretInputRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -2150,24 +2464,28 @@ class SecretInputRequest(google.protobuf.message.Message): """Key uniquely identifies a SecretInput instance to retrieve. This value must be populated. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the time for which you are interested in the data. If no time is given, the server will use the time at which it makes the request. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.studio.v1.studio_pb2.InputsKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.studio.v1.studio_pb2.InputsKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___SecretInputRequest = SecretInputRequest +@typing.final class SecretInputResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -2177,24 +2495,28 @@ class SecretInputResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time carries the (UTC) timestamp of the last-modification of the SecretInput instance in this response. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.studio.v1.studio_pb2.SecretInput] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.studio.v1.studio_pb2.SecretInput | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___SecretInputResponse = SecretInputResponse +@typing.final class SecretInputSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -2204,18 +2526,22 @@ class SecretInputSomeRequest(google.protobuf.message.Message): """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. """ - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.studio.v1.studio_pb2.InputsKey]] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys","time",b"time"]) -> None: ... + keys: collections.abc.Iterable[arista.studio.v1.studio_pb2.InputsKey] | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys", "time", b"time"]) -> None: ... + global___SecretInputSomeRequest = SecretInputSomeRequest +@typing.final class SecretInputSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -2226,27 +2552,31 @@ class SecretInputSomeResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """Error is an optional field. It should be filled when there is an error in the GetSome process. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - def __init__(self, - *, - value: typing.Optional[arista.studio.v1.studio_pb2.SecretInput] = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> None: ... + def __init__( + self, + *, + value: arista.studio.v1.studio_pb2.SecretInput | None = ..., + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> None: ... + global___SecretInputSomeResponse = SecretInputSomeResponse +@typing.final class SecretInputStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -2257,7 +2587,7 @@ class SecretInputStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -2276,51 +2606,58 @@ class SecretInputStreamRequest(google.protobuf.message.Message): This field is not allowed in the Subscribe RPC. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.studio.v1.studio_pb2.SecretInput]] = ..., - time: typing.Optional[arista.time.time_pb2.TimeBounds] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.studio.v1.studio_pb2.SecretInput] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___SecretInputStreamRequest = SecretInputStreamRequest +@typing.final class SecretInputStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int + type: arista.subscriptions.subscriptions_pb2.Operation.ValueType + """Operation indicates how the SecretInput 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. + """ @property def value(self) -> arista.studio.v1.studio_pb2.SecretInput: """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. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time holds the timestamp of this SecretInput's last modification.""" - pass - type: arista.subscriptions.subscriptions_pb2.Operation.ValueType - """Operation indicates how the SecretInput 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. - """ - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.studio.v1.studio_pb2.SecretInput] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + value: arista.studio.v1.studio_pb2.SecretInput | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "type", b"type", "value", b"value"]) -> None: ... + global___SecretInputStreamResponse = SecretInputStreamResponse +@typing.final class SecretInputBatchedStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int MAX_MESSAGES_FIELD_NUMBER: builtins.int @@ -2332,7 +2669,7 @@ class SecretInputBatchedStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -2351,7 +2688,7 @@ class SecretInputBatchedStreamRequest(google.protobuf.message.Message): 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. @@ -2359,19 +2696,23 @@ class SecretInputBatchedStreamRequest(google.protobuf.message.Message): 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, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.studio.v1.studio_pb2.SecretInput]] = ..., - 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","partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.studio.v1.studio_pb2.SecretInput] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + max_messages: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["max_messages", b"max_messages", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["max_messages", b"max_messages", "partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___SecretInputBatchedStreamRequest = SecretInputBatchedStreamRequest +@typing.final class SecretInputBatchedStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + RESPONSES_FIELD_NUMBER: builtins.int @property def responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SecretInputStreamResponse]: @@ -2379,16 +2720,20 @@ class SecretInputBatchedStreamResponse(google.protobuf.message.Message): The length of this structure is guaranteed to be between (inclusive) 1 and min(req.max_messages, INTERNAL_BATCH_LIMIT). """ - pass - def __init__(self, + + def __init__( + self, *, - responses: typing.Optional[typing.Iterable[global___SecretInputStreamResponse]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["responses",b"responses"]) -> None: ... + responses: collections.abc.Iterable[global___SecretInputStreamResponse] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["responses", b"responses"]) -> None: ... + global___SecretInputBatchedStreamResponse = SecretInputBatchedStreamResponse +@typing.final class StudioRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -2396,24 +2741,28 @@ class StudioRequest(google.protobuf.message.Message): """Key uniquely identifies a Studio instance to retrieve. This value must be populated. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the time for which you are interested in the data. If no time is given, the server will use the time at which it makes the request. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.studio.v1.studio_pb2.StudioKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.studio.v1.studio_pb2.StudioKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___StudioRequest = StudioRequest +@typing.final class StudioResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -2423,24 +2772,28 @@ class StudioResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time carries the (UTC) timestamp of the last-modification of the Studio instance in this response. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.studio.v1.studio_pb2.Studio] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.studio.v1.studio_pb2.Studio | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___StudioResponse = StudioResponse +@typing.final class StudioSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -2450,18 +2803,22 @@ class StudioSomeRequest(google.protobuf.message.Message): """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. """ - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.studio.v1.studio_pb2.StudioKey]] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys","time",b"time"]) -> None: ... + keys: collections.abc.Iterable[arista.studio.v1.studio_pb2.StudioKey] | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys", "time", b"time"]) -> None: ... + global___StudioSomeRequest = StudioSomeRequest +@typing.final class StudioSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -2472,27 +2829,31 @@ class StudioSomeResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """Error is an optional field. It should be filled when there is an error in the GetSome process. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - def __init__(self, - *, - value: typing.Optional[arista.studio.v1.studio_pb2.Studio] = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> None: ... + def __init__( + self, + *, + value: arista.studio.v1.studio_pb2.Studio | None = ..., + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> None: ... + global___StudioSomeResponse = StudioSomeResponse +@typing.final class StudioStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -2503,7 +2864,7 @@ class StudioStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -2522,51 +2883,58 @@ class StudioStreamRequest(google.protobuf.message.Message): This field is not allowed in the Subscribe RPC. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.studio.v1.studio_pb2.Studio]] = ..., - time: typing.Optional[arista.time.time_pb2.TimeBounds] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.studio.v1.studio_pb2.Studio] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___StudioStreamRequest = StudioStreamRequest +@typing.final class StudioStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int + type: arista.subscriptions.subscriptions_pb2.Operation.ValueType + """Operation indicates how the Studio 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. + """ @property def value(self) -> arista.studio.v1.studio_pb2.Studio: """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. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time holds the timestamp of this Studio's last modification.""" - pass - type: arista.subscriptions.subscriptions_pb2.Operation.ValueType - """Operation indicates how the Studio 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. - """ - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.studio.v1.studio_pb2.Studio] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + value: arista.studio.v1.studio_pb2.Studio | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "type", b"type", "value", b"value"]) -> None: ... + global___StudioStreamResponse = StudioStreamResponse +@typing.final class StudioBatchedStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int MAX_MESSAGES_FIELD_NUMBER: builtins.int @@ -2578,7 +2946,7 @@ class StudioBatchedStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -2597,7 +2965,7 @@ class StudioBatchedStreamRequest(google.protobuf.message.Message): 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. @@ -2605,19 +2973,23 @@ class StudioBatchedStreamRequest(google.protobuf.message.Message): 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, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.studio.v1.studio_pb2.Studio]] = ..., - 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","partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.studio.v1.studio_pb2.Studio] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + max_messages: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["max_messages", b"max_messages", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["max_messages", b"max_messages", "partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___StudioBatchedStreamRequest = StudioBatchedStreamRequest +@typing.final class StudioBatchedStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + RESPONSES_FIELD_NUMBER: builtins.int @property def responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___StudioStreamResponse]: @@ -2625,16 +2997,20 @@ class StudioBatchedStreamResponse(google.protobuf.message.Message): The length of this structure is guaranteed to be between (inclusive) 1 and min(req.max_messages, INTERNAL_BATCH_LIMIT). """ - pass - def __init__(self, + + def __init__( + self, *, - responses: typing.Optional[typing.Iterable[global___StudioStreamResponse]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["responses",b"responses"]) -> None: ... + responses: collections.abc.Iterable[global___StudioStreamResponse] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["responses", b"responses"]) -> None: ... + global___StudioBatchedStreamResponse = StudioBatchedStreamResponse +@typing.final class StudioConfigRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -2642,24 +3018,28 @@ class StudioConfigRequest(google.protobuf.message.Message): """Key uniquely identifies a StudioConfig instance to retrieve. This value must be populated. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the time for which you are interested in the data. If no time is given, the server will use the time at which it makes the request. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.studio.v1.studio_pb2.StudioKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.studio.v1.studio_pb2.StudioKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___StudioConfigRequest = StudioConfigRequest +@typing.final class StudioConfigResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -2669,24 +3049,28 @@ class StudioConfigResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time carries the (UTC) timestamp of the last-modification of the StudioConfig instance in this response. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.studio.v1.studio_pb2.StudioConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.studio.v1.studio_pb2.StudioConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___StudioConfigResponse = StudioConfigResponse +@typing.final class StudioConfigSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -2696,18 +3080,22 @@ class StudioConfigSomeRequest(google.protobuf.message.Message): """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. """ - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.studio.v1.studio_pb2.StudioKey]] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys","time",b"time"]) -> None: ... + keys: collections.abc.Iterable[arista.studio.v1.studio_pb2.StudioKey] | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys", "time", b"time"]) -> None: ... + global___StudioConfigSomeRequest = StudioConfigSomeRequest +@typing.final class StudioConfigSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -2718,27 +3106,31 @@ class StudioConfigSomeResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """Error is an optional field. It should be filled when there is an error in the GetSome process. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - def __init__(self, - *, - value: typing.Optional[arista.studio.v1.studio_pb2.StudioConfig] = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> None: ... + def __init__( + self, + *, + value: arista.studio.v1.studio_pb2.StudioConfig | None = ..., + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> None: ... + global___StudioConfigSomeResponse = StudioConfigSomeResponse +@typing.final class StudioConfigStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -2749,7 +3141,7 @@ class StudioConfigStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -2768,51 +3160,58 @@ class StudioConfigStreamRequest(google.protobuf.message.Message): This field is not allowed in the Subscribe RPC. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.studio.v1.studio_pb2.StudioConfig]] = ..., - time: typing.Optional[arista.time.time_pb2.TimeBounds] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.studio.v1.studio_pb2.StudioConfig] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___StudioConfigStreamRequest = StudioConfigStreamRequest +@typing.final class StudioConfigStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int + type: arista.subscriptions.subscriptions_pb2.Operation.ValueType + """Operation indicates how the StudioConfig 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. + """ @property def value(self) -> arista.studio.v1.studio_pb2.StudioConfig: """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. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time holds the timestamp of this StudioConfig's last modification.""" - pass - type: arista.subscriptions.subscriptions_pb2.Operation.ValueType - """Operation indicates how the StudioConfig 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. - """ - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.studio.v1.studio_pb2.StudioConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + value: arista.studio.v1.studio_pb2.StudioConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "type", b"type", "value", b"value"]) -> None: ... + global___StudioConfigStreamResponse = StudioConfigStreamResponse +@typing.final class StudioConfigBatchedStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int MAX_MESSAGES_FIELD_NUMBER: builtins.int @@ -2824,7 +3223,7 @@ class StudioConfigBatchedStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -2843,7 +3242,7 @@ class StudioConfigBatchedStreamRequest(google.protobuf.message.Message): 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. @@ -2851,19 +3250,23 @@ class StudioConfigBatchedStreamRequest(google.protobuf.message.Message): 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, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.studio.v1.studio_pb2.StudioConfig]] = ..., - 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","partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.studio.v1.studio_pb2.StudioConfig] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + max_messages: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["max_messages", b"max_messages", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["max_messages", b"max_messages", "partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___StudioConfigBatchedStreamRequest = StudioConfigBatchedStreamRequest +@typing.final class StudioConfigBatchedStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + RESPONSES_FIELD_NUMBER: builtins.int @property def responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___StudioConfigStreamResponse]: @@ -2871,33 +3274,41 @@ class StudioConfigBatchedStreamResponse(google.protobuf.message.Message): The length of this structure is guaranteed to be between (inclusive) 1 and min(req.max_messages, INTERNAL_BATCH_LIMIT). """ - pass - def __init__(self, + + def __init__( + self, *, - responses: typing.Optional[typing.Iterable[global___StudioConfigStreamResponse]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["responses",b"responses"]) -> None: ... + responses: collections.abc.Iterable[global___StudioConfigStreamResponse] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["responses", b"responses"]) -> None: ... + global___StudioConfigBatchedStreamResponse = StudioConfigBatchedStreamResponse +@typing.final class StudioConfigSetRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int @property def value(self) -> arista.studio.v1.studio_pb2.StudioConfig: """StudioConfig carries the value to set into the datastore. See the documentation on the StudioConfig struct for which fields are required. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.studio.v1.studio_pb2.StudioConfig] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["value",b"value"]) -> None: ... + value: arista.studio.v1.studio_pb2.StudioConfig | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["value", b"value"]) -> None: ... + global___StudioConfigSetRequest = StudioConfigSetRequest +@typing.final class StudioConfigSetResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -2905,7 +3316,7 @@ class StudioConfigSetResponse(google.protobuf.message.Message): """Value carries all the values given in the StudioConfigSetRequest as well as any server-generated values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp at which the system recognizes the @@ -2914,18 +3325,22 @@ class StudioConfigSetResponse(google.protobuf.message.Message): - it is after the time the request was received - a time-ranged query with StartTime==CreatedAt will include this instance. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.studio.v1.studio_pb2.StudioConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.studio.v1.studio_pb2.StudioConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___StudioConfigSetResponse = StudioConfigSetResponse +@typing.final class StudioConfigSetSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.studio.v1.studio_pb2.StudioConfig]: @@ -2936,55 +3351,67 @@ class StudioConfigSetSomeRequest(google.protobuf.message.Message): If this error occurs you must reduce the number of values sent. See gRPC "maximum message size" documentation for more information. """ - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[arista.studio.v1.studio_pb2.StudioConfig]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[arista.studio.v1.studio_pb2.StudioConfig] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___StudioConfigSetSomeRequest = StudioConfigSetSomeRequest +@typing.final class StudioConfigSetSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int + error: builtins.str @property def key(self) -> arista.studio.v1.studio_pb2.StudioKey: ... - error: typing.Text - def __init__(self, - *, - key: typing.Optional[arista.studio.v1.studio_pb2.StudioKey] = ..., - error: typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key"]) -> None: ... + def __init__( + self, + *, + key: arista.studio.v1.studio_pb2.StudioKey | None = ..., + error: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key"]) -> None: ... + global___StudioConfigSetSomeResponse = StudioConfigSetSomeResponse +@typing.final class StudioConfigDeleteRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int @property def key(self) -> arista.studio.v1.studio_pb2.StudioKey: """Key indicates which StudioConfig instance to remove. This field must always be set. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.studio.v1.studio_pb2.StudioKey] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key"]) -> None: ... + key: arista.studio.v1.studio_pb2.StudioKey | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key"]) -> None: ... + global___StudioConfigDeleteRequest = StudioConfigDeleteRequest +@typing.final class StudioConfigDeleteResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property def key(self) -> arista.studio.v1.studio_pb2.StudioKey: """Key echoes back the key of the deleted StudioConfig instance.""" - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp at which the system recognizes the @@ -2993,49 +3420,62 @@ class StudioConfigDeleteResponse(google.protobuf.message.Message): - it is after the time the request was received - a time-ranged query with StartTime==DeletedAt will not include this instance. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.studio.v1.studio_pb2.StudioKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.studio.v1.studio_pb2.StudioKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___StudioConfigDeleteResponse = StudioConfigDeleteResponse +@typing.final class StudioConfigDeleteSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int @property def keys(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.studio.v1.studio_pb2.StudioKey]: """key contains a list of StudioConfig keys to delete""" - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.studio.v1.studio_pb2.StudioKey]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys"]) -> None: ... + keys: collections.abc.Iterable[arista.studio.v1.studio_pb2.StudioKey] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys"]) -> None: ... + global___StudioConfigDeleteSomeRequest = StudioConfigDeleteSomeRequest +@typing.final class StudioConfigDeleteSomeResponse(google.protobuf.message.Message): """StudioConfigDeleteSomeResponse is only sent when there is an error.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int + error: builtins.str @property def key(self) -> arista.studio.v1.studio_pb2.StudioKey: ... - error: typing.Text - def __init__(self, - *, - key: typing.Optional[arista.studio.v1.studio_pb2.StudioKey] = ..., - error: typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key"]) -> None: ... + def __init__( + self, + *, + key: arista.studio.v1.studio_pb2.StudioKey | None = ..., + error: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key"]) -> None: ... + global___StudioConfigDeleteSomeResponse = StudioConfigDeleteSomeResponse +@typing.final class StudioConfigDeleteAllRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int @property def partial_eq_filter(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.studio.v1.studio_pb2.StudioConfig]: @@ -3043,16 +3483,20 @@ class StudioConfigDeleteAllRequest(google.protobuf.message.Message): This requires all provided fields to be equal to the response. A filtered DeleteAll will use GetAll with filter to find things to delete. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.studio.v1.studio_pb2.StudioConfig]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.studio.v1.studio_pb2.StudioConfig] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter"]) -> None: ... + global___StudioConfigDeleteAllRequest = StudioConfigDeleteAllRequest +@typing.final class StudioConfigDeleteAllResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TYPE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int KEY_FIELD_NUMBER: builtins.int @@ -3061,32 +3505,35 @@ class StudioConfigDeleteAllResponse(google.protobuf.message.Message): """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: """This indicates the error message from the delete failure.""" - pass + @property def key(self) -> arista.studio.v1.studio_pb2.StudioKey: """This is the key of the StudioConfig instance that failed to be deleted.""" - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp when the key was being deleted.""" - pass - def __init__(self, + + def __init__( + self, *, type: fmp.deletes_pb2.DeleteError.ValueType = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - key: typing.Optional[arista.studio.v1.studio_pb2.StudioKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key","time",b"time","type",b"type"]) -> None: ... + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + key: arista.studio.v1.studio_pb2.StudioKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key", "time", b"time", "type", b"type"]) -> None: ... + global___StudioConfigDeleteAllResponse = StudioConfigDeleteAllResponse +@typing.final class StudioSummaryRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -3094,24 +3541,28 @@ class StudioSummaryRequest(google.protobuf.message.Message): """Key uniquely identifies a StudioSummary instance to retrieve. This value must be populated. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the time for which you are interested in the data. If no time is given, the server will use the time at which it makes the request. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.studio.v1.studio_pb2.StudioKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.studio.v1.studio_pb2.StudioKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___StudioSummaryRequest = StudioSummaryRequest +@typing.final class StudioSummaryResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -3121,24 +3572,28 @@ class StudioSummaryResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time carries the (UTC) timestamp of the last-modification of the StudioSummary instance in this response. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.studio.v1.studio_pb2.StudioSummary] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.studio.v1.studio_pb2.StudioSummary | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___StudioSummaryResponse = StudioSummaryResponse +@typing.final class StudioSummarySomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -3148,18 +3603,22 @@ class StudioSummarySomeRequest(google.protobuf.message.Message): """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. """ - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.studio.v1.studio_pb2.StudioKey]] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys","time",b"time"]) -> None: ... + keys: collections.abc.Iterable[arista.studio.v1.studio_pb2.StudioKey] | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys", "time", b"time"]) -> None: ... + global___StudioSummarySomeRequest = StudioSummarySomeRequest +@typing.final class StudioSummarySomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -3170,27 +3629,31 @@ class StudioSummarySomeResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """Error is an optional field. It should be filled when there is an error in the GetSome process. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - def __init__(self, - *, - value: typing.Optional[arista.studio.v1.studio_pb2.StudioSummary] = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> None: ... + def __init__( + self, + *, + value: arista.studio.v1.studio_pb2.StudioSummary | None = ..., + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> None: ... + global___StudioSummarySomeResponse = StudioSummarySomeResponse +@typing.final class StudioSummaryStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -3201,7 +3664,7 @@ class StudioSummaryStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -3220,51 +3683,58 @@ class StudioSummaryStreamRequest(google.protobuf.message.Message): This field is not allowed in the Subscribe RPC. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.studio.v1.studio_pb2.StudioSummary]] = ..., - time: typing.Optional[arista.time.time_pb2.TimeBounds] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.studio.v1.studio_pb2.StudioSummary] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___StudioSummaryStreamRequest = StudioSummaryStreamRequest +@typing.final class StudioSummaryStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int + type: arista.subscriptions.subscriptions_pb2.Operation.ValueType + """Operation indicates how the StudioSummary 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. + """ @property def value(self) -> arista.studio.v1.studio_pb2.StudioSummary: """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. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time holds the timestamp of this StudioSummary's last modification.""" - pass - type: arista.subscriptions.subscriptions_pb2.Operation.ValueType - """Operation indicates how the StudioSummary 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. - """ - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.studio.v1.studio_pb2.StudioSummary] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + value: arista.studio.v1.studio_pb2.StudioSummary | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "type", b"type", "value", b"value"]) -> None: ... + global___StudioSummaryStreamResponse = StudioSummaryStreamResponse +@typing.final class StudioSummaryBatchedStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int MAX_MESSAGES_FIELD_NUMBER: builtins.int @@ -3276,7 +3746,7 @@ class StudioSummaryBatchedStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -3295,7 +3765,7 @@ class StudioSummaryBatchedStreamRequest(google.protobuf.message.Message): 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. @@ -3303,19 +3773,23 @@ class StudioSummaryBatchedStreamRequest(google.protobuf.message.Message): 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, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.studio.v1.studio_pb2.StudioSummary]] = ..., - 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","partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.studio.v1.studio_pb2.StudioSummary] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + max_messages: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["max_messages", b"max_messages", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["max_messages", b"max_messages", "partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___StudioSummaryBatchedStreamRequest = StudioSummaryBatchedStreamRequest +@typing.final class StudioSummaryBatchedStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + RESPONSES_FIELD_NUMBER: builtins.int @property def responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___StudioSummaryStreamResponse]: @@ -3323,10 +3797,12 @@ class StudioSummaryBatchedStreamResponse(google.protobuf.message.Message): The length of this structure is guaranteed to be between (inclusive) 1 and min(req.max_messages, INTERNAL_BATCH_LIMIT). """ - pass - def __init__(self, + + def __init__( + self, *, - responses: typing.Optional[typing.Iterable[global___StudioSummaryStreamResponse]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["responses",b"responses"]) -> None: ... + responses: collections.abc.Iterable[global___StudioSummaryStreamResponse] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["responses", b"responses"]) -> None: ... + global___StudioSummaryBatchedStreamResponse = StudioSummaryBatchedStreamResponse diff --git a/arista/studio/v1/studio_pb2.pyi b/arista/studio/v1/studio_pb2.pyi index 5aa32a2..6e0c3ca 100644 --- a/arista/studio/v1/studio_pb2.pyi +++ b/arista/studio/v1/studio_pb2.pyi @@ -1,8 +1,16 @@ """ @generated by mypy-protobuf. Do not edit manually! isort:skip_file +Copyright (c) 2023 Arista Networks, Inc. All rights reserved. +Use of this source code is governed by the Apache License 2.0 +that can be found in the COPYING file. + +NOTE: This is a workspace-aware Resource API. +Please see workspace.v1 for more information. """ + import builtins +import collections.abc import fmp.wrappers_pb2 import google.protobuf.descriptor import google.protobuf.internal.containers @@ -10,39 +18,38 @@ import google.protobuf.internal.enum_type_wrapper import google.protobuf.message import google.protobuf.timestamp_pb2 import google.protobuf.wrappers_pb2 +import sys import typing -import typing_extensions + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor class _EntityType: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _EntityTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_EntityType.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor ENTITY_TYPE_UNSPECIFIED: _EntityType.ValueType # 0 """ENTITY_TYPE_UNSPECIFIED indicates an unspecified entity type.""" - ENTITY_TYPE_STUDIO: _EntityType.ValueType # 1 """ENTITY_TYPE_STUDIO indicates the Studio entity type.""" - ENTITY_TYPE_INPUTS: _EntityType.ValueType # 2 """ENTITY_TYPE_INPUTS indicates the Inputs entity type.""" - ENTITY_TYPE_ASSIGNED_TAGS: _EntityType.ValueType # 3 """ENTITY_TYPE_ASSIGNED_TAGS indicates the AssignedTags entity type.""" - ENTITY_TYPE_BUILD_HOOK: _EntityType.ValueType # 4 """ENTITY_TYPE_BUILD_HOOK indicates the BuildHook entity type.""" - ENTITY_TYPE_AUTOFILL_ACTION: _EntityType.ValueType # 5 """ENTITY_TYPE_AUTOFILL_ACTION indicates the AutofillAction entity type.""" - ENTITY_TYPE_CONFIGLET: _EntityType.ValueType # 6 """ENTITY_TYPE_CONFIGLET indicates the Configlet entity type for static config studio. """ - ENTITY_TYPE_CONFIGLET_ASSIGNMENT: _EntityType.ValueType # 7 """ENTITY_TYPE_CONFIGLET_ASSIGNMENT indicates the ConfigletAssignment entity type for static config studio. @@ -50,57 +57,45 @@ class _EntityTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._Enu class EntityType(_EntityType, metaclass=_EntityTypeEnumTypeWrapper): """EntityType enumerates the set of entity types.""" - pass ENTITY_TYPE_UNSPECIFIED: EntityType.ValueType # 0 """ENTITY_TYPE_UNSPECIFIED indicates an unspecified entity type.""" - ENTITY_TYPE_STUDIO: EntityType.ValueType # 1 """ENTITY_TYPE_STUDIO indicates the Studio entity type.""" - ENTITY_TYPE_INPUTS: EntityType.ValueType # 2 """ENTITY_TYPE_INPUTS indicates the Inputs entity type.""" - ENTITY_TYPE_ASSIGNED_TAGS: EntityType.ValueType # 3 """ENTITY_TYPE_ASSIGNED_TAGS indicates the AssignedTags entity type.""" - ENTITY_TYPE_BUILD_HOOK: EntityType.ValueType # 4 """ENTITY_TYPE_BUILD_HOOK indicates the BuildHook entity type.""" - ENTITY_TYPE_AUTOFILL_ACTION: EntityType.ValueType # 5 """ENTITY_TYPE_AUTOFILL_ACTION indicates the AutofillAction entity type.""" - ENTITY_TYPE_CONFIGLET: EntityType.ValueType # 6 """ENTITY_TYPE_CONFIGLET indicates the Configlet entity type for static config studio. """ - ENTITY_TYPE_CONFIGLET_ASSIGNMENT: EntityType.ValueType # 7 """ENTITY_TYPE_CONFIGLET_ASSIGNMENT indicates the ConfigletAssignment entity type for static config studio. """ - global___EntityType = EntityType - class _TemplateType: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _TemplateTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_TemplateType.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor TEMPLATE_TYPE_UNSPECIFIED: _TemplateType.ValueType # 0 """TEMPLATE_TYPE_UNSPECIFIED indicates an unspecified template type.""" - TEMPLATE_TYPE_MAKO: _TemplateType.ValueType # 1 """TEMPLATE_TYPE_MAKO is the Mako templating language for Python. More information: https://www.makotemplates.org """ - TEMPLATE_TYPE_JINJA: _TemplateType.ValueType # 2 """TEMPLATE_TYPE_JINJA is the Jinja templating language for Python. More information: https://palletsprojects.com/p/jinja """ - TEMPLATE_TYPE_GO: _TemplateType.ValueType # 3 """TEMPLATE_TYPE_GO is the Go templating language. More information: https://pkg.go.dev/text/template @@ -112,65 +107,53 @@ class TemplateType(_TemplateType, metaclass=_TemplateTypeEnumTypeWrapper): """TemplateType defines the set of supported languages that can be used in studio templates. """ - pass TEMPLATE_TYPE_UNSPECIFIED: TemplateType.ValueType # 0 """TEMPLATE_TYPE_UNSPECIFIED indicates an unspecified template type.""" - TEMPLATE_TYPE_MAKO: TemplateType.ValueType # 1 """TEMPLATE_TYPE_MAKO is the Mako templating language for Python. More information: https://www.makotemplates.org """ - TEMPLATE_TYPE_JINJA: TemplateType.ValueType # 2 """TEMPLATE_TYPE_JINJA is the Jinja templating language for Python. More information: https://palletsprojects.com/p/jinja """ - TEMPLATE_TYPE_GO: TemplateType.ValueType # 3 """TEMPLATE_TYPE_GO is the Go templating language. More information: https://pkg.go.dev/text/template NOTE: Not all template functions are supported for this type. """ - global___TemplateType = TemplateType - class _InputFieldType: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _InputFieldTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_InputFieldType.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor INPUT_FIELD_TYPE_UNSPECIFIED: _InputFieldType.ValueType # 0 """INPUT_FIELD_TYPE_UNSPECIFIED indicates an unspecified input data type.""" - INPUT_FIELD_TYPE_BOOLEAN: _InputFieldType.ValueType # 1 """INPUT_FIELD_TYPE_BOOLEAN is the data type for a boolean value.""" - INPUT_FIELD_TYPE_INTEGER: _InputFieldType.ValueType # 2 """INPUT_FIELD_TYPE_INTEGER is the data type for an integer value.""" - INPUT_FIELD_TYPE_FLOAT: _InputFieldType.ValueType # 3 """INPUT_FIELD_TYPE_FLOAT is the data type for a float value.""" - INPUT_FIELD_TYPE_STRING: _InputFieldType.ValueType # 4 """INPUT_FIELD_TYPE_STRING is the data type for a string value.""" - INPUT_FIELD_TYPE_GROUP: _InputFieldType.ValueType # 5 """INPUT_FIELD_TYPE_GROUP is the data type for an unordered group of inputs of any type. This type is used in cases where inputs are required to be consolidated into an object for use in the template or to attach multiple inputs under a resolver or collection. """ - INPUT_FIELD_TYPE_COLLECTION: _InputFieldType.ValueType # 6 """INPUT_FIELD_TYPE_COLLECTION is the data type for an ordered collection of inputs of the same type. This type is used in cases where multiple input values of the same type should be given for a field, and where ordering matters. """ - INPUT_FIELD_TYPE_RESOLVER: _InputFieldType.ValueType # 7 """INPUT_FIELD_TYPE_RESOLVER is the data type for an input that allows its member input to be assigned based on a tag query match. This @@ -179,7 +162,6 @@ class _InputFieldTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper. and each affected device is given the value that corresponds to the tag it is assigned to. """ - INPUT_FIELD_TYPE_TAG_MATCHER: _InputFieldType.ValueType # 8 """INPUT_FIELD_TYPE_TAG_MATCHER is the data type for an input that allows an unordered set of devices or interfaces to be selected. The set of @@ -191,37 +173,29 @@ class InputFieldType(_InputFieldType, metaclass=_InputFieldTypeEnumTypeWrapper): """InputFieldType defines the set of possible data types for values that can be input into a studio. """ - pass INPUT_FIELD_TYPE_UNSPECIFIED: InputFieldType.ValueType # 0 """INPUT_FIELD_TYPE_UNSPECIFIED indicates an unspecified input data type.""" - INPUT_FIELD_TYPE_BOOLEAN: InputFieldType.ValueType # 1 """INPUT_FIELD_TYPE_BOOLEAN is the data type for a boolean value.""" - INPUT_FIELD_TYPE_INTEGER: InputFieldType.ValueType # 2 """INPUT_FIELD_TYPE_INTEGER is the data type for an integer value.""" - INPUT_FIELD_TYPE_FLOAT: InputFieldType.ValueType # 3 """INPUT_FIELD_TYPE_FLOAT is the data type for a float value.""" - INPUT_FIELD_TYPE_STRING: InputFieldType.ValueType # 4 """INPUT_FIELD_TYPE_STRING is the data type for a string value.""" - INPUT_FIELD_TYPE_GROUP: InputFieldType.ValueType # 5 """INPUT_FIELD_TYPE_GROUP is the data type for an unordered group of inputs of any type. This type is used in cases where inputs are required to be consolidated into an object for use in the template or to attach multiple inputs under a resolver or collection. """ - INPUT_FIELD_TYPE_COLLECTION: InputFieldType.ValueType # 6 """INPUT_FIELD_TYPE_COLLECTION is the data type for an ordered collection of inputs of the same type. This type is used in cases where multiple input values of the same type should be given for a field, and where ordering matters. """ - INPUT_FIELD_TYPE_RESOLVER: InputFieldType.ValueType # 7 """INPUT_FIELD_TYPE_RESOLVER is the data type for an input that allows its member input to be assigned based on a tag query match. This @@ -230,40 +204,34 @@ device or a group of devices. The query is resolved at run-time and each affected device is given the value that corresponds to the tag it is assigned to. """ - INPUT_FIELD_TYPE_TAG_MATCHER: InputFieldType.ValueType # 8 """INPUT_FIELD_TYPE_TAG_MATCHER is the data type for an input that allows an unordered set of devices or interfaces to be selected. The set of devices or interfaces that are to be selected are specified by a tag query, resolved at run-time. """ - global___InputFieldType = InputFieldType - class _ResolverFieldInputMode: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _ResolverFieldInputModeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ResolverFieldInputMode.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor RESOLVER_FIELD_INPUT_MODE_UNSPECIFIED: _ResolverFieldInputMode.ValueType # 0 """RESOLVER_FIELD_INPUT_MODE_UNSPECIFIED indicates an unspecified resolver input mode.""" - RESOLVER_FIELD_INPUT_MODE_SINGLE_DEVICE_TAG: _ResolverFieldInputMode.ValueType # 1 """RESOLVER_FIELD_INPUT_MODE_SINGLE_DEVICE_TAG allows devices to be selected based on a single tag label. """ - RESOLVER_FIELD_INPUT_MODE_SINGLE_INTERFACE_TAG: _ResolverFieldInputMode.ValueType # 2 """RESOLVER_FIELD_INPUT_MODE_SINGLE_INTERFACE_TAG allows interfaces to be selected based on a single tag label. """ - RESOLVER_FIELD_INPUT_MODE_MULTI_DEVICE_TAG: _ResolverFieldInputMode.ValueType # 3 """RESOLVER_FIELD_INPUT_MODE_MULTI_DEVICE_TAG allows devices to be selected based on any tag label. """ - RESOLVER_FIELD_INPUT_MODE_MULTI_INTERFACE_TAG: _ResolverFieldInputMode.ValueType # 4 """RESOLVER_FIELD_INPUT_MODE_MULTI_INTERFACE_TAG allows interfaces to be selected based on any tag label. @@ -273,48 +241,40 @@ class ResolverFieldInputMode(_ResolverFieldInputMode, metaclass=_ResolverFieldIn """ResolverFieldInputMode defines the set of ways a resolver tag query can be specified in a studio. """ - pass RESOLVER_FIELD_INPUT_MODE_UNSPECIFIED: ResolverFieldInputMode.ValueType # 0 """RESOLVER_FIELD_INPUT_MODE_UNSPECIFIED indicates an unspecified resolver input mode.""" - RESOLVER_FIELD_INPUT_MODE_SINGLE_DEVICE_TAG: ResolverFieldInputMode.ValueType # 1 """RESOLVER_FIELD_INPUT_MODE_SINGLE_DEVICE_TAG allows devices to be selected based on a single tag label. """ - RESOLVER_FIELD_INPUT_MODE_SINGLE_INTERFACE_TAG: ResolverFieldInputMode.ValueType # 2 """RESOLVER_FIELD_INPUT_MODE_SINGLE_INTERFACE_TAG allows interfaces to be selected based on a single tag label. """ - RESOLVER_FIELD_INPUT_MODE_MULTI_DEVICE_TAG: ResolverFieldInputMode.ValueType # 3 """RESOLVER_FIELD_INPUT_MODE_MULTI_DEVICE_TAG allows devices to be selected based on any tag label. """ - RESOLVER_FIELD_INPUT_MODE_MULTI_INTERFACE_TAG: ResolverFieldInputMode.ValueType # 4 """RESOLVER_FIELD_INPUT_MODE_MULTI_INTERFACE_TAG allows interfaces to be selected based on any tag label. """ - global___ResolverFieldInputMode = ResolverFieldInputMode - class _ResolverFieldDisplayMode: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _ResolverFieldDisplayModeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ResolverFieldDisplayMode.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor RESOLVER_FIELD_DISPLAY_MODE_UNSPECIFIED: _ResolverFieldDisplayMode.ValueType # 0 """RESOLVER_FIELD_DISPLAY_MODE_UNSPECIFIED indicates an unspecified resolver display mode.""" - RESOLVER_FIELD_DISPLAY_MODE_ALL: _ResolverFieldDisplayMode.ValueType # 1 """RESOLVER_FIELD_DISPLAY_MODE_ALL instructs the UI to show all matching devices or interfaces, including ones that have no inputs. """ - RESOLVER_FIELD_DISPLAY_MODE_SPARSE: _ResolverFieldDisplayMode.ValueType # 2 """RESOLVER_FIELD_DISPLAY_MODE_SPARSE instructs the UI to show only matching devices or interfaces that have inputs. @@ -324,48 +284,40 @@ class ResolverFieldDisplayMode(_ResolverFieldDisplayMode, metaclass=_ResolverFie """ResolverFieldDisplayMode defines the set of ways in which the matching devices or interfaces should be displayed on the UI. """ - pass RESOLVER_FIELD_DISPLAY_MODE_UNSPECIFIED: ResolverFieldDisplayMode.ValueType # 0 """RESOLVER_FIELD_DISPLAY_MODE_UNSPECIFIED indicates an unspecified resolver display mode.""" - RESOLVER_FIELD_DISPLAY_MODE_ALL: ResolverFieldDisplayMode.ValueType # 1 """RESOLVER_FIELD_DISPLAY_MODE_ALL instructs the UI to show all matching devices or interfaces, including ones that have no inputs. """ - RESOLVER_FIELD_DISPLAY_MODE_SPARSE: ResolverFieldDisplayMode.ValueType # 2 """RESOLVER_FIELD_DISPLAY_MODE_SPARSE instructs the UI to show only matching devices or interfaces that have inputs. """ - global___ResolverFieldDisplayMode = ResolverFieldDisplayMode - class _TagMatcherFieldMode: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _TagMatcherFieldModeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_TagMatcherFieldMode.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor TAG_MATCHER_FIELD_MODE_UNSPECIFIED: _TagMatcherFieldMode.ValueType # 0 """TAG_MATCHER_FIELD_MODE_UNSPECIFIED indicates an unspecified tag matcher mode.""" - TAG_MATCHER_FIELD_MODE_SINGLE_DEVICE_TAG: _TagMatcherFieldMode.ValueType # 1 """TAG_MATCHER_FIELD_MODE_SINGLE_DEVICE_TAG allows devices to be selected based on a single tag label. """ - TAG_MATCHER_FIELD_MODE_SINGLE_INTERFACE_TAG: _TagMatcherFieldMode.ValueType # 2 """TAG_MATCHER_FIELD_MODE_SINGLE_INTERFACE_TAG allows interfaces to be selected based on a single tag label. """ - TAG_MATCHER_FIELD_MODE_MULTI_DEVICE_TAG: _TagMatcherFieldMode.ValueType # 3 """TAG_MATCHER_FIELD_MODE_MULTI_DEVICE_TAG allows devices to be selected based on any tag label. """ - TAG_MATCHER_FIELD_MODE_MULTI_INTERFACE_TAG: _TagMatcherFieldMode.ValueType # 4 """TAG_MATCHER_FIELD_MODE_MULTI_INTERFACE_TAG allows interfaces to be selected based on any tag label. @@ -375,77 +327,65 @@ class TagMatcherFieldMode(_TagMatcherFieldMode, metaclass=_TagMatcherFieldModeEn """TagMatcherFieldMode defines the set of ways a tag query for matching device or interfaces can be specified in a studio. """ - pass TAG_MATCHER_FIELD_MODE_UNSPECIFIED: TagMatcherFieldMode.ValueType # 0 """TAG_MATCHER_FIELD_MODE_UNSPECIFIED indicates an unspecified tag matcher mode.""" - TAG_MATCHER_FIELD_MODE_SINGLE_DEVICE_TAG: TagMatcherFieldMode.ValueType # 1 """TAG_MATCHER_FIELD_MODE_SINGLE_DEVICE_TAG allows devices to be selected based on a single tag label. """ - TAG_MATCHER_FIELD_MODE_SINGLE_INTERFACE_TAG: TagMatcherFieldMode.ValueType # 2 """TAG_MATCHER_FIELD_MODE_SINGLE_INTERFACE_TAG allows interfaces to be selected based on a single tag label. """ - TAG_MATCHER_FIELD_MODE_MULTI_DEVICE_TAG: TagMatcherFieldMode.ValueType # 3 """TAG_MATCHER_FIELD_MODE_MULTI_DEVICE_TAG allows devices to be selected based on any tag label. """ - TAG_MATCHER_FIELD_MODE_MULTI_INTERFACE_TAG: TagMatcherFieldMode.ValueType # 4 """TAG_MATCHER_FIELD_MODE_MULTI_INTERFACE_TAG allows interfaces to be selected based on any tag label. """ - global___TagMatcherFieldMode = TagMatcherFieldMode - class _AutofillProviderType: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _AutofillProviderTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_AutofillProviderType.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor AUTOFILL_PROVIDER_TYPE_UNSPECIFIED: _AutofillProviderType.ValueType # 0 """AUTOFILL_PROVIDER_TYPE_UNSPECIFIED indicates that no provider type is specified.""" - AUTOFILL_PROVIDER_TYPE_USER_SPECIFIED: _AutofillProviderType.ValueType # 1 """AUTOFILL_PROVIDER_TYPE_USER_SPECIFIED is when an argument is to be provided at runtime by the user. """ - AUTOFILL_PROVIDER_TYPE_PREDEFINED: _AutofillProviderType.ValueType # 2 """AUTOFILL_PROVIDER_TYPE_PREDEFINED is when an argument has a predefined value.""" - AUTOFILL_PROVIDER_TYPE_LINKED: _AutofillProviderType.ValueType # 3 """AUTOFILL_PROVIDER_TYPE_LINKED is when an argument is linked to another studio input field.""" class AutofillProviderType(_AutofillProviderType, metaclass=_AutofillProviderTypeEnumTypeWrapper): """AutofillProviderType describes the set of possible provided argument types.""" - pass AUTOFILL_PROVIDER_TYPE_UNSPECIFIED: AutofillProviderType.ValueType # 0 """AUTOFILL_PROVIDER_TYPE_UNSPECIFIED indicates that no provider type is specified.""" - AUTOFILL_PROVIDER_TYPE_USER_SPECIFIED: AutofillProviderType.ValueType # 1 """AUTOFILL_PROVIDER_TYPE_USER_SPECIFIED is when an argument is to be provided at runtime by the user. """ - AUTOFILL_PROVIDER_TYPE_PREDEFINED: AutofillProviderType.ValueType # 2 """AUTOFILL_PROVIDER_TYPE_PREDEFINED is when an argument has a predefined value.""" - AUTOFILL_PROVIDER_TYPE_LINKED: AutofillProviderType.ValueType # 3 """AUTOFILL_PROVIDER_TYPE_LINKED is when an argument is linked to another studio input field.""" - global___AutofillProviderType = AutofillProviderType - +@typing.final class StudioKey(google.protobuf.message.Message): """StudioKey uniquely identifies a studio.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + STUDIO_ID_FIELD_NUMBER: builtins.int WORKSPACE_ID_FIELD_NUMBER: builtins.int @property @@ -453,27 +393,32 @@ class StudioKey(google.protobuf.message.Message): """studio_id uniquely identifies the studio in the workspace indicated by `workspace_id`. """ - pass + @property def workspace_id(self) -> google.protobuf.wrappers_pb2.StringValue: """workspace_id identifies the workspace within which the studio resides.""" - pass - def __init__(self, + + def __init__( + self, *, - studio_id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - workspace_id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["studio_id",b"studio_id","workspace_id",b"workspace_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["studio_id",b"studio_id","workspace_id",b"workspace_id"]) -> None: ... + studio_id: google.protobuf.wrappers_pb2.StringValue | None = ..., + workspace_id: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["studio_id", b"studio_id", "workspace_id", b"workspace_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["studio_id", b"studio_id", "workspace_id", b"workspace_id"]) -> None: ... + global___StudioKey = StudioKey +@typing.final class StudioConfig(google.protobuf.message.Message): """StudioConfig holds a configuration for a studio. Changes to fields other than `key` and `remove` are applied to a copy of the mainline. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int REMOVE_FIELD_NUMBER: builtins.int DISPLAY_NAME_FIELD_NUMBER: builtins.int @@ -483,7 +428,7 @@ class StudioConfig(google.protobuf.message.Message): @property def key(self) -> global___StudioKey: """key uniquely identifies the studio.""" - pass + @property def remove(self) -> google.protobuf.wrappers_pb2.BoolValue: """remove indicates whether to remove (`true`) or add (`false`, @@ -491,7 +436,7 @@ class StudioConfig(google.protobuf.message.Message): workspace merges. Other data fields are not allowed if this field is set to true. """ - pass + @property def display_name(self) -> google.protobuf.wrappers_pb2.StringValue: """display_name is the name of this studio as displayed on the UI. @@ -499,39 +444,44 @@ class StudioConfig(google.protobuf.message.Message): on top of mainline. The corresponding `Studio` will be present in the workspace only if the studio is modified (via this resource). """ - pass + @property def description(self) -> google.protobuf.wrappers_pb2.StringValue: """description is a brief description of the studio.""" - pass + @property def template(self) -> global___Template: """template is a script that builds the device configuration from the inputs that are described by `input_schema`. """ - pass + @property def input_schema(self) -> global___InputSchema: """input_schema is the schema for the studio inputs that are processed by `template`. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[global___StudioKey] = ..., - remove: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - display_name: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - description: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - template: typing.Optional[global___Template] = ..., - input_schema: typing.Optional[global___InputSchema] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["description",b"description","display_name",b"display_name","input_schema",b"input_schema","key",b"key","remove",b"remove","template",b"template"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["description",b"description","display_name",b"display_name","input_schema",b"input_schema","key",b"key","remove",b"remove","template",b"template"]) -> None: ... + key: global___StudioKey | None = ..., + remove: google.protobuf.wrappers_pb2.BoolValue | None = ..., + display_name: google.protobuf.wrappers_pb2.StringValue | None = ..., + description: google.protobuf.wrappers_pb2.StringValue | None = ..., + template: global___Template | None = ..., + input_schema: global___InputSchema | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["description", b"description", "display_name", b"display_name", "input_schema", b"input_schema", "key", b"key", "remove", b"remove", "template", b"template"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["description", b"description", "display_name", b"display_name", "input_schema", b"input_schema", "key", b"key", "remove", b"remove", "template", b"template"]) -> None: ... + global___StudioConfig = StudioConfig +@typing.final class StudioSummary(google.protobuf.message.Message): """StudioSummary holds basic information about a studio.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int DISPLAY_NAME_FIELD_NUMBER: builtins.int DESCRIPTION_FIELD_NUMBER: builtins.int @@ -541,15 +491,15 @@ class StudioSummary(google.protobuf.message.Message): @property def key(self) -> global___StudioKey: """key uniquely identifies the studio.""" - pass + @property def display_name(self) -> google.protobuf.wrappers_pb2.StringValue: """display_name is the name of this studio as displayed on the UI.""" - pass + @property def description(self) -> google.protobuf.wrappers_pb2.StringValue: """description is a brief description of the studio.""" - pass + @property def immutable(self) -> google.protobuf.wrappers_pb2.BoolValue: """immutable indicates if read-write studio management @@ -557,100 +507,117 @@ class StudioSummary(google.protobuf.message.Message): If studio is immutable, its display name, description, schema and template cannot be modified. """ - pass + @property def entities(self) -> global___Entities: """entities indicate all the entities of the studio.""" - pass + @property def in_use(self) -> google.protobuf.wrappers_pb2.BoolValue: """in_use indicates that the studio is in use, i.e. there are non-empty inputs, and assigned to some devices, either in a given workspace, or in mainline. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[global___StudioKey] = ..., - display_name: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - description: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - immutable: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - entities: typing.Optional[global___Entities] = ..., - in_use: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["description",b"description","display_name",b"display_name","entities",b"entities","immutable",b"immutable","in_use",b"in_use","key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["description",b"description","display_name",b"display_name","entities",b"entities","immutable",b"immutable","in_use",b"in_use","key",b"key"]) -> None: ... + key: global___StudioKey | None = ..., + display_name: google.protobuf.wrappers_pb2.StringValue | None = ..., + description: google.protobuf.wrappers_pb2.StringValue | None = ..., + immutable: google.protobuf.wrappers_pb2.BoolValue | None = ..., + entities: global___Entities | None = ..., + in_use: google.protobuf.wrappers_pb2.BoolValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["description", b"description", "display_name", b"display_name", "entities", b"entities", "immutable", b"immutable", "in_use", b"in_use", "key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["description", b"description", "display_name", b"display_name", "entities", b"entities", "immutable", b"immutable", "in_use", b"in_use", "key", b"key"]) -> None: ... + global___StudioSummary = StudioSummary +@typing.final class Entity(google.protobuf.message.Message): """Entity holds the basic information of an entity.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + ENTITY_TYPE_FIELD_NUMBER: builtins.int LAST_MODIFIED_AT_FIELD_NUMBER: builtins.int LAST_MODIFIED_BY_FIELD_NUMBER: builtins.int REMOVED_FIELD_NUMBER: builtins.int entity_type: global___EntityType.ValueType """EntityType is the type of the entity.""" - @property def last_modified_at(self) -> google.protobuf.timestamp_pb2.Timestamp: """last_modified_at is the time at which the entity was last modified.""" - pass + @property def last_modified_by(self) -> google.protobuf.wrappers_pb2.StringValue: """last_modified_by is the name of the user that last modified the entity.""" - pass + @property def removed(self) -> google.protobuf.wrappers_pb2.BoolValue: """removed indicates if the entity is removed.""" - pass - def __init__(self, + + def __init__( + self, *, entity_type: global___EntityType.ValueType = ..., - last_modified_at: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - last_modified_by: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - removed: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["last_modified_at",b"last_modified_at","last_modified_by",b"last_modified_by","removed",b"removed"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["entity_type",b"entity_type","last_modified_at",b"last_modified_at","last_modified_by",b"last_modified_by","removed",b"removed"]) -> None: ... + last_modified_at: google.protobuf.timestamp_pb2.Timestamp | None = ..., + last_modified_by: google.protobuf.wrappers_pb2.StringValue | None = ..., + removed: google.protobuf.wrappers_pb2.BoolValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["last_modified_at", b"last_modified_at", "last_modified_by", b"last_modified_by", "removed", b"removed"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["entity_type", b"entity_type", "last_modified_at", b"last_modified_at", "last_modified_by", b"last_modified_by", "removed", b"removed"]) -> None: ... + global___Entity = Entity +@typing.final class Entities(google.protobuf.message.Message): """Entities is a list of Entity.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int - key: typing.Text + key: builtins.str @property def value(self) -> global___Entity: ... - def __init__(self, + def __init__( + self, *, - key: typing.Text = ..., - value: typing.Optional[global___Entity] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + key: builtins.str = ..., + value: global___Entity | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property - def values(self) -> google.protobuf.internal.containers.MessageMap[typing.Text, global___Entity]: + def values(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___Entity]: """values is a map from entity type name to entity The possible keys to this map are ENTITY_TYPE_STUDIO, ENTITY_TYPE_INPUTS, ENTITY_TYPE_ASSIGNED_TAGS, ENTITY_TYPE_BUILD_HOOK and ENTITY_TYPE_AUTOFILL_ACTION. """ - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[typing.Text, global___Entity]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.str, global___Entity] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___Entities = Entities +@typing.final class Studio(google.protobuf.message.Message): """Studio holds the active state for a studio.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int CREATED_AT_FIELD_NUMBER: builtins.int CREATED_BY_FIELD_NUMBER: builtins.int @@ -664,23 +631,23 @@ class Studio(google.protobuf.message.Message): @property def key(self) -> global___StudioKey: """key uniquely identifies the studio.""" - pass + @property def created_at(self) -> google.protobuf.timestamp_pb2.Timestamp: """created_at is the time at which the studio was created.""" - pass + @property def created_by(self) -> google.protobuf.wrappers_pb2.StringValue: """created_by is the name of the user that created the studio.""" - pass + @property def last_modified_at(self) -> google.protobuf.timestamp_pb2.Timestamp: """last_modified_at is the time at which the studio was last modified.""" - pass + @property def last_modified_by(self) -> google.protobuf.wrappers_pb2.StringValue: """last_modified_by is the name of the user that last modified the studio.""" - pass + @property def display_name(self) -> google.protobuf.wrappers_pb2.StringValue: """display_name is the name of this studio as displayed on the UI. @@ -688,58 +655,63 @@ class Studio(google.protobuf.message.Message): mainline. This resource will be present in the workspace only if the studio is modified (via the `StudioConfig` resource). """ - pass + @property def description(self) -> google.protobuf.wrappers_pb2.StringValue: """description is a brief description of the studio.""" - pass + @property def template(self) -> global___Template: """template is a script that builds the device configuration from the inputs that are described by `input_schema`. """ - pass + @property def input_schema(self) -> global___InputSchema: """input_schema is the schema for the studio inputs that are processed by `template`. """ - pass + @property def from_package(self) -> google.protobuf.wrappers_pb2.StringValue: """from_package indicates that this studio was created by a package, and can only be modified by the packaging service. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[global___StudioKey] = ..., - created_at: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - created_by: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - last_modified_at: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - last_modified_by: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - display_name: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - description: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - template: typing.Optional[global___Template] = ..., - input_schema: typing.Optional[global___InputSchema] = ..., - from_package: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["created_at",b"created_at","created_by",b"created_by","description",b"description","display_name",b"display_name","from_package",b"from_package","input_schema",b"input_schema","key",b"key","last_modified_at",b"last_modified_at","last_modified_by",b"last_modified_by","template",b"template"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["created_at",b"created_at","created_by",b"created_by","description",b"description","display_name",b"display_name","from_package",b"from_package","input_schema",b"input_schema","key",b"key","last_modified_at",b"last_modified_at","last_modified_by",b"last_modified_by","template",b"template"]) -> None: ... + key: global___StudioKey | None = ..., + created_at: google.protobuf.timestamp_pb2.Timestamp | None = ..., + created_by: google.protobuf.wrappers_pb2.StringValue | None = ..., + last_modified_at: google.protobuf.timestamp_pb2.Timestamp | None = ..., + last_modified_by: google.protobuf.wrappers_pb2.StringValue | None = ..., + display_name: google.protobuf.wrappers_pb2.StringValue | None = ..., + description: google.protobuf.wrappers_pb2.StringValue | None = ..., + template: global___Template | None = ..., + input_schema: global___InputSchema | None = ..., + from_package: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["created_at", b"created_at", "created_by", b"created_by", "description", b"description", "display_name", b"display_name", "from_package", b"from_package", "input_schema", b"input_schema", "key", b"key", "last_modified_at", b"last_modified_at", "last_modified_by", b"last_modified_by", "template", b"template"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["created_at", b"created_at", "created_by", b"created_by", "description", b"description", "display_name", b"display_name", "from_package", b"from_package", "input_schema", b"input_schema", "key", b"key", "last_modified_at", b"last_modified_at", "last_modified_by", b"last_modified_by", "template", b"template"]) -> None: ... + global___Studio = Studio +@typing.final class AssignedTagsConfig(google.protobuf.message.Message): """AssignedTagsConfig holds a configuration to assign a studio to a set of devices matching a tag query. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int REMOVE_FIELD_NUMBER: builtins.int QUERY_FIELD_NUMBER: builtins.int @property def key(self) -> global___StudioKey: """key uniquely identifies the studio to which to assign devices.""" - pass + @property def remove(self) -> google.protobuf.wrappers_pb2.BoolValue: """remove indicates whether to remove (`true`) or add (`false`, @@ -747,7 +719,7 @@ class AssignedTagsConfig(google.protobuf.message.Message): by the key if the encompassing workspace merges. Other data fields are not allowed if this field is set to true. """ - pass + @property def query(self) -> google.protobuf.wrappers_pb2.StringValue: """query is a tag query string that conforms to the CloudVision @@ -755,22 +727,27 @@ class AssignedTagsConfig(google.protobuf.message.Message): sflow:enabled"`, matches all devices with sflow enabled in data centers NYC and SFO. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[global___StudioKey] = ..., - remove: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - query: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","query",b"query","remove",b"remove"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","query",b"query","remove",b"remove"]) -> None: ... + key: global___StudioKey | None = ..., + remove: google.protobuf.wrappers_pb2.BoolValue | None = ..., + query: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "query", b"query", "remove", b"remove"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "query", b"query", "remove", b"remove"]) -> None: ... + global___AssignedTagsConfig = AssignedTagsConfig +@typing.final class AssignedTags(google.protobuf.message.Message): """AssignedTags can be used to retrieve additional metadata about a studio's `AssignedTagsConfig`. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int CREATED_AT_FIELD_NUMBER: builtins.int CREATED_BY_FIELD_NUMBER: builtins.int @@ -780,45 +757,50 @@ class AssignedTags(google.protobuf.message.Message): @property def key(self) -> global___StudioKey: """key uniquely identifies the studio to which devices were assigned.""" - pass + @property def created_at(self) -> google.protobuf.timestamp_pb2.Timestamp: """created_at is the time at which the assignment was first created.""" - pass + @property def created_by(self) -> google.protobuf.wrappers_pb2.StringValue: """created_by is the name of the user that created the assignment.""" - pass + @property def last_modified_at(self) -> google.protobuf.timestamp_pb2.Timestamp: """last_modified_at is the time at which the assignment was last modified.""" - pass + @property def last_modified_by(self) -> google.protobuf.wrappers_pb2.StringValue: """last_modified_by is the name of the user that last modified the assignment.""" - pass + @property def query(self) -> google.protobuf.wrappers_pb2.StringValue: """query is a tag query string that conforms to the CloudVision tag query language. See `AssignedTagsConfig`. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[global___StudioKey] = ..., - created_at: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - created_by: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - last_modified_at: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - last_modified_by: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - query: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["created_at",b"created_at","created_by",b"created_by","key",b"key","last_modified_at",b"last_modified_at","last_modified_by",b"last_modified_by","query",b"query"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["created_at",b"created_at","created_by",b"created_by","key",b"key","last_modified_at",b"last_modified_at","last_modified_by",b"last_modified_by","query",b"query"]) -> None: ... + key: global___StudioKey | None = ..., + created_at: google.protobuf.timestamp_pb2.Timestamp | None = ..., + created_by: google.protobuf.wrappers_pb2.StringValue | None = ..., + last_modified_at: google.protobuf.timestamp_pb2.Timestamp | None = ..., + last_modified_by: google.protobuf.wrappers_pb2.StringValue | None = ..., + query: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["created_at", b"created_at", "created_by", b"created_by", "key", b"key", "last_modified_at", b"last_modified_at", "last_modified_by", b"last_modified_by", "query", b"query"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["created_at", b"created_at", "created_by", b"created_by", "key", b"key", "last_modified_at", b"last_modified_at", "last_modified_by", b"last_modified_by", "query", b"query"]) -> None: ... + global___AssignedTags = AssignedTags +@typing.final class InputsKey(google.protobuf.message.Message): """InputsKey identifies a set of inputs for a particular studio.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + STUDIO_ID_FIELD_NUMBER: builtins.int WORKSPACE_ID_FIELD_NUMBER: builtins.int PATH_FIELD_NUMBER: builtins.int @@ -827,11 +809,11 @@ class InputsKey(google.protobuf.message.Message): """studio_id uniquely identifies the studio in the workspace indicated by `workspace_id`. """ - pass + @property def workspace_id(self) -> google.protobuf.wrappers_pb2.StringValue: """workspace_id uniquely identifies the workspace in which the studio resides.""" - pass + @property def path(self) -> fmp.wrappers_pb2.RepeatedString: """path is the sequence of elements that uniquely identify an input field. @@ -845,17 +827,20 @@ class InputsKey(google.protobuf.message.Message): string. E.g., for a collection A with three members, the path to the second member would be `["A", "1"]`. """ - pass - def __init__(self, + + def __init__( + self, *, - studio_id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - workspace_id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - path: typing.Optional[fmp.wrappers_pb2.RepeatedString] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["path",b"path","studio_id",b"studio_id","workspace_id",b"workspace_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["path",b"path","studio_id",b"studio_id","workspace_id",b"workspace_id"]) -> None: ... + studio_id: google.protobuf.wrappers_pb2.StringValue | None = ..., + workspace_id: google.protobuf.wrappers_pb2.StringValue | None = ..., + path: fmp.wrappers_pb2.RepeatedString | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["path", b"path", "studio_id", b"studio_id", "workspace_id", b"workspace_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["path", b"path", "studio_id", b"studio_id", "workspace_id", b"workspace_id"]) -> None: ... + global___InputsKey = InputsKey +@typing.final class InputsConfig(google.protobuf.message.Message): """InputsConfig is used to input values into a studio. @@ -871,14 +856,16 @@ class InputsConfig(google.protobuf.message.Message): { "A": { "X": "bar" } } ``` """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int REMOVE_FIELD_NUMBER: builtins.int INPUTS_FIELD_NUMBER: builtins.int @property def key(self) -> global___InputsKey: """key uniquely identifies the set of inputs for the studio (at some path).""" - pass + @property def remove(self) -> google.protobuf.wrappers_pb2.BoolValue: """remove indicates whether to remove (`true`) or add (`false`, @@ -886,7 +873,7 @@ class InputsConfig(google.protobuf.message.Message): workspace merges. Other data fields are not allowed if this field is set to true. """ - pass + @property def inputs(self) -> google.protobuf.wrappers_pb2.StringValue: """inputs is the value of the input field at the path as a @@ -918,20 +905,25 @@ class InputsConfig(google.protobuf.message.Message): "inputs": { "A": } ``` """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[global___InputsKey] = ..., - remove: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - inputs: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["inputs",b"inputs","key",b"key","remove",b"remove"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["inputs",b"inputs","key",b"key","remove",b"remove"]) -> None: ... + key: global___InputsKey | None = ..., + remove: google.protobuf.wrappers_pb2.BoolValue | None = ..., + inputs: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["inputs", b"inputs", "key", b"key", "remove", b"remove"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["inputs", b"inputs", "key", b"key", "remove", b"remove"]) -> None: ... + global___InputsConfig = InputsConfig +@typing.final class Inputs(google.protobuf.message.Message): """Inputs is used to retrieve the existing inputs to a studio.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int CREATED_AT_FIELD_NUMBER: builtins.int CREATED_BY_FIELD_NUMBER: builtins.int @@ -941,23 +933,23 @@ class Inputs(google.protobuf.message.Message): @property def key(self) -> global___InputsKey: """key uniquely identifies the set of inputs for the studio (at some path).""" - pass + @property def created_at(self) -> google.protobuf.timestamp_pb2.Timestamp: """created_at is the time at which the inputs were first set.""" - pass + @property def created_by(self) -> google.protobuf.wrappers_pb2.StringValue: """created_by is the name of the user that first set the inputs.""" - pass + @property def last_modified_at(self) -> google.protobuf.timestamp_pb2.Timestamp: """last_modified_at is the time at which the inputs were last modified.""" - pass + @property def last_modified_by(self) -> google.protobuf.wrappers_pb2.StringValue: """last_modified_by is the name of the user that last modified the inputs.""" - pass + @property def inputs(self) -> google.protobuf.wrappers_pb2.StringValue: """inputs is the value of the input field at the path as a JSON string. @@ -966,64 +958,78 @@ class Inputs(google.protobuf.message.Message): be split across multiple messages such that each is less than the Resource API message size limit (1MB). """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[global___InputsKey] = ..., - created_at: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - created_by: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - last_modified_at: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - last_modified_by: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - inputs: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["created_at",b"created_at","created_by",b"created_by","inputs",b"inputs","key",b"key","last_modified_at",b"last_modified_at","last_modified_by",b"last_modified_by"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["created_at",b"created_at","created_by",b"created_by","inputs",b"inputs","key",b"key","last_modified_at",b"last_modified_at","last_modified_by",b"last_modified_by"]) -> None: ... + key: global___InputsKey | None = ..., + created_at: google.protobuf.timestamp_pb2.Timestamp | None = ..., + created_by: google.protobuf.wrappers_pb2.StringValue | None = ..., + last_modified_at: google.protobuf.timestamp_pb2.Timestamp | None = ..., + last_modified_by: google.protobuf.wrappers_pb2.StringValue | None = ..., + inputs: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["created_at", b"created_at", "created_by", b"created_by", "inputs", b"inputs", "key", b"key", "last_modified_at", b"last_modified_at", "last_modified_by", b"last_modified_by"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["created_at", b"created_at", "created_by", b"created_by", "inputs", b"inputs", "key", b"key", "last_modified_at", b"last_modified_at", "last_modified_by", b"last_modified_by"]) -> None: ... + global___Inputs = Inputs +@typing.final class Template(google.protobuf.message.Message): """Template defines a template for a studio.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + TYPE_FIELD_NUMBER: builtins.int BODY_FIELD_NUMBER: builtins.int type: global___TemplateType.ValueType """type specifies the language that this template uses.""" - @property def body(self) -> google.protobuf.wrappers_pb2.StringValue: """body contains the actual source code of the template.""" - pass - def __init__(self, + + def __init__( + self, *, type: global___TemplateType.ValueType = ..., - body: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["body",b"body"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["body",b"body","type",b"type"]) -> None: ... + body: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["body", b"body"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["body", b"body", "type", b"type"]) -> None: ... + global___Template = Template +@typing.final class BooleanInputFieldProps(google.protobuf.message.Message): """BooleanInputFieldProps defines the set of properties for a single boolean field in a studio input schema. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + DEFAULT_VALUE_FIELD_NUMBER: builtins.int @property def default_value(self) -> google.protobuf.wrappers_pb2.BoolValue: """default_value is the default value of the boolean.""" - pass - def __init__(self, + + def __init__( + self, *, - default_value: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["default_value",b"default_value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["default_value",b"default_value"]) -> None: ... + default_value: google.protobuf.wrappers_pb2.BoolValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["default_value", b"default_value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["default_value", b"default_value"]) -> None: ... + global___BooleanInputFieldProps = BooleanInputFieldProps +@typing.final class IntegerInputFieldProps(google.protobuf.message.Message): """IntegerInputFieldProps defines the set of properties for a single integer field in a studio input schema. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + DEFAULT_VALUE_FIELD_NUMBER: builtins.int STATIC_OPTIONS_FIELD_NUMBER: builtins.int RANGE_FIELD_NUMBER: builtins.int @@ -1032,11 +1038,11 @@ class IntegerInputFieldProps(google.protobuf.message.Message): @property def default_value(self) -> google.protobuf.wrappers_pb2.Int64Value: """default_value is the default value of the integer.""" - pass + @property def static_options(self) -> fmp.wrappers_pb2.RepeatedInt64: """static_options defines the set of possible values for the integer.""" - pass + @property def range(self) -> google.protobuf.wrappers_pb2.StringValue: """range imposes a range (inclusive) on the value of the integer. @@ -1044,7 +1050,7 @@ class IntegerInputFieldProps(google.protobuf.message.Message): means the integer can be anything in between and including `-10` and `10`. """ - pass + @property def dynamic_options(self) -> fmp.wrappers_pb2.RepeatedString: """dynamic_options defines the set of possible values for the integer @@ -1063,30 +1069,35 @@ class IntegerInputFieldProps(google.protobuf.message.Message): `"vlanFieldID"` and `"vniFieldID"` are used as the possible values for this integer. """ - pass + @property def extra_values_allowed(self) -> google.protobuf.wrappers_pb2.BoolValue: """extra_values_allowed allows adding values to the field in addition to what's allowed by static_options/dynamic_options. """ - pass - def __init__(self, + + def __init__( + self, *, - default_value: typing.Optional[google.protobuf.wrappers_pb2.Int64Value] = ..., - static_options: typing.Optional[fmp.wrappers_pb2.RepeatedInt64] = ..., - range: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - dynamic_options: typing.Optional[fmp.wrappers_pb2.RepeatedString] = ..., - extra_values_allowed: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["default_value",b"default_value","dynamic_options",b"dynamic_options","extra_values_allowed",b"extra_values_allowed","range",b"range","static_options",b"static_options"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["default_value",b"default_value","dynamic_options",b"dynamic_options","extra_values_allowed",b"extra_values_allowed","range",b"range","static_options",b"static_options"]) -> None: ... + default_value: google.protobuf.wrappers_pb2.Int64Value | None = ..., + static_options: fmp.wrappers_pb2.RepeatedInt64 | None = ..., + range: google.protobuf.wrappers_pb2.StringValue | None = ..., + dynamic_options: fmp.wrappers_pb2.RepeatedString | None = ..., + extra_values_allowed: google.protobuf.wrappers_pb2.BoolValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["default_value", b"default_value", "dynamic_options", b"dynamic_options", "extra_values_allowed", b"extra_values_allowed", "range", b"range", "static_options", b"static_options"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["default_value", b"default_value", "dynamic_options", b"dynamic_options", "extra_values_allowed", b"extra_values_allowed", "range", b"range", "static_options", b"static_options"]) -> None: ... + global___IntegerInputFieldProps = IntegerInputFieldProps +@typing.final class FloatInputFieldProps(google.protobuf.message.Message): """FloatInputFieldProps defines the set of properties for a single float field in a studio input schema. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + DEFAULT_VALUE_FIELD_NUMBER: builtins.int STATIC_OPTIONS_FIELD_NUMBER: builtins.int DYNAMIC_OPTIONS_FIELD_NUMBER: builtins.int @@ -1094,11 +1105,11 @@ class FloatInputFieldProps(google.protobuf.message.Message): @property def default_value(self) -> google.protobuf.wrappers_pb2.FloatValue: """default_value is the default value of the float.""" - pass + @property def static_options(self) -> fmp.wrappers_pb2.RepeatedFloat: """static_options defines the set of possible values for the float.""" - pass + @property def dynamic_options(self) -> fmp.wrappers_pb2.RepeatedString: """dynamic_options defines the set of possible values for the float @@ -1117,29 +1128,34 @@ class FloatInputFieldProps(google.protobuf.message.Message): `"floatField1ID"` and `"floatField2ID"` are used as the possible values for this float. """ - pass + @property def extra_values_allowed(self) -> google.protobuf.wrappers_pb2.BoolValue: """extra_values_allowed allows adding values to the field in addition to what's allowed by static_options/dynamic_options. """ - pass - def __init__(self, + + def __init__( + self, *, - default_value: typing.Optional[google.protobuf.wrappers_pb2.FloatValue] = ..., - static_options: typing.Optional[fmp.wrappers_pb2.RepeatedFloat] = ..., - dynamic_options: typing.Optional[fmp.wrappers_pb2.RepeatedString] = ..., - extra_values_allowed: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["default_value",b"default_value","dynamic_options",b"dynamic_options","extra_values_allowed",b"extra_values_allowed","static_options",b"static_options"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["default_value",b"default_value","dynamic_options",b"dynamic_options","extra_values_allowed",b"extra_values_allowed","static_options",b"static_options"]) -> None: ... + default_value: google.protobuf.wrappers_pb2.FloatValue | None = ..., + static_options: fmp.wrappers_pb2.RepeatedFloat | None = ..., + dynamic_options: fmp.wrappers_pb2.RepeatedString | None = ..., + extra_values_allowed: google.protobuf.wrappers_pb2.BoolValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["default_value", b"default_value", "dynamic_options", b"dynamic_options", "extra_values_allowed", b"extra_values_allowed", "static_options", b"static_options"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["default_value", b"default_value", "dynamic_options", b"dynamic_options", "extra_values_allowed", b"extra_values_allowed", "static_options", b"static_options"]) -> None: ... + global___FloatInputFieldProps = FloatInputFieldProps +@typing.final class StringInputFieldProps(google.protobuf.message.Message): """StringInputFieldProps defines the set of properties for a single string field in a studio input schema. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + DEFAULT_VALUE_FIELD_NUMBER: builtins.int STATIC_OPTIONS_FIELD_NUMBER: builtins.int DYNAMIC_OPTIONS_FIELD_NUMBER: builtins.int @@ -1151,11 +1167,11 @@ class StringInputFieldProps(google.protobuf.message.Message): @property def default_value(self) -> google.protobuf.wrappers_pb2.StringValue: """default_value is the default value of the string.""" - pass + @property def static_options(self) -> fmp.wrappers_pb2.RepeatedString: """static_options defines the set of possible values for the string.""" - pass + @property def dynamic_options(self) -> fmp.wrappers_pb2.RepeatedString: """dynamic_options defines the set of possible values for the string @@ -1174,7 +1190,7 @@ class StringInputFieldProps(google.protobuf.message.Message): `"deviceFieldID"` and `"ipFieldID"` are used as the possible values for this string. """ - pass + @property def length(self) -> google.protobuf.wrappers_pb2.StringValue: """length imposes a length range (inclusive) on the value of the @@ -1182,14 +1198,14 @@ class StringInputFieldProps(google.protobuf.message.Message): `"3..7"` means the value of the string can be three to seven characters long. """ - pass + @property def pattern(self) -> google.protobuf.wrappers_pb2.StringValue: """pattern imposes a regular expression matching constraint on the value of the string. This should be a Google RE2-compliant regular expression (https://github.com/google/re2/wiki/Syntax). """ - pass + @property def format(self) -> google.protobuf.wrappers_pb2.StringValue: """format imposes a well-known format on the value of the string. @@ -1204,7 +1220,7 @@ class StringInputFieldProps(google.protobuf.message.Message): * `"cidrv6"`: an IPv6 address in CIDR notation (e.g. 2001:db8:a0b::1/32) * `"url"`: a URL (e.g., http://www.google.com) """ - pass + @property def is_secret(self) -> google.protobuf.wrappers_pb2.BoolValue: """is_secret specifies whether the string is a secret and its @@ -1212,53 +1228,63 @@ class StringInputFieldProps(google.protobuf.message.Message): the value of the string is `"secret-value-1"`, it will be masked as `"**********"`. """ - pass + @property def extra_values_allowed(self) -> google.protobuf.wrappers_pb2.BoolValue: """extra_values_allowed allows adding values to the field in addition to what's allowed by static_options/dynamic_options. """ - pass - def __init__(self, + + def __init__( + self, *, - default_value: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - static_options: typing.Optional[fmp.wrappers_pb2.RepeatedString] = ..., - dynamic_options: typing.Optional[fmp.wrappers_pb2.RepeatedString] = ..., - length: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - pattern: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - format: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - is_secret: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - extra_values_allowed: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["default_value",b"default_value","dynamic_options",b"dynamic_options","extra_values_allowed",b"extra_values_allowed","format",b"format","is_secret",b"is_secret","length",b"length","pattern",b"pattern","static_options",b"static_options"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["default_value",b"default_value","dynamic_options",b"dynamic_options","extra_values_allowed",b"extra_values_allowed","format",b"format","is_secret",b"is_secret","length",b"length","pattern",b"pattern","static_options",b"static_options"]) -> None: ... + default_value: google.protobuf.wrappers_pb2.StringValue | None = ..., + static_options: fmp.wrappers_pb2.RepeatedString | None = ..., + dynamic_options: fmp.wrappers_pb2.RepeatedString | None = ..., + length: google.protobuf.wrappers_pb2.StringValue | None = ..., + pattern: google.protobuf.wrappers_pb2.StringValue | None = ..., + format: google.protobuf.wrappers_pb2.StringValue | None = ..., + is_secret: google.protobuf.wrappers_pb2.BoolValue | None = ..., + extra_values_allowed: google.protobuf.wrappers_pb2.BoolValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["default_value", b"default_value", "dynamic_options", b"dynamic_options", "extra_values_allowed", b"extra_values_allowed", "format", b"format", "is_secret", b"is_secret", "length", b"length", "pattern", b"pattern", "static_options", b"static_options"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["default_value", b"default_value", "dynamic_options", b"dynamic_options", "extra_values_allowed", b"extra_values_allowed", "format", b"format", "is_secret", b"is_secret", "length", b"length", "pattern", b"pattern", "static_options", b"static_options"]) -> None: ... + global___StringInputFieldProps = StringInputFieldProps +@typing.final class GroupInputFieldProps(google.protobuf.message.Message): """GroupInputFieldProps defines the set of properties for a single group field in a studio input schema. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + MEMBERS_FIELD_NUMBER: builtins.int @property def members(self) -> fmp.wrappers_pb2.RepeatedString: """members (required) identifies the member fields of the group as defined in the schema. """ - pass - def __init__(self, + + def __init__( + self, *, - members: typing.Optional[fmp.wrappers_pb2.RepeatedString] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["members",b"members"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["members",b"members"]) -> None: ... + members: fmp.wrappers_pb2.RepeatedString | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["members", b"members"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["members", b"members"]) -> None: ... + global___GroupInputFieldProps = GroupInputFieldProps +@typing.final class CollectionInputFieldProps(google.protobuf.message.Message): """CollectionInputFieldProps defines the set of properties for a single collection field in a studio input schema. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + BASE_FIELD_ID_FIELD_NUMBER: builtins.int KEY_FIELD_NUMBER: builtins.int @property @@ -1267,7 +1293,7 @@ class CollectionInputFieldProps(google.protobuf.message.Message): that should be used as the type for each element in the collection. """ - pass + @property def key(self) -> google.protobuf.wrappers_pb2.StringValue: """key can be used when `base_field_id` references a group field, @@ -1275,37 +1301,40 @@ class CollectionInputFieldProps(google.protobuf.message.Message): as the key for each element in the collection. This is used for display purposes only. """ - pass - def __init__(self, + + def __init__( + self, *, - base_field_id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - key: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["base_field_id",b"base_field_id","key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["base_field_id",b"base_field_id","key",b"key"]) -> None: ... + base_field_id: google.protobuf.wrappers_pb2.StringValue | None = ..., + key: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["base_field_id", b"base_field_id", "key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["base_field_id", b"base_field_id", "key", b"key"]) -> None: ... + global___CollectionInputFieldProps = CollectionInputFieldProps +@typing.final class ResolverInputFieldProps(google.protobuf.message.Message): """ResolverInputFieldProps defines the set of properties for a single resolver field in a studio input schema. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + BASE_FIELD_ID_FIELD_NUMBER: builtins.int DISPLAY_MODE_FIELD_NUMBER: builtins.int INPUT_MODE_FIELD_NUMBER: builtins.int INPUT_TAG_LABEL_FIELD_NUMBER: builtins.int TAG_FILTER_QUERY_FIELD_NUMBER: builtins.int + display_mode: global___ResolverFieldDisplayMode.ValueType + """display_mode (required) is the display mode of the resolver.""" + input_mode: global___ResolverFieldInputMode.ValueType + """input_mode (required) is the input mode of the resolver.""" @property def base_field_id(self) -> google.protobuf.wrappers_pb2.StringValue: """base_field_id (required) identifies the field in the schema to which the resolver query maps. """ - pass - display_mode: global___ResolverFieldDisplayMode.ValueType - """display_mode (required) is the display mode of the resolver.""" - - input_mode: global___ResolverFieldInputMode.ValueType - """input_mode (required) is the input mode of the resolver.""" @property def input_tag_label(self) -> google.protobuf.wrappers_pb2.StringValue: @@ -1313,75 +1342,84 @@ class ResolverInputFieldProps(google.protobuf.message.Message): `RESOLVER_FIELD_INPUT_MODE_SINGLE_*_TAG` and it specifies the tag label must be used in the resolver query. """ - pass + @property def tag_filter_query(self) -> google.protobuf.wrappers_pb2.StringValue: """tag_filter_query limits the set of elements that the resolver query can return. E.g., `"device:D1,D2"` will constrain results to the devices D1 and D2. """ - pass - def __init__(self, + + def __init__( + self, *, - base_field_id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., + base_field_id: google.protobuf.wrappers_pb2.StringValue | None = ..., display_mode: global___ResolverFieldDisplayMode.ValueType = ..., input_mode: global___ResolverFieldInputMode.ValueType = ..., - input_tag_label: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - tag_filter_query: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["base_field_id",b"base_field_id","input_tag_label",b"input_tag_label","tag_filter_query",b"tag_filter_query"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["base_field_id",b"base_field_id","display_mode",b"display_mode","input_mode",b"input_mode","input_tag_label",b"input_tag_label","tag_filter_query",b"tag_filter_query"]) -> None: ... + input_tag_label: google.protobuf.wrappers_pb2.StringValue | None = ..., + tag_filter_query: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["base_field_id", b"base_field_id", "input_tag_label", b"input_tag_label", "tag_filter_query", b"tag_filter_query"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["base_field_id", b"base_field_id", "display_mode", b"display_mode", "input_mode", b"input_mode", "input_tag_label", b"input_tag_label", "tag_filter_query", b"tag_filter_query"]) -> None: ... + global___ResolverInputFieldProps = ResolverInputFieldProps +@typing.final class TagMatcherInputFieldProps(google.protobuf.message.Message): """TagMatcherInputFieldProps defines the set of properties for a single selector field in a studio input schema. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + TAG_MATCHER_MODE_FIELD_NUMBER: builtins.int TAG_MATCHER_LABEL_FIELD_NUMBER: builtins.int TAG_FILTER_QUERY_FIELD_NUMBER: builtins.int RESOLVER_FILTERING_ALLOWED_FIELD_NUMBER: builtins.int tag_matcher_mode: global___TagMatcherFieldMode.ValueType """tag_matcher_mode (required) is the tag mode of the matcher.""" - @property def tag_matcher_label(self) -> google.protobuf.wrappers_pb2.StringValue: """tag_matcher_label can be used when `tag_matcher_mode` is one of `TAG_MATCHER_FIELD_MODE_SINGLE_*_TAG` and it specifies the tag label which must be used in the match query. """ - pass + @property def tag_filter_query(self) -> google.protobuf.wrappers_pb2.StringValue: """tag_filter_query limits the set of devices that the match query can return. E.g., `"device:D1,D2"` will constrain results to the devices D1 and D2. """ - pass + @property def resolver_filtering_allowed(self) -> google.protobuf.wrappers_pb2.BoolValue: """resolver_filtering_allowed indicates whether results of the match query be filtered based on what any parent resolvers allow. This is `true` by default. """ - pass - def __init__(self, + + def __init__( + self, *, tag_matcher_mode: global___TagMatcherFieldMode.ValueType = ..., - tag_matcher_label: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - tag_filter_query: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - resolver_filtering_allowed: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["resolver_filtering_allowed",b"resolver_filtering_allowed","tag_filter_query",b"tag_filter_query","tag_matcher_label",b"tag_matcher_label"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["resolver_filtering_allowed",b"resolver_filtering_allowed","tag_filter_query",b"tag_filter_query","tag_matcher_label",b"tag_matcher_label","tag_matcher_mode",b"tag_matcher_mode"]) -> None: ... + tag_matcher_label: google.protobuf.wrappers_pb2.StringValue | None = ..., + tag_filter_query: google.protobuf.wrappers_pb2.StringValue | None = ..., + resolver_filtering_allowed: google.protobuf.wrappers_pb2.BoolValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["resolver_filtering_allowed", b"resolver_filtering_allowed", "tag_filter_query", b"tag_filter_query", "tag_matcher_label", b"tag_matcher_label"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["resolver_filtering_allowed", b"resolver_filtering_allowed", "tag_filter_query", b"tag_filter_query", "tag_matcher_label", b"tag_matcher_label", "tag_matcher_mode", b"tag_matcher_mode"]) -> None: ... + global___TagMatcherInputFieldProps = TagMatcherInputFieldProps +@typing.final class InputField(google.protobuf.message.Message): """InputField defines the set of properties for a single field in a studio input schema. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + ID_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int NAME_FIELD_NUMBER: builtins.int @@ -1397,209 +1435,236 @@ class InputField(google.protobuf.message.Message): RESOLVER_PROPS_FIELD_NUMBER: builtins.int AUTO_FILL_ACTION_ID_FIELD_NUMBER: builtins.int TAG_MATCHER_PROPS_FIELD_NUMBER: builtins.int + type: global___InputFieldType.ValueType + """type (required) specifies the type for the field.""" @property def id(self) -> google.protobuf.wrappers_pb2.StringValue: """id (required) uniquely identifies the field within the schema.""" - pass - type: global___InputFieldType.ValueType - """type (required) specifies the type for the field.""" @property def name(self) -> google.protobuf.wrappers_pb2.StringValue: """name (required) is the variable name by which the field can be referenced in the template for the studio. """ - pass + @property def label(self) -> google.protobuf.wrappers_pb2.StringValue: """label (required) is the label of the field as displayed on the UI.""" - pass + @property def description(self) -> google.protobuf.wrappers_pb2.StringValue: """description is a short description of the field.""" - pass + @property def required(self) -> google.protobuf.wrappers_pb2.BoolValue: """required indicates whether the field always requires a value. This is `false` by default. """ - pass + @property def boolean_props(self) -> global___BooleanInputFieldProps: """boolean_props defines properties for the field if it is of type `INPUT_FIELD_TYPE_BOOLEAN`. """ - pass + @property def integer_props(self) -> global___IntegerInputFieldProps: """integer_props defines properties for the field if it is of type `INPUT_FIELD_TYPE_INTEGER`. """ - pass + @property def float_props(self) -> global___FloatInputFieldProps: """float_props defines properties for the field if it is of type `INPUT_FIELD_TYPE_FLOAT`. """ - pass + @property def string_props(self) -> global___StringInputFieldProps: """string_props defines properties for the field if it is of type `INPUT_FIELD_TYPE_STRING`. """ - pass + @property def group_props(self) -> global___GroupInputFieldProps: """group_props defines properties for the field if it is of type `INPUT_FIELD_TYPE_GROUP`. """ - pass + @property def collection_props(self) -> global___CollectionInputFieldProps: """collection_props defines properties for the field if it is of type `INPUT_FIELD_TYPE_COLLECTION`. """ - pass + @property def resolver_props(self) -> global___ResolverInputFieldProps: """resolver_props defines properties for the field if it is of type `INPUT_FIELD_TYPE_RESOLVER`. """ - pass + @property def auto_fill_action_id(self) -> google.protobuf.wrappers_pb2.StringValue: """auto_fill_action_id identifies the autofill action that can be used to automatically populate the value of this field on the UI. """ - pass + @property def tag_matcher_props(self) -> global___TagMatcherInputFieldProps: """tag_matcher_props defines properties for the field if it is of type `INPUT_FIELD_TYPE_TAG_MATCHER`. """ - pass - def __init__(self, + + def __init__( + self, *, - id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., + id: google.protobuf.wrappers_pb2.StringValue | None = ..., type: global___InputFieldType.ValueType = ..., - name: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - label: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - description: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - required: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - boolean_props: typing.Optional[global___BooleanInputFieldProps] = ..., - integer_props: typing.Optional[global___IntegerInputFieldProps] = ..., - float_props: typing.Optional[global___FloatInputFieldProps] = ..., - string_props: typing.Optional[global___StringInputFieldProps] = ..., - group_props: typing.Optional[global___GroupInputFieldProps] = ..., - collection_props: typing.Optional[global___CollectionInputFieldProps] = ..., - resolver_props: typing.Optional[global___ResolverInputFieldProps] = ..., - auto_fill_action_id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - tag_matcher_props: typing.Optional[global___TagMatcherInputFieldProps] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["auto_fill_action_id",b"auto_fill_action_id","boolean_props",b"boolean_props","collection_props",b"collection_props","description",b"description","float_props",b"float_props","group_props",b"group_props","id",b"id","integer_props",b"integer_props","label",b"label","name",b"name","required",b"required","resolver_props",b"resolver_props","string_props",b"string_props","tag_matcher_props",b"tag_matcher_props"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["auto_fill_action_id",b"auto_fill_action_id","boolean_props",b"boolean_props","collection_props",b"collection_props","description",b"description","float_props",b"float_props","group_props",b"group_props","id",b"id","integer_props",b"integer_props","label",b"label","name",b"name","required",b"required","resolver_props",b"resolver_props","string_props",b"string_props","tag_matcher_props",b"tag_matcher_props","type",b"type"]) -> None: ... + name: google.protobuf.wrappers_pb2.StringValue | None = ..., + label: google.protobuf.wrappers_pb2.StringValue | None = ..., + description: google.protobuf.wrappers_pb2.StringValue | None = ..., + required: google.protobuf.wrappers_pb2.BoolValue | None = ..., + boolean_props: global___BooleanInputFieldProps | None = ..., + integer_props: global___IntegerInputFieldProps | None = ..., + float_props: global___FloatInputFieldProps | None = ..., + string_props: global___StringInputFieldProps | None = ..., + group_props: global___GroupInputFieldProps | None = ..., + collection_props: global___CollectionInputFieldProps | None = ..., + resolver_props: global___ResolverInputFieldProps | None = ..., + auto_fill_action_id: google.protobuf.wrappers_pb2.StringValue | None = ..., + tag_matcher_props: global___TagMatcherInputFieldProps | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["auto_fill_action_id", b"auto_fill_action_id", "boolean_props", b"boolean_props", "collection_props", b"collection_props", "description", b"description", "float_props", b"float_props", "group_props", b"group_props", "id", b"id", "integer_props", b"integer_props", "label", b"label", "name", b"name", "required", b"required", "resolver_props", b"resolver_props", "string_props", b"string_props", "tag_matcher_props", b"tag_matcher_props"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["auto_fill_action_id", b"auto_fill_action_id", "boolean_props", b"boolean_props", "collection_props", b"collection_props", "description", b"description", "float_props", b"float_props", "group_props", b"group_props", "id", b"id", "integer_props", b"integer_props", "label", b"label", "name", b"name", "required", b"required", "resolver_props", b"resolver_props", "string_props", b"string_props", "tag_matcher_props", b"tag_matcher_props", "type", b"type"]) -> None: ... + global___InputField = InputField +@typing.final class InputFields(google.protobuf.message.Message): """InputFields is a collection of `InputField`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int - key: typing.Text + key: builtins.str @property def value(self) -> global___InputField: ... - def __init__(self, + def __init__( + self, *, - key: typing.Text = ..., - value: typing.Optional[global___InputField] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + key: builtins.str = ..., + value: global___InputField | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property - def values(self) -> google.protobuf.internal.containers.MessageMap[typing.Text, global___InputField]: + def values(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___InputField]: """values (required) is a map from input field ID to `InputField`.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[typing.Text, global___InputField]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.str, global___InputField] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___InputFields = InputFields +@typing.final class Layout(google.protobuf.message.Message): """Layout specifies the display properties for input fields. This is intended for UI usage only. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int @property def value(self) -> google.protobuf.wrappers_pb2.StringValue: """value is a JSON object containing the layout config.""" - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["value",b"value"]) -> None: ... + value: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["value", b"value"]) -> None: ... + global___Layout = Layout +@typing.final class InputSchema(google.protobuf.message.Message): """InputSchema defines an input schema for a studio, which determines the values that can be input into the studio. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + FIELDS_FIELD_NUMBER: builtins.int LAYOUT_FIELD_NUMBER: builtins.int @property def fields(self) -> global___InputFields: """fields (required) are the set of fields that make up the schema.""" - pass + @property def layout(self) -> global___Layout: """layout (UI only) defines the display properties for `fields`.""" - pass - def __init__(self, + + def __init__( + self, *, - fields: typing.Optional[global___InputFields] = ..., - layout: typing.Optional[global___Layout] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["fields",b"fields","layout",b"layout"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["fields",b"fields","layout",b"layout"]) -> None: ... + fields: global___InputFields | None = ..., + layout: global___Layout | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["fields", b"fields", "layout", b"layout"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["fields", b"fields", "layout", b"layout"]) -> None: ... + global___InputSchema = InputSchema +@typing.final class SecretInput(google.protobuf.message.Message): """SecretInput can be used to retrieve the unmasked value of a secret in a studio. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int PLAIN_TEXT_FIELD_NUMBER: builtins.int @property def key(self) -> global___InputsKey: """key identifies the secret in the studio inputs.""" - pass + @property def plain_text(self) -> google.protobuf.wrappers_pb2.StringValue: """plain_text is the unmasked value of the secret.""" - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[global___InputsKey] = ..., - plain_text: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","plain_text",b"plain_text"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","plain_text",b"plain_text"]) -> None: ... + key: global___InputsKey | None = ..., + plain_text: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "plain_text", b"plain_text"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "plain_text", b"plain_text"]) -> None: ... + global___SecretInput = SecretInput +@typing.final class AutofillActionKey(google.protobuf.message.Message): """AutofillActionKey identifies an autofill action.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + STUDIO_ID_FIELD_NUMBER: builtins.int WORKSPACE_ID_FIELD_NUMBER: builtins.int INPUT_FIELD_ID_FIELD_NUMBER: builtins.int @@ -1608,30 +1673,35 @@ class AutofillActionKey(google.protobuf.message.Message): """studio_id uniquely identifies the studio in the workspace indicated by `workspace_id`. """ - pass + @property def workspace_id(self) -> google.protobuf.wrappers_pb2.StringValue: """workspace_id uniquely identifies the workspace in which the studio resides.""" - pass + @property def input_field_id(self) -> google.protobuf.wrappers_pb2.StringValue: """input_field_id uniquely identifies the input field within the schema associated with the action indicated by `action_id`. """ - pass - def __init__(self, + + def __init__( + self, *, - studio_id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - workspace_id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - input_field_id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["input_field_id",b"input_field_id","studio_id",b"studio_id","workspace_id",b"workspace_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["input_field_id",b"input_field_id","studio_id",b"studio_id","workspace_id",b"workspace_id"]) -> None: ... + studio_id: google.protobuf.wrappers_pb2.StringValue | None = ..., + workspace_id: google.protobuf.wrappers_pb2.StringValue | None = ..., + input_field_id: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["input_field_id", b"input_field_id", "studio_id", b"studio_id", "workspace_id", b"workspace_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["input_field_id", b"input_field_id", "studio_id", b"studio_id", "workspace_id", b"workspace_id"]) -> None: ... + global___AutofillActionKey = AutofillActionKey +@typing.final class AutofillActionConfig(google.protobuf.message.Message): """AutofillActionConfig contains configuration information for an autofill action.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int REMOVE_FIELD_NUMBER: builtins.int ACTION_ID_FIELD_NUMBER: builtins.int @@ -1640,25 +1710,25 @@ class AutofillActionConfig(google.protobuf.message.Message): @property def key(self) -> global___AutofillActionKey: """key uniquely identifies the action-to-studio association.""" - pass + @property def remove(self) -> google.protobuf.wrappers_pb2.BoolValue: """remove indicates whether to remove (`true`) or add (`false`, unset) the autofill action configuration identified by the key if the encompassing workspace merges. Other data fields are not allowed if this field is set to true. """ - pass + @property def action_id(self) -> google.protobuf.wrappers_pb2.StringValue: """action_id uniquely identifies the autofill action associated with the input field.""" - pass + @property def description(self) -> google.protobuf.wrappers_pb2.StringValue: """description is an optional field to describe the autofill action that will be displayed in a tooltip in the UI when the user hovers over the button to run the autofill action. """ - pass + @property def argument_providers(self) -> global___AutofillArgumentProviders: """argument_providers is an optional field that specifies how dynamic arguments are @@ -1669,22 +1739,27 @@ class AutofillActionConfig(google.protobuf.message.Message): which are always set in an autofill action execution context (namely InputPath, StudioId, and WorkspaceId). """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[global___AutofillActionKey] = ..., - remove: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - action_id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - description: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - argument_providers: typing.Optional[global___AutofillArgumentProviders] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["action_id",b"action_id","argument_providers",b"argument_providers","description",b"description","key",b"key","remove",b"remove"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["action_id",b"action_id","argument_providers",b"argument_providers","description",b"description","key",b"key","remove",b"remove"]) -> None: ... + key: global___AutofillActionKey | None = ..., + remove: google.protobuf.wrappers_pb2.BoolValue | None = ..., + action_id: google.protobuf.wrappers_pb2.StringValue | None = ..., + description: google.protobuf.wrappers_pb2.StringValue | None = ..., + argument_providers: global___AutofillArgumentProviders | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["action_id", b"action_id", "argument_providers", b"argument_providers", "description", b"description", "key", b"key", "remove", b"remove"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["action_id", b"action_id", "argument_providers", b"argument_providers", "description", b"description", "key", b"key", "remove", b"remove"]) -> None: ... + global___AutofillActionConfig = AutofillActionConfig +@typing.final class AutofillAction(google.protobuf.message.Message): """AutofillAction can be used to retrieve additional metadata about an autofill action.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int CREATED_AT_FIELD_NUMBER: builtins.int CREATED_BY_FIELD_NUMBER: builtins.int @@ -1696,34 +1771,34 @@ class AutofillAction(google.protobuf.message.Message): @property def key(self) -> global___AutofillActionKey: """key uniquely identifies the action-to-studio association.""" - pass + @property def created_at(self) -> google.protobuf.timestamp_pb2.Timestamp: """created_at is the time at which the inputs were first set.""" - pass + @property def created_by(self) -> google.protobuf.wrappers_pb2.StringValue: """created_by is the name of the user that first set the inputs.""" - pass + @property def last_modified_at(self) -> google.protobuf.timestamp_pb2.Timestamp: """last_modified_at is the time at which the inputs were last modified.""" - pass + @property def last_modified_by(self) -> google.protobuf.wrappers_pb2.StringValue: """last_modified_by is the name of the user that last modified the inputs.""" - pass + @property def action_id(self) -> google.protobuf.wrappers_pb2.StringValue: """action_id uniquely identifies the autofill action associated with the input field.""" - pass + @property def description(self) -> google.protobuf.wrappers_pb2.StringValue: """description is an optional field to describe the autofill action that will be displayed in a tooltip in the UI when the user hovers over the button to run the autofill action. """ - pass + @property def argument_providers(self) -> global___AutofillArgumentProviders: """argument_providers is an optional field that specifies how dynamic arguments are @@ -1734,64 +1809,76 @@ class AutofillAction(google.protobuf.message.Message): which are always set in an autofill action execution context (namely InputPath, StudioID, and WorkspaceID). """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[global___AutofillActionKey] = ..., - created_at: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - created_by: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - last_modified_at: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - last_modified_by: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - action_id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - description: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - argument_providers: typing.Optional[global___AutofillArgumentProviders] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["action_id",b"action_id","argument_providers",b"argument_providers","created_at",b"created_at","created_by",b"created_by","description",b"description","key",b"key","last_modified_at",b"last_modified_at","last_modified_by",b"last_modified_by"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["action_id",b"action_id","argument_providers",b"argument_providers","created_at",b"created_at","created_by",b"created_by","description",b"description","key",b"key","last_modified_at",b"last_modified_at","last_modified_by",b"last_modified_by"]) -> None: ... + key: global___AutofillActionKey | None = ..., + created_at: google.protobuf.timestamp_pb2.Timestamp | None = ..., + created_by: google.protobuf.wrappers_pb2.StringValue | None = ..., + last_modified_at: google.protobuf.timestamp_pb2.Timestamp | None = ..., + last_modified_by: google.protobuf.wrappers_pb2.StringValue | None = ..., + action_id: google.protobuf.wrappers_pb2.StringValue | None = ..., + description: google.protobuf.wrappers_pb2.StringValue | None = ..., + argument_providers: global___AutofillArgumentProviders | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["action_id", b"action_id", "argument_providers", b"argument_providers", "created_at", b"created_at", "created_by", b"created_by", "description", b"description", "key", b"key", "last_modified_at", b"last_modified_at", "last_modified_by", b"last_modified_by"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["action_id", b"action_id", "argument_providers", b"argument_providers", "created_at", b"created_at", "created_by", b"created_by", "description", b"description", "key", b"key", "last_modified_at", b"last_modified_at", "last_modified_by", b"last_modified_by"]) -> None: ... + global___AutofillAction = AutofillAction +@typing.final class AutofillArgumentProviders(google.protobuf.message.Message): """AutofillArgumentProviders is a map of dynamic argument name to argument provider information.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int - key: typing.Text + key: builtins.str @property def value(self) -> global___AutofillArgumentProvider: ... - def __init__(self, + def __init__( + self, *, - key: typing.Text = ..., - value: typing.Optional[global___AutofillArgumentProvider] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + key: builtins.str = ..., + value: global___AutofillArgumentProvider | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property - def values(self) -> google.protobuf.internal.containers.MessageMap[typing.Text, global___AutofillArgumentProvider]: + def values(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___AutofillArgumentProvider]: """values is a map of dynamic argument name to argument provider information.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[typing.Text, global___AutofillArgumentProvider]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.str, global___AutofillArgumentProvider] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___AutofillArgumentProviders = AutofillArgumentProviders +@typing.final class AutofillArgumentProvider(google.protobuf.message.Message): """AutofillArgumentProvider describes a particular dynamic argument's type and value (if applicable). """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + TYPE_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int type: global___AutofillProviderType.ValueType """type is the type of argument provider, describing how it is to be handled when the associated action is called. """ - @property def value(self) -> google.protobuf.wrappers_pb2.StringValue: """value is the value of the argument, if provided. @@ -1802,12 +1889,14 @@ class AutofillArgumentProvider(google.protobuf.message.Message): When the provider type is PROVIDER_TYPE_LINKED, the field contains the linked input field's ID. """ - pass - def __init__(self, + + def __init__( + self, *, type: global___AutofillProviderType.ValueType = ..., - value: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["type",b"type","value",b"value"]) -> None: ... + value: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["type", b"type", "value", b"value"]) -> None: ... + global___AutofillArgumentProvider = AutofillArgumentProvider diff --git a/arista/subscriptions/subscriptions_pb2.pyi b/arista/subscriptions/subscriptions_pb2.pyi index f4710c1..cd027cc 100644 --- a/arista/subscriptions/subscriptions_pb2.pyi +++ b/arista/subscriptions/subscriptions_pb2.pyi @@ -1,18 +1,28 @@ """ @generated by mypy-protobuf. Do not edit manually! isort:skip_file +Copyright (c) 2020 Arista Networks, Inc. +Use of this source code is governed by the Apache License 2.0 +that can be found in the COPYING file. """ + import builtins import google.protobuf.descriptor import google.protobuf.internal.enum_type_wrapper +import sys import typing -import typing_extensions + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor class _Operation: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _OperationEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_Operation.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor UNSPECIFIED: _Operation.ValueType # 0 @@ -20,55 +30,46 @@ class _OperationEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._Enum """INITIAL indicates the associated notification is that of the current state and a fully-specified Resource is provided. """ - INITIAL_SYNC_COMPLETE: _Operation.ValueType # 11 """INITIAL_SYNC_COMPLETE indicates all existing-state has been streamed to the client. This status will be sent in an otherwise-empty message and no subsequent INITIAL messages should be expected. """ - UPDATED: _Operation.ValueType # 20 """UPDATED indicates the associated notification carries modification to the last-streamed state. This indicates the contained Resource may be a partial diff, though, it may contain a fully-specified Resource. """ - DELETED: _Operation.ValueType # 30 """DETLETED indicates the associated notification carries a deletion. The Resource's key will always be set in this case, but no other fields should be expected. """ -class Operation(_Operation, metaclass=_OperationEnumTypeWrapper): - pass +class Operation(_Operation, metaclass=_OperationEnumTypeWrapper): ... UNSPECIFIED: Operation.ValueType # 0 INITIAL: Operation.ValueType # 10 """INITIAL indicates the associated notification is that of the current state and a fully-specified Resource is provided. """ - INITIAL_SYNC_COMPLETE: Operation.ValueType # 11 """INITIAL_SYNC_COMPLETE indicates all existing-state has been streamed to the client. This status will be sent in an otherwise-empty message and no subsequent INITIAL messages should be expected. """ - UPDATED: Operation.ValueType # 20 """UPDATED indicates the associated notification carries modification to the last-streamed state. This indicates the contained Resource may be a partial diff, though, it may contain a fully-specified Resource. """ - DELETED: Operation.ValueType # 30 """DETLETED indicates the associated notification carries a deletion. The Resource's key will always be set in this case, but no other fields should be expected. """ - global___Operation = Operation - diff --git a/arista/tag/v2/services/gen_pb2.pyi b/arista/tag/v2/services/gen_pb2.pyi index b7249f9..8c18ff5 100644 --- a/arista/tag/v2/services/gen_pb2.pyi +++ b/arista/tag/v2/services/gen_pb2.pyi @@ -1,11 +1,15 @@ """ @generated by mypy-protobuf. Do not edit manually! isort:skip_file + +Code generated by boomtown. DO NOT EDIT. """ + import arista.subscriptions.subscriptions_pb2 import arista.tag.v2.tag_pb2 import arista.time.time_pb2 import builtins +import collections.abc import fmp.deletes_pb2 import google.protobuf.descriptor import google.protobuf.internal.containers @@ -13,42 +17,46 @@ import google.protobuf.message import google.protobuf.timestamp_pb2 import google.protobuf.wrappers_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class MetaResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int COUNT_FIELD_NUMBER: builtins.int - @property - def time(self) -> google.protobuf.timestamp_pb2.Timestamp: - """Time holds the timestamp of the last item included in the metadata calculation.""" - pass type: arista.subscriptions.subscriptions_pb2.Operation.ValueType """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. """ + @property + def time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """Time holds the timestamp of the last item included in the metadata calculation.""" @property def count(self) -> google.protobuf.wrappers_pb2.UInt32Value: """Count is the number of items present under the conditions of the request.""" - pass - def __init__(self, + + def __init__( + self, *, - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - count: typing.Optional[google.protobuf.wrappers_pb2.UInt32Value] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["count",b"count","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["count",b"count","time",b"time","type",b"type"]) -> None: ... + count: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["count", b"count", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["count", b"count", "time", b"time", "type", b"type"]) -> None: ... + global___MetaResponse = MetaResponse +@typing.final class TagRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -56,24 +64,28 @@ class TagRequest(google.protobuf.message.Message): """Key uniquely identifies a Tag instance to retrieve. This value must be populated. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the time for which you are interested in the data. If no time is given, the server will use the time at which it makes the request. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.tag.v2.tag_pb2.TagKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.tag.v2.tag_pb2.TagKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___TagRequest = TagRequest +@typing.final class TagResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -83,24 +95,28 @@ class TagResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time carries the (UTC) timestamp of the last-modification of the Tag instance in this response. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.tag.v2.tag_pb2.Tag] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.tag.v2.tag_pb2.Tag | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___TagResponse = TagResponse +@typing.final class TagSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -110,18 +126,22 @@ class TagSomeRequest(google.protobuf.message.Message): """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. """ - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.tag.v2.tag_pb2.TagKey]] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys","time",b"time"]) -> None: ... + keys: collections.abc.Iterable[arista.tag.v2.tag_pb2.TagKey] | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys", "time", b"time"]) -> None: ... + global___TagSomeRequest = TagSomeRequest +@typing.final class TagSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -132,27 +152,31 @@ class TagSomeResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """Error is an optional field. It should be filled when there is an error in the GetSome process. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.tag.v2.tag_pb2.Tag] = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> None: ... + value: arista.tag.v2.tag_pb2.Tag | None = ..., + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> None: ... + global___TagSomeResponse = TagSomeResponse +@typing.final class TagStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -163,7 +187,7 @@ class TagStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -182,51 +206,58 @@ class TagStreamRequest(google.protobuf.message.Message): This field is not allowed in the Subscribe RPC. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.tag.v2.tag_pb2.Tag]] = ..., - time: typing.Optional[arista.time.time_pb2.TimeBounds] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.tag.v2.tag_pb2.Tag] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___TagStreamRequest = TagStreamRequest +@typing.final class TagStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int + type: arista.subscriptions.subscriptions_pb2.Operation.ValueType + """Operation indicates how the Tag value in this response should be considered. + Under non-subscribe requests, this value should always be INITIAL. In a subscription, + once all initial data is streamed and the client begins to receive modification updates, + you should not see INITIAL again. + """ @property def value(self) -> arista.tag.v2.tag_pb2.Tag: """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. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time holds the timestamp of this Tag's last modification.""" - pass - type: arista.subscriptions.subscriptions_pb2.Operation.ValueType - """Operation indicates how the Tag value in this response should be considered. - Under non-subscribe requests, this value should always be INITIAL. In a subscription, - once all initial data is streamed and the client begins to receive modification updates, - you should not see INITIAL again. - """ - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.tag.v2.tag_pb2.Tag] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + value: arista.tag.v2.tag_pb2.Tag | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "type", b"type", "value", b"value"]) -> None: ... + global___TagStreamResponse = TagStreamResponse +@typing.final class TagBatchedStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int MAX_MESSAGES_FIELD_NUMBER: builtins.int @@ -238,7 +269,7 @@ class TagBatchedStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -257,7 +288,7 @@ class TagBatchedStreamRequest(google.protobuf.message.Message): 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. @@ -265,19 +296,23 @@ class TagBatchedStreamRequest(google.protobuf.message.Message): 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, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.tag.v2.tag_pb2.Tag]] = ..., - 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","partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.tag.v2.tag_pb2.Tag] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + max_messages: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["max_messages", b"max_messages", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["max_messages", b"max_messages", "partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___TagBatchedStreamRequest = TagBatchedStreamRequest +@typing.final class TagBatchedStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + RESPONSES_FIELD_NUMBER: builtins.int @property def responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___TagStreamResponse]: @@ -285,16 +320,20 @@ class TagBatchedStreamResponse(google.protobuf.message.Message): The length of this structure is guaranteed to be between (inclusive) 1 and min(req.max_messages, INTERNAL_BATCH_LIMIT). """ - pass - def __init__(self, + + def __init__( + self, *, - responses: typing.Optional[typing.Iterable[global___TagStreamResponse]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["responses",b"responses"]) -> None: ... + responses: collections.abc.Iterable[global___TagStreamResponse] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["responses", b"responses"]) -> None: ... + global___TagBatchedStreamResponse = TagBatchedStreamResponse +@typing.final class TagAssignmentRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -302,24 +341,28 @@ class TagAssignmentRequest(google.protobuf.message.Message): """Key uniquely identifies a TagAssignment instance to retrieve. This value must be populated. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the time for which you are interested in the data. If no time is given, the server will use the time at which it makes the request. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.tag.v2.tag_pb2.TagAssignmentKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.tag.v2.tag_pb2.TagAssignmentKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___TagAssignmentRequest = TagAssignmentRequest +@typing.final class TagAssignmentResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -329,24 +372,28 @@ class TagAssignmentResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time carries the (UTC) timestamp of the last-modification of the TagAssignment instance in this response. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.tag.v2.tag_pb2.TagAssignment] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.tag.v2.tag_pb2.TagAssignment | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___TagAssignmentResponse = TagAssignmentResponse +@typing.final class TagAssignmentSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -356,18 +403,22 @@ class TagAssignmentSomeRequest(google.protobuf.message.Message): """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. """ - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.tag.v2.tag_pb2.TagAssignmentKey]] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys","time",b"time"]) -> None: ... + keys: collections.abc.Iterable[arista.tag.v2.tag_pb2.TagAssignmentKey] | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys", "time", b"time"]) -> None: ... + global___TagAssignmentSomeRequest = TagAssignmentSomeRequest +@typing.final class TagAssignmentSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -378,27 +429,31 @@ class TagAssignmentSomeResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """Error is an optional field. It should be filled when there is an error in the GetSome process. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.tag.v2.tag_pb2.TagAssignment] = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> None: ... + value: arista.tag.v2.tag_pb2.TagAssignment | None = ..., + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> None: ... + global___TagAssignmentSomeResponse = TagAssignmentSomeResponse +@typing.final class TagAssignmentStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -409,7 +464,7 @@ class TagAssignmentStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -428,51 +483,58 @@ class TagAssignmentStreamRequest(google.protobuf.message.Message): This field is not allowed in the Subscribe RPC. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.tag.v2.tag_pb2.TagAssignment]] = ..., - time: typing.Optional[arista.time.time_pb2.TimeBounds] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.tag.v2.tag_pb2.TagAssignment] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___TagAssignmentStreamRequest = TagAssignmentStreamRequest +@typing.final class TagAssignmentStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int + type: arista.subscriptions.subscriptions_pb2.Operation.ValueType + """Operation indicates how the TagAssignment value in this response should be considered. + Under non-subscribe requests, this value should always be INITIAL. In a subscription, + once all initial data is streamed and the client begins to receive modification updates, + you should not see INITIAL again. + """ @property def value(self) -> arista.tag.v2.tag_pb2.TagAssignment: """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. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time holds the timestamp of this TagAssignment's last modification.""" - pass - type: arista.subscriptions.subscriptions_pb2.Operation.ValueType - """Operation indicates how the TagAssignment value in this response should be considered. - Under non-subscribe requests, this value should always be INITIAL. In a subscription, - once all initial data is streamed and the client begins to receive modification updates, - you should not see INITIAL again. - """ - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.tag.v2.tag_pb2.TagAssignment] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + value: arista.tag.v2.tag_pb2.TagAssignment | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "type", b"type", "value", b"value"]) -> None: ... + global___TagAssignmentStreamResponse = TagAssignmentStreamResponse +@typing.final class TagAssignmentBatchedStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int MAX_MESSAGES_FIELD_NUMBER: builtins.int @@ -484,7 +546,7 @@ class TagAssignmentBatchedStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -503,7 +565,7 @@ class TagAssignmentBatchedStreamRequest(google.protobuf.message.Message): 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. @@ -511,19 +573,23 @@ class TagAssignmentBatchedStreamRequest(google.protobuf.message.Message): 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, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.tag.v2.tag_pb2.TagAssignment]] = ..., - 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","partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.tag.v2.tag_pb2.TagAssignment] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + max_messages: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["max_messages", b"max_messages", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["max_messages", b"max_messages", "partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___TagAssignmentBatchedStreamRequest = TagAssignmentBatchedStreamRequest +@typing.final class TagAssignmentBatchedStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + RESPONSES_FIELD_NUMBER: builtins.int @property def responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___TagAssignmentStreamResponse]: @@ -531,16 +597,20 @@ class TagAssignmentBatchedStreamResponse(google.protobuf.message.Message): The length of this structure is guaranteed to be between (inclusive) 1 and min(req.max_messages, INTERNAL_BATCH_LIMIT). """ - pass - def __init__(self, + + def __init__( + self, *, - responses: typing.Optional[typing.Iterable[global___TagAssignmentStreamResponse]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["responses",b"responses"]) -> None: ... + responses: collections.abc.Iterable[global___TagAssignmentStreamResponse] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["responses", b"responses"]) -> None: ... + global___TagAssignmentBatchedStreamResponse = TagAssignmentBatchedStreamResponse +@typing.final class TagAssignmentConfigRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -548,24 +618,28 @@ class TagAssignmentConfigRequest(google.protobuf.message.Message): """Key uniquely identifies a TagAssignmentConfig instance to retrieve. This value must be populated. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the time for which you are interested in the data. If no time is given, the server will use the time at which it makes the request. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.tag.v2.tag_pb2.TagAssignmentKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.tag.v2.tag_pb2.TagAssignmentKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___TagAssignmentConfigRequest = TagAssignmentConfigRequest +@typing.final class TagAssignmentConfigResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -575,24 +649,28 @@ class TagAssignmentConfigResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time carries the (UTC) timestamp of the last-modification of the TagAssignmentConfig instance in this response. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.tag.v2.tag_pb2.TagAssignmentConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.tag.v2.tag_pb2.TagAssignmentConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___TagAssignmentConfigResponse = TagAssignmentConfigResponse +@typing.final class TagAssignmentConfigSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -602,18 +680,22 @@ class TagAssignmentConfigSomeRequest(google.protobuf.message.Message): """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. """ - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.tag.v2.tag_pb2.TagAssignmentKey]] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys","time",b"time"]) -> None: ... + keys: collections.abc.Iterable[arista.tag.v2.tag_pb2.TagAssignmentKey] | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys", "time", b"time"]) -> None: ... + global___TagAssignmentConfigSomeRequest = TagAssignmentConfigSomeRequest +@typing.final class TagAssignmentConfigSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -624,27 +706,31 @@ class TagAssignmentConfigSomeResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """Error is an optional field. It should be filled when there is an error in the GetSome process. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.tag.v2.tag_pb2.TagAssignmentConfig] = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> None: ... + value: arista.tag.v2.tag_pb2.TagAssignmentConfig | None = ..., + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> None: ... + global___TagAssignmentConfigSomeResponse = TagAssignmentConfigSomeResponse +@typing.final class TagAssignmentConfigStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -655,7 +741,7 @@ class TagAssignmentConfigStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -674,51 +760,58 @@ class TagAssignmentConfigStreamRequest(google.protobuf.message.Message): This field is not allowed in the Subscribe RPC. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.tag.v2.tag_pb2.TagAssignmentConfig]] = ..., - time: typing.Optional[arista.time.time_pb2.TimeBounds] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.tag.v2.tag_pb2.TagAssignmentConfig] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___TagAssignmentConfigStreamRequest = TagAssignmentConfigStreamRequest +@typing.final class TagAssignmentConfigStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int + type: arista.subscriptions.subscriptions_pb2.Operation.ValueType + """Operation indicates how the TagAssignmentConfig value in this response should be considered. + Under non-subscribe requests, this value should always be INITIAL. In a subscription, + once all initial data is streamed and the client begins to receive modification updates, + you should not see INITIAL again. + """ @property def value(self) -> arista.tag.v2.tag_pb2.TagAssignmentConfig: """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. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time holds the timestamp of this TagAssignmentConfig's last modification.""" - pass - type: arista.subscriptions.subscriptions_pb2.Operation.ValueType - """Operation indicates how the TagAssignmentConfig value in this response should be considered. - Under non-subscribe requests, this value should always be INITIAL. In a subscription, - once all initial data is streamed and the client begins to receive modification updates, - you should not see INITIAL again. - """ - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.tag.v2.tag_pb2.TagAssignmentConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + value: arista.tag.v2.tag_pb2.TagAssignmentConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "type", b"type", "value", b"value"]) -> None: ... + global___TagAssignmentConfigStreamResponse = TagAssignmentConfigStreamResponse +@typing.final class TagAssignmentConfigBatchedStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int MAX_MESSAGES_FIELD_NUMBER: builtins.int @@ -730,7 +823,7 @@ class TagAssignmentConfigBatchedStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -749,7 +842,7 @@ class TagAssignmentConfigBatchedStreamRequest(google.protobuf.message.Message): 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. @@ -757,19 +850,23 @@ class TagAssignmentConfigBatchedStreamRequest(google.protobuf.message.Message): 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, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.tag.v2.tag_pb2.TagAssignmentConfig]] = ..., - 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","partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.tag.v2.tag_pb2.TagAssignmentConfig] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + max_messages: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["max_messages", b"max_messages", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["max_messages", b"max_messages", "partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___TagAssignmentConfigBatchedStreamRequest = TagAssignmentConfigBatchedStreamRequest +@typing.final class TagAssignmentConfigBatchedStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + RESPONSES_FIELD_NUMBER: builtins.int @property def responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___TagAssignmentConfigStreamResponse]: @@ -777,33 +874,41 @@ class TagAssignmentConfigBatchedStreamResponse(google.protobuf.message.Message): The length of this structure is guaranteed to be between (inclusive) 1 and min(req.max_messages, INTERNAL_BATCH_LIMIT). """ - pass - def __init__(self, + + def __init__( + self, *, - responses: typing.Optional[typing.Iterable[global___TagAssignmentConfigStreamResponse]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["responses",b"responses"]) -> None: ... + responses: collections.abc.Iterable[global___TagAssignmentConfigStreamResponse] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["responses", b"responses"]) -> None: ... + global___TagAssignmentConfigBatchedStreamResponse = TagAssignmentConfigBatchedStreamResponse +@typing.final class TagAssignmentConfigSetRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int @property def value(self) -> arista.tag.v2.tag_pb2.TagAssignmentConfig: """TagAssignmentConfig carries the value to set into the datastore. See the documentation on the TagAssignmentConfig struct for which fields are required. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.tag.v2.tag_pb2.TagAssignmentConfig] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["value",b"value"]) -> None: ... + value: arista.tag.v2.tag_pb2.TagAssignmentConfig | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["value", b"value"]) -> None: ... + global___TagAssignmentConfigSetRequest = TagAssignmentConfigSetRequest +@typing.final class TagAssignmentConfigSetResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -811,7 +916,7 @@ class TagAssignmentConfigSetResponse(google.protobuf.message.Message): """Value carries all the values given in the TagAssignmentConfigSetRequest as well as any server-generated values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp at which the system recognizes the @@ -820,18 +925,22 @@ class TagAssignmentConfigSetResponse(google.protobuf.message.Message): - it is after the time the request was received - a time-ranged query with StartTime==CreatedAt will include this instance. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.tag.v2.tag_pb2.TagAssignmentConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.tag.v2.tag_pb2.TagAssignmentConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___TagAssignmentConfigSetResponse = TagAssignmentConfigSetResponse +@typing.final class TagAssignmentConfigSetSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.tag.v2.tag_pb2.TagAssignmentConfig]: @@ -842,55 +951,67 @@ class TagAssignmentConfigSetSomeRequest(google.protobuf.message.Message): If this error occurs you must reduce the number of values sent. See gRPC "maximum message size" documentation for more information. """ - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[arista.tag.v2.tag_pb2.TagAssignmentConfig]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[arista.tag.v2.tag_pb2.TagAssignmentConfig] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___TagAssignmentConfigSetSomeRequest = TagAssignmentConfigSetSomeRequest +@typing.final class TagAssignmentConfigSetSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int + error: builtins.str @property def key(self) -> arista.tag.v2.tag_pb2.TagAssignmentKey: ... - error: typing.Text - def __init__(self, + def __init__( + self, *, - key: typing.Optional[arista.tag.v2.tag_pb2.TagAssignmentKey] = ..., - error: typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key"]) -> None: ... + key: arista.tag.v2.tag_pb2.TagAssignmentKey | None = ..., + error: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key"]) -> None: ... + global___TagAssignmentConfigSetSomeResponse = TagAssignmentConfigSetSomeResponse +@typing.final class TagAssignmentConfigDeleteRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int @property def key(self) -> arista.tag.v2.tag_pb2.TagAssignmentKey: """Key indicates which TagAssignmentConfig instance to remove. This field must always be set. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.tag.v2.tag_pb2.TagAssignmentKey] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key"]) -> None: ... + key: arista.tag.v2.tag_pb2.TagAssignmentKey | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key"]) -> None: ... + global___TagAssignmentConfigDeleteRequest = TagAssignmentConfigDeleteRequest +@typing.final class TagAssignmentConfigDeleteResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property def key(self) -> arista.tag.v2.tag_pb2.TagAssignmentKey: """Key echoes back the key of the deleted TagAssignmentConfig instance.""" - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp at which the system recognizes the @@ -899,49 +1020,62 @@ class TagAssignmentConfigDeleteResponse(google.protobuf.message.Message): - it is after the time the request was received - a time-ranged query with StartTime==DeletedAt will not include this instance. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.tag.v2.tag_pb2.TagAssignmentKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.tag.v2.tag_pb2.TagAssignmentKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___TagAssignmentConfigDeleteResponse = TagAssignmentConfigDeleteResponse +@typing.final class TagAssignmentConfigDeleteSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int @property def keys(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.tag.v2.tag_pb2.TagAssignmentKey]: """key contains a list of TagAssignmentConfig keys to delete""" - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.tag.v2.tag_pb2.TagAssignmentKey]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys"]) -> None: ... + keys: collections.abc.Iterable[arista.tag.v2.tag_pb2.TagAssignmentKey] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys"]) -> None: ... + global___TagAssignmentConfigDeleteSomeRequest = TagAssignmentConfigDeleteSomeRequest +@typing.final class TagAssignmentConfigDeleteSomeResponse(google.protobuf.message.Message): """TagAssignmentConfigDeleteSomeResponse is only sent when there is an error.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int + error: builtins.str @property def key(self) -> arista.tag.v2.tag_pb2.TagAssignmentKey: ... - error: typing.Text - def __init__(self, + def __init__( + self, *, - key: typing.Optional[arista.tag.v2.tag_pb2.TagAssignmentKey] = ..., - error: typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key"]) -> None: ... + key: arista.tag.v2.tag_pb2.TagAssignmentKey | None = ..., + error: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key"]) -> None: ... + global___TagAssignmentConfigDeleteSomeResponse = TagAssignmentConfigDeleteSomeResponse +@typing.final class TagAssignmentConfigDeleteAllRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int @property def partial_eq_filter(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.tag.v2.tag_pb2.TagAssignmentConfig]: @@ -949,16 +1083,20 @@ class TagAssignmentConfigDeleteAllRequest(google.protobuf.message.Message): This requires all provided fields to be equal to the response. A filtered DeleteAll will use GetAll with filter to find things to delete. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.tag.v2.tag_pb2.TagAssignmentConfig]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.tag.v2.tag_pb2.TagAssignmentConfig] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter"]) -> None: ... + global___TagAssignmentConfigDeleteAllRequest = TagAssignmentConfigDeleteAllRequest +@typing.final class TagAssignmentConfigDeleteAllResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TYPE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int KEY_FIELD_NUMBER: builtins.int @@ -967,32 +1105,35 @@ class TagAssignmentConfigDeleteAllResponse(google.protobuf.message.Message): """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: """This indicates the error message from the delete failure.""" - pass + @property def key(self) -> arista.tag.v2.tag_pb2.TagAssignmentKey: """This is the key of the TagAssignmentConfig instance that failed to be deleted.""" - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp when the key was being deleted.""" - pass - def __init__(self, + + def __init__( + self, *, type: fmp.deletes_pb2.DeleteError.ValueType = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - key: typing.Optional[arista.tag.v2.tag_pb2.TagAssignmentKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key","time",b"time","type",b"type"]) -> None: ... + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + key: arista.tag.v2.tag_pb2.TagAssignmentKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key", "time", b"time", "type", b"type"]) -> None: ... + global___TagAssignmentConfigDeleteAllResponse = TagAssignmentConfigDeleteAllResponse +@typing.final class TagConfigRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -1000,24 +1141,28 @@ class TagConfigRequest(google.protobuf.message.Message): """Key uniquely identifies a TagConfig instance to retrieve. This value must be populated. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the time for which you are interested in the data. If no time is given, the server will use the time at which it makes the request. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.tag.v2.tag_pb2.TagKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.tag.v2.tag_pb2.TagKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___TagConfigRequest = TagConfigRequest +@typing.final class TagConfigResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -1027,24 +1172,28 @@ class TagConfigResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time carries the (UTC) timestamp of the last-modification of the TagConfig instance in this response. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.tag.v2.tag_pb2.TagConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.tag.v2.tag_pb2.TagConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___TagConfigResponse = TagConfigResponse +@typing.final class TagConfigSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -1054,18 +1203,22 @@ class TagConfigSomeRequest(google.protobuf.message.Message): """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. """ - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.tag.v2.tag_pb2.TagKey]] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys","time",b"time"]) -> None: ... + keys: collections.abc.Iterable[arista.tag.v2.tag_pb2.TagKey] | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys", "time", b"time"]) -> None: ... + global___TagConfigSomeRequest = TagConfigSomeRequest +@typing.final class TagConfigSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -1076,27 +1229,31 @@ class TagConfigSomeResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """Error is an optional field. It should be filled when there is an error in the GetSome process. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.tag.v2.tag_pb2.TagConfig] = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> None: ... + value: arista.tag.v2.tag_pb2.TagConfig | None = ..., + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> None: ... + global___TagConfigSomeResponse = TagConfigSomeResponse +@typing.final class TagConfigStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -1107,7 +1264,7 @@ class TagConfigStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -1126,51 +1283,58 @@ class TagConfigStreamRequest(google.protobuf.message.Message): This field is not allowed in the Subscribe RPC. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.tag.v2.tag_pb2.TagConfig]] = ..., - time: typing.Optional[arista.time.time_pb2.TimeBounds] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.tag.v2.tag_pb2.TagConfig] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___TagConfigStreamRequest = TagConfigStreamRequest +@typing.final class TagConfigStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int + type: arista.subscriptions.subscriptions_pb2.Operation.ValueType + """Operation indicates how the TagConfig value in this response should be considered. + Under non-subscribe requests, this value should always be INITIAL. In a subscription, + once all initial data is streamed and the client begins to receive modification updates, + you should not see INITIAL again. + """ @property def value(self) -> arista.tag.v2.tag_pb2.TagConfig: """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. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time holds the timestamp of this TagConfig's last modification.""" - pass - type: arista.subscriptions.subscriptions_pb2.Operation.ValueType - """Operation indicates how the TagConfig value in this response should be considered. - Under non-subscribe requests, this value should always be INITIAL. In a subscription, - once all initial data is streamed and the client begins to receive modification updates, - you should not see INITIAL again. - """ - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.tag.v2.tag_pb2.TagConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + value: arista.tag.v2.tag_pb2.TagConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "type", b"type", "value", b"value"]) -> None: ... + global___TagConfigStreamResponse = TagConfigStreamResponse +@typing.final class TagConfigBatchedStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int MAX_MESSAGES_FIELD_NUMBER: builtins.int @@ -1182,7 +1346,7 @@ class TagConfigBatchedStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -1201,7 +1365,7 @@ class TagConfigBatchedStreamRequest(google.protobuf.message.Message): 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. @@ -1209,19 +1373,23 @@ class TagConfigBatchedStreamRequest(google.protobuf.message.Message): 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, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.tag.v2.tag_pb2.TagConfig]] = ..., - 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","partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.tag.v2.tag_pb2.TagConfig] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + max_messages: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["max_messages", b"max_messages", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["max_messages", b"max_messages", "partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___TagConfigBatchedStreamRequest = TagConfigBatchedStreamRequest +@typing.final class TagConfigBatchedStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + RESPONSES_FIELD_NUMBER: builtins.int @property def responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___TagConfigStreamResponse]: @@ -1229,33 +1397,41 @@ class TagConfigBatchedStreamResponse(google.protobuf.message.Message): The length of this structure is guaranteed to be between (inclusive) 1 and min(req.max_messages, INTERNAL_BATCH_LIMIT). """ - pass - def __init__(self, + + def __init__( + self, *, - responses: typing.Optional[typing.Iterable[global___TagConfigStreamResponse]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["responses",b"responses"]) -> None: ... + responses: collections.abc.Iterable[global___TagConfigStreamResponse] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["responses", b"responses"]) -> None: ... + global___TagConfigBatchedStreamResponse = TagConfigBatchedStreamResponse +@typing.final class TagConfigSetRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int @property def value(self) -> arista.tag.v2.tag_pb2.TagConfig: """TagConfig carries the value to set into the datastore. See the documentation on the TagConfig struct for which fields are required. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.tag.v2.tag_pb2.TagConfig] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["value",b"value"]) -> None: ... + value: arista.tag.v2.tag_pb2.TagConfig | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["value", b"value"]) -> None: ... + global___TagConfigSetRequest = TagConfigSetRequest +@typing.final class TagConfigSetResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -1263,7 +1439,7 @@ class TagConfigSetResponse(google.protobuf.message.Message): """Value carries all the values given in the TagConfigSetRequest as well as any server-generated values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp at which the system recognizes the @@ -1272,18 +1448,22 @@ class TagConfigSetResponse(google.protobuf.message.Message): - it is after the time the request was received - a time-ranged query with StartTime==CreatedAt will include this instance. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.tag.v2.tag_pb2.TagConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.tag.v2.tag_pb2.TagConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___TagConfigSetResponse = TagConfigSetResponse +@typing.final class TagConfigSetSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.tag.v2.tag_pb2.TagConfig]: @@ -1294,55 +1474,67 @@ class TagConfigSetSomeRequest(google.protobuf.message.Message): If this error occurs you must reduce the number of values sent. See gRPC "maximum message size" documentation for more information. """ - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[arista.tag.v2.tag_pb2.TagConfig]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[arista.tag.v2.tag_pb2.TagConfig] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___TagConfigSetSomeRequest = TagConfigSetSomeRequest +@typing.final class TagConfigSetSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int + error: builtins.str @property def key(self) -> arista.tag.v2.tag_pb2.TagKey: ... - error: typing.Text - def __init__(self, + def __init__( + self, *, - key: typing.Optional[arista.tag.v2.tag_pb2.TagKey] = ..., - error: typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key"]) -> None: ... + key: arista.tag.v2.tag_pb2.TagKey | None = ..., + error: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key"]) -> None: ... + global___TagConfigSetSomeResponse = TagConfigSetSomeResponse +@typing.final class TagConfigDeleteRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int @property def key(self) -> arista.tag.v2.tag_pb2.TagKey: """Key indicates which TagConfig instance to remove. This field must always be set. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.tag.v2.tag_pb2.TagKey] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key"]) -> None: ... + key: arista.tag.v2.tag_pb2.TagKey | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key"]) -> None: ... + global___TagConfigDeleteRequest = TagConfigDeleteRequest +@typing.final class TagConfigDeleteResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property def key(self) -> arista.tag.v2.tag_pb2.TagKey: """Key echoes back the key of the deleted TagConfig instance.""" - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp at which the system recognizes the @@ -1351,49 +1543,62 @@ class TagConfigDeleteResponse(google.protobuf.message.Message): - it is after the time the request was received - a time-ranged query with StartTime==DeletedAt will not include this instance. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.tag.v2.tag_pb2.TagKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.tag.v2.tag_pb2.TagKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___TagConfigDeleteResponse = TagConfigDeleteResponse +@typing.final class TagConfigDeleteSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int @property def keys(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.tag.v2.tag_pb2.TagKey]: """key contains a list of TagConfig keys to delete""" - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.tag.v2.tag_pb2.TagKey]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys"]) -> None: ... + keys: collections.abc.Iterable[arista.tag.v2.tag_pb2.TagKey] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys"]) -> None: ... + global___TagConfigDeleteSomeRequest = TagConfigDeleteSomeRequest +@typing.final class TagConfigDeleteSomeResponse(google.protobuf.message.Message): """TagConfigDeleteSomeResponse is only sent when there is an error.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int + error: builtins.str @property def key(self) -> arista.tag.v2.tag_pb2.TagKey: ... - error: typing.Text - def __init__(self, + def __init__( + self, *, - key: typing.Optional[arista.tag.v2.tag_pb2.TagKey] = ..., - error: typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key"]) -> None: ... + key: arista.tag.v2.tag_pb2.TagKey | None = ..., + error: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key"]) -> None: ... + global___TagConfigDeleteSomeResponse = TagConfigDeleteSomeResponse +@typing.final class TagConfigDeleteAllRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int @property def partial_eq_filter(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.tag.v2.tag_pb2.TagConfig]: @@ -1401,16 +1606,20 @@ class TagConfigDeleteAllRequest(google.protobuf.message.Message): This requires all provided fields to be equal to the response. A filtered DeleteAll will use GetAll with filter to find things to delete. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.tag.v2.tag_pb2.TagConfig]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.tag.v2.tag_pb2.TagConfig] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter"]) -> None: ... + global___TagConfigDeleteAllRequest = TagConfigDeleteAllRequest +@typing.final class TagConfigDeleteAllResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TYPE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int KEY_FIELD_NUMBER: builtins.int @@ -1419,26 +1628,27 @@ class TagConfigDeleteAllResponse(google.protobuf.message.Message): """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: """This indicates the error message from the delete failure.""" - pass + @property def key(self) -> arista.tag.v2.tag_pb2.TagKey: """This is the key of the TagConfig instance that failed to be deleted.""" - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp when the key was being deleted.""" - pass - def __init__(self, + + def __init__( + self, *, type: fmp.deletes_pb2.DeleteError.ValueType = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - key: typing.Optional[arista.tag.v2.tag_pb2.TagKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key","time",b"time","type",b"type"]) -> None: ... + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + key: arista.tag.v2.tag_pb2.TagKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key", "time", b"time", "type", b"type"]) -> None: ... + global___TagConfigDeleteAllResponse = TagConfigDeleteAllResponse diff --git a/arista/tag/v2/tag_pb2.pyi b/arista/tag/v2/tag_pb2.pyi index 79d365c..e0ce3f2 100644 --- a/arista/tag/v2/tag_pb2.pyi +++ b/arista/tag/v2/tag_pb2.pyi @@ -1,28 +1,36 @@ """ @generated by mypy-protobuf. Do not edit manually! isort:skip_file +Copyright (c) 2021 Arista Networks, Inc. All rights reserved. +Use of this source code is governed by the Apache License 2.0 +that can be found in the COPYING file. """ + import builtins import google.protobuf.descriptor import google.protobuf.internal.enum_type_wrapper import google.protobuf.message import google.protobuf.wrappers_pb2 +import sys import typing -import typing_extensions + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor class _ElementType: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _ElementTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ElementType.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor ELEMENT_TYPE_UNSPECIFIED: _ElementType.ValueType # 0 """ELEMENT_TYPE_UNSPECIFIED is the default value.""" - ELEMENT_TYPE_DEVICE: _ElementType.ValueType # 1 """ELEMENT_TYPE_DEVICE is used for device tags.""" - ELEMENT_TYPE_INTERFACE: _ElementType.ValueType # 2 """ELEMENT_TYPE_INTERFACE is used for interface tags.""" @@ -30,43 +38,35 @@ class ElementType(_ElementType, metaclass=_ElementTypeEnumTypeWrapper): """ElementType enumerates the types of network elements that can be associated with tags. """ - pass ELEMENT_TYPE_UNSPECIFIED: ElementType.ValueType # 0 """ELEMENT_TYPE_UNSPECIFIED is the default value.""" - ELEMENT_TYPE_DEVICE: ElementType.ValueType # 1 """ELEMENT_TYPE_DEVICE is used for device tags.""" - ELEMENT_TYPE_INTERFACE: ElementType.ValueType # 2 """ELEMENT_TYPE_INTERFACE is used for interface tags.""" - global___ElementType = ElementType - class _ElementSubType: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _ElementSubTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ElementSubType.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor ELEMENT_SUB_TYPE_UNSPECIFIED: _ElementSubType.ValueType # 0 """ELEMENT_SUB_TYPE_UNSPECIFIED is the default value.""" - ELEMENT_SUB_TYPE_DEVICE: _ElementSubType.ValueType # 1 """ELEMENT_SUB_TYPE_DEVICE is used for EOS or third-party devices discovered via LLDP/SNMP. """ - ELEMENT_SUB_TYPE_VDS: _ElementSubType.ValueType # 2 """ELEMENT_SUB_TYPE_VDS is used for VMWare vSphere Distributed Switch (VDS) tags.""" - ELEMENT_SUB_TYPE_WORKLOAD_SERVER: _ElementSubType.ValueType # 3 """ELEMENT_SUB_TYPE_WORKLOAD_SERVER is used for workload server tags (such as VMWare ESXi host). A workload server is a server/data storage device on which the hypervisor is installed. """ - ELEMENT_SUB_TYPE_VM: _ElementSubType.ValueType # 4 """ELEMENT_SUB_TYPE_VM is used for VM tags. A VM is a software computer that, like a physical computer, @@ -77,49 +77,40 @@ class ElementSubType(_ElementSubType, metaclass=_ElementSubTypeEnumTypeWrapper): """ElementSubType enumerates the sub-types of network elements that can be associated with tags. """ - pass ELEMENT_SUB_TYPE_UNSPECIFIED: ElementSubType.ValueType # 0 """ELEMENT_SUB_TYPE_UNSPECIFIED is the default value.""" - ELEMENT_SUB_TYPE_DEVICE: ElementSubType.ValueType # 1 """ELEMENT_SUB_TYPE_DEVICE is used for EOS or third-party devices discovered via LLDP/SNMP. """ - ELEMENT_SUB_TYPE_VDS: ElementSubType.ValueType # 2 """ELEMENT_SUB_TYPE_VDS is used for VMWare vSphere Distributed Switch (VDS) tags.""" - ELEMENT_SUB_TYPE_WORKLOAD_SERVER: ElementSubType.ValueType # 3 """ELEMENT_SUB_TYPE_WORKLOAD_SERVER is used for workload server tags (such as VMWare ESXi host). A workload server is a server/data storage device on which the hypervisor is installed. """ - ELEMENT_SUB_TYPE_VM: ElementSubType.ValueType # 4 """ELEMENT_SUB_TYPE_VM is used for VM tags. A VM is a software computer that, like a physical computer, runs an operating system and applications. """ - global___ElementSubType = ElementSubType - class _CreatorType: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _CreatorTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_CreatorType.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor CREATOR_TYPE_UNSPECIFIED: _CreatorType.ValueType # 0 """CREATOR_TYPE_UNSPECIFIED is the default value.""" - CREATOR_TYPE_SYSTEM: _CreatorType.ValueType # 1 """CREATOR_TYPE_SYSTEM is used for system tags.""" - CREATOR_TYPE_USER: _CreatorType.ValueType # 2 """CREATOR_TYPE_USER is used for user tags.""" - CREATOR_TYPE_EXTERNAL: _CreatorType.ValueType # 3 """CREATOR_TYPE_EXTERNAL is used for tags created from external sources. For E.g., vCenter @@ -129,75 +120,75 @@ class CreatorType(_CreatorType, metaclass=_CreatorTypeEnumTypeWrapper): """CreatorType enumerates the types of entities that can create a tag. """ - pass CREATOR_TYPE_UNSPECIFIED: CreatorType.ValueType # 0 """CREATOR_TYPE_UNSPECIFIED is the default value.""" - CREATOR_TYPE_SYSTEM: CreatorType.ValueType # 1 """CREATOR_TYPE_SYSTEM is used for system tags.""" - CREATOR_TYPE_USER: CreatorType.ValueType # 2 """CREATOR_TYPE_USER is used for user tags.""" - CREATOR_TYPE_EXTERNAL: CreatorType.ValueType # 3 """CREATOR_TYPE_EXTERNAL is used for tags created from external sources. For E.g., vCenter """ - global___CreatorType = CreatorType - +@typing.final class TagKey(google.protobuf.message.Message): """TagKey uniquely identifies a tag.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + WORKSPACE_ID_FIELD_NUMBER: builtins.int ELEMENT_TYPE_FIELD_NUMBER: builtins.int LABEL_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int ELEMENT_SUB_TYPE_FIELD_NUMBER: builtins.int + element_type: global___ElementType.ValueType + """element_type is the category of network element to which + this tag can be assigned. + """ + element_sub_type: global___ElementSubType.ValueType + """element_sub_type is the sub-category of network element + to which this tag can be assigned. + """ @property def workspace_id(self) -> google.protobuf.wrappers_pb2.StringValue: """workspace_id is the ID of a workspace. The special ID "" identifies the location where merged tags reside. """ - pass - element_type: global___ElementType.ValueType - """element_type is the category of network element to which - this tag can be assigned. - """ @property def label(self) -> google.protobuf.wrappers_pb2.StringValue: """label is an arbitrary label.""" - pass + @property def value(self) -> google.protobuf.wrappers_pb2.StringValue: """value is an arbitrary value.""" - pass - element_sub_type: global___ElementSubType.ValueType - """element_sub_type is the sub-category of network element - to which this tag can be assigned. - """ - def __init__(self, + def __init__( + self, *, - workspace_id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., + workspace_id: google.protobuf.wrappers_pb2.StringValue | None = ..., element_type: global___ElementType.ValueType = ..., - label: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - value: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., + label: google.protobuf.wrappers_pb2.StringValue | None = ..., + value: google.protobuf.wrappers_pb2.StringValue | None = ..., element_sub_type: global___ElementSubType.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["label",b"label","value",b"value","workspace_id",b"workspace_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["element_sub_type",b"element_sub_type","element_type",b"element_type","label",b"label","value",b"value","workspace_id",b"workspace_id"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["label", b"label", "value", b"value", "workspace_id", b"workspace_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["element_sub_type", b"element_sub_type", "element_type", b"element_type", "label", b"label", "value", b"value", "workspace_id", b"workspace_id"]) -> None: ... + global___TagKey = TagKey +@typing.final class TagConfig(google.protobuf.message.Message): """TagConfig holds a configuration for a user tag. The tags that belong to entities other than ELEMENT_SUB_TYPE_DEVICE will always be present in mainline only. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int REMOVE_FIELD_NUMBER: builtins.int @property @@ -205,51 +196,60 @@ class TagConfig(google.protobuf.message.Message): """key identifies a tag. The special workspace ID "" for merged tags should not be set here. """ - pass + @property def remove(self) -> google.protobuf.wrappers_pb2.BoolValue: """remove indicates whether to remove (true) or add (false, unset) the tag identified by the key if the encompassing workspace merges. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[global___TagKey] = ..., - remove: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","remove",b"remove"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","remove",b"remove"]) -> None: ... + key: global___TagKey | None = ..., + remove: google.protobuf.wrappers_pb2.BoolValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "remove", b"remove"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "remove", b"remove"]) -> None: ... + global___TagConfig = TagConfig +@typing.final class Tag(google.protobuf.message.Message): """Tag holds a merge-preview or the existing merged state (if the workspace ID is "") of a tag. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int CREATOR_TYPE_FIELD_NUMBER: builtins.int + creator_type: global___CreatorType.ValueType + """creator_type is the creator type of the tag.""" @property def key(self) -> global___TagKey: """key identifies a tag.""" - pass - creator_type: global___CreatorType.ValueType - """creator_type is the creator type of the tag.""" - def __init__(self, + def __init__( + self, *, - key: typing.Optional[global___TagKey] = ..., + key: global___TagKey | None = ..., creator_type: global___CreatorType.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["creator_type",b"creator_type","key",b"key"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["creator_type", b"creator_type", "key", b"key"]) -> None: ... + global___Tag = Tag +@typing.final class TagAssignmentKey(google.protobuf.message.Message): """TagAssignmentKey uniquely identifies an assignment between a tag and a network element. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + WORKSPACE_ID_FIELD_NUMBER: builtins.int ELEMENT_TYPE_FIELD_NUMBER: builtins.int LABEL_FIELD_NUMBER: builtins.int @@ -257,12 +257,6 @@ class TagAssignmentKey(google.protobuf.message.Message): DEVICE_ID_FIELD_NUMBER: builtins.int INTERFACE_ID_FIELD_NUMBER: builtins.int ELEMENT_SUB_TYPE_FIELD_NUMBER: builtins.int - @property - def workspace_id(self) -> google.protobuf.wrappers_pb2.StringValue: - """workspace_id is the ID of a workspace. The special ID "" - identifies the location where merged assignments reside. - """ - pass element_type: global___ElementType.ValueType """element_type is the element type of a tag. What should be set per element type: @@ -270,47 +264,56 @@ class TagAssignmentKey(google.protobuf.message.Message): ELEMENT_TYPE_DEVICE: device_id ELEMENT_TYPE_INTERFACE: device_id, interface_id """ + element_sub_type: global___ElementSubType.ValueType + """element_sub_type is the element sub-type of a tag.""" + @property + def workspace_id(self) -> google.protobuf.wrappers_pb2.StringValue: + """workspace_id is the ID of a workspace. The special ID "" + identifies the location where merged assignments reside. + """ @property def label(self) -> google.protobuf.wrappers_pb2.StringValue: """label is the label of a tag.""" - pass + @property def value(self) -> google.protobuf.wrappers_pb2.StringValue: """value is the value of a tag.""" - pass + @property def device_id(self) -> google.protobuf.wrappers_pb2.StringValue: """device_id identifies a device.""" - pass + @property def interface_id(self) -> google.protobuf.wrappers_pb2.StringValue: """interface_id identifies an interface on a device.""" - pass - element_sub_type: global___ElementSubType.ValueType - """element_sub_type is the element sub-type of a tag.""" - def __init__(self, + def __init__( + self, *, - workspace_id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., + workspace_id: google.protobuf.wrappers_pb2.StringValue | None = ..., element_type: global___ElementType.ValueType = ..., - label: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - value: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - device_id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - interface_id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., + label: google.protobuf.wrappers_pb2.StringValue | None = ..., + value: google.protobuf.wrappers_pb2.StringValue | None = ..., + device_id: google.protobuf.wrappers_pb2.StringValue | None = ..., + interface_id: google.protobuf.wrappers_pb2.StringValue | None = ..., element_sub_type: global___ElementSubType.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["device_id",b"device_id","interface_id",b"interface_id","label",b"label","value",b"value","workspace_id",b"workspace_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["device_id",b"device_id","element_sub_type",b"element_sub_type","element_type",b"element_type","interface_id",b"interface_id","label",b"label","value",b"value","workspace_id",b"workspace_id"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["device_id", b"device_id", "interface_id", b"interface_id", "label", b"label", "value", b"value", "workspace_id", b"workspace_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["device_id", b"device_id", "element_sub_type", b"element_sub_type", "element_type", b"element_type", "interface_id", b"interface_id", "label", b"label", "value", b"value", "workspace_id", b"workspace_id"]) -> None: ... + global___TagAssignmentKey = TagAssignmentKey +@typing.final class TagAssignmentConfig(google.protobuf.message.Message): """TagAssignmentConfig holds a configuration for an assignment between a tag and a network element. The tag assignments that belong to entities other than ELEMENT_SUB_TYPE_DEVICE will always be present in mainline only. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int REMOVE_FIELD_NUMBER: builtins.int @property @@ -318,45 +321,51 @@ class TagAssignmentConfig(google.protobuf.message.Message): """key identifies an assignment. The special workspace ID "" for merged assignments should not be set here. """ - pass + @property def remove(self) -> google.protobuf.wrappers_pb2.BoolValue: """remove indicates whether to remove (true) or add (false, unset) the assignment identified by the key if the encompassing workspace merges. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[global___TagAssignmentKey] = ..., - remove: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","remove",b"remove"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","remove",b"remove"]) -> None: ... + key: global___TagAssignmentKey | None = ..., + remove: google.protobuf.wrappers_pb2.BoolValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "remove", b"remove"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "remove", b"remove"]) -> None: ... + global___TagAssignmentConfig = TagAssignmentConfig +@typing.final class TagAssignment(google.protobuf.message.Message): """TagAssignment holds a merge-preview or the existing merged state (if the workspace ID is "") of an assignment between a tag and a network element. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TAG_CREATOR_TYPE_FIELD_NUMBER: builtins.int - @property - def key(self) -> global___TagAssignmentKey: - """key identifies an assignment.""" - pass tag_creator_type: global___CreatorType.ValueType """tag_creator_type is the creator type of the tag involved in the assignment. """ + @property + def key(self) -> global___TagAssignmentKey: + """key identifies an assignment.""" - def __init__(self, + def __init__( + self, *, - key: typing.Optional[global___TagAssignmentKey] = ..., + key: global___TagAssignmentKey | None = ..., tag_creator_type: global___CreatorType.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","tag_creator_type",b"tag_creator_type"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "tag_creator_type", b"tag_creator_type"]) -> None: ... + global___TagAssignment = TagAssignment diff --git a/arista/time/time_pb2.pyi b/arista/time/time_pb2.pyi index f2094cf..f4f35ca 100644 --- a/arista/time/time_pb2.pyi +++ b/arista/time/time_pb2.pyi @@ -1,29 +1,36 @@ """ @generated by mypy-protobuf. Do not edit manually! isort:skip_file +Copyright (c) 2020 Arista Networks, Inc. +Use of this source code is governed by the Apache License 2.0 +that can be found in the COPYING file. """ + import builtins import google.protobuf.descriptor import google.protobuf.message import google.protobuf.timestamp_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class TimeBounds(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + START_FIELD_NUMBER: builtins.int END_FIELD_NUMBER: builtins.int @property def start(self) -> google.protobuf.timestamp_pb2.Timestamp: ... @property def end(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - def __init__(self, + def __init__( + self, *, - start: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - end: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["end",b"end","start",b"start"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["end",b"end","start",b"start"]) -> None: ... + start: google.protobuf.timestamp_pb2.Timestamp | None = ..., + end: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["end", b"end", "start", b"start"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["end", b"end", "start", b"start"]) -> None: ... + global___TimeBounds = TimeBounds diff --git a/arista/workspace/v1/services/gen_pb2.pyi b/arista/workspace/v1/services/gen_pb2.pyi index 7744274..e4b859d 100644 --- a/arista/workspace/v1/services/gen_pb2.pyi +++ b/arista/workspace/v1/services/gen_pb2.pyi @@ -1,11 +1,15 @@ """ @generated by mypy-protobuf. Do not edit manually! isort:skip_file + +Code generated by boomtown. DO NOT EDIT. """ + import arista.subscriptions.subscriptions_pb2 import arista.time.time_pb2 import arista.workspace.v1.workspace_pb2 import builtins +import collections.abc import fmp.deletes_pb2 import google.protobuf.descriptor import google.protobuf.internal.containers @@ -13,42 +17,46 @@ import google.protobuf.message import google.protobuf.timestamp_pb2 import google.protobuf.wrappers_pb2 import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class MetaResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int COUNT_FIELD_NUMBER: builtins.int - @property - def time(self) -> google.protobuf.timestamp_pb2.Timestamp: - """Time holds the timestamp of the last item included in the metadata calculation.""" - pass type: arista.subscriptions.subscriptions_pb2.Operation.ValueType """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. """ + @property + def time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """Time holds the timestamp of the last item included in the metadata calculation.""" @property def count(self) -> google.protobuf.wrappers_pb2.UInt32Value: """Count is the number of items present under the conditions of the request.""" - pass - def __init__(self, + + def __init__( + self, *, - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - count: typing.Optional[google.protobuf.wrappers_pb2.UInt32Value] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["count",b"count","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["count",b"count","time",b"time","type",b"type"]) -> None: ... + count: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["count", b"count", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["count", b"count", "time", b"time", "type", b"type"]) -> None: ... + global___MetaResponse = MetaResponse +@typing.final class WorkspaceRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -56,24 +64,28 @@ class WorkspaceRequest(google.protobuf.message.Message): """Key uniquely identifies a Workspace instance to retrieve. This value must be populated. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the time for which you are interested in the data. If no time is given, the server will use the time at which it makes the request. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.workspace.v1.workspace_pb2.WorkspaceKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.workspace.v1.workspace_pb2.WorkspaceKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___WorkspaceRequest = WorkspaceRequest +@typing.final class WorkspaceResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -83,24 +95,28 @@ class WorkspaceResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time carries the (UTC) timestamp of the last-modification of the Workspace instance in this response. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.workspace.v1.workspace_pb2.Workspace] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.workspace.v1.workspace_pb2.Workspace | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___WorkspaceResponse = WorkspaceResponse +@typing.final class WorkspaceSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -110,18 +126,22 @@ class WorkspaceSomeRequest(google.protobuf.message.Message): """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. """ - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.workspace.v1.workspace_pb2.WorkspaceKey]] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys","time",b"time"]) -> None: ... + keys: collections.abc.Iterable[arista.workspace.v1.workspace_pb2.WorkspaceKey] | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys", "time", b"time"]) -> None: ... + global___WorkspaceSomeRequest = WorkspaceSomeRequest +@typing.final class WorkspaceSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -132,27 +152,31 @@ class WorkspaceSomeResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """Error is an optional field. It should be filled when there is an error in the GetSome process. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.workspace.v1.workspace_pb2.Workspace] = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> None: ... + value: arista.workspace.v1.workspace_pb2.Workspace | None = ..., + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> None: ... + global___WorkspaceSomeResponse = WorkspaceSomeResponse +@typing.final class WorkspaceStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -163,7 +187,7 @@ class WorkspaceStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -182,51 +206,58 @@ class WorkspaceStreamRequest(google.protobuf.message.Message): This field is not allowed in the Subscribe RPC. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.workspace.v1.workspace_pb2.Workspace]] = ..., - time: typing.Optional[arista.time.time_pb2.TimeBounds] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.workspace.v1.workspace_pb2.Workspace] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___WorkspaceStreamRequest = WorkspaceStreamRequest +@typing.final class WorkspaceStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int + type: arista.subscriptions.subscriptions_pb2.Operation.ValueType + """Operation indicates how the Workspace 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. + """ @property def value(self) -> arista.workspace.v1.workspace_pb2.Workspace: """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. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time holds the timestamp of this Workspace's last modification.""" - pass - type: arista.subscriptions.subscriptions_pb2.Operation.ValueType - """Operation indicates how the Workspace 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. - """ - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.workspace.v1.workspace_pb2.Workspace] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + value: arista.workspace.v1.workspace_pb2.Workspace | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "type", b"type", "value", b"value"]) -> None: ... + global___WorkspaceStreamResponse = WorkspaceStreamResponse +@typing.final class WorkspaceBatchedStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int MAX_MESSAGES_FIELD_NUMBER: builtins.int @@ -238,7 +269,7 @@ class WorkspaceBatchedStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -257,7 +288,7 @@ class WorkspaceBatchedStreamRequest(google.protobuf.message.Message): 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. @@ -265,19 +296,23 @@ class WorkspaceBatchedStreamRequest(google.protobuf.message.Message): 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, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.workspace.v1.workspace_pb2.Workspace]] = ..., - 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","partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.workspace.v1.workspace_pb2.Workspace] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + max_messages: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["max_messages", b"max_messages", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["max_messages", b"max_messages", "partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___WorkspaceBatchedStreamRequest = WorkspaceBatchedStreamRequest +@typing.final class WorkspaceBatchedStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + RESPONSES_FIELD_NUMBER: builtins.int @property def responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___WorkspaceStreamResponse]: @@ -285,16 +320,20 @@ class WorkspaceBatchedStreamResponse(google.protobuf.message.Message): The length of this structure is guaranteed to be between (inclusive) 1 and min(req.max_messages, INTERNAL_BATCH_LIMIT). """ - pass - def __init__(self, + + def __init__( + self, *, - responses: typing.Optional[typing.Iterable[global___WorkspaceStreamResponse]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["responses",b"responses"]) -> None: ... + responses: collections.abc.Iterable[global___WorkspaceStreamResponse] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["responses", b"responses"]) -> None: ... + global___WorkspaceBatchedStreamResponse = WorkspaceBatchedStreamResponse +@typing.final class WorkspaceBuildRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -302,24 +341,28 @@ class WorkspaceBuildRequest(google.protobuf.message.Message): """Key uniquely identifies a WorkspaceBuild instance to retrieve. This value must be populated. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the time for which you are interested in the data. If no time is given, the server will use the time at which it makes the request. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.workspace.v1.workspace_pb2.WorkspaceBuildKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.workspace.v1.workspace_pb2.WorkspaceBuildKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___WorkspaceBuildRequest = WorkspaceBuildRequest +@typing.final class WorkspaceBuildResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -329,24 +372,28 @@ class WorkspaceBuildResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time carries the (UTC) timestamp of the last-modification of the WorkspaceBuild instance in this response. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.workspace.v1.workspace_pb2.WorkspaceBuild] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.workspace.v1.workspace_pb2.WorkspaceBuild | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___WorkspaceBuildResponse = WorkspaceBuildResponse +@typing.final class WorkspaceBuildSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -356,18 +403,22 @@ class WorkspaceBuildSomeRequest(google.protobuf.message.Message): """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. """ - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.workspace.v1.workspace_pb2.WorkspaceBuildKey]] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys","time",b"time"]) -> None: ... + keys: collections.abc.Iterable[arista.workspace.v1.workspace_pb2.WorkspaceBuildKey] | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys", "time", b"time"]) -> None: ... + global___WorkspaceBuildSomeRequest = WorkspaceBuildSomeRequest +@typing.final class WorkspaceBuildSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -378,27 +429,31 @@ class WorkspaceBuildSomeResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """Error is an optional field. It should be filled when there is an error in the GetSome process. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.workspace.v1.workspace_pb2.WorkspaceBuild] = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> None: ... + value: arista.workspace.v1.workspace_pb2.WorkspaceBuild | None = ..., + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> None: ... + global___WorkspaceBuildSomeResponse = WorkspaceBuildSomeResponse +@typing.final class WorkspaceBuildStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -409,7 +464,7 @@ class WorkspaceBuildStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -428,51 +483,58 @@ class WorkspaceBuildStreamRequest(google.protobuf.message.Message): This field is not allowed in the Subscribe RPC. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.workspace.v1.workspace_pb2.WorkspaceBuild]] = ..., - time: typing.Optional[arista.time.time_pb2.TimeBounds] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.workspace.v1.workspace_pb2.WorkspaceBuild] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___WorkspaceBuildStreamRequest = WorkspaceBuildStreamRequest +@typing.final class WorkspaceBuildStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int + type: arista.subscriptions.subscriptions_pb2.Operation.ValueType + """Operation indicates how the WorkspaceBuild 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. + """ @property def value(self) -> arista.workspace.v1.workspace_pb2.WorkspaceBuild: """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. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time holds the timestamp of this WorkspaceBuild's last modification.""" - pass - type: arista.subscriptions.subscriptions_pb2.Operation.ValueType - """Operation indicates how the WorkspaceBuild 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. - """ - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.workspace.v1.workspace_pb2.WorkspaceBuild] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + value: arista.workspace.v1.workspace_pb2.WorkspaceBuild | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "type", b"type", "value", b"value"]) -> None: ... + global___WorkspaceBuildStreamResponse = WorkspaceBuildStreamResponse +@typing.final class WorkspaceBuildBatchedStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int MAX_MESSAGES_FIELD_NUMBER: builtins.int @@ -484,7 +546,7 @@ class WorkspaceBuildBatchedStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -503,7 +565,7 @@ class WorkspaceBuildBatchedStreamRequest(google.protobuf.message.Message): 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. @@ -511,19 +573,23 @@ class WorkspaceBuildBatchedStreamRequest(google.protobuf.message.Message): 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, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.workspace.v1.workspace_pb2.WorkspaceBuild]] = ..., - 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","partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.workspace.v1.workspace_pb2.WorkspaceBuild] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + max_messages: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["max_messages", b"max_messages", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["max_messages", b"max_messages", "partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___WorkspaceBuildBatchedStreamRequest = WorkspaceBuildBatchedStreamRequest +@typing.final class WorkspaceBuildBatchedStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + RESPONSES_FIELD_NUMBER: builtins.int @property def responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___WorkspaceBuildStreamResponse]: @@ -531,16 +597,20 @@ class WorkspaceBuildBatchedStreamResponse(google.protobuf.message.Message): The length of this structure is guaranteed to be between (inclusive) 1 and min(req.max_messages, INTERNAL_BATCH_LIMIT). """ - pass - def __init__(self, + + def __init__( + self, *, - responses: typing.Optional[typing.Iterable[global___WorkspaceBuildStreamResponse]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["responses",b"responses"]) -> None: ... + responses: collections.abc.Iterable[global___WorkspaceBuildStreamResponse] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["responses", b"responses"]) -> None: ... + global___WorkspaceBuildBatchedStreamResponse = WorkspaceBuildBatchedStreamResponse +@typing.final class WorkspaceBuildDetailsRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -548,24 +618,28 @@ class WorkspaceBuildDetailsRequest(google.protobuf.message.Message): """Key uniquely identifies a WorkspaceBuildDetails instance to retrieve. This value must be populated. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the time for which you are interested in the data. If no time is given, the server will use the time at which it makes the request. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.workspace.v1.workspace_pb2.WorkspaceBuildDetailsKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.workspace.v1.workspace_pb2.WorkspaceBuildDetailsKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___WorkspaceBuildDetailsRequest = WorkspaceBuildDetailsRequest +@typing.final class WorkspaceBuildDetailsResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -575,24 +649,28 @@ class WorkspaceBuildDetailsResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time carries the (UTC) timestamp of the last-modification of the WorkspaceBuildDetails instance in this response. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.workspace.v1.workspace_pb2.WorkspaceBuildDetails] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.workspace.v1.workspace_pb2.WorkspaceBuildDetails | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___WorkspaceBuildDetailsResponse = WorkspaceBuildDetailsResponse +@typing.final class WorkspaceBuildDetailsSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -602,18 +680,22 @@ class WorkspaceBuildDetailsSomeRequest(google.protobuf.message.Message): """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. """ - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.workspace.v1.workspace_pb2.WorkspaceBuildDetailsKey]] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys","time",b"time"]) -> None: ... + keys: collections.abc.Iterable[arista.workspace.v1.workspace_pb2.WorkspaceBuildDetailsKey] | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys", "time", b"time"]) -> None: ... + global___WorkspaceBuildDetailsSomeRequest = WorkspaceBuildDetailsSomeRequest +@typing.final class WorkspaceBuildDetailsSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -624,27 +706,31 @@ class WorkspaceBuildDetailsSomeResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """Error is an optional field. It should be filled when there is an error in the GetSome process. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.workspace.v1.workspace_pb2.WorkspaceBuildDetails] = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> None: ... + value: arista.workspace.v1.workspace_pb2.WorkspaceBuildDetails | None = ..., + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> None: ... + global___WorkspaceBuildDetailsSomeResponse = WorkspaceBuildDetailsSomeResponse +@typing.final class WorkspaceBuildDetailsStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -655,7 +741,7 @@ class WorkspaceBuildDetailsStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -674,51 +760,58 @@ class WorkspaceBuildDetailsStreamRequest(google.protobuf.message.Message): This field is not allowed in the Subscribe RPC. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.workspace.v1.workspace_pb2.WorkspaceBuildDetails]] = ..., - time: typing.Optional[arista.time.time_pb2.TimeBounds] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.workspace.v1.workspace_pb2.WorkspaceBuildDetails] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___WorkspaceBuildDetailsStreamRequest = WorkspaceBuildDetailsStreamRequest +@typing.final class WorkspaceBuildDetailsStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int + type: arista.subscriptions.subscriptions_pb2.Operation.ValueType + """Operation indicates how the WorkspaceBuildDetails 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. + """ @property def value(self) -> arista.workspace.v1.workspace_pb2.WorkspaceBuildDetails: """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. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time holds the timestamp of this WorkspaceBuildDetails's last modification.""" - pass - type: arista.subscriptions.subscriptions_pb2.Operation.ValueType - """Operation indicates how the WorkspaceBuildDetails 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. - """ - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.workspace.v1.workspace_pb2.WorkspaceBuildDetails] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + value: arista.workspace.v1.workspace_pb2.WorkspaceBuildDetails | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "type", b"type", "value", b"value"]) -> None: ... + global___WorkspaceBuildDetailsStreamResponse = WorkspaceBuildDetailsStreamResponse +@typing.final class WorkspaceBuildDetailsBatchedStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int MAX_MESSAGES_FIELD_NUMBER: builtins.int @@ -730,7 +823,7 @@ class WorkspaceBuildDetailsBatchedStreamRequest(google.protobuf.message.Message) While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -749,7 +842,7 @@ class WorkspaceBuildDetailsBatchedStreamRequest(google.protobuf.message.Message) 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. @@ -757,19 +850,23 @@ class WorkspaceBuildDetailsBatchedStreamRequest(google.protobuf.message.Message) 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, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.workspace.v1.workspace_pb2.WorkspaceBuildDetails]] = ..., - 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","partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.workspace.v1.workspace_pb2.WorkspaceBuildDetails] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + max_messages: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["max_messages", b"max_messages", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["max_messages", b"max_messages", "partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___WorkspaceBuildDetailsBatchedStreamRequest = WorkspaceBuildDetailsBatchedStreamRequest +@typing.final class WorkspaceBuildDetailsBatchedStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + RESPONSES_FIELD_NUMBER: builtins.int @property def responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___WorkspaceBuildDetailsStreamResponse]: @@ -777,16 +874,20 @@ class WorkspaceBuildDetailsBatchedStreamResponse(google.protobuf.message.Message The length of this structure is guaranteed to be between (inclusive) 1 and min(req.max_messages, INTERNAL_BATCH_LIMIT). """ - pass - def __init__(self, + + def __init__( + self, *, - responses: typing.Optional[typing.Iterable[global___WorkspaceBuildDetailsStreamResponse]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["responses",b"responses"]) -> None: ... + responses: collections.abc.Iterable[global___WorkspaceBuildDetailsStreamResponse] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["responses", b"responses"]) -> None: ... + global___WorkspaceBuildDetailsBatchedStreamResponse = WorkspaceBuildDetailsBatchedStreamResponse +@typing.final class WorkspaceConfigRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -794,24 +895,28 @@ class WorkspaceConfigRequest(google.protobuf.message.Message): """Key uniquely identifies a WorkspaceConfig instance to retrieve. This value must be populated. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the time for which you are interested in the data. If no time is given, the server will use the time at which it makes the request. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.workspace.v1.workspace_pb2.WorkspaceKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.workspace.v1.workspace_pb2.WorkspaceKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___WorkspaceConfigRequest = WorkspaceConfigRequest +@typing.final class WorkspaceConfigResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -821,24 +926,28 @@ class WorkspaceConfigResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time carries the (UTC) timestamp of the last-modification of the WorkspaceConfig instance in this response. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.workspace.v1.workspace_pb2.WorkspaceConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.workspace.v1.workspace_pb2.WorkspaceConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___WorkspaceConfigResponse = WorkspaceConfigResponse +@typing.final class WorkspaceConfigSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -848,18 +957,22 @@ class WorkspaceConfigSomeRequest(google.protobuf.message.Message): """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. """ - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.workspace.v1.workspace_pb2.WorkspaceKey]] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys","time",b"time"]) -> None: ... + keys: collections.abc.Iterable[arista.workspace.v1.workspace_pb2.WorkspaceKey] | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys", "time", b"time"]) -> None: ... + global___WorkspaceConfigSomeRequest = WorkspaceConfigSomeRequest +@typing.final class WorkspaceConfigSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -870,27 +983,31 @@ class WorkspaceConfigSomeResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """Error is an optional field. It should be filled when there is an error in the GetSome process. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.workspace.v1.workspace_pb2.WorkspaceConfig] = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> None: ... + value: arista.workspace.v1.workspace_pb2.WorkspaceConfig | None = ..., + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> None: ... + global___WorkspaceConfigSomeResponse = WorkspaceConfigSomeResponse +@typing.final class WorkspaceConfigStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -901,7 +1018,7 @@ class WorkspaceConfigStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -920,51 +1037,58 @@ class WorkspaceConfigStreamRequest(google.protobuf.message.Message): This field is not allowed in the Subscribe RPC. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.workspace.v1.workspace_pb2.WorkspaceConfig]] = ..., - time: typing.Optional[arista.time.time_pb2.TimeBounds] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.workspace.v1.workspace_pb2.WorkspaceConfig] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___WorkspaceConfigStreamRequest = WorkspaceConfigStreamRequest +@typing.final class WorkspaceConfigStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int + type: arista.subscriptions.subscriptions_pb2.Operation.ValueType + """Operation indicates how the WorkspaceConfig 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. + """ @property def value(self) -> arista.workspace.v1.workspace_pb2.WorkspaceConfig: """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. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time holds the timestamp of this WorkspaceConfig's last modification.""" - pass - type: arista.subscriptions.subscriptions_pb2.Operation.ValueType - """Operation indicates how the WorkspaceConfig 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. - """ - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.workspace.v1.workspace_pb2.WorkspaceConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + value: arista.workspace.v1.workspace_pb2.WorkspaceConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "type", b"type", "value", b"value"]) -> None: ... + global___WorkspaceConfigStreamResponse = WorkspaceConfigStreamResponse +@typing.final class WorkspaceConfigBatchedStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int MAX_MESSAGES_FIELD_NUMBER: builtins.int @@ -976,7 +1100,7 @@ class WorkspaceConfigBatchedStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -995,7 +1119,7 @@ class WorkspaceConfigBatchedStreamRequest(google.protobuf.message.Message): 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. @@ -1003,19 +1127,23 @@ class WorkspaceConfigBatchedStreamRequest(google.protobuf.message.Message): 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, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.workspace.v1.workspace_pb2.WorkspaceConfig]] = ..., - 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","partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.workspace.v1.workspace_pb2.WorkspaceConfig] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + max_messages: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["max_messages", b"max_messages", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["max_messages", b"max_messages", "partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___WorkspaceConfigBatchedStreamRequest = WorkspaceConfigBatchedStreamRequest +@typing.final class WorkspaceConfigBatchedStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + RESPONSES_FIELD_NUMBER: builtins.int @property def responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___WorkspaceConfigStreamResponse]: @@ -1023,33 +1151,41 @@ class WorkspaceConfigBatchedStreamResponse(google.protobuf.message.Message): The length of this structure is guaranteed to be between (inclusive) 1 and min(req.max_messages, INTERNAL_BATCH_LIMIT). """ - pass - def __init__(self, + + def __init__( + self, *, - responses: typing.Optional[typing.Iterable[global___WorkspaceConfigStreamResponse]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["responses",b"responses"]) -> None: ... + responses: collections.abc.Iterable[global___WorkspaceConfigStreamResponse] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["responses", b"responses"]) -> None: ... + global___WorkspaceConfigBatchedStreamResponse = WorkspaceConfigBatchedStreamResponse +@typing.final class WorkspaceConfigSetRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int @property def value(self) -> arista.workspace.v1.workspace_pb2.WorkspaceConfig: """WorkspaceConfig carries the value to set into the datastore. See the documentation on the WorkspaceConfig struct for which fields are required. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.workspace.v1.workspace_pb2.WorkspaceConfig] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["value",b"value"]) -> None: ... + value: arista.workspace.v1.workspace_pb2.WorkspaceConfig | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["value", b"value"]) -> None: ... + global___WorkspaceConfigSetRequest = WorkspaceConfigSetRequest +@typing.final class WorkspaceConfigSetResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -1057,7 +1193,7 @@ class WorkspaceConfigSetResponse(google.protobuf.message.Message): """Value carries all the values given in the WorkspaceConfigSetRequest as well as any server-generated values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp at which the system recognizes the @@ -1066,18 +1202,22 @@ class WorkspaceConfigSetResponse(google.protobuf.message.Message): - it is after the time the request was received - a time-ranged query with StartTime==CreatedAt will include this instance. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.workspace.v1.workspace_pb2.WorkspaceConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.workspace.v1.workspace_pb2.WorkspaceConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___WorkspaceConfigSetResponse = WorkspaceConfigSetResponse +@typing.final class WorkspaceConfigSetSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.workspace.v1.workspace_pb2.WorkspaceConfig]: @@ -1088,55 +1228,67 @@ class WorkspaceConfigSetSomeRequest(google.protobuf.message.Message): If this error occurs you must reduce the number of values sent. See gRPC "maximum message size" documentation for more information. """ - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[arista.workspace.v1.workspace_pb2.WorkspaceConfig]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[arista.workspace.v1.workspace_pb2.WorkspaceConfig] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___WorkspaceConfigSetSomeRequest = WorkspaceConfigSetSomeRequest +@typing.final class WorkspaceConfigSetSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int + error: builtins.str @property def key(self) -> arista.workspace.v1.workspace_pb2.WorkspaceKey: ... - error: typing.Text - def __init__(self, + def __init__( + self, *, - key: typing.Optional[arista.workspace.v1.workspace_pb2.WorkspaceKey] = ..., - error: typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key"]) -> None: ... + key: arista.workspace.v1.workspace_pb2.WorkspaceKey | None = ..., + error: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key"]) -> None: ... + global___WorkspaceConfigSetSomeResponse = WorkspaceConfigSetSomeResponse +@typing.final class WorkspaceConfigDeleteRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int @property def key(self) -> arista.workspace.v1.workspace_pb2.WorkspaceKey: """Key indicates which WorkspaceConfig instance to remove. This field must always be set. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.workspace.v1.workspace_pb2.WorkspaceKey] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key"]) -> None: ... + key: arista.workspace.v1.workspace_pb2.WorkspaceKey | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key"]) -> None: ... + global___WorkspaceConfigDeleteRequest = WorkspaceConfigDeleteRequest +@typing.final class WorkspaceConfigDeleteResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property def key(self) -> arista.workspace.v1.workspace_pb2.WorkspaceKey: """Key echoes back the key of the deleted WorkspaceConfig instance.""" - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp at which the system recognizes the @@ -1145,49 +1297,62 @@ class WorkspaceConfigDeleteResponse(google.protobuf.message.Message): - it is after the time the request was received - a time-ranged query with StartTime==DeletedAt will not include this instance. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.workspace.v1.workspace_pb2.WorkspaceKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.workspace.v1.workspace_pb2.WorkspaceKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___WorkspaceConfigDeleteResponse = WorkspaceConfigDeleteResponse +@typing.final class WorkspaceConfigDeleteSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int @property def keys(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.workspace.v1.workspace_pb2.WorkspaceKey]: """key contains a list of WorkspaceConfig keys to delete""" - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.workspace.v1.workspace_pb2.WorkspaceKey]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys"]) -> None: ... + keys: collections.abc.Iterable[arista.workspace.v1.workspace_pb2.WorkspaceKey] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys"]) -> None: ... + global___WorkspaceConfigDeleteSomeRequest = WorkspaceConfigDeleteSomeRequest +@typing.final class WorkspaceConfigDeleteSomeResponse(google.protobuf.message.Message): """WorkspaceConfigDeleteSomeResponse is only sent when there is an error.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int + error: builtins.str @property def key(self) -> arista.workspace.v1.workspace_pb2.WorkspaceKey: ... - error: typing.Text - def __init__(self, + def __init__( + self, *, - key: typing.Optional[arista.workspace.v1.workspace_pb2.WorkspaceKey] = ..., - error: typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key"]) -> None: ... + key: arista.workspace.v1.workspace_pb2.WorkspaceKey | None = ..., + error: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key"]) -> None: ... + global___WorkspaceConfigDeleteSomeResponse = WorkspaceConfigDeleteSomeResponse +@typing.final class WorkspaceConfigDeleteAllRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int @property def partial_eq_filter(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.workspace.v1.workspace_pb2.WorkspaceConfig]: @@ -1195,16 +1360,20 @@ class WorkspaceConfigDeleteAllRequest(google.protobuf.message.Message): This requires all provided fields to be equal to the response. A filtered DeleteAll will use GetAll with filter to find things to delete. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.workspace.v1.workspace_pb2.WorkspaceConfig]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.workspace.v1.workspace_pb2.WorkspaceConfig] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter"]) -> None: ... + global___WorkspaceConfigDeleteAllRequest = WorkspaceConfigDeleteAllRequest +@typing.final class WorkspaceConfigDeleteAllResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TYPE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int KEY_FIELD_NUMBER: builtins.int @@ -1213,32 +1382,35 @@ class WorkspaceConfigDeleteAllResponse(google.protobuf.message.Message): """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: """This indicates the error message from the delete failure.""" - pass + @property def key(self) -> arista.workspace.v1.workspace_pb2.WorkspaceKey: """This is the key of the WorkspaceConfig instance that failed to be deleted.""" - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp when the key was being deleted.""" - pass - def __init__(self, + + def __init__( + self, *, type: fmp.deletes_pb2.DeleteError.ValueType = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - key: typing.Optional[arista.workspace.v1.workspace_pb2.WorkspaceKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key","time",b"time","type",b"type"]) -> None: ... + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + key: arista.workspace.v1.workspace_pb2.WorkspaceKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key", "time", b"time", "type", b"type"]) -> None: ... + global___WorkspaceConfigDeleteAllResponse = WorkspaceConfigDeleteAllResponse +@typing.final class WorkspaceSyncConfigRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -1246,24 +1418,28 @@ class WorkspaceSyncConfigRequest(google.protobuf.message.Message): """Key uniquely identifies a WorkspaceSyncConfig instance to retrieve. This value must be populated. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the time for which you are interested in the data. If no time is given, the server will use the time at which it makes the request. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.workspace.v1.workspace_pb2.WorkspaceSyncKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.workspace.v1.workspace_pb2.WorkspaceSyncKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___WorkspaceSyncConfigRequest = WorkspaceSyncConfigRequest +@typing.final class WorkspaceSyncConfigResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -1273,24 +1449,28 @@ class WorkspaceSyncConfigResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time carries the (UTC) timestamp of the last-modification of the WorkspaceSyncConfig instance in this response. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.workspace.v1.workspace_pb2.WorkspaceSyncConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.workspace.v1.workspace_pb2.WorkspaceSyncConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___WorkspaceSyncConfigResponse = WorkspaceSyncConfigResponse +@typing.final class WorkspaceSyncConfigSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -1300,18 +1480,22 @@ class WorkspaceSyncConfigSomeRequest(google.protobuf.message.Message): """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. """ - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.workspace.v1.workspace_pb2.WorkspaceSyncKey]] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys","time",b"time"]) -> None: ... + keys: collections.abc.Iterable[arista.workspace.v1.workspace_pb2.WorkspaceSyncKey] | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys", "time", b"time"]) -> None: ... + global___WorkspaceSyncConfigSomeRequest = WorkspaceSyncConfigSomeRequest +@typing.final class WorkspaceSyncConfigSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @@ -1322,27 +1506,31 @@ class WorkspaceSyncConfigSomeResponse(google.protobuf.message.Message): optional fields were not given at creation, these fields will be empty or set to default values. """ - pass + @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """Error is an optional field. It should be filled when there is an error in the GetSome process. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.workspace.v1.workspace_pb2.WorkspaceSyncConfig] = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","time",b"time","value",b"value"]) -> None: ... + value: arista.workspace.v1.workspace_pb2.WorkspaceSyncConfig | None = ..., + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "time", b"time", "value", b"value"]) -> None: ... + global___WorkspaceSyncConfigSomeResponse = WorkspaceSyncConfigSomeResponse +@typing.final class WorkspaceSyncConfigStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -1353,7 +1541,7 @@ class WorkspaceSyncConfigStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -1372,51 +1560,58 @@ class WorkspaceSyncConfigStreamRequest(google.protobuf.message.Message): This field is not allowed in the Subscribe RPC. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.workspace.v1.workspace_pb2.WorkspaceSyncConfig]] = ..., - time: typing.Optional[arista.time.time_pb2.TimeBounds] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.workspace.v1.workspace_pb2.WorkspaceSyncConfig] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___WorkspaceSyncConfigStreamRequest = WorkspaceSyncConfigStreamRequest +@typing.final class WorkspaceSyncConfigStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int TYPE_FIELD_NUMBER: builtins.int + type: arista.subscriptions.subscriptions_pb2.Operation.ValueType + """Operation indicates how the WorkspaceSyncConfig 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. + """ @property def value(self) -> arista.workspace.v1.workspace_pb2.WorkspaceSyncConfig: """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. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time holds the timestamp of this WorkspaceSyncConfig's last modification.""" - pass - type: arista.subscriptions.subscriptions_pb2.Operation.ValueType - """Operation indicates how the WorkspaceSyncConfig 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. - """ - def __init__(self, + def __init__( + self, *, - value: typing.Optional[arista.workspace.v1.workspace_pb2.WorkspaceSyncConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + value: arista.workspace.v1.workspace_pb2.WorkspaceSyncConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., type: arista.subscriptions.subscriptions_pb2.Operation.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "type", b"type", "value", b"value"]) -> None: ... + global___WorkspaceSyncConfigStreamResponse = WorkspaceSyncConfigStreamResponse +@typing.final class WorkspaceSyncConfigBatchedStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int MAX_MESSAGES_FIELD_NUMBER: builtins.int @@ -1428,7 +1623,7 @@ class WorkspaceSyncConfigBatchedStreamRequest(google.protobuf.message.Message): While transparent to users, this field also allows services to optimize internal subscriptions if filter(s) are sufficiently specific. """ - pass + @property def time(self) -> arista.time.time_pb2.TimeBounds: """TimeRange allows limiting response data to within a specified time window. @@ -1447,7 +1642,7 @@ class WorkspaceSyncConfigBatchedStreamRequest(google.protobuf.message.Message): 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. @@ -1455,19 +1650,23 @@ class WorkspaceSyncConfigBatchedStreamRequest(google.protobuf.message.Message): 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, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.workspace.v1.workspace_pb2.WorkspaceSyncConfig]] = ..., - 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","partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.workspace.v1.workspace_pb2.WorkspaceSyncConfig] | None = ..., + time: arista.time.time_pb2.TimeBounds | None = ..., + max_messages: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["max_messages", b"max_messages", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["max_messages", b"max_messages", "partial_eq_filter", b"partial_eq_filter", "time", b"time"]) -> None: ... + global___WorkspaceSyncConfigBatchedStreamRequest = WorkspaceSyncConfigBatchedStreamRequest +@typing.final class WorkspaceSyncConfigBatchedStreamResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + RESPONSES_FIELD_NUMBER: builtins.int @property def responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___WorkspaceSyncConfigStreamResponse]: @@ -1475,33 +1674,41 @@ class WorkspaceSyncConfigBatchedStreamResponse(google.protobuf.message.Message): The length of this structure is guaranteed to be between (inclusive) 1 and min(req.max_messages, INTERNAL_BATCH_LIMIT). """ - pass - def __init__(self, + + def __init__( + self, *, - responses: typing.Optional[typing.Iterable[global___WorkspaceSyncConfigStreamResponse]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["responses",b"responses"]) -> None: ... + responses: collections.abc.Iterable[global___WorkspaceSyncConfigStreamResponse] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["responses", b"responses"]) -> None: ... + global___WorkspaceSyncConfigBatchedStreamResponse = WorkspaceSyncConfigBatchedStreamResponse +@typing.final class WorkspaceSyncConfigSetRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int @property def value(self) -> arista.workspace.v1.workspace_pb2.WorkspaceSyncConfig: """WorkspaceSyncConfig carries the value to set into the datastore. See the documentation on the WorkspaceSyncConfig struct for which fields are required. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.workspace.v1.workspace_pb2.WorkspaceSyncConfig] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["value",b"value"]) -> None: ... + value: arista.workspace.v1.workspace_pb2.WorkspaceSyncConfig | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["value", b"value"]) -> None: ... + global___WorkspaceSyncConfigSetRequest = WorkspaceSyncConfigSetRequest +@typing.final class WorkspaceSyncConfigSetResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property @@ -1509,7 +1716,7 @@ class WorkspaceSyncConfigSetResponse(google.protobuf.message.Message): """Value carries all the values given in the WorkspaceSyncConfigSetRequest as well as any server-generated values. """ - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp at which the system recognizes the @@ -1518,18 +1725,22 @@ class WorkspaceSyncConfigSetResponse(google.protobuf.message.Message): - it is after the time the request was received - a time-ranged query with StartTime==CreatedAt will include this instance. """ - pass - def __init__(self, + + def __init__( + self, *, - value: typing.Optional[arista.workspace.v1.workspace_pb2.WorkspaceSyncConfig] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... + value: arista.workspace.v1.workspace_pb2.WorkspaceSyncConfig | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["time", b"time", "value", b"value"]) -> None: ... + global___WorkspaceSyncConfigSetResponse = WorkspaceSyncConfigSetResponse +@typing.final class WorkspaceSyncConfigSetSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.workspace.v1.workspace_pb2.WorkspaceSyncConfig]: @@ -1540,55 +1751,67 @@ class WorkspaceSyncConfigSetSomeRequest(google.protobuf.message.Message): If this error occurs you must reduce the number of values sent. See gRPC "maximum message size" documentation for more information. """ - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[arista.workspace.v1.workspace_pb2.WorkspaceSyncConfig]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[arista.workspace.v1.workspace_pb2.WorkspaceSyncConfig] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___WorkspaceSyncConfigSetSomeRequest = WorkspaceSyncConfigSetSomeRequest +@typing.final class WorkspaceSyncConfigSetSomeResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int + error: builtins.str @property def key(self) -> arista.workspace.v1.workspace_pb2.WorkspaceSyncKey: ... - error: typing.Text - def __init__(self, + def __init__( + self, *, - key: typing.Optional[arista.workspace.v1.workspace_pb2.WorkspaceSyncKey] = ..., - error: typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key"]) -> None: ... + key: arista.workspace.v1.workspace_pb2.WorkspaceSyncKey | None = ..., + error: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key"]) -> None: ... + global___WorkspaceSyncConfigSetSomeResponse = WorkspaceSyncConfigSetSomeResponse +@typing.final class WorkspaceSyncConfigDeleteRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int @property def key(self) -> arista.workspace.v1.workspace_pb2.WorkspaceSyncKey: """Key indicates which WorkspaceSyncConfig instance to remove. This field must always be set. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.workspace.v1.workspace_pb2.WorkspaceSyncKey] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key"]) -> None: ... + key: arista.workspace.v1.workspace_pb2.WorkspaceSyncKey | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key"]) -> None: ... + global___WorkspaceSyncConfigDeleteRequest = WorkspaceSyncConfigDeleteRequest +@typing.final class WorkspaceSyncConfigDeleteResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int TIME_FIELD_NUMBER: builtins.int @property def key(self) -> arista.workspace.v1.workspace_pb2.WorkspaceSyncKey: """Key echoes back the key of the deleted WorkspaceSyncConfig instance.""" - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp at which the system recognizes the @@ -1597,49 +1820,62 @@ class WorkspaceSyncConfigDeleteResponse(google.protobuf.message.Message): - it is after the time the request was received - a time-ranged query with StartTime==DeletedAt will not include this instance. """ - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[arista.workspace.v1.workspace_pb2.WorkspaceSyncKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","time",b"time"]) -> None: ... + key: arista.workspace.v1.workspace_pb2.WorkspaceSyncKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "time", b"time"]) -> None: ... + global___WorkspaceSyncConfigDeleteResponse = WorkspaceSyncConfigDeleteResponse +@typing.final class WorkspaceSyncConfigDeleteSomeRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int @property def keys(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.workspace.v1.workspace_pb2.WorkspaceSyncKey]: """key contains a list of WorkspaceSyncConfig keys to delete""" - pass - def __init__(self, + + def __init__( + self, *, - keys: typing.Optional[typing.Iterable[arista.workspace.v1.workspace_pb2.WorkspaceSyncKey]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["keys",b"keys"]) -> None: ... + keys: collections.abc.Iterable[arista.workspace.v1.workspace_pb2.WorkspaceSyncKey] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["keys", b"keys"]) -> None: ... + global___WorkspaceSyncConfigDeleteSomeRequest = WorkspaceSyncConfigDeleteSomeRequest +@typing.final class WorkspaceSyncConfigDeleteSomeResponse(google.protobuf.message.Message): """WorkspaceSyncConfigDeleteSomeResponse is only sent when there is an error.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int + error: builtins.str @property def key(self) -> arista.workspace.v1.workspace_pb2.WorkspaceSyncKey: ... - error: typing.Text - def __init__(self, + def __init__( + self, *, - key: typing.Optional[arista.workspace.v1.workspace_pb2.WorkspaceSyncKey] = ..., - error: typing.Text = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key"]) -> None: ... + key: arista.workspace.v1.workspace_pb2.WorkspaceSyncKey | None = ..., + error: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key"]) -> None: ... + global___WorkspaceSyncConfigDeleteSomeResponse = WorkspaceSyncConfigDeleteSomeResponse +@typing.final class WorkspaceSyncConfigDeleteAllRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int @property def partial_eq_filter(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.workspace.v1.workspace_pb2.WorkspaceSyncConfig]: @@ -1647,16 +1883,20 @@ class WorkspaceSyncConfigDeleteAllRequest(google.protobuf.message.Message): This requires all provided fields to be equal to the response. A filtered DeleteAll will use GetAll with filter to find things to delete. """ - pass - def __init__(self, + + def __init__( + self, *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.workspace.v1.workspace_pb2.WorkspaceSyncConfig]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["partial_eq_filter",b"partial_eq_filter"]) -> None: ... + partial_eq_filter: collections.abc.Iterable[arista.workspace.v1.workspace_pb2.WorkspaceSyncConfig] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["partial_eq_filter", b"partial_eq_filter"]) -> None: ... + global___WorkspaceSyncConfigDeleteAllRequest = WorkspaceSyncConfigDeleteAllRequest +@typing.final class WorkspaceSyncConfigDeleteAllResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + TYPE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int KEY_FIELD_NUMBER: builtins.int @@ -1665,26 +1905,27 @@ class WorkspaceSyncConfigDeleteAllResponse(google.protobuf.message.Message): """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: """This indicates the error message from the delete failure.""" - pass + @property def key(self) -> arista.workspace.v1.workspace_pb2.WorkspaceSyncKey: """This is the key of the WorkspaceSyncConfig instance that failed to be deleted.""" - pass + @property def time(self) -> google.protobuf.timestamp_pb2.Timestamp: """Time indicates the (UTC) timestamp when the key was being deleted.""" - pass - def __init__(self, + + def __init__( + self, *, type: fmp.deletes_pb2.DeleteError.ValueType = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - key: typing.Optional[arista.workspace.v1.workspace_pb2.WorkspaceSyncKey] = ..., - time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","key",b"key","time",b"time","type",b"type"]) -> None: ... + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + key: arista.workspace.v1.workspace_pb2.WorkspaceSyncKey | None = ..., + time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "key", b"key", "time", b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "key", b"key", "time", b"time", "type", b"type"]) -> None: ... + global___WorkspaceSyncConfigDeleteAllResponse = WorkspaceSyncConfigDeleteAllResponse diff --git a/arista/workspace/v1/workspace_pb2.pyi b/arista/workspace/v1/workspace_pb2.pyi index 4fbc714..753af43 100644 --- a/arista/workspace/v1/workspace_pb2.pyi +++ b/arista/workspace/v1/workspace_pb2.pyi @@ -1,10 +1,31 @@ """ @generated by mypy-protobuf. Do not edit manually! isort:skip_file +CloudVision allows users to version control provisioning operations +that impact device configuration and image management. A workspace is +something like a git branch, within which changes can be made without +immediately impacting a device's running configuration. Changes can be +made, modified, and previewed in a workspace. Once satisfied with the +set of changes, a user may submit a workspace to the "mainline" branch, +allowing the changes to be propagated to devices via Change Controls. + +A workspace comprises a set of diff operations (e.g., add/modify/remove) +that will be applied to the mainline if the workspace is submitted +successfully. + +A workspace itself is generic and can be used for any conceivable +set of device provisioning operations, but it is not capable of +describing the specific kind of changes. Rather, it holds changes +defined by other Resource APIs that are "workspace-aware", such as +studio.v1 and tag.v2. These APIs allow users to make changes within +the context of a specific workspace, identified in the resource key +with the field `workspace_id`. """ + import arista.configstatus.v1.configstatus_pb2 import arista.imagestatus.v1.imagestatus_pb2 import builtins +import collections.abc import fmp.wrappers_pb2 import google.protobuf.descriptor import google.protobuf.internal.containers @@ -12,39 +33,40 @@ import google.protobuf.internal.enum_type_wrapper import google.protobuf.message import google.protobuf.timestamp_pb2 import google.protobuf.wrappers_pb2 +import sys import typing -import typing_extensions + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor class _WorkspaceState: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _WorkspaceStateEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_WorkspaceState.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor WORKSPACE_STATE_UNSPECIFIED: _WorkspaceState.ValueType # 0 """WORKSPACE_STATE_UNSPECIFIED indicates unspecified workspace state.""" - WORKSPACE_STATE_PENDING: _WorkspaceState.ValueType # 1 """WORKSPACE_STATE_PENDING indicates that the changes in the workspace are open and have not been submitted. """ - WORKSPACE_STATE_SUBMITTED: _WorkspaceState.ValueType # 2 """WORKSPACE_STATE_SUBMITTED indicates that the changes in the workspace have been submitted to the mainline. """ - WORKSPACE_STATE_ABANDONED: _WorkspaceState.ValueType # 3 """WORKSPACE_STATE_ABANDONED indicates that the workspace has been intentionally closed, and may no longer be updated. """ - WORKSPACE_STATE_CONFLICTS: _WorkspaceState.ValueType # 4 """WORKSPACE_STATE_CONFLICTS indicates that the changes in the workspace are in conflict with the current state of the system. """ - WORKSPACE_STATE_ROLLED_BACK: _WorkspaceState.ValueType # 5 """WORKSPACE_STATE_ROLLED_BACK indicates that the workspace was submitted, but has been rolled back (the changes have been undone). @@ -54,56 +76,46 @@ class WorkspaceState(_WorkspaceState, metaclass=_WorkspaceStateEnumTypeWrapper): """WorkspaceState enumerates the general states of a workspace. Some of these states are derived as a result of executing a specific request on the workspace (see Request). """ - pass WORKSPACE_STATE_UNSPECIFIED: WorkspaceState.ValueType # 0 """WORKSPACE_STATE_UNSPECIFIED indicates unspecified workspace state.""" - WORKSPACE_STATE_PENDING: WorkspaceState.ValueType # 1 """WORKSPACE_STATE_PENDING indicates that the changes in the workspace are open and have not been submitted. """ - WORKSPACE_STATE_SUBMITTED: WorkspaceState.ValueType # 2 """WORKSPACE_STATE_SUBMITTED indicates that the changes in the workspace have been submitted to the mainline. """ - WORKSPACE_STATE_ABANDONED: WorkspaceState.ValueType # 3 """WORKSPACE_STATE_ABANDONED indicates that the workspace has been intentionally closed, and may no longer be updated. """ - WORKSPACE_STATE_CONFLICTS: WorkspaceState.ValueType # 4 """WORKSPACE_STATE_CONFLICTS indicates that the changes in the workspace are in conflict with the current state of the system. """ - WORKSPACE_STATE_ROLLED_BACK: WorkspaceState.ValueType # 5 """WORKSPACE_STATE_ROLLED_BACK indicates that the workspace was submitted, but has been rolled back (the changes have been undone). """ - global___WorkspaceState = WorkspaceState - class _Request: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _RequestEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_Request.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor REQUEST_UNSPECIFIED: _Request.ValueType # 0 """REQUEST_UNSPECIFIED describes unspecified request.""" - REQUEST_START_BUILD: _Request.ValueType # 1 """REQUEST_START_BUILD describes a request to start building a workspace. This kicks of a multi-stage operation to compile and validate the changes in a workspace (see BuildStage for more details). """ - REQUEST_CANCEL_BUILD: _Request.ValueType # 2 """REQUEST_CANCEL_BUILD describes a request to stop building a workspace.""" - REQUEST_SUBMIT: _Request.ValueType # 3 """REQUEST_SUBMIT describes a request to submit a workspace to the mainline. Before submission, some checks are made that can cause the request to fail. E.g., if there @@ -111,23 +123,19 @@ class _RequestEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTy request will fail. Once submitted, changes are applied and change controls are created (if necessary). """ - REQUEST_ABANDON: _Request.ValueType # 4 """REQUEST_ABANDON describes a request to abandon a workspace. This operation does not delete the workspace from the system, but closes it to any further updates. """ - REQUEST_ROLLBACK: _Request.ValueType # 5 """REQUEST_ROLLBACK describes a request to rollback a submitted workspace, undoing corresponding changes in the mainline. """ - REQUEST_SUBMIT_FORCE: _Request.ValueType # 6 """REQUEST_SUBMIT_FORCE describes a request to submit a workspace without making any checks that could normally cause the submission to fail. See REQUEST_SUBMIT for more details. """ - REQUEST_REBASE: _Request.ValueType # 7 """REQUEST_REBASE describes a request to rebase a workspace. This operation updates workspace state to reflect the latest mainline content, and re-applies workspace @@ -138,20 +146,16 @@ class Request(_Request, metaclass=_RequestEnumTypeWrapper): """Request enumerates the set of asynchronous operations that can be performed on a workspace. """ - pass REQUEST_UNSPECIFIED: Request.ValueType # 0 """REQUEST_UNSPECIFIED describes unspecified request.""" - REQUEST_START_BUILD: Request.ValueType # 1 """REQUEST_START_BUILD describes a request to start building a workspace. This kicks of a multi-stage operation to compile and validate the changes in a workspace (see BuildStage for more details). """ - REQUEST_CANCEL_BUILD: Request.ValueType # 2 """REQUEST_CANCEL_BUILD describes a request to stop building a workspace.""" - REQUEST_SUBMIT: Request.ValueType # 3 """REQUEST_SUBMIT describes a request to submit a workspace to the mainline. Before submission, some checks are made that can cause the request to fail. E.g., if there @@ -159,45 +163,38 @@ is a modified configuration for a non-streaming device in the workspace, then th request will fail. Once submitted, changes are applied and change controls are created (if necessary). """ - REQUEST_ABANDON: Request.ValueType # 4 """REQUEST_ABANDON describes a request to abandon a workspace. This operation does not delete the workspace from the system, but closes it to any further updates. """ - REQUEST_ROLLBACK: Request.ValueType # 5 """REQUEST_ROLLBACK describes a request to rollback a submitted workspace, undoing corresponding changes in the mainline. """ - REQUEST_SUBMIT_FORCE: Request.ValueType # 6 """REQUEST_SUBMIT_FORCE describes a request to submit a workspace without making any checks that could normally cause the submission to fail. See REQUEST_SUBMIT for more details. """ - REQUEST_REBASE: Request.ValueType # 7 """REQUEST_REBASE describes a request to rebase a workspace. This operation updates workspace state to reflect the latest mainline content, and re-applies workspace changes on top of that. """ - global___Request = Request - class _ResponseStatus: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _ResponseStatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ResponseStatus.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor RESPONSE_STATUS_UNSPECIFIED: _ResponseStatus.ValueType # 0 """RESPONSE_STATUS_UNSPECIFIED indicates unspecified response status.""" - RESPONSE_STATUS_SUCCESS: _ResponseStatus.ValueType # 1 """RESPONSE_STATUS_SUCCESS indicates that the original Request was successful in its execution. """ - RESPONSE_STATUS_FAIL: _ResponseStatus.ValueType # 2 """RESPONSE_STATUS_FAIL indicates that the original Request was unsuccessful in its execution. @@ -205,37 +202,31 @@ class _ResponseStatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper. class ResponseStatus(_ResponseStatus, metaclass=_ResponseStatusEnumTypeWrapper): """ResponseStatus enumerates the set of execution statuses of a Response.""" - pass RESPONSE_STATUS_UNSPECIFIED: ResponseStatus.ValueType # 0 """RESPONSE_STATUS_UNSPECIFIED indicates unspecified response status.""" - RESPONSE_STATUS_SUCCESS: ResponseStatus.ValueType # 1 """RESPONSE_STATUS_SUCCESS indicates that the original Request was successful in its execution. """ - RESPONSE_STATUS_FAIL: ResponseStatus.ValueType # 2 """RESPONSE_STATUS_FAIL indicates that the original Request was unsuccessful in its execution. """ - global___ResponseStatus = ResponseStatus - class _ResponseCode: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _ResponseCodeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ResponseCode.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor RESPONSE_CODE_UNSPECIFIED: _ResponseCode.ValueType # 0 """RESPONSE_CODE_UNSPECIFIED indicates unspecified response code.""" - RESPONSE_CODE_INACTIVE_DEVICES_EXIST: _ResponseCode.ValueType # 1 """RESPONSE_CODE_INACTIVE_DEVICES_EXIST indicates that there are devices that have inactive streaming status. """ - RESPONSE_CODE_DECOMMISSION_DEVICES_INCOMPLETE: _ResponseCode.ValueType # 2 """RESPONSE_CODE_DECOMMISSION_DEVICES_INCOMPLETE indicates that the decommission process is incomplete for devices. @@ -243,52 +234,43 @@ class _ResponseCodeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._E class ResponseCode(_ResponseCode, metaclass=_ResponseCodeEnumTypeWrapper): """ResponseCode is a code for a Response indicating a particular scenario.""" - pass RESPONSE_CODE_UNSPECIFIED: ResponseCode.ValueType # 0 """RESPONSE_CODE_UNSPECIFIED indicates unspecified response code.""" - RESPONSE_CODE_INACTIVE_DEVICES_EXIST: ResponseCode.ValueType # 1 """RESPONSE_CODE_INACTIVE_DEVICES_EXIST indicates that there are devices that have inactive streaming status. """ - RESPONSE_CODE_DECOMMISSION_DEVICES_INCOMPLETE: ResponseCode.ValueType # 2 """RESPONSE_CODE_DECOMMISSION_DEVICES_INCOMPLETE indicates that the decommission process is incomplete for devices. """ - global___ResponseCode = ResponseCode - class _BuildState: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _BuildStateEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_BuildState.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor BUILD_STATE_UNSPECIFIED: _BuildState.ValueType # 0 """BUILD_STATE_UNSPECIFIED indicates unspecified build state.""" - BUILD_STATE_IN_PROGRESS: _BuildState.ValueType # 1 """BUILD_STATE_IN_PROGRESS indicates that the BuildStage was started but has not yet completed. """ - BUILD_STATE_CANCELED: _BuildState.ValueType # 2 """BUILD_STATE_CANCELED indicates that the BuildStage was started but then stopped before completion. """ - BUILD_STATE_SUCCESS: _BuildState.ValueType # 3 """BUILD_STATE_SUCCESS indicates that the BuildStage was started and ran to completion successfully. """ - BUILD_STATE_FAIL: _BuildState.ValueType # 4 """BUILD_STATE_FAIL indicates that the BuildStage was started and ran to completion unsuccessfully. """ - BUILD_STATE_SKIPPED: _BuildState.ValueType # 5 """BUILD_STATE_SKIPPED indicates that the BuildStage was not run.""" @@ -296,61 +278,50 @@ class BuildState(_BuildState, metaclass=_BuildStateEnumTypeWrapper): """BuildState enumerates the set of states that a BuildStage can be in during a workspace build cycle. """ - pass BUILD_STATE_UNSPECIFIED: BuildState.ValueType # 0 """BUILD_STATE_UNSPECIFIED indicates unspecified build state.""" - BUILD_STATE_IN_PROGRESS: BuildState.ValueType # 1 """BUILD_STATE_IN_PROGRESS indicates that the BuildStage was started but has not yet completed. """ - BUILD_STATE_CANCELED: BuildState.ValueType # 2 """BUILD_STATE_CANCELED indicates that the BuildStage was started but then stopped before completion. """ - BUILD_STATE_SUCCESS: BuildState.ValueType # 3 """BUILD_STATE_SUCCESS indicates that the BuildStage was started and ran to completion successfully. """ - BUILD_STATE_FAIL: BuildState.ValueType # 4 """BUILD_STATE_FAIL indicates that the BuildStage was started and ran to completion unsuccessfully. """ - BUILD_STATE_SKIPPED: BuildState.ValueType # 5 """BUILD_STATE_SKIPPED indicates that the BuildStage was not run.""" - global___BuildState = BuildState - class _BuildStage: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _BuildStageEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_BuildStage.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor BUILD_STAGE_UNSPECIFIED: _BuildStage.ValueType # 0 """BUILD_STAGE_UNSPECIFIED indicates unspecified build stage.""" - BUILD_STAGE_INPUT_VALIDATION: _BuildStage.ValueType # 1 """BUILD_STAGE_INPUT_VALIDATION describes the stage that detects input errors in studios based on their schemas. """ - BUILD_STAGE_CONFIGLET_BUILD: _BuildStage.ValueType # 2 """BUILD_STAGE_CONFIGLET_BUILD describes the stage that generates EOS CLI configs and images for devices by evaluating studio templates against their inputs. """ - BUILD_STAGE_CONFIG_VALIDATION: _BuildStage.ValueType # 3 """BUILD_STAGE_CONFIG_VALIDATION describes the stage that validates the generated EOS CLI configs (e.g., checks for errors in the config). """ - BUILD_STAGE_IMAGE_VALIDATION: _BuildStage.ValueType # 4 """BUILD_STAGE_IMAGE_VALIDATION describes the stage that validates the generated images (e.g., checks device compatibility). @@ -358,48 +329,40 @@ class _BuildStageEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._Enu class BuildStage(_BuildStage, metaclass=_BuildStageEnumTypeWrapper): """BuildStage enumerates the types of stages of a build of a workspace.""" - pass BUILD_STAGE_UNSPECIFIED: BuildStage.ValueType # 0 """BUILD_STAGE_UNSPECIFIED indicates unspecified build stage.""" - BUILD_STAGE_INPUT_VALIDATION: BuildStage.ValueType # 1 """BUILD_STAGE_INPUT_VALIDATION describes the stage that detects input errors in studios based on their schemas. """ - BUILD_STAGE_CONFIGLET_BUILD: BuildStage.ValueType # 2 """BUILD_STAGE_CONFIGLET_BUILD describes the stage that generates EOS CLI configs and images for devices by evaluating studio templates against their inputs. """ - BUILD_STAGE_CONFIG_VALIDATION: BuildStage.ValueType # 3 """BUILD_STAGE_CONFIG_VALIDATION describes the stage that validates the generated EOS CLI configs (e.g., checks for errors in the config). """ - BUILD_STAGE_IMAGE_VALIDATION: BuildStage.ValueType # 4 """BUILD_STAGE_IMAGE_VALIDATION describes the stage that validates the generated images (e.g., checks device compatibility). """ - global___BuildStage = BuildStage - class _DeviceAuthzStatus: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _DeviceAuthzStatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_DeviceAuthzStatus.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor DEVICE_AUTHZ_STATUS_UNSPECIFIED: _DeviceAuthzStatus.ValueType # 0 """DEVICE_AUTHZ_STATUS_UNSPECIFIED indicates the authorization check is pending.""" - DEVICE_AUTHZ_STATUS_AUTHORIZED: _DeviceAuthzStatus.ValueType # 1 """DEVICE_AUTHZ_STATUS_AUTHORIZED indicates the subject is authorized to provision this device. """ - DEVICE_AUTHZ_STATUS_UNAUTHORIZED: _DeviceAuthzStatus.ValueType # 2 """DEVICE_AUTHZ_STATUS_UNAUTHORIZED indicates the subject is unauthorized to provision this device. @@ -407,54 +370,45 @@ class _DeviceAuthzStatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapp class DeviceAuthzStatus(_DeviceAuthzStatus, metaclass=_DeviceAuthzStatusEnumTypeWrapper): """DeviceAuthzStatus holds the result of the authorization check on device.""" - pass DEVICE_AUTHZ_STATUS_UNSPECIFIED: DeviceAuthzStatus.ValueType # 0 """DEVICE_AUTHZ_STATUS_UNSPECIFIED indicates the authorization check is pending.""" - DEVICE_AUTHZ_STATUS_AUTHORIZED: DeviceAuthzStatus.ValueType # 1 """DEVICE_AUTHZ_STATUS_AUTHORIZED indicates the subject is authorized to provision this device. """ - DEVICE_AUTHZ_STATUS_UNAUTHORIZED: DeviceAuthzStatus.ValueType # 2 """DEVICE_AUTHZ_STATUS_UNAUTHORIZED indicates the subject is unauthorized to provision this device. """ - global___DeviceAuthzStatus = DeviceAuthzStatus - class _ConfigValidationSkipCause: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _ConfigValidationSkipCauseEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ConfigValidationSkipCause.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor CONFIG_VALIDATION_SKIP_CAUSE_UNSPECIFIED: _ConfigValidationSkipCause.ValueType # 0 """CONFIG_VALIDATION_SKIP_CAUSE_UNSPECIFIED indicates config validation skip cause is unspecified. """ - CONFIG_VALIDATION_SKIP_CAUSE_INACTIVE: _ConfigValidationSkipCause.ValueType # 1 """CONFIG_VALIDATION_SKIP_CAUSE_INACTIVE indicates that the stage was skipped because the device is not streaming. """ - CONFIG_VALIDATION_SKIP_CAUSE_PRE_PROVISIONED: _ConfigValidationSkipCause.ValueType # 2 """CONFIG_VALIDATION_SKIP_CAUSE_PRE_PROVISIONED indicates that the stage was skipped because the device is pre-provisioned. """ - CONFIG_VALIDATION_SKIP_CAUSE_CONFIG_UNCHANGED: _ConfigValidationSkipCause.ValueType # 3 """CONFIG_VALIDATION_SKIP_CAUSE_CONFIG_UNCHANGED indicates that the stage was skipped because the device has no configuration changes in the workspace. """ - CONFIG_VALIDATION_SKIP_CAUSE_NO_CONFIG_SOURCES: _ConfigValidationSkipCause.ValueType # 4 """CONFIG_VALIDATION_SKIP_CAUSE_NO_CONFIG_SOURCES indicates that the stage was skipped because the device has no config sources in the workspace. """ - CONFIG_VALIDATION_SKIP_CAUSE_DEVICE_DECOMMISSIONED: _ConfigValidationSkipCause.ValueType # 5 """CONFIG_VALIDATION_SKIP_CAUSE_DEVICE_DECOMMISSIONED indicates that the stage was skipped because the device is decommissioned in the workspace. @@ -464,71 +418,59 @@ class ConfigValidationSkipCause(_ConfigValidationSkipCause, metaclass=_ConfigVal """ConfigValidationSkipCause enumerates the set of reasons a device can skip the config validation stage. """ - pass CONFIG_VALIDATION_SKIP_CAUSE_UNSPECIFIED: ConfigValidationSkipCause.ValueType # 0 """CONFIG_VALIDATION_SKIP_CAUSE_UNSPECIFIED indicates config validation skip cause is unspecified. """ - CONFIG_VALIDATION_SKIP_CAUSE_INACTIVE: ConfigValidationSkipCause.ValueType # 1 """CONFIG_VALIDATION_SKIP_CAUSE_INACTIVE indicates that the stage was skipped because the device is not streaming. """ - CONFIG_VALIDATION_SKIP_CAUSE_PRE_PROVISIONED: ConfigValidationSkipCause.ValueType # 2 """CONFIG_VALIDATION_SKIP_CAUSE_PRE_PROVISIONED indicates that the stage was skipped because the device is pre-provisioned. """ - CONFIG_VALIDATION_SKIP_CAUSE_CONFIG_UNCHANGED: ConfigValidationSkipCause.ValueType # 3 """CONFIG_VALIDATION_SKIP_CAUSE_CONFIG_UNCHANGED indicates that the stage was skipped because the device has no configuration changes in the workspace. """ - CONFIG_VALIDATION_SKIP_CAUSE_NO_CONFIG_SOURCES: ConfigValidationSkipCause.ValueType # 4 """CONFIG_VALIDATION_SKIP_CAUSE_NO_CONFIG_SOURCES indicates that the stage was skipped because the device has no config sources in the workspace. """ - CONFIG_VALIDATION_SKIP_CAUSE_DEVICE_DECOMMISSIONED: ConfigValidationSkipCause.ValueType # 5 """CONFIG_VALIDATION_SKIP_CAUSE_DEVICE_DECOMMISSIONED indicates that the stage was skipped because the device is decommissioned in the workspace. """ - global___ConfigValidationSkipCause = ConfigValidationSkipCause - class _ImageValidationSkipCause: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _ImageValidationSkipCauseEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ImageValidationSkipCause.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor IMAGE_VALIDATION_SKIP_CAUSE_UNSPECIFIED: _ImageValidationSkipCause.ValueType # 0 """IMAGE_VALIDATION_SKIP_CAUSE_UNSPECIFIED indicates image validation skip cause is unspecified. """ - IMAGE_VALIDATION_SKIP_CAUSE_INACTIVE: _ImageValidationSkipCause.ValueType # 1 """IMAGE_VALIDATION_SKIP_CAUSE_INACTIVE indicates that the stage was skipped because the device is not streaming. """ - IMAGE_VALIDATION_SKIP_CAUSE_PRE_PROVISIONED: _ImageValidationSkipCause.ValueType # 2 """IMAGE_VALIDATION_SKIP_CAUSE_PRE_PROVISIONED indicates that the stage was skipped because the device is pre-provisioned. """ - IMAGE_VALIDATION_SKIP_CAUSE_IMAGE_UNCHANGED: _ImageValidationSkipCause.ValueType # 3 """IMAGE_VALIDATION_SKIP_CAUSE_IMAGE_UNCHANGED indicates that the stage was skipped because the device has no image changes in the workspace. """ - IMAGE_VALIDATION_SKIP_CAUSE_NO_PROPOSED_SOFTWARE: _ImageValidationSkipCause.ValueType # 4 """IMAGE_VALIDATION_SKIP_CAUSE_NO_PROPOSED_SOFTWARE indicates that the stage was skipped because the device has no proposed software changes in the workspace. """ - IMAGE_VALIDATION_SKIP_CAUSE_DEVICE_DECOMMISSIONED: _ImageValidationSkipCause.ValueType # 5 """IMAGE_VALIDATION_SKIP_CAUSE_DEVICE_DECOMMISSIONED indicates that the stage was skipped because the device is decommissioned. @@ -538,71 +480,59 @@ class ImageValidationSkipCause(_ImageValidationSkipCause, metaclass=_ImageValida """ImageValidationSkipCause enumerates the set of reasons a device can skip the image validation stage. """ - pass IMAGE_VALIDATION_SKIP_CAUSE_UNSPECIFIED: ImageValidationSkipCause.ValueType # 0 """IMAGE_VALIDATION_SKIP_CAUSE_UNSPECIFIED indicates image validation skip cause is unspecified. """ - IMAGE_VALIDATION_SKIP_CAUSE_INACTIVE: ImageValidationSkipCause.ValueType # 1 """IMAGE_VALIDATION_SKIP_CAUSE_INACTIVE indicates that the stage was skipped because the device is not streaming. """ - IMAGE_VALIDATION_SKIP_CAUSE_PRE_PROVISIONED: ImageValidationSkipCause.ValueType # 2 """IMAGE_VALIDATION_SKIP_CAUSE_PRE_PROVISIONED indicates that the stage was skipped because the device is pre-provisioned. """ - IMAGE_VALIDATION_SKIP_CAUSE_IMAGE_UNCHANGED: ImageValidationSkipCause.ValueType # 3 """IMAGE_VALIDATION_SKIP_CAUSE_IMAGE_UNCHANGED indicates that the stage was skipped because the device has no image changes in the workspace. """ - IMAGE_VALIDATION_SKIP_CAUSE_NO_PROPOSED_SOFTWARE: ImageValidationSkipCause.ValueType # 4 """IMAGE_VALIDATION_SKIP_CAUSE_NO_PROPOSED_SOFTWARE indicates that the stage was skipped because the device has no proposed software changes in the workspace. """ - IMAGE_VALIDATION_SKIP_CAUSE_DEVICE_DECOMMISSIONED: ImageValidationSkipCause.ValueType # 5 """IMAGE_VALIDATION_SKIP_CAUSE_DEVICE_DECOMMISSIONED indicates that the stage was skipped because the device is decommissioned. """ - global___ImageValidationSkipCause = ImageValidationSkipCause - class _ConfigSyncSkipCause: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _ConfigSyncSkipCauseEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ConfigSyncSkipCause.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor CONFIG_SYNC_SKIP_CAUSE_UNSPECIFIED: _ConfigSyncSkipCause.ValueType # 0 """CONFIG_SYNC_SKIP_CAUSE_UNSPECIFIED indicates that config sync skip cause is unspecified. """ - CONFIG_SYNC_SKIP_CAUSE_INACTIVE: _ConfigSyncSkipCause.ValueType # 1 """CONFIG_SYNC_SKIP_CAUSE_INACTIVE indicates that config sync is skipped because device is not streaming. """ - CONFIG_SYNC_SKIP_CAUSE_PRE_PROVISIONED: _ConfigSyncSkipCause.ValueType # 2 """CONFIG_SYNC_SKIP_CAUSE_PRE_PROVISIONED indicates that config sync is skipped because device is pre-provisioned. """ - CONFIG_SYNC_SKIP_CAUSE_IN_COMPLIANCE: _ConfigSyncSkipCause.ValueType # 3 """CONFIG_SYNC_SKIP_CAUSE_IN_COMPLIANCE indicates that config sync is skipped because device is in compliance. """ - CONFIG_SYNC_SKIP_CAUSE_NO_CONFIG_SOURCES: _ConfigSyncSkipCause.ValueType # 4 """CONFIG_SYNC_SKIP_CAUSE_NO_CONFIG_SOURCES indicates that the sync was skipped because the device has no config sources. """ - CONFIG_SYNC_SKIP_CAUSE_DEVICE_DECOMMISSIONED: _ConfigSyncSkipCause.ValueType # 5 """CONFIG_SYNC_SKIP_CAUSE_DEVICE_DECOMMISSIONED indicates that sync was skipped because the device is decommissioned in the workspace. @@ -610,199 +540,215 @@ class _ConfigSyncSkipCauseEnumTypeWrapper(google.protobuf.internal.enum_type_wra class ConfigSyncSkipCause(_ConfigSyncSkipCause, metaclass=_ConfigSyncSkipCauseEnumTypeWrapper): """ConfigSyncSkipCause enumerates the set of reasons a device can skip config sync.""" - pass CONFIG_SYNC_SKIP_CAUSE_UNSPECIFIED: ConfigSyncSkipCause.ValueType # 0 """CONFIG_SYNC_SKIP_CAUSE_UNSPECIFIED indicates that config sync skip cause is unspecified. """ - CONFIG_SYNC_SKIP_CAUSE_INACTIVE: ConfigSyncSkipCause.ValueType # 1 """CONFIG_SYNC_SKIP_CAUSE_INACTIVE indicates that config sync is skipped because device is not streaming. """ - CONFIG_SYNC_SKIP_CAUSE_PRE_PROVISIONED: ConfigSyncSkipCause.ValueType # 2 """CONFIG_SYNC_SKIP_CAUSE_PRE_PROVISIONED indicates that config sync is skipped because device is pre-provisioned. """ - CONFIG_SYNC_SKIP_CAUSE_IN_COMPLIANCE: ConfigSyncSkipCause.ValueType # 3 """CONFIG_SYNC_SKIP_CAUSE_IN_COMPLIANCE indicates that config sync is skipped because device is in compliance. """ - CONFIG_SYNC_SKIP_CAUSE_NO_CONFIG_SOURCES: ConfigSyncSkipCause.ValueType # 4 """CONFIG_SYNC_SKIP_CAUSE_NO_CONFIG_SOURCES indicates that the sync was skipped because the device has no config sources. """ - CONFIG_SYNC_SKIP_CAUSE_DEVICE_DECOMMISSIONED: ConfigSyncSkipCause.ValueType # 5 """CONFIG_SYNC_SKIP_CAUSE_DEVICE_DECOMMISSIONED indicates that sync was skipped because the device is decommissioned in the workspace. """ - global___ConfigSyncSkipCause = ConfigSyncSkipCause - class _SyncOperation: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _SyncOperationEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_SyncOperation.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor SYNC_OPERATION_UNSPECIFIED: _SyncOperation.ValueType # 0 """SYNC_OPERATION_UNSPECIFIED indicates unspecified sync operation.""" - SYNC_OPERATION_CONFIG: _SyncOperation.ValueType # 1 """SYNC_OPERATION_CONFIG indicates config sync operation.""" class SyncOperation(_SyncOperation, metaclass=_SyncOperationEnumTypeWrapper): """SyncOperation enumerates sync operations.""" - pass SYNC_OPERATION_UNSPECIFIED: SyncOperation.ValueType # 0 """SYNC_OPERATION_UNSPECIFIED indicates unspecified sync operation.""" - SYNC_OPERATION_CONFIG: SyncOperation.ValueType # 1 """SYNC_OPERATION_CONFIG indicates config sync operation.""" - global___SyncOperation = SyncOperation - +@typing.final class RequestParams(google.protobuf.message.Message): """RequestParams define the parameters for a Request.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + REQUEST_ID_FIELD_NUMBER: builtins.int @property def request_id(self) -> google.protobuf.wrappers_pb2.StringValue: """request_id is the unique ID of the request. This is used to identify the Response for the request in Responses. """ - pass - def __init__(self, + + def __init__( + self, *, - request_id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["request_id",b"request_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["request_id",b"request_id"]) -> None: ... + request_id: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["request_id", b"request_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["request_id", b"request_id"]) -> None: ... + global___RequestParams = RequestParams +@typing.final class Response(google.protobuf.message.Message): """Response is a response to a Request.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + STATUS_FIELD_NUMBER: builtins.int MESSAGE_FIELD_NUMBER: builtins.int CODE_FIELD_NUMBER: builtins.int status: global___ResponseStatus.ValueType """status is the execution status of the response.""" - + code: global___ResponseCode.ValueType + """code is the code of the response.""" @property def message(self) -> google.protobuf.wrappers_pb2.StringValue: """message is a string that provides more details about the response.""" - pass - code: global___ResponseCode.ValueType - """code is the code of the response.""" - def __init__(self, + def __init__( + self, *, status: global___ResponseStatus.ValueType = ..., - message: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., + message: google.protobuf.wrappers_pb2.StringValue | None = ..., code: global___ResponseCode.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["message",b"message"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["code",b"code","message",b"message","status",b"status"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["message", b"message"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["code", b"code", "message", b"message", "status", b"status"]) -> None: ... + global___Response = Response +@typing.final class Responses(google.protobuf.message.Message): """Responses is a collection of responses for completed requests.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int - key: typing.Text + key: builtins.str @property def value(self) -> global___Response: ... - def __init__(self, + def __init__( + self, *, - key: typing.Text = ..., - value: typing.Optional[global___Response] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + key: builtins.str = ..., + value: global___Response | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property - def values(self) -> google.protobuf.internal.containers.MessageMap[typing.Text, global___Response]: + def values(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___Response]: """values is a map from request ID to Response.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[typing.Text, global___Response]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.str, global___Response] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___Responses = Responses +@typing.final class WorkspaceKey(google.protobuf.message.Message): """WorkspaceKey uniquely identifies a workspace.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + WORKSPACE_ID_FIELD_NUMBER: builtins.int @property def workspace_id(self) -> google.protobuf.wrappers_pb2.StringValue: """workspace_id is the unique ID of the workspace.""" - pass - def __init__(self, + + def __init__( + self, *, - workspace_id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["workspace_id",b"workspace_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["workspace_id",b"workspace_id"]) -> None: ... + workspace_id: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["workspace_id", b"workspace_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["workspace_id", b"workspace_id"]) -> None: ... + global___WorkspaceKey = WorkspaceKey +@typing.final class WorkspaceConfig(google.protobuf.message.Message): """WorkspaceConfig holds the configuration of a workspace.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int DISPLAY_NAME_FIELD_NUMBER: builtins.int DESCRIPTION_FIELD_NUMBER: builtins.int REQUEST_FIELD_NUMBER: builtins.int REQUEST_PARAMS_FIELD_NUMBER: builtins.int + request: global___Request.ValueType + """request (if not REQUEST_UNSPECIFIED) kicks off an asynchronous operation + on the workspace. + """ @property def key(self) -> global___WorkspaceKey: """key identifies the workspace.""" - pass + @property def display_name(self) -> google.protobuf.wrappers_pb2.StringValue: """display_name is the user-defined name of the workspace.""" - pass + @property def description(self) -> google.protobuf.wrappers_pb2.StringValue: """description is a brief description of the workspace.""" - pass - request: global___Request.ValueType - """request (if not REQUEST_UNSPECIFIED) kicks off an asynchronous operation - on the workspace. - """ @property def request_params(self) -> global___RequestParams: """request_params specify the parameters for `request`.""" - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[global___WorkspaceKey] = ..., - display_name: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - description: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., + key: global___WorkspaceKey | None = ..., + display_name: google.protobuf.wrappers_pb2.StringValue | None = ..., + description: google.protobuf.wrappers_pb2.StringValue | None = ..., request: global___Request.ValueType = ..., - request_params: typing.Optional[global___RequestParams] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["description",b"description","display_name",b"display_name","key",b"key","request_params",b"request_params"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["description",b"description","display_name",b"display_name","key",b"key","request",b"request","request_params",b"request_params"]) -> None: ... + request_params: global___RequestParams | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["description", b"description", "display_name", b"display_name", "key", b"key", "request_params", b"request_params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["description", b"description", "display_name", b"display_name", "key", b"key", "request", b"request", "request_params", b"request_params"]) -> None: ... + global___WorkspaceConfig = WorkspaceConfig +@typing.final class Workspace(google.protobuf.message.Message): """Workspace holds the status of a workspace.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int CREATED_AT_FIELD_NUMBER: builtins.int CREATED_BY_FIELD_NUMBER: builtins.int @@ -817,95 +763,99 @@ class Workspace(google.protobuf.message.Message): NEEDS_REBASE_FIELD_NUMBER: builtins.int DISPLAY_NAME_FIELD_NUMBER: builtins.int DESCRIPTION_FIELD_NUMBER: builtins.int + state: global___WorkspaceState.ValueType + """state describes the status of the workspace.""" @property def key(self) -> global___WorkspaceKey: """key identifies the workspace.""" - pass + @property def created_at(self) -> google.protobuf.timestamp_pb2.Timestamp: """created_at indicates when the workspace was created.""" - pass + @property def created_by(self) -> google.protobuf.wrappers_pb2.StringValue: """created_by indicates who created the workspace.""" - pass + @property def last_modified_at(self) -> google.protobuf.timestamp_pb2.Timestamp: """last_modified_at indicates when the workspace was last updated.""" - pass + @property def last_modified_by(self) -> google.protobuf.wrappers_pb2.StringValue: """last_modified_by indicates who last updated the workspace.""" - pass - state: global___WorkspaceState.ValueType - """state describes the status of the workspace.""" @property def last_build_id(self) -> google.protobuf.wrappers_pb2.StringValue: """last_build_id is the last build ID that was set in a WorkspaceBuild for this workspace. """ - pass + @property def responses(self) -> global___Responses: """responses are the responses for all requests that have been executed thusfar for this workspace. """ - pass + @property def cc_ids(self) -> fmp.wrappers_pb2.RepeatedString: """cc_ids are the IDs of any change controls that were created as a result of submitting this workspace. """ - pass + @property def needs_build(self) -> google.protobuf.wrappers_pb2.BoolValue: """needs_build indicates whether a rebuild of the workspace is necessary in order to submit it. """ - pass + @property def last_rebased_at(self) -> google.protobuf.timestamp_pb2.Timestamp: """last_rebased_at indicates when the workspace was last rebased.""" - pass + @property def needs_rebase(self) -> google.protobuf.wrappers_pb2.BoolValue: """needs_rebase indicates whether a rebase of the workspace is necessary in order to submit it. """ - pass + @property def display_name(self) -> google.protobuf.wrappers_pb2.StringValue: """display_name is the user-defined name of the workspace.""" - pass + @property def description(self) -> google.protobuf.wrappers_pb2.StringValue: """description is a brief description of the workspace.""" - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[global___WorkspaceKey] = ..., - created_at: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - created_by: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - last_modified_at: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - last_modified_by: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., + key: global___WorkspaceKey | None = ..., + created_at: google.protobuf.timestamp_pb2.Timestamp | None = ..., + created_by: google.protobuf.wrappers_pb2.StringValue | None = ..., + last_modified_at: google.protobuf.timestamp_pb2.Timestamp | None = ..., + last_modified_by: google.protobuf.wrappers_pb2.StringValue | None = ..., state: global___WorkspaceState.ValueType = ..., - last_build_id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - responses: typing.Optional[global___Responses] = ..., - cc_ids: typing.Optional[fmp.wrappers_pb2.RepeatedString] = ..., - needs_build: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - last_rebased_at: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., - needs_rebase: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - display_name: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - description: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["cc_ids",b"cc_ids","created_at",b"created_at","created_by",b"created_by","description",b"description","display_name",b"display_name","key",b"key","last_build_id",b"last_build_id","last_modified_at",b"last_modified_at","last_modified_by",b"last_modified_by","last_rebased_at",b"last_rebased_at","needs_build",b"needs_build","needs_rebase",b"needs_rebase","responses",b"responses"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["cc_ids",b"cc_ids","created_at",b"created_at","created_by",b"created_by","description",b"description","display_name",b"display_name","key",b"key","last_build_id",b"last_build_id","last_modified_at",b"last_modified_at","last_modified_by",b"last_modified_by","last_rebased_at",b"last_rebased_at","needs_build",b"needs_build","needs_rebase",b"needs_rebase","responses",b"responses","state",b"state"]) -> None: ... + last_build_id: google.protobuf.wrappers_pb2.StringValue | None = ..., + responses: global___Responses | None = ..., + cc_ids: fmp.wrappers_pb2.RepeatedString | None = ..., + needs_build: google.protobuf.wrappers_pb2.BoolValue | None = ..., + last_rebased_at: google.protobuf.timestamp_pb2.Timestamp | None = ..., + needs_rebase: google.protobuf.wrappers_pb2.BoolValue | None = ..., + display_name: google.protobuf.wrappers_pb2.StringValue | None = ..., + description: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["cc_ids", b"cc_ids", "created_at", b"created_at", "created_by", b"created_by", "description", b"description", "display_name", b"display_name", "key", b"key", "last_build_id", b"last_build_id", "last_modified_at", b"last_modified_at", "last_modified_by", b"last_modified_by", "last_rebased_at", b"last_rebased_at", "needs_build", b"needs_build", "needs_rebase", b"needs_rebase", "responses", b"responses"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["cc_ids", b"cc_ids", "created_at", b"created_at", "created_by", b"created_by", "description", b"description", "display_name", b"display_name", "key", b"key", "last_build_id", b"last_build_id", "last_modified_at", b"last_modified_at", "last_modified_by", b"last_modified_by", "last_rebased_at", b"last_rebased_at", "needs_build", b"needs_build", "needs_rebase", b"needs_rebase", "responses", b"responses", "state", b"state"]) -> None: ... + global___Workspace = Workspace +@typing.final class InputError(google.protobuf.message.Message): """InputError holds the details for an error on a studio input field or value.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + FIELD_ID_FIELD_NUMBER: builtins.int PATH_FIELD_NUMBER: builtins.int MEMBERS_FIELD_NUMBER: builtins.int @@ -913,48 +863,58 @@ class InputError(google.protobuf.message.Message): @property def field_id(self) -> google.protobuf.wrappers_pb2.StringValue: """field_id is the ID of the input field.""" - pass + @property def path(self) -> fmp.wrappers_pb2.RepeatedString: """path is the path leading up to the input field.""" - pass + @property def members(self) -> fmp.wrappers_pb2.RepeatedString: """members are the members of the input field (if it is a group).""" - pass + @property def message(self) -> google.protobuf.wrappers_pb2.StringValue: """message is the error message.""" - pass - def __init__(self, + + def __init__( + self, *, - field_id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - path: typing.Optional[fmp.wrappers_pb2.RepeatedString] = ..., - members: typing.Optional[fmp.wrappers_pb2.RepeatedString] = ..., - message: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["field_id",b"field_id","members",b"members","message",b"message","path",b"path"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["field_id",b"field_id","members",b"members","message",b"message","path",b"path"]) -> None: ... + field_id: google.protobuf.wrappers_pb2.StringValue | None = ..., + path: fmp.wrappers_pb2.RepeatedString | None = ..., + members: fmp.wrappers_pb2.RepeatedString | None = ..., + message: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["field_id", b"field_id", "members", b"members", "message", b"message", "path", b"path"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["field_id", b"field_id", "members", b"members", "message", b"message", "path", b"path"]) -> None: ... + global___InputError = InputError +@typing.final class InputErrors(google.protobuf.message.Message): """InputErrors is a list of InputError.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___InputError]: """values is a list of InputError.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[global___InputError]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[global___InputError] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___InputErrors = InputErrors +@typing.final class InputValidationResult(google.protobuf.message.Message): """InputValidationResult holds the result of an input validation build stage.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + INPUT_SCHEMA_ERRORS_FIELD_NUMBER: builtins.int INPUT_VALUE_ERRORS_FIELD_NUMBER: builtins.int OTHER_ERRORS_FIELD_NUMBER: builtins.int @@ -962,65 +922,78 @@ class InputValidationResult(google.protobuf.message.Message): @property def input_schema_errors(self) -> global___InputErrors: """input_schema_errors are errors for fields in the input schema.""" - pass + @property def input_value_errors(self) -> global___InputErrors: """input_value_errors are errors for values assigned to fields in the input schema.""" - pass + @property def other_errors(self) -> fmp.wrappers_pb2.RepeatedString: """other_errors are other miscellaneous errors.""" - pass + @property def input_value_warnings(self) -> global___InputErrors: """input_value_warnings are warnings for values assigned to fields in the input schema.""" - pass - def __init__(self, + + def __init__( + self, *, - input_schema_errors: typing.Optional[global___InputErrors] = ..., - input_value_errors: typing.Optional[global___InputErrors] = ..., - other_errors: typing.Optional[fmp.wrappers_pb2.RepeatedString] = ..., - input_value_warnings: typing.Optional[global___InputErrors] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["input_schema_errors",b"input_schema_errors","input_value_errors",b"input_value_errors","input_value_warnings",b"input_value_warnings","other_errors",b"other_errors"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["input_schema_errors",b"input_schema_errors","input_value_errors",b"input_value_errors","input_value_warnings",b"input_value_warnings","other_errors",b"other_errors"]) -> None: ... + input_schema_errors: global___InputErrors | None = ..., + input_value_errors: global___InputErrors | None = ..., + other_errors: fmp.wrappers_pb2.RepeatedString | None = ..., + input_value_warnings: global___InputErrors | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["input_schema_errors", b"input_schema_errors", "input_value_errors", b"input_value_errors", "input_value_warnings", b"input_value_warnings", "other_errors", b"other_errors"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["input_schema_errors", b"input_schema_errors", "input_value_errors", b"input_value_errors", "input_value_warnings", b"input_value_warnings", "other_errors", b"other_errors"]) -> None: ... + global___InputValidationResult = InputValidationResult +@typing.final class InputValidationResults(google.protobuf.message.Message): """InputValidationResults is a collection of InputValidationResult (one per studio).""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int - key: typing.Text + key: builtins.str @property def value(self) -> global___InputValidationResult: ... - def __init__(self, + def __init__( + self, *, - key: typing.Text = ..., - value: typing.Optional[global___InputValidationResult] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + key: builtins.str = ..., + value: global___InputValidationResult | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property - def values(self) -> google.protobuf.internal.containers.MessageMap[typing.Text, global___InputValidationResult]: + def values(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___InputValidationResult]: """values is map from studio ID to InputValidationResult.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[typing.Text, global___InputValidationResult]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.str, global___InputValidationResult] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___InputValidationResults = InputValidationResults +@typing.final class TemplateError(google.protobuf.message.Message): """TemplateError holds details for an error that occured while evaluating a studio template against its inputs. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + LINE_NUM_FIELD_NUMBER: builtins.int EXCEPTION_FIELD_NUMBER: builtins.int DETAIL_FIELD_NUMBER: builtins.int @@ -1028,50 +1001,60 @@ class TemplateError(google.protobuf.message.Message): @property def line_num(self) -> google.protobuf.wrappers_pb2.UInt32Value: """line_num is the number of the line on which the error occurred.""" - pass + @property def exception(self) -> google.protobuf.wrappers_pb2.StringValue: """exception is the type of the exception thrown during the script execution. E.g., AssertionError, etc. """ - pass + @property def detail(self) -> google.protobuf.wrappers_pb2.StringValue: """detail holds the details of the exception. E.g., a full backtrace.""" - pass + @property def exception_msg(self) -> google.protobuf.wrappers_pb2.StringValue: """exception_msg is the message of the exception thrown during the script execution.""" - pass - def __init__(self, + + def __init__( + self, *, - line_num: typing.Optional[google.protobuf.wrappers_pb2.UInt32Value] = ..., - exception: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - detail: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - exception_msg: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["detail",b"detail","exception",b"exception","exception_msg",b"exception_msg","line_num",b"line_num"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["detail",b"detail","exception",b"exception","exception_msg",b"exception_msg","line_num",b"line_num"]) -> None: ... + line_num: google.protobuf.wrappers_pb2.UInt32Value | None = ..., + exception: google.protobuf.wrappers_pb2.StringValue | None = ..., + detail: google.protobuf.wrappers_pb2.StringValue | None = ..., + exception_msg: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["detail", b"detail", "exception", b"exception", "exception_msg", b"exception_msg", "line_num", b"line_num"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["detail", b"detail", "exception", b"exception", "exception_msg", b"exception_msg", "line_num", b"line_num"]) -> None: ... + global___TemplateError = TemplateError +@typing.final class TemplateErrors(google.protobuf.message.Message): """TemplateErrors is a list of TemplateError.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___TemplateError]: """values is a list of TemplateError.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[global___TemplateError]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[global___TemplateError] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___TemplateErrors = TemplateErrors +@typing.final class ConfigletBuildResult(google.protobuf.message.Message): """ConfigletBuildResult holds the result of a configlet build stage.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + TEMPLATE_ERRORS_FIELD_NUMBER: builtins.int GENERATED_CONFIG_FIELD_NUMBER: builtins.int OTHER_ERROR_FIELD_NUMBER: builtins.int @@ -1080,70 +1063,83 @@ class ConfigletBuildResult(google.protobuf.message.Message): @property def template_errors(self) -> global___TemplateErrors: """template_errors are errors that occured during studio template evaluation.""" - pass + @property def generated_config(self) -> google.protobuf.wrappers_pb2.StringValue: """generated_config is the EOS CLI config that was generated from the stage.""" - pass + @property def other_error(self) -> google.protobuf.wrappers_pb2.StringValue: """other_error is any other miscellaneous error.""" - pass + @property def execution_id(self) -> google.protobuf.wrappers_pb2.StringValue: """execution_id is the unique ID for the execution of the template. This ID can be used to retrieve logs generated by the template. """ - pass + @property def input_errors(self) -> global___InputErrors: """input_errors are errors in input fields that are raised by the template.""" - pass - def __init__(self, + + def __init__( + self, *, - template_errors: typing.Optional[global___TemplateErrors] = ..., - generated_config: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - other_error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - execution_id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - input_errors: typing.Optional[global___InputErrors] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["execution_id",b"execution_id","generated_config",b"generated_config","input_errors",b"input_errors","other_error",b"other_error","template_errors",b"template_errors"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["execution_id",b"execution_id","generated_config",b"generated_config","input_errors",b"input_errors","other_error",b"other_error","template_errors",b"template_errors"]) -> None: ... + template_errors: global___TemplateErrors | None = ..., + generated_config: google.protobuf.wrappers_pb2.StringValue | None = ..., + other_error: google.protobuf.wrappers_pb2.StringValue | None = ..., + execution_id: google.protobuf.wrappers_pb2.StringValue | None = ..., + input_errors: global___InputErrors | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["execution_id", b"execution_id", "generated_config", b"generated_config", "input_errors", b"input_errors", "other_error", b"other_error", "template_errors", b"template_errors"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["execution_id", b"execution_id", "generated_config", b"generated_config", "input_errors", b"input_errors", "other_error", b"other_error", "template_errors", b"template_errors"]) -> None: ... + global___ConfigletBuildResult = ConfigletBuildResult +@typing.final class ConfigletBuildResults(google.protobuf.message.Message): """ConfigletBuildResults is a collection of ConfigletBuildResult (one per studio).""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int - key: typing.Text + key: builtins.str @property def value(self) -> global___ConfigletBuildResult: ... - def __init__(self, + def __init__( + self, *, - key: typing.Text = ..., - value: typing.Optional[global___ConfigletBuildResult] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["value",b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + key: builtins.str = ..., + value: global___ConfigletBuildResult | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property - def values(self) -> google.protobuf.internal.containers.MessageMap[typing.Text, global___ConfigletBuildResult]: + def values(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___ConfigletBuildResult]: """values is a map from studio ID to ConfigletBuildResult.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[typing.Text, global___ConfigletBuildResult]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.str, global___ConfigletBuildResult] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___ConfigletBuildResults = ConfigletBuildResults +@typing.final class ConfigValidationResult(google.protobuf.message.Message): """ConfigValidationResult holds the result of a config validation stage.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + SUMMARY_FIELD_NUMBER: builtins.int ERRORS_FIELD_NUMBER: builtins.int WARNINGS_FIELD_NUMBER: builtins.int @@ -1151,33 +1147,38 @@ class ConfigValidationResult(google.protobuf.message.Message): @property def summary(self) -> arista.configstatus.v1.configstatus_pb2.ConfigSummary: """summary is a summary of the changes to the previous config.""" - pass + @property def errors(self) -> arista.configstatus.v1.configstatus_pb2.ConfigErrors: """errors are any errors detected in the generated config.""" - pass + @property def warnings(self) -> arista.configstatus.v1.configstatus_pb2.ConfigErrors: """warnings are any warnings about the generated config.""" - pass + @property def config_sources(self) -> arista.configstatus.v1.configstatus_pb2.ConfigSources: """config_sources identify the entities that generated the config.""" - pass - def __init__(self, + + def __init__( + self, *, - summary: typing.Optional[arista.configstatus.v1.configstatus_pb2.ConfigSummary] = ..., - errors: typing.Optional[arista.configstatus.v1.configstatus_pb2.ConfigErrors] = ..., - warnings: typing.Optional[arista.configstatus.v1.configstatus_pb2.ConfigErrors] = ..., - config_sources: typing.Optional[arista.configstatus.v1.configstatus_pb2.ConfigSources] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["config_sources",b"config_sources","errors",b"errors","summary",b"summary","warnings",b"warnings"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["config_sources",b"config_sources","errors",b"errors","summary",b"summary","warnings",b"warnings"]) -> None: ... + summary: arista.configstatus.v1.configstatus_pb2.ConfigSummary | None = ..., + errors: arista.configstatus.v1.configstatus_pb2.ConfigErrors | None = ..., + warnings: arista.configstatus.v1.configstatus_pb2.ConfigErrors | None = ..., + config_sources: arista.configstatus.v1.configstatus_pb2.ConfigSources | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["config_sources", b"config_sources", "errors", b"errors", "summary", b"summary", "warnings", b"warnings"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["config_sources", b"config_sources", "errors", b"errors", "summary", b"summary", "warnings", b"warnings"]) -> None: ... + global___ConfigValidationResult = ConfigValidationResult +@typing.final class ImageValidationResult(google.protobuf.message.Message): """ImageValidationResult holds the result of an image validation stage.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + SUMMARY_FIELD_NUMBER: builtins.int ERRORS_FIELD_NUMBER: builtins.int WARNINGS_FIELD_NUMBER: builtins.int @@ -1186,98 +1187,116 @@ class ImageValidationResult(google.protobuf.message.Message): @property def summary(self) -> arista.imagestatus.v1.imagestatus_pb2.ImageSummary: """summary is a summary of the changes to the previous image.""" - pass + @property def errors(self) -> arista.imagestatus.v1.imagestatus_pb2.ImageErrors: """errors are any errors detected in the generated image.""" - pass + @property def warnings(self) -> arista.imagestatus.v1.imagestatus_pb2.ImageWarnings: """warnings are any warnings about the generated image.""" - pass + @property def image_input_error(self) -> google.protobuf.wrappers_pb2.StringValue: """image_input_error indicates any errors in image inputs.""" - pass + @property def infos(self) -> arista.imagestatus.v1.imagestatus_pb2.ImageInfos: """infos are any info messages about the generated image.""" - pass - def __init__(self, + + def __init__( + self, *, - summary: typing.Optional[arista.imagestatus.v1.imagestatus_pb2.ImageSummary] = ..., - errors: typing.Optional[arista.imagestatus.v1.imagestatus_pb2.ImageErrors] = ..., - warnings: typing.Optional[arista.imagestatus.v1.imagestatus_pb2.ImageWarnings] = ..., - image_input_error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - infos: typing.Optional[arista.imagestatus.v1.imagestatus_pb2.ImageInfos] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["errors",b"errors","image_input_error",b"image_input_error","infos",b"infos","summary",b"summary","warnings",b"warnings"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["errors",b"errors","image_input_error",b"image_input_error","infos",b"infos","summary",b"summary","warnings",b"warnings"]) -> None: ... + summary: arista.imagestatus.v1.imagestatus_pb2.ImageSummary | None = ..., + errors: arista.imagestatus.v1.imagestatus_pb2.ImageErrors | None = ..., + warnings: arista.imagestatus.v1.imagestatus_pb2.ImageWarnings | None = ..., + image_input_error: google.protobuf.wrappers_pb2.StringValue | None = ..., + infos: arista.imagestatus.v1.imagestatus_pb2.ImageInfos | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["errors", b"errors", "image_input_error", b"image_input_error", "infos", b"infos", "summary", b"summary", "warnings", b"warnings"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["errors", b"errors", "image_input_error", b"image_input_error", "infos", b"infos", "summary", b"summary", "warnings", b"warnings"]) -> None: ... + global___ImageValidationResult = ImageValidationResult +@typing.final class ConfigSyncResult(google.protobuf.message.Message): """ConfigSyncResult holds the result of config sync operation.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + SUMMARY_FIELD_NUMBER: builtins.int ERRORS_FIELD_NUMBER: builtins.int CONFIG_SOURCES_FIELD_NUMBER: builtins.int @property def summary(self) -> arista.configstatus.v1.configstatus_pb2.ConfigSummary: """summary is a summary of the changes to the running config.""" - pass + @property def errors(self) -> arista.configstatus.v1.configstatus_pb2.ConfigErrors: """errors are any errors detected during sync.""" - pass + @property def config_sources(self) -> arista.configstatus.v1.configstatus_pb2.ConfigSources: """config_sources identify the entities that generated the designed config.""" - pass - def __init__(self, + + def __init__( + self, *, - summary: typing.Optional[arista.configstatus.v1.configstatus_pb2.ConfigSummary] = ..., - errors: typing.Optional[arista.configstatus.v1.configstatus_pb2.ConfigErrors] = ..., - config_sources: typing.Optional[arista.configstatus.v1.configstatus_pb2.ConfigSources] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["config_sources",b"config_sources","errors",b"errors","summary",b"summary"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["config_sources",b"config_sources","errors",b"errors","summary",b"summary"]) -> None: ... + summary: arista.configstatus.v1.configstatus_pb2.ConfigSummary | None = ..., + errors: arista.configstatus.v1.configstatus_pb2.ConfigErrors | None = ..., + config_sources: arista.configstatus.v1.configstatus_pb2.ConfigSources | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["config_sources", b"config_sources", "errors", b"errors", "summary", b"summary"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["config_sources", b"config_sources", "errors", b"errors", "summary", b"summary"]) -> None: ... + global___ConfigSyncResult = ConfigSyncResult +@typing.final class BuildStageState(google.protobuf.message.Message): """BuildStageState holds the state per build stage.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int - key: typing.Text + key: builtins.str value: global___BuildState.ValueType - def __init__(self, + def __init__( + self, *, - key: typing.Text = ..., + key: builtins.str = ..., value: global___BuildState.ValueType = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property - def values(self) -> google.protobuf.internal.containers.ScalarMap[typing.Text, global___BuildState.ValueType]: + def values(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, global___BuildState.ValueType]: """values is a map from build stage to build state. The possible keys to this map are BUILD_STAGE_UNSPECIFIED, BUILD_STAGE_INPUT_VALIDATION, BUILD_STAGE_CONFIGLET_BUILD, BUILD_STAGE_CONFIG_VALIDATION and BUILD_STAGE_IMAGE_VALIDATION. """ - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[typing.Text, global___BuildState.ValueType]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.str, global___BuildState.ValueType] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___BuildStageState = BuildStageState +@typing.final class AuthzResult(google.protobuf.message.Message): """AuthzResult has the result of the authorization check for workspace changes.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + HAS_UNAUTHORIZED_TAG_CHANGE_FIELD_NUMBER: builtins.int HAS_UNAUTHORIZED_DEVICE_CHANGE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int @@ -1286,147 +1305,171 @@ class AuthzResult(google.protobuf.message.Message): """has_unauthorized_tag_change is true when there is a tag assignment that results in change in permissions and the subject is not authorized to do it. """ - pass + @property def has_unauthorized_device_change(self) -> google.protobuf.wrappers_pb2.BoolValue: """has_unauthorized_device_change is true when there is atleast 1 device for which the subject doesn't have provision permission. """ - pass + @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """error is an error message that is set when either of the above values are true. """ - pass - def __init__(self, + + def __init__( + self, *, - has_unauthorized_tag_change: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - has_unauthorized_device_change: typing.Optional[google.protobuf.wrappers_pb2.BoolValue] = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["error",b"error","has_unauthorized_device_change",b"has_unauthorized_device_change","has_unauthorized_tag_change",b"has_unauthorized_tag_change"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["error",b"error","has_unauthorized_device_change",b"has_unauthorized_device_change","has_unauthorized_tag_change",b"has_unauthorized_tag_change"]) -> None: ... + has_unauthorized_tag_change: google.protobuf.wrappers_pb2.BoolValue | None = ..., + has_unauthorized_device_change: google.protobuf.wrappers_pb2.BoolValue | None = ..., + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["error", b"error", "has_unauthorized_device_change", b"has_unauthorized_device_change", "has_unauthorized_tag_change", b"has_unauthorized_tag_change"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["error", b"error", "has_unauthorized_device_change", b"has_unauthorized_device_change", "has_unauthorized_tag_change", b"has_unauthorized_tag_change"]) -> None: ... + global___AuthzResult = AuthzResult +@typing.final class WorkspaceBuildKey(google.protobuf.message.Message): """WorkspaceBuildKey uniquely identifies a build for a workspace.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + WORKSPACE_ID_FIELD_NUMBER: builtins.int BUILD_ID_FIELD_NUMBER: builtins.int @property def workspace_id(self) -> google.protobuf.wrappers_pb2.StringValue: """workspace_id is the ID of the workspace.""" - pass + @property def build_id(self) -> google.protobuf.wrappers_pb2.StringValue: """build_id is the ID of the build.""" - pass - def __init__(self, + + def __init__( + self, *, - workspace_id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - build_id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["build_id",b"build_id","workspace_id",b"workspace_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["build_id",b"build_id","workspace_id",b"workspace_id"]) -> None: ... + workspace_id: google.protobuf.wrappers_pb2.StringValue | None = ..., + build_id: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["build_id", b"build_id", "workspace_id", b"workspace_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["build_id", b"build_id", "workspace_id", b"workspace_id"]) -> None: ... + global___WorkspaceBuildKey = WorkspaceBuildKey +@typing.final class StudioBuildDetails(google.protobuf.message.Message): """StudioBuildDetails is a collection of per studio results that are not specific to a device.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + INPUT_VALIDATION_RESULTS_FIELD_NUMBER: builtins.int @property def input_validation_results(self) -> global___InputValidationResults: """input_validation_results is a map from studio ID to InputValidationResult.""" - pass - def __init__(self, + + def __init__( + self, *, - input_validation_results: typing.Optional[global___InputValidationResults] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["input_validation_results",b"input_validation_results"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["input_validation_results",b"input_validation_results"]) -> None: ... + input_validation_results: global___InputValidationResults | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["input_validation_results", b"input_validation_results"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["input_validation_results", b"input_validation_results"]) -> None: ... + global___StudioBuildDetails = StudioBuildDetails +@typing.final class WorkspaceBuild(google.protobuf.message.Message): """WorkspaceBuild holds the details for a build of a workspace.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int STATE_FIELD_NUMBER: builtins.int ERROR_FIELD_NUMBER: builtins.int BUILT_BY_FIELD_NUMBER: builtins.int AUTHZ_RESULT_FIELD_NUMBER: builtins.int STUDIO_BUILD_DETAILS_FIELD_NUMBER: builtins.int + state: global___BuildState.ValueType + """state is the execution status of the build.""" @property def key(self) -> global___WorkspaceBuildKey: """key identifies the build.""" - pass - state: global___BuildState.ValueType - """state is the execution status of the build.""" @property def error(self) -> google.protobuf.wrappers_pb2.StringValue: """error is an error message that is set if the build fails early before the per-device build result is computed. """ - pass + @property def built_by(self) -> google.protobuf.wrappers_pb2.StringValue: """built_by is the details of subject who built the workspace.""" - pass + @property def authz_result(self) -> global___AuthzResult: """authz_result has the result of authorization check.""" - pass + @property def studio_build_details(self) -> global___StudioBuildDetails: """studio_build_details has per studio results that are not specific to a device.""" - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[global___WorkspaceBuildKey] = ..., + key: global___WorkspaceBuildKey | None = ..., state: global___BuildState.ValueType = ..., - error: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - built_by: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - authz_result: typing.Optional[global___AuthzResult] = ..., - studio_build_details: typing.Optional[global___StudioBuildDetails] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["authz_result",b"authz_result","built_by",b"built_by","error",b"error","key",b"key","studio_build_details",b"studio_build_details"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["authz_result",b"authz_result","built_by",b"built_by","error",b"error","key",b"key","state",b"state","studio_build_details",b"studio_build_details"]) -> None: ... + error: google.protobuf.wrappers_pb2.StringValue | None = ..., + built_by: google.protobuf.wrappers_pb2.StringValue | None = ..., + authz_result: global___AuthzResult | None = ..., + studio_build_details: global___StudioBuildDetails | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["authz_result", b"authz_result", "built_by", b"built_by", "error", b"error", "key", b"key", "studio_build_details", b"studio_build_details"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["authz_result", b"authz_result", "built_by", b"built_by", "error", b"error", "key", b"key", "state", b"state", "studio_build_details", b"studio_build_details"]) -> None: ... + global___WorkspaceBuild = WorkspaceBuild +@typing.final class WorkspaceBuildDetailsKey(google.protobuf.message.Message): """WorkspaceBuildDetailsKey uniquely identifies a build for a particular device in a workspace. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + WORKSPACE_ID_FIELD_NUMBER: builtins.int BUILD_ID_FIELD_NUMBER: builtins.int DEVICE_ID_FIELD_NUMBER: builtins.int @property def workspace_id(self) -> google.protobuf.wrappers_pb2.StringValue: """workspace_id is the ID of the workspace.""" - pass + @property def build_id(self) -> google.protobuf.wrappers_pb2.StringValue: """build_id is the ID of the build.""" - pass + @property def device_id(self) -> google.protobuf.wrappers_pb2.StringValue: """device_id is the ID of the device.""" - pass - def __init__(self, + + def __init__( + self, *, - workspace_id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - build_id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - device_id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["build_id",b"build_id","device_id",b"device_id","workspace_id",b"workspace_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["build_id",b"build_id","device_id",b"device_id","workspace_id",b"workspace_id"]) -> None: ... + workspace_id: google.protobuf.wrappers_pb2.StringValue | None = ..., + build_id: google.protobuf.wrappers_pb2.StringValue | None = ..., + device_id: google.protobuf.wrappers_pb2.StringValue | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["build_id", b"build_id", "device_id", b"device_id", "workspace_id", b"workspace_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["build_id", b"build_id", "device_id", b"device_id", "workspace_id", b"workspace_id"]) -> None: ... + global___WorkspaceBuildDetailsKey = WorkspaceBuildDetailsKey +@typing.final class WorkspaceBuildDetails(google.protobuf.message.Message): """WorkspaceBuildDetails holds the details for a build of a device in a workspace.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int STATE_FIELD_NUMBER: builtins.int STAGE_FIELD_NUMBER: builtins.int @@ -1440,117 +1483,122 @@ class WorkspaceBuildDetails(google.protobuf.message.Message): AUTHZ_STATUS_FIELD_NUMBER: builtins.int CONFIG_SYNC_RESULT_FIELD_NUMBER: builtins.int CONFIG_SYNC_SKIP_CAUSE_FIELD_NUMBER: builtins.int - @property - def key(self) -> global___WorkspaceBuildDetailsKey: - """key identifies the build.""" - pass state: global___BuildState.ValueType """state is the execution status of the build.""" - stage: global___BuildStage.ValueType """stage is the stage of the build.""" + config_validation_skip_cause: global___ConfigValidationSkipCause.ValueType + """config_validation_skip_cause is the reason, if any, that the config + validation stage was skipped. + """ + image_validation_skip_cause: global___ImageValidationSkipCause.ValueType + """image_validation_skip_cause is the reason, if any, that the image + validation stage was skipped. + """ + authz_status: global___DeviceAuthzStatus.ValueType + """authz_status is the status of provision permission for the device.""" + config_sync_skip_cause: global___ConfigSyncSkipCause.ValueType + """config_sync_skip_cause is the reason for skipping the config sync.""" + @property + def key(self) -> global___WorkspaceBuildDetailsKey: + """key identifies the build.""" @property def input_validation_results(self) -> global___InputValidationResults: """input_validation_results are the results of the input validation stage.""" - pass + @property def configlet_build_results(self) -> global___ConfigletBuildResults: """configlet_build_results are the results of the configlet build stage.""" - pass + @property def config_validation_result(self) -> global___ConfigValidationResult: """config_validation_result is the result of the config validation stage.""" - pass + @property def image_validation_result(self) -> global___ImageValidationResult: """image_validation_result is the result of the image validation stage.""" - pass - config_validation_skip_cause: global___ConfigValidationSkipCause.ValueType - """config_validation_skip_cause is the reason, if any, that the config - validation stage was skipped. - """ - - image_validation_skip_cause: global___ImageValidationSkipCause.ValueType - """image_validation_skip_cause is the reason, if any, that the image - validation stage was skipped. - """ @property def build_stage_state(self) -> global___BuildStageState: """build_stage_state is the state for each build stage.""" - pass - authz_status: global___DeviceAuthzStatus.ValueType - """authz_status is the status of provision permission for the device.""" @property def config_sync_result(self) -> global___ConfigSyncResult: """config_sync_result is the result of the config sync.""" - pass - config_sync_skip_cause: global___ConfigSyncSkipCause.ValueType - """config_sync_skip_cause is the reason for skipping the config sync.""" - def __init__(self, + def __init__( + self, *, - key: typing.Optional[global___WorkspaceBuildDetailsKey] = ..., + key: global___WorkspaceBuildDetailsKey | None = ..., state: global___BuildState.ValueType = ..., stage: global___BuildStage.ValueType = ..., - input_validation_results: typing.Optional[global___InputValidationResults] = ..., - configlet_build_results: typing.Optional[global___ConfigletBuildResults] = ..., - config_validation_result: typing.Optional[global___ConfigValidationResult] = ..., - image_validation_result: typing.Optional[global___ImageValidationResult] = ..., + input_validation_results: global___InputValidationResults | None = ..., + configlet_build_results: global___ConfigletBuildResults | None = ..., + config_validation_result: global___ConfigValidationResult | None = ..., + image_validation_result: global___ImageValidationResult | None = ..., config_validation_skip_cause: global___ConfigValidationSkipCause.ValueType = ..., image_validation_skip_cause: global___ImageValidationSkipCause.ValueType = ..., - build_stage_state: typing.Optional[global___BuildStageState] = ..., + build_stage_state: global___BuildStageState | None = ..., authz_status: global___DeviceAuthzStatus.ValueType = ..., - config_sync_result: typing.Optional[global___ConfigSyncResult] = ..., + config_sync_result: global___ConfigSyncResult | None = ..., config_sync_skip_cause: global___ConfigSyncSkipCause.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["build_stage_state",b"build_stage_state","config_sync_result",b"config_sync_result","config_validation_result",b"config_validation_result","configlet_build_results",b"configlet_build_results","image_validation_result",b"image_validation_result","input_validation_results",b"input_validation_results","key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["authz_status",b"authz_status","build_stage_state",b"build_stage_state","config_sync_result",b"config_sync_result","config_sync_skip_cause",b"config_sync_skip_cause","config_validation_result",b"config_validation_result","config_validation_skip_cause",b"config_validation_skip_cause","configlet_build_results",b"configlet_build_results","image_validation_result",b"image_validation_result","image_validation_skip_cause",b"image_validation_skip_cause","input_validation_results",b"input_validation_results","key",b"key","stage",b"stage","state",b"state"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["build_stage_state", b"build_stage_state", "config_sync_result", b"config_sync_result", "config_validation_result", b"config_validation_result", "configlet_build_results", b"configlet_build_results", "image_validation_result", b"image_validation_result", "input_validation_results", b"input_validation_results", "key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["authz_status", b"authz_status", "build_stage_state", b"build_stage_state", "config_sync_result", b"config_sync_result", "config_sync_skip_cause", b"config_sync_skip_cause", "config_validation_result", b"config_validation_result", "config_validation_skip_cause", b"config_validation_skip_cause", "configlet_build_results", b"configlet_build_results", "image_validation_result", b"image_validation_result", "image_validation_skip_cause", b"image_validation_skip_cause", "input_validation_results", b"input_validation_results", "key", b"key", "stage", b"stage", "state", b"state"]) -> None: ... + global___WorkspaceBuildDetails = WorkspaceBuildDetails +@typing.final class WorkspaceSyncKey(google.protobuf.message.Message): """WorkspaceSyncKey uniquely identifies sync operations to be performed in a workspace. """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor + WORKSPACE_ID_FIELD_NUMBER: builtins.int SYNC_OPERATION_FIELD_NUMBER: builtins.int + sync_operation: global___SyncOperation.ValueType + """sync_operation is type of sync operation to be performed on devices.""" @property def workspace_id(self) -> google.protobuf.wrappers_pb2.StringValue: """workspace_id is the ID of the workspace.""" - pass - sync_operation: global___SyncOperation.ValueType - """sync_operation is type of sync operation to be performed on devices.""" - def __init__(self, + def __init__( + self, *, - workspace_id: typing.Optional[google.protobuf.wrappers_pb2.StringValue] = ..., + workspace_id: google.protobuf.wrappers_pb2.StringValue | None = ..., sync_operation: global___SyncOperation.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["workspace_id",b"workspace_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["sync_operation",b"sync_operation","workspace_id",b"workspace_id"]) -> None: ... + ) -> None: ... + def HasField(self, field_name: typing.Literal["workspace_id", b"workspace_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["sync_operation", b"sync_operation", "workspace_id", b"workspace_id"]) -> None: ... + global___WorkspaceSyncKey = WorkspaceSyncKey +@typing.final class WorkspaceSyncConfig(google.protobuf.message.Message): """WorkspaceSyncConfig holds the list of devices to be synced in workspace.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int DEVICE_IDS_FIELD_NUMBER: builtins.int @property def key(self) -> global___WorkspaceSyncKey: """key uniquely identifies sync operations to be performed in workspace.""" - pass + @property def device_ids(self) -> fmp.wrappers_pb2.RepeatedString: """device_ids is the list of device Ids to be synced in the workspace.""" - pass - def __init__(self, + + def __init__( + self, *, - key: typing.Optional[global___WorkspaceSyncKey] = ..., - device_ids: typing.Optional[fmp.wrappers_pb2.RepeatedString] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["device_ids",b"device_ids","key",b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["device_ids",b"device_ids","key",b"key"]) -> None: ... + key: global___WorkspaceSyncKey | None = ..., + device_ids: fmp.wrappers_pb2.RepeatedString | None = ..., + ) -> None: ... + def HasField(self, field_name: typing.Literal["device_ids", b"device_ids", "key", b"key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing.Literal["device_ids", b"device_ids", "key", b"key"]) -> None: ... + global___WorkspaceSyncConfig = WorkspaceSyncConfig diff --git a/fmp/deletes_pb2.pyi b/fmp/deletes_pb2.pyi index c1de5eb..0b16da2 100644 --- a/fmp/deletes_pb2.pyi +++ b/fmp/deletes_pb2.pyi @@ -1,35 +1,42 @@ """ @generated by mypy-protobuf. Do not edit manually! isort:skip_file +Copyright (c) 2021 Arista Networks, Inc. +Use of this source code is governed by the Apache License 2.0 +that can be found in the COPYING file. """ + import builtins import google.protobuf.descriptor import google.protobuf.internal.enum_type_wrapper +import sys import typing -import typing_extensions + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor class _DeleteError: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _DeleteErrorEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_DeleteError.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor DELETE_ERROR_UNSPECIFIED: _DeleteError.ValueType # 0 """DELETE_ERROR_UNSPECIFIED indicates that the delete error is not specified. """ - DELETE_ERROR_UNAUTHORIZED: _DeleteError.ValueType # 1 """DELETE_ERROR_UNAUTHORIZED indicates that the user is not authorized to perform the specified delete. """ - DELETE_ERROR_INTERNAL: _DeleteError.ValueType # 2 """DELETE_ERROR_INTERNAL indicates that the server encountered an unrecoverable error on the specified delete. """ - DELETE_ERROR_UNDELETABLE_KEY: _DeleteError.ValueType # 3 """DELETE_ERROR_UNDELETABLE_KEY indicates that the specified error is not allowed by the service. @@ -37,27 +44,21 @@ class _DeleteErrorEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._En class DeleteError(_DeleteError, metaclass=_DeleteErrorEnumTypeWrapper): """DeleteError defines the set of delete error types.""" - pass DELETE_ERROR_UNSPECIFIED: DeleteError.ValueType # 0 """DELETE_ERROR_UNSPECIFIED indicates that the delete error is not specified. """ - DELETE_ERROR_UNAUTHORIZED: DeleteError.ValueType # 1 """DELETE_ERROR_UNAUTHORIZED indicates that the user is not authorized to perform the specified delete. """ - DELETE_ERROR_INTERNAL: DeleteError.ValueType # 2 """DELETE_ERROR_INTERNAL indicates that the server encountered an unrecoverable error on the specified delete. """ - DELETE_ERROR_UNDELETABLE_KEY: DeleteError.ValueType # 3 """DELETE_ERROR_UNDELETABLE_KEY indicates that the specified error is not allowed by the service. """ - global___DeleteError = DeleteError - diff --git a/fmp/extensions_pb2.pyi b/fmp/extensions_pb2.pyi index 3ef0a04..74df736 100644 --- a/fmp/extensions_pb2.pyi +++ b/fmp/extensions_pb2.pyi @@ -1,12 +1,15 @@ """ @generated by mypy-protobuf. Do not edit manually! isort:skip_file +Copyright (c) 2020 Arista Networks, Inc. +Use of this source code is governed by the Apache License 2.0 +that can be found in the COPYING file. """ + import builtins import google.protobuf.descriptor import google.protobuf.descriptor_pb2 import google.protobuf.internal.extension_dict -import typing DESCRIPTOR: google.protobuf.descriptor.FileDescriptor @@ -20,25 +23,16 @@ PAGINATED_FIELD_NUMBER: builtins.int CHILD_RESOURCE_FIELD_NUMBER: builtins.int SORTABLE_FIELD_NUMBER: builtins.int DISABLE_YANG_FIELD_NUMBER: builtins.int -model: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, typing.Text] +model: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, builtins.str] """TODO: will need an official number from Google, just like gNMI extensions this works for now, though. """ - model_key: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, builtins.bool] - -custom_filter: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, typing.Text] - +custom_filter: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, builtins.str] no_default_filter: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, builtins.bool] - require_set_key: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, builtins.bool] - -unkeyed_model: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, typing.Text] - +unkeyed_model: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, builtins.str] paginated: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, builtins.bool] - -child_resource: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FieldOptions, typing.Text] - -sortable: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FieldOptions, typing.Text] - -disable_yang: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, typing.Text] +child_resource: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FieldOptions, builtins.str] +sortable: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FieldOptions, builtins.str] +disable_yang: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FileOptions, builtins.str] diff --git a/fmp/inet_pb2.pyi b/fmp/inet_pb2.pyi index 631fd94..8cb7d6e 100644 --- a/fmp/inet_pb2.pyi +++ b/fmp/inet_pb2.pyi @@ -1,125 +1,166 @@ """ @generated by mypy-protobuf. Do not edit manually! isort:skip_file -""" +Useful types that come from ietf-inet-types.yang""" + import builtins +import collections.abc import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class IPAddress(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int - value: typing.Text - def __init__(self, + value: builtins.str + def __init__( + self, *, - value: typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["value",b"value"]) -> None: ... + value: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["value", b"value"]) -> None: ... + global___IPAddress = IPAddress +@typing.final class RepeatedIPAddress(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___IPAddress]: ... - def __init__(self, + def __init__( + self, *, - values: typing.Optional[typing.Iterable[global___IPAddress]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[global___IPAddress] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___RepeatedIPAddress = RepeatedIPAddress +@typing.final class IPv4Address(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int - value: typing.Text - def __init__(self, + value: builtins.str + def __init__( + self, *, - value: typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["value",b"value"]) -> None: ... + value: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["value", b"value"]) -> None: ... + global___IPv4Address = IPv4Address +@typing.final class RepeatedIPv4Address(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___IPv4Address]: ... - def __init__(self, + def __init__( + self, *, - values: typing.Optional[typing.Iterable[global___IPv4Address]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[global___IPv4Address] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___RepeatedIPv4Address = RepeatedIPv4Address +@typing.final class IPv6Address(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int - value: typing.Text - def __init__(self, + value: builtins.str + def __init__( + self, *, - value: typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["value",b"value"]) -> None: ... + value: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["value", b"value"]) -> None: ... + global___IPv6Address = IPv6Address +@typing.final class RepeatedIPv6Address(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___IPv6Address]: ... - def __init__(self, + def __init__( + self, *, - values: typing.Optional[typing.Iterable[global___IPv6Address]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[global___IPv6Address] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___RepeatedIPv6Address = RepeatedIPv6Address +@typing.final class IPPrefix(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int - value: typing.Text - def __init__(self, + value: builtins.str + def __init__( + self, *, - value: typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["value",b"value"]) -> None: ... + value: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["value", b"value"]) -> None: ... + global___IPPrefix = IPPrefix +@typing.final class IPv4Prefix(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int - value: typing.Text - def __init__(self, + value: builtins.str + def __init__( + self, *, - value: typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["value",b"value"]) -> None: ... + value: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["value", b"value"]) -> None: ... + global___IPv4Prefix = IPv4Prefix +@typing.final class IPv6Prefix(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int - value: typing.Text - def __init__(self, + value: builtins.str + def __init__( + self, *, - value: typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["value",b"value"]) -> None: ... + value: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["value", b"value"]) -> None: ... + global___IPv6Prefix = IPv6Prefix +@typing.final class Port(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int value: builtins.int - def __init__(self, + def __init__( + self, *, value: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["value",b"value"]) -> None: ... + ) -> None: ... + def ClearField(self, field_name: typing.Literal["value", b"value"]) -> None: ... + global___Port = Port diff --git a/fmp/pages_pb2.pyi b/fmp/pages_pb2.pyi index 5c44e6d..daf396a 100644 --- a/fmp/pages_pb2.pyi +++ b/fmp/pages_pb2.pyi @@ -1,41 +1,45 @@ """ @generated by mypy-protobuf. Do not edit manually! isort:skip_file +Copyright (c) 2024 Arista Networks, Inc. All rights reserved. +Arista Networks, Inc. Confidential and Proprietary. +Subject to Arista Networks, Inc.'s EULA. +FOR INTERNAL USE ONLY. NOT FOR DISTRIBUTION. """ + import builtins import google.protobuf.descriptor import google.protobuf.internal.enum_type_wrapper +import sys import typing -import typing_extensions + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor class _SortDirection: - ValueType = typing.NewType('ValueType', builtins.int) + ValueType = typing.NewType("ValueType", builtins.int) V: typing_extensions.TypeAlias = ValueType + class _SortDirectionEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_SortDirection.ValueType], builtins.type): DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor SORT_DIRECTION_UNSPECIFIED: _SortDirection.ValueType # 0 """SORT_DIRECTION_UNSPECIFIED means that no sort direction specified.""" - SORT_DIRECTION_ASCENDING: _SortDirection.ValueType # 1 """SORT_DIRECTION_ASCENDING sorts in ascending order.""" - SORT_DIRECTION_DESCENDING: _SortDirection.ValueType # 2 """SORT_DIRECTION_DESCENDING sorts in descending order.""" class SortDirection(_SortDirection, metaclass=_SortDirectionEnumTypeWrapper): """SortDirection is an enum of possible values for direction of sorting.""" - pass SORT_DIRECTION_UNSPECIFIED: SortDirection.ValueType # 0 """SORT_DIRECTION_UNSPECIFIED means that no sort direction specified.""" - SORT_DIRECTION_ASCENDING: SortDirection.ValueType # 1 """SORT_DIRECTION_ASCENDING sorts in ascending order.""" - SORT_DIRECTION_DESCENDING: SortDirection.ValueType # 2 """SORT_DIRECTION_DESCENDING sorts in descending order.""" - global___SortDirection = SortDirection - diff --git a/fmp/wrappers_pb2.pyi b/fmp/wrappers_pb2.pyi index af7e214..cd75a05 100644 --- a/fmp/wrappers_pb2.pyi +++ b/fmp/wrappers_pb2.pyi @@ -1,1659 +1,2137 @@ """ @generated by mypy-protobuf. Do not edit manually! isort:skip_file -""" +Nilable wrapper messages for repeated scalar types and maps with scalar types""" + import builtins +import collections.abc import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class RepeatedDouble(google.protobuf.message.Message): """Wrapper message for `repeated double`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.float]: """The repeated double values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[builtins.float]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[builtins.float] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___RepeatedDouble = RepeatedDouble +@typing.final class RepeatedFloat(google.protobuf.message.Message): """Wrapper message for `repeated float`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.float]: """The repeated float values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[builtins.float]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[builtins.float] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___RepeatedFloat = RepeatedFloat +@typing.final class RepeatedInt64(google.protobuf.message.Message): """Wrapper message for `repeated int64`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: """The repeated int64 values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[builtins.int]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[builtins.int] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___RepeatedInt64 = RepeatedInt64 +@typing.final class RepeatedUInt64(google.protobuf.message.Message): """Wrapper message for `repeated uint64`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: """The repeated uint64 values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[builtins.int]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[builtins.int] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___RepeatedUInt64 = RepeatedUInt64 +@typing.final class RepeatedInt32(google.protobuf.message.Message): """Wrapper message for `repeated int32`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: """The repeated int32 values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[builtins.int]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[builtins.int] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___RepeatedInt32 = RepeatedInt32 +@typing.final class RepeatedUInt32(google.protobuf.message.Message): """Wrapper message for `repeated uint32`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: """The repeated uint32 values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[builtins.int]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[builtins.int] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___RepeatedUInt32 = RepeatedUInt32 +@typing.final class RepeatedBool(google.protobuf.message.Message): """Wrapper message for `repeated bool`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bool]: """The repeated bool values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[builtins.bool]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[builtins.bool] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___RepeatedBool = RepeatedBool +@typing.final class RepeatedString(google.protobuf.message.Message): """Wrapper message for `repeated string`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property - def values(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: + def values(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: """The repeated string values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[typing.Text]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[builtins.str] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___RepeatedString = RepeatedString +@typing.final class RepeatedBytes(google.protobuf.message.Message): """Wrapper message for `repeated bytes`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bytes]: """The repeated bytes values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Iterable[builtins.bytes]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[builtins.bytes] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___RepeatedBytes = RepeatedBytes +@typing.final class MapInt64Double(google.protobuf.message.Message): """Wrapper message for `map`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int key: builtins.int value: builtins.float - def __init__(self, + def __init__( + self, *, key: builtins.int = ..., value: builtins.float = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.ScalarMap[builtins.int, builtins.float]: """The map values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[builtins.int, builtins.float]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.int, builtins.float] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___MapInt64Double = MapInt64Double +@typing.final class MapInt64Float(google.protobuf.message.Message): """Wrapper message for `map`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int key: builtins.int value: builtins.float - def __init__(self, + def __init__( + self, *, key: builtins.int = ..., value: builtins.float = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.ScalarMap[builtins.int, builtins.float]: """The map values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[builtins.int, builtins.float]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.int, builtins.float] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___MapInt64Float = MapInt64Float +@typing.final class MapInt64Int64(google.protobuf.message.Message): """Wrapper message for `map`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int key: builtins.int value: builtins.int - def __init__(self, + def __init__( + self, *, key: builtins.int = ..., value: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.ScalarMap[builtins.int, builtins.int]: """The map values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[builtins.int, builtins.int]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.int, builtins.int] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___MapInt64Int64 = MapInt64Int64 +@typing.final class MapInt64UInt64(google.protobuf.message.Message): """Wrapper message for `map`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int key: builtins.int value: builtins.int - def __init__(self, + def __init__( + self, *, key: builtins.int = ..., value: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.ScalarMap[builtins.int, builtins.int]: """The map values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[builtins.int, builtins.int]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.int, builtins.int] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___MapInt64UInt64 = MapInt64UInt64 +@typing.final class MapInt64Int32(google.protobuf.message.Message): """Wrapper message for `map`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int key: builtins.int value: builtins.int - def __init__(self, + def __init__( + self, *, key: builtins.int = ..., value: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.ScalarMap[builtins.int, builtins.int]: """The map values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[builtins.int, builtins.int]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.int, builtins.int] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___MapInt64Int32 = MapInt64Int32 +@typing.final class MapInt64UInt32(google.protobuf.message.Message): """Wrapper message for `map`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int key: builtins.int value: builtins.int - def __init__(self, + def __init__( + self, *, key: builtins.int = ..., value: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.ScalarMap[builtins.int, builtins.int]: """The map values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[builtins.int, builtins.int]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.int, builtins.int] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___MapInt64UInt32 = MapInt64UInt32 +@typing.final class MapInt64Bool(google.protobuf.message.Message): """Wrapper message for `map`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int key: builtins.int value: builtins.bool - def __init__(self, + def __init__( + self, *, key: builtins.int = ..., value: builtins.bool = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.ScalarMap[builtins.int, builtins.bool]: """The map values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[builtins.int, builtins.bool]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.int, builtins.bool] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___MapInt64Bool = MapInt64Bool +@typing.final class MapInt64String(google.protobuf.message.Message): """Wrapper message for `map`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int key: builtins.int - value: typing.Text - def __init__(self, + value: builtins.str + def __init__( + self, *, key: builtins.int = ..., - value: typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + value: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property - def values(self) -> google.protobuf.internal.containers.ScalarMap[builtins.int, typing.Text]: + def values(self) -> google.protobuf.internal.containers.ScalarMap[builtins.int, builtins.str]: """The map values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[builtins.int, typing.Text]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.int, builtins.str] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___MapInt64String = MapInt64String +@typing.final class MapInt64Bytes(google.protobuf.message.Message): """Wrapper message for `map`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int key: builtins.int value: builtins.bytes - def __init__(self, + def __init__( + self, *, key: builtins.int = ..., value: builtins.bytes = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.ScalarMap[builtins.int, builtins.bytes]: """The map values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[builtins.int, builtins.bytes]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.int, builtins.bytes] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___MapInt64Bytes = MapInt64Bytes +@typing.final class MapUInt64Double(google.protobuf.message.Message): """Wrapper message for `map`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int key: builtins.int value: builtins.float - def __init__(self, + def __init__( + self, *, key: builtins.int = ..., value: builtins.float = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.ScalarMap[builtins.int, builtins.float]: """The map values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[builtins.int, builtins.float]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.int, builtins.float] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___MapUInt64Double = MapUInt64Double +@typing.final class MapUInt64Float(google.protobuf.message.Message): """Wrapper message for `map`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int key: builtins.int value: builtins.float - def __init__(self, + def __init__( + self, *, key: builtins.int = ..., value: builtins.float = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.ScalarMap[builtins.int, builtins.float]: """The map values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[builtins.int, builtins.float]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.int, builtins.float] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___MapUInt64Float = MapUInt64Float +@typing.final class MapUInt64Int64(google.protobuf.message.Message): """Wrapper message for `map`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int key: builtins.int value: builtins.int - def __init__(self, + def __init__( + self, *, key: builtins.int = ..., value: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.ScalarMap[builtins.int, builtins.int]: """The map values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[builtins.int, builtins.int]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.int, builtins.int] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___MapUInt64Int64 = MapUInt64Int64 +@typing.final class MapUInt64UInt64(google.protobuf.message.Message): """Wrapper message for `map`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int key: builtins.int value: builtins.int - def __init__(self, + def __init__( + self, *, key: builtins.int = ..., value: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.ScalarMap[builtins.int, builtins.int]: """The map values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[builtins.int, builtins.int]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.int, builtins.int] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___MapUInt64UInt64 = MapUInt64UInt64 +@typing.final class MapUInt64Int32(google.protobuf.message.Message): """Wrapper message for `map`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int key: builtins.int value: builtins.int - def __init__(self, + def __init__( + self, *, key: builtins.int = ..., value: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.ScalarMap[builtins.int, builtins.int]: """The map values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[builtins.int, builtins.int]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.int, builtins.int] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___MapUInt64Int32 = MapUInt64Int32 +@typing.final class MapUInt64UInt32(google.protobuf.message.Message): """Wrapper message for `map`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int key: builtins.int value: builtins.int - def __init__(self, + def __init__( + self, *, key: builtins.int = ..., value: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.ScalarMap[builtins.int, builtins.int]: """The map values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[builtins.int, builtins.int]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.int, builtins.int] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___MapUInt64UInt32 = MapUInt64UInt32 +@typing.final class MapUInt64Bool(google.protobuf.message.Message): """Wrapper message for `map`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int key: builtins.int value: builtins.bool - def __init__(self, + def __init__( + self, *, key: builtins.int = ..., value: builtins.bool = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.ScalarMap[builtins.int, builtins.bool]: """The map values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[builtins.int, builtins.bool]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.int, builtins.bool] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___MapUInt64Bool = MapUInt64Bool +@typing.final class MapUInt64String(google.protobuf.message.Message): """Wrapper message for `map`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int key: builtins.int - value: typing.Text - def __init__(self, + value: builtins.str + def __init__( + self, *, key: builtins.int = ..., - value: typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + value: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property - def values(self) -> google.protobuf.internal.containers.ScalarMap[builtins.int, typing.Text]: + def values(self) -> google.protobuf.internal.containers.ScalarMap[builtins.int, builtins.str]: """The map values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[builtins.int, typing.Text]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.int, builtins.str] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___MapUInt64String = MapUInt64String +@typing.final class MapUInt64Bytes(google.protobuf.message.Message): """Wrapper message for `map`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int key: builtins.int value: builtins.bytes - def __init__(self, + def __init__( + self, *, key: builtins.int = ..., value: builtins.bytes = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.ScalarMap[builtins.int, builtins.bytes]: """The map values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[builtins.int, builtins.bytes]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.int, builtins.bytes] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___MapUInt64Bytes = MapUInt64Bytes +@typing.final class MapInt32Double(google.protobuf.message.Message): """Wrapper message for `map`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int key: builtins.int value: builtins.float - def __init__(self, + def __init__( + self, *, key: builtins.int = ..., value: builtins.float = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.ScalarMap[builtins.int, builtins.float]: """The map values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[builtins.int, builtins.float]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.int, builtins.float] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___MapInt32Double = MapInt32Double +@typing.final class MapInt32Float(google.protobuf.message.Message): """Wrapper message for `map`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int key: builtins.int value: builtins.float - def __init__(self, + def __init__( + self, *, key: builtins.int = ..., value: builtins.float = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.ScalarMap[builtins.int, builtins.float]: """The map values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[builtins.int, builtins.float]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.int, builtins.float] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___MapInt32Float = MapInt32Float +@typing.final class MapInt32Int64(google.protobuf.message.Message): """Wrapper message for `map`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int key: builtins.int value: builtins.int - def __init__(self, + def __init__( + self, *, key: builtins.int = ..., value: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.ScalarMap[builtins.int, builtins.int]: """The map values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[builtins.int, builtins.int]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.int, builtins.int] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___MapInt32Int64 = MapInt32Int64 +@typing.final class MapInt32UInt64(google.protobuf.message.Message): """Wrapper message for `map`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int key: builtins.int value: builtins.int - def __init__(self, + def __init__( + self, *, key: builtins.int = ..., value: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.ScalarMap[builtins.int, builtins.int]: """The map values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[builtins.int, builtins.int]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.int, builtins.int] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___MapInt32UInt64 = MapInt32UInt64 +@typing.final class MapInt32Int32(google.protobuf.message.Message): """Wrapper message for `map`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int key: builtins.int value: builtins.int - def __init__(self, + def __init__( + self, *, key: builtins.int = ..., value: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.ScalarMap[builtins.int, builtins.int]: """The map values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[builtins.int, builtins.int]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.int, builtins.int] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___MapInt32Int32 = MapInt32Int32 +@typing.final class MapInt32UInt32(google.protobuf.message.Message): """Wrapper message for `map`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int key: builtins.int value: builtins.int - def __init__(self, + def __init__( + self, *, key: builtins.int = ..., value: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.ScalarMap[builtins.int, builtins.int]: """The map values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[builtins.int, builtins.int]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.int, builtins.int] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___MapInt32UInt32 = MapInt32UInt32 +@typing.final class MapInt32Bool(google.protobuf.message.Message): """Wrapper message for `map`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int key: builtins.int value: builtins.bool - def __init__(self, + def __init__( + self, *, key: builtins.int = ..., value: builtins.bool = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.ScalarMap[builtins.int, builtins.bool]: """The map values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[builtins.int, builtins.bool]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.int, builtins.bool] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___MapInt32Bool = MapInt32Bool +@typing.final class MapInt32String(google.protobuf.message.Message): """Wrapper message for `map`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int key: builtins.int - value: typing.Text - def __init__(self, + value: builtins.str + def __init__( + self, *, key: builtins.int = ..., - value: typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + value: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property - def values(self) -> google.protobuf.internal.containers.ScalarMap[builtins.int, typing.Text]: + def values(self) -> google.protobuf.internal.containers.ScalarMap[builtins.int, builtins.str]: """The map values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[builtins.int, typing.Text]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.int, builtins.str] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___MapInt32String = MapInt32String +@typing.final class MapInt32Bytes(google.protobuf.message.Message): """Wrapper message for `map`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int key: builtins.int value: builtins.bytes - def __init__(self, + def __init__( + self, *, key: builtins.int = ..., value: builtins.bytes = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.ScalarMap[builtins.int, builtins.bytes]: """The map values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[builtins.int, builtins.bytes]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.int, builtins.bytes] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___MapInt32Bytes = MapInt32Bytes +@typing.final class MapUInt32Double(google.protobuf.message.Message): """Wrapper message for `map`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int key: builtins.int value: builtins.float - def __init__(self, + def __init__( + self, *, key: builtins.int = ..., value: builtins.float = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.ScalarMap[builtins.int, builtins.float]: """The map values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[builtins.int, builtins.float]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.int, builtins.float] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___MapUInt32Double = MapUInt32Double +@typing.final class MapUInt32Float(google.protobuf.message.Message): """Wrapper message for `map`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int key: builtins.int value: builtins.float - def __init__(self, + def __init__( + self, *, key: builtins.int = ..., value: builtins.float = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.ScalarMap[builtins.int, builtins.float]: """The map values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[builtins.int, builtins.float]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.int, builtins.float] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___MapUInt32Float = MapUInt32Float +@typing.final class MapUInt32Int64(google.protobuf.message.Message): """Wrapper message for `map`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int key: builtins.int value: builtins.int - def __init__(self, + def __init__( + self, *, key: builtins.int = ..., value: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.ScalarMap[builtins.int, builtins.int]: """The map values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[builtins.int, builtins.int]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.int, builtins.int] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___MapUInt32Int64 = MapUInt32Int64 +@typing.final class MapUInt32UInt64(google.protobuf.message.Message): """Wrapper message for `map`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int key: builtins.int value: builtins.int - def __init__(self, + def __init__( + self, *, key: builtins.int = ..., value: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.ScalarMap[builtins.int, builtins.int]: """The map values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[builtins.int, builtins.int]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.int, builtins.int] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___MapUInt32UInt64 = MapUInt32UInt64 +@typing.final class MapUInt32Int32(google.protobuf.message.Message): """Wrapper message for `map`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int key: builtins.int value: builtins.int - def __init__(self, + def __init__( + self, *, key: builtins.int = ..., value: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.ScalarMap[builtins.int, builtins.int]: """The map values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[builtins.int, builtins.int]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.int, builtins.int] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___MapUInt32Int32 = MapUInt32Int32 +@typing.final class MapUInt32UInt32(google.protobuf.message.Message): """Wrapper message for `map`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int key: builtins.int value: builtins.int - def __init__(self, + def __init__( + self, *, key: builtins.int = ..., value: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.ScalarMap[builtins.int, builtins.int]: """The map values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[builtins.int, builtins.int]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.int, builtins.int] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___MapUInt32UInt32 = MapUInt32UInt32 +@typing.final class MapUInt32Bool(google.protobuf.message.Message): """Wrapper message for `map`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int key: builtins.int value: builtins.bool - def __init__(self, + def __init__( + self, *, key: builtins.int = ..., value: builtins.bool = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.ScalarMap[builtins.int, builtins.bool]: """The map values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[builtins.int, builtins.bool]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.int, builtins.bool] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___MapUInt32Bool = MapUInt32Bool +@typing.final class MapUInt32String(google.protobuf.message.Message): """Wrapper message for `map`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int key: builtins.int - value: typing.Text - def __init__(self, + value: builtins.str + def __init__( + self, *, key: builtins.int = ..., - value: typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + value: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property - def values(self) -> google.protobuf.internal.containers.ScalarMap[builtins.int, typing.Text]: + def values(self) -> google.protobuf.internal.containers.ScalarMap[builtins.int, builtins.str]: """The map values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[builtins.int, typing.Text]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.int, builtins.str] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___MapUInt32String = MapUInt32String +@typing.final class MapUInt32Bytes(google.protobuf.message.Message): """Wrapper message for `map`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int key: builtins.int value: builtins.bytes - def __init__(self, + def __init__( + self, *, key: builtins.int = ..., value: builtins.bytes = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.ScalarMap[builtins.int, builtins.bytes]: """The map values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[builtins.int, builtins.bytes]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.int, builtins.bytes] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___MapUInt32Bytes = MapUInt32Bytes +@typing.final class MapBoolDouble(google.protobuf.message.Message): """Wrapper message for `map`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int key: builtins.bool value: builtins.float - def __init__(self, + def __init__( + self, *, key: builtins.bool = ..., value: builtins.float = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.ScalarMap[builtins.bool, builtins.float]: """The map values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[builtins.bool, builtins.float]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.bool, builtins.float] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___MapBoolDouble = MapBoolDouble +@typing.final class MapBoolFloat(google.protobuf.message.Message): """Wrapper message for `map`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int key: builtins.bool value: builtins.float - def __init__(self, + def __init__( + self, *, key: builtins.bool = ..., value: builtins.float = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.ScalarMap[builtins.bool, builtins.float]: """The map values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[builtins.bool, builtins.float]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.bool, builtins.float] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___MapBoolFloat = MapBoolFloat +@typing.final class MapBoolInt64(google.protobuf.message.Message): """Wrapper message for `map`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int key: builtins.bool value: builtins.int - def __init__(self, + def __init__( + self, *, key: builtins.bool = ..., value: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.ScalarMap[builtins.bool, builtins.int]: """The map values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[builtins.bool, builtins.int]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.bool, builtins.int] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___MapBoolInt64 = MapBoolInt64 +@typing.final class MapBoolUInt64(google.protobuf.message.Message): """Wrapper message for `map`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int key: builtins.bool value: builtins.int - def __init__(self, + def __init__( + self, *, key: builtins.bool = ..., value: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.ScalarMap[builtins.bool, builtins.int]: """The map values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[builtins.bool, builtins.int]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.bool, builtins.int] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___MapBoolUInt64 = MapBoolUInt64 +@typing.final class MapBoolInt32(google.protobuf.message.Message): """Wrapper message for `map`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int key: builtins.bool value: builtins.int - def __init__(self, + def __init__( + self, *, key: builtins.bool = ..., value: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.ScalarMap[builtins.bool, builtins.int]: """The map values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[builtins.bool, builtins.int]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.bool, builtins.int] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___MapBoolInt32 = MapBoolInt32 +@typing.final class MapBoolUInt32(google.protobuf.message.Message): """Wrapper message for `map`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int key: builtins.bool value: builtins.int - def __init__(self, + def __init__( + self, *, key: builtins.bool = ..., value: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.ScalarMap[builtins.bool, builtins.int]: """The map values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[builtins.bool, builtins.int]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.bool, builtins.int] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___MapBoolUInt32 = MapBoolUInt32 +@typing.final class MapBoolBool(google.protobuf.message.Message): """Wrapper message for `map`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int key: builtins.bool value: builtins.bool - def __init__(self, + def __init__( + self, *, key: builtins.bool = ..., value: builtins.bool = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.ScalarMap[builtins.bool, builtins.bool]: """The map values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[builtins.bool, builtins.bool]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.bool, builtins.bool] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___MapBoolBool = MapBoolBool +@typing.final class MapBoolString(google.protobuf.message.Message): """Wrapper message for `map`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int key: builtins.bool - value: typing.Text - def __init__(self, + value: builtins.str + def __init__( + self, *, key: builtins.bool = ..., - value: typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + value: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property - def values(self) -> google.protobuf.internal.containers.ScalarMap[builtins.bool, typing.Text]: + def values(self) -> google.protobuf.internal.containers.ScalarMap[builtins.bool, builtins.str]: """The map values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[builtins.bool, typing.Text]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.bool, builtins.str] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___MapBoolString = MapBoolString +@typing.final class MapBoolBytes(google.protobuf.message.Message): """Wrapper message for `map`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int key: builtins.bool value: builtins.bytes - def __init__(self, + def __init__( + self, *, key: builtins.bool = ..., value: builtins.bytes = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.ScalarMap[builtins.bool, builtins.bytes]: """The map values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[builtins.bool, builtins.bytes]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.bool, builtins.bytes] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___MapBoolBytes = MapBoolBytes +@typing.final class MapStringDouble(google.protobuf.message.Message): """Wrapper message for `map`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int - key: typing.Text + key: builtins.str value: builtins.float - def __init__(self, + def __init__( + self, *, - key: typing.Text = ..., + key: builtins.str = ..., value: builtins.float = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property - def values(self) -> google.protobuf.internal.containers.ScalarMap[typing.Text, builtins.float]: + def values(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.float]: """The map values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[typing.Text, builtins.float]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.str, builtins.float] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___MapStringDouble = MapStringDouble +@typing.final class MapStringFloat(google.protobuf.message.Message): """Wrapper message for `map`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int - key: typing.Text + key: builtins.str value: builtins.float - def __init__(self, + def __init__( + self, *, - key: typing.Text = ..., + key: builtins.str = ..., value: builtins.float = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property - def values(self) -> google.protobuf.internal.containers.ScalarMap[typing.Text, builtins.float]: + def values(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.float]: """The map values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[typing.Text, builtins.float]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.str, builtins.float] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___MapStringFloat = MapStringFloat +@typing.final class MapStringInt64(google.protobuf.message.Message): """Wrapper message for `map`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int - key: typing.Text + key: builtins.str value: builtins.int - def __init__(self, + def __init__( + self, *, - key: typing.Text = ..., + key: builtins.str = ..., value: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property - def values(self) -> google.protobuf.internal.containers.ScalarMap[typing.Text, builtins.int]: + def values(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.int]: """The map values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[typing.Text, builtins.int]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.str, builtins.int] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___MapStringInt64 = MapStringInt64 +@typing.final class MapStringUInt64(google.protobuf.message.Message): """Wrapper message for `map`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int - key: typing.Text + key: builtins.str value: builtins.int - def __init__(self, + def __init__( + self, *, - key: typing.Text = ..., + key: builtins.str = ..., value: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property - def values(self) -> google.protobuf.internal.containers.ScalarMap[typing.Text, builtins.int]: + def values(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.int]: """The map values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[typing.Text, builtins.int]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.str, builtins.int] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___MapStringUInt64 = MapStringUInt64 +@typing.final class MapStringInt32(google.protobuf.message.Message): """Wrapper message for `map`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int - key: typing.Text + key: builtins.str value: builtins.int - def __init__(self, + def __init__( + self, *, - key: typing.Text = ..., + key: builtins.str = ..., value: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property - def values(self) -> google.protobuf.internal.containers.ScalarMap[typing.Text, builtins.int]: + def values(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.int]: """The map values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[typing.Text, builtins.int]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.str, builtins.int] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___MapStringInt32 = MapStringInt32 +@typing.final class MapStringUInt32(google.protobuf.message.Message): """Wrapper message for `map`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int - key: typing.Text + key: builtins.str value: builtins.int - def __init__(self, + def __init__( + self, *, - key: typing.Text = ..., + key: builtins.str = ..., value: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property - def values(self) -> google.protobuf.internal.containers.ScalarMap[typing.Text, builtins.int]: + def values(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.int]: """The map values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[typing.Text, builtins.int]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.str, builtins.int] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___MapStringUInt32 = MapStringUInt32 +@typing.final class MapStringBool(google.protobuf.message.Message): """Wrapper message for `map`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int - key: typing.Text + key: builtins.str value: builtins.bool - def __init__(self, + def __init__( + self, *, - key: typing.Text = ..., + key: builtins.str = ..., value: builtins.bool = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property - def values(self) -> google.protobuf.internal.containers.ScalarMap[typing.Text, builtins.bool]: + def values(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.bool]: """The map values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[typing.Text, builtins.bool]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.str, builtins.bool] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___MapStringBool = MapStringBool +@typing.final class MapStringString(google.protobuf.message.Message): """Wrapper message for `map`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int - key: typing.Text - value: typing.Text - def __init__(self, + key: builtins.str + value: builtins.str + def __init__( + self, *, - key: typing.Text = ..., - value: typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + key: builtins.str = ..., + value: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property - def values(self) -> google.protobuf.internal.containers.ScalarMap[typing.Text, typing.Text]: + def values(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: """The map values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[typing.Text, typing.Text]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___MapStringString = MapStringString +@typing.final class MapStringBytes(google.protobuf.message.Message): """Wrapper message for `map`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing.final class ValuesEntry(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int VALUE_FIELD_NUMBER: builtins.int - key: typing.Text + key: builtins.str value: builtins.bytes - def __init__(self, + def __init__( + self, *, - key: typing.Text = ..., + key: builtins.str = ..., value: builtins.bytes = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key",b"key","value",b"value"]) -> None: ... + ) -> None: ... + def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ... VALUES_FIELD_NUMBER: builtins.int @property - def values(self) -> google.protobuf.internal.containers.ScalarMap[typing.Text, builtins.bytes]: + def values(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.bytes]: """The map values.""" - pass - def __init__(self, + + def __init__( + self, *, - values: typing.Optional[typing.Mapping[typing.Text, builtins.bytes]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Mapping[builtins.str, builtins.bytes] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___MapStringBytes = MapStringBytes diff --git a/fmp/yang_pb2.pyi b/fmp/yang_pb2.pyi index 07fa9d5..aa35abe 100644 --- a/fmp/yang_pb2.pyi +++ b/fmp/yang_pb2.pyi @@ -1,35 +1,44 @@ """ @generated by mypy-protobuf. Do not edit manually! isort:skip_file -""" +Useful types that come from ietf-yang-types.yang""" + import builtins +import collections.abc import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message import typing -import typing_extensions DESCRIPTOR: google.protobuf.descriptor.FileDescriptor +@typing.final class MACAddress(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUE_FIELD_NUMBER: builtins.int - value: typing.Text - def __init__(self, + value: builtins.str + def __init__( + self, *, - value: typing.Text = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["value",b"value"]) -> None: ... + value: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["value", b"value"]) -> None: ... + global___MACAddress = MACAddress +@typing.final class RepeatedMACAddress(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + VALUES_FIELD_NUMBER: builtins.int @property def values(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___MACAddress]: ... - def __init__(self, + def __init__( + self, *, - values: typing.Optional[typing.Iterable[global___MACAddress]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["values",b"values"]) -> None: ... + values: collections.abc.Iterable[global___MACAddress] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing.Literal["values", b"values"]) -> None: ... + global___RepeatedMACAddress = RepeatedMACAddress