From 01e302026577b027340c4763c853c73e48a32169 Mon Sep 17 00:00:00 2001 From: Arista Jenkins Date: Wed, 22 May 2024 23:51:13 +0000 Subject: [PATCH] imagestatus.v1: Add a warning code WARNING_CODE_TA_STUDIO_INCOMPATIBLE Add a new warning code WARNING_CODE_TA_STUDIO_INCOMPATIBLE in imagestatus.proto to raise a warning if the TerminAttr is incompatible with Software Management Studio. [GENERATED_COMMIT] Change-Id: I25b3f7df90589774d8408cd7b885594de377e39b --- arista/imagestatus/v1/imagestatus_pb2.py | 6 +- arista/imagestatus/v1/imagestatus_pb2.pyi | 10 ++ arista/imagestatus/v1/services/gen_pb2.py | 35 ++-- arista/imagestatus/v1/services/gen_pb2.pyi | 151 ++++++++++++++++ .../imagestatus/v1/services/gen_pb2_grpc.py | 165 ++++++++++++++++++ 5 files changed, 352 insertions(+), 15 deletions(-) diff --git a/arista/imagestatus/v1/imagestatus_pb2.py b/arista/imagestatus/v1/imagestatus_pb2.py index 3f743f9c..107c8cfc 100644 --- a/arista/imagestatus/v1/imagestatus_pb2.py +++ b/arista/imagestatus/v1/imagestatus_pb2.py @@ -17,14 +17,14 @@ from fmp import extensions_pb2 as fmp_dot_extensions__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\'arista/imagestatus.v1/imagestatus.proto\x12\x15\x61rista.imagestatus.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x14\x66mp/extensions.proto\"\xa2\x01\n\rSoftwareImage\x12*\n\x04name\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12-\n\x07version\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x36\n\x08metadata\x18\x03 \x01(\x0b\x32$.arista.imagestatus.v1.ImageMetadata\"\xf6\x01\n\rImageMetadata\x12-\n\x07version\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12-\n\x07release\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12,\n\x06\x66lavor\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12-\n\x07variant\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12*\n\x04\x61rch\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\xf0\x02\n\tExtension\x12*\n\x04name\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12-\n\x07version\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x33\n\x0freboot_required\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12+\n\x07present\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12@\n\tinstalled\x18\x05 \x01(\x0e\x32-.arista.imagestatus.v1.ExtensionInstallStatus\x12\x33\n\rstatus_detail\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12/\n\x0bis_embedded\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\">\n\nExtensions\x12\x30\n\x06values\x18\x01 \x03(\x0b\x32 .arista.imagestatus.v1.Extension\"\x8f\x02\n\x10\x43omplianceStatus\x12U\n\x1esoftware_image_compliance_code\x18\x01 \x01(\x0e\x32-.arista.imagestatus.v1.SoftwareComplianceCode\x12Q\n\x1aterminattr_compliance_code\x18\x02 \x01(\x0e\x32-.arista.imagestatus.v1.SoftwareComplianceCode\x12Q\n\x1a\x65xtensions_compliance_code\x18\x03 \x01(\x0e\x32-.arista.imagestatus.v1.SoftwareComplianceCode\"\xb9\x01\n\x15\x43omplianceStatusBySup\x12H\n\x06values\x18\x01 \x03(\x0b\x32\x38.arista.imagestatus.v1.ComplianceStatusBySup.ValuesEntry\x1aV\n\x0bValuesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x36\n\x05value\x18\x02 \x01(\x0b\x32\'.arista.imagestatus.v1.ComplianceStatus:\x02\x38\x01\"\xd3\x01\n\x0eRebootRequired\x12\x42\n\x1esoftware_image_reboot_required\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12>\n\x1aterminattr_reboot_required\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12=\n\x19\x65xtension_reboot_required\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\"\xa2\x01\n\x11SoftwareImageDiff\x12+\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x1d.arista.imagestatus.v1.DiffOp\x12/\n\x01\x61\x18\x02 \x01(\x0b\x32$.arista.imagestatus.v1.SoftwareImage\x12/\n\x01\x62\x18\x03 \x01(\x0b\x32$.arista.imagestatus.v1.SoftwareImage\"\xbe\x01\n\x17SoftwareImageDiffsBySup\x12J\n\x06values\x18\x01 \x03(\x0b\x32:.arista.imagestatus.v1.SoftwareImageDiffsBySup.ValuesEntry\x1aW\n\x0bValuesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x37\n\x05value\x18\x02 \x01(\x0b\x32(.arista.imagestatus.v1.SoftwareImageDiff:\x02\x38\x01\"\x96\x01\n\rExtensionDiff\x12+\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x1d.arista.imagestatus.v1.DiffOp\x12+\n\x01\x61\x18\x02 \x01(\x0b\x32 .arista.imagestatus.v1.Extension\x12+\n\x01\x62\x18\x03 \x01(\x0b\x32 .arista.imagestatus.v1.Extension\"\xb4\x01\n\x14TerminAttrDiffsBySup\x12G\n\x06values\x18\x01 \x03(\x0b\x32\x37.arista.imagestatus.v1.TerminAttrDiffsBySup.ValuesEntry\x1aS\n\x0bValuesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x33\n\x05value\x18\x02 \x01(\x0b\x32$.arista.imagestatus.v1.ExtensionDiff:\x02\x38\x01\"F\n\x0e\x45xtensionDiffs\x12\x34\n\x06values\x18\x01 \x03(\x0b\x32$.arista.imagestatus.v1.ExtensionDiff\"\xb3\x01\n\x13\x45xtensionDiffsBySup\x12\x46\n\x06values\x18\x01 \x03(\x0b\x32\x36.arista.imagestatus.v1.ExtensionDiffsBySup.ValuesEntry\x1aT\n\x0bValuesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x34\n\x05value\x18\x02 \x01(\x0b\x32%.arista.imagestatus.v1.ExtensionDiffs:\x02\x38\x01\"\x9d\x06\n\x0cImageSummary\x12)\n\x03sku\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12=\n\x19running_image_update_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12>\n\x1a\x64\x65signed_image_update_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x64ual_sup\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x30\n\x0b\x61\x63tive_slot\x18\x05 \x01(\x0b\x32\x1b.google.protobuf.Int32Value\x12\x31\n\x0cstandby_slot\x18\x06 \x01(\x0b\x32\x1b.google.protobuf.Int32Value\x12K\n\x13software_image_diff\x18\x07 \x01(\x0b\x32..arista.imagestatus.v1.SoftwareImageDiffsBySup\x12\x44\n\x0fterminattr_diff\x18\x08 \x01(\x0b\x32+.arista.imagestatus.v1.TerminAttrDiffsBySup\x12\x43\n\x0f\x65xtensions_diff\x18\t \x01(\x0b\x32*.arista.imagestatus.v1.ExtensionDiffsBySup\x12H\n\x11\x63ompliance_status\x18\n \x01(\x0e\x32-.arista.imagestatus.v1.SoftwareComplianceCode\x12@\n\ncompliance\x18\x0b \x01(\x0b\x32,.arista.imagestatus.v1.ComplianceStatusBySup\x12>\n\x0freboot_required\x18\x0c \x01(\x0b\x32%.arista.imagestatus.v1.RebootRequired\x12,\n\x06\x64igest\x18\r \x01(\x0b\x32\x1c.google.protobuf.StringValue\"C\n\nSummaryKey\x12/\n\tdevice_id\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue:\x04\x80\x8e\x19\x01\"\xe3\x01\n\x07Summary\x12.\n\x03key\x18\x01 \x01(\x0b\x32!.arista.imagestatus.v1.SummaryKey\x12\x34\n\x07summary\x18\x02 \x01(\x0b\x32#.arista.imagestatus.v1.ImageSummary\x12\x32\n\x06\x65rrors\x18\x03 \x01(\x0b\x32\".arista.imagestatus.v1.ImageErrors\x12\x36\n\x08warnings\x18\x04 \x01(\x0b\x32$.arista.imagestatus.v1.ImageWarnings:\x06\xfa\x8d\x19\x02ro\"\x9e\x01\n\nImageError\x12)\n\x03sku\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x34\n\nerror_code\x18\x02 \x01(\x0e\x32 .arista.imagestatus.v1.ErrorCode\x12/\n\terror_msg\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"@\n\x0bImageErrors\x12\x31\n\x06values\x18\x01 \x03(\x0b\x32!.arista.imagestatus.v1.ImageError\"\xa6\x01\n\x0cImageWarning\x12)\n\x03sku\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x38\n\x0cwarning_code\x18\x02 \x01(\x0e\x32\".arista.imagestatus.v1.WarningCode\x12\x31\n\x0bwarning_msg\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"D\n\rImageWarnings\x12\x33\n\x06values\x18\x01 \x03(\x0b\x32#.arista.imagestatus.v1.ImageWarning*\xc4\x01\n\x16\x45xtensionInstallStatus\x12(\n$EXTENSION_INSTALL_STATUS_UNSPECIFIED\x10\x00\x12*\n&EXTENSION_INSTALL_STATUS_NOT_INSTALLED\x10\x01\x12&\n\"EXTENSION_INSTALL_STATUS_INSTALLED\x10\x02\x12,\n(EXTENSION_INSTALL_STATUS_FORCE_INSTALLED\x10\x03*\x92\x01\n\x16SoftwareComplianceCode\x12(\n$SOFTWARE_COMPLIANCE_CODE_UNSPECIFIED\x10\x00\x12$\n SOFTWARE_COMPLIANCE_CODE_IN_SYNC\x10\x01\x12(\n$SOFTWARE_COMPLIANCE_CODE_OUT_OF_SYNC\x10\x02*k\n\x06\x44iffOp\x12\x17\n\x13\x44IFF_OP_UNSPECIFIED\x10\x00\x12\x0f\n\x0b\x44IFF_OP_NOP\x10\x01\x12\x0f\n\x0b\x44IFF_OP_ADD\x10\x02\x12\x12\n\x0e\x44IFF_OP_DELETE\x10\x03\x12\x12\n\x0e\x44IFF_OP_CHANGE\x10\x04*\x9e\x05\n\tErrorCode\x12\x1a\n\x16\x45RROR_CODE_UNSPECIFIED\x10\x00\x12)\n!ERROR_CODE_SUPPORT_NOT_INTRODUCED\x10\x01\x1a\x02\x08\x01\x12\"\n\x1a\x45RROR_CODE_SUPPORT_REMOVED\x10\x02\x1a\x02\x08\x01\x12!\n\x1d\x45RROR_CODE_DEVICE_UNREACHABLE\x10\x03\x12 \n\x1c\x45RROR_CODE_VALIDATION_FAILED\x10\x04\x12-\n)ERROR_CODE_GET_PROPOSED_IMAGE_INFO_FAILED\x10\x05\x12G\n?ERROR_CODE_GET_RUNNING_IMAGE_INFO_FROM_ACTIVE_SUPERVISOR_FAILED\x10\x06\x1a\x02\x08\x01\x12\x45\n=ERROR_CODE_GET_RUNNING_IMAGE_INFO_FROM_PEER_SUPERVISOR_FAILED\x10\x07\x1a\x02\x08\x01\x12/\n+ERROR_CODE_EOS_TA_ARCHITECTURE_INCOMPATIBLE\x10\x08\x12!\n\x1d\x45RROR_CODE_TA_CV_INCOMPATIBLE\x10\t\x12\"\n\x1e\x45RROR_CODE_EOS_CV_INCOMPATIBLE\x10\n\x12)\n%ERROR_CODE_EOS_SUPPORT_NOT_INTRODUCED\x10\x0b\x12\"\n\x1e\x45RROR_CODE_EOS_SUPPORT_REMOVED\x10\x0c\x12/\n+ERROR_CODE_PHYSICAL_DEVICE_EOS_INCOMPATIBLE\x10\r\x12*\n&ERROR_CODE_TA_EMBEDDEDEXT_INCOMPATIBLE\x10\x0e*\xdd\x04\n\x0bWarningCode\x12\x1c\n\x18WARNING_CODE_UNSPECIFIED\x10\x00\x12\x1f\n\x1bWARNING_CODE_NOT_APPLICABLE\x10\x01\x12$\n WARNING_CODE_SKUINFO_UNAVAILABLE\x10\x02\x12\'\n#WARNING_CODE_DEVICE_SKU_UNAVAILABLE\x10\x03\x12\x1c\n\x18WARNING_CODE_SWI_UNKNOWN\x10\x04\x12$\n WARNING_CODE_TA_EOS_INCOMPATIBLE\x10\x05\x12\'\n\x1fWARNING_CODE_TA_CV_INCOMPATIBLE\x10\x06\x1a\x02\x08\x01\x12(\n WARNING_CODE_EOS_CV_INCOMPATIBLE\x10\x07\x1a\x02\x08\x01\x12!\n\x1dWARNING_CODE_EOS_ARCH_UNKNOWN\x10\x08\x12,\n(WARNING_CODE_TA_EMBEDDEDEXT_INCOMPATIBLE\x10\t\x12&\n\x1eWARNING_CODE_ARCH_INCOMPATIBLE\x10\n\x1a\x02\x08\x01\x12,\n(WARNING_CODE_EOS_END_OF_LIFE_DATE_PASSED\x10\x0b\x12\'\n#WARNING_CODE_SUPPORT_NOT_INTRODUCED\x10\x0c\x12 \n\x1cWARNING_CODE_SUPPORT_REMOVED\x10\r\x12\x37\n3WARNING_CODE_RUNNING_TA_BELOW_MIN_SUPPORTED_VERSION\x10\x0e\x42^\n\x19\x63om.arista.imagestatus.v1B\x0bImagestatusP\x01Z2arista/resources/arista/imagestatus.v1;imagestatusb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\'arista/imagestatus.v1/imagestatus.proto\x12\x15\x61rista.imagestatus.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x14\x66mp/extensions.proto\"\xa2\x01\n\rSoftwareImage\x12*\n\x04name\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12-\n\x07version\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x36\n\x08metadata\x18\x03 \x01(\x0b\x32$.arista.imagestatus.v1.ImageMetadata\"\xf6\x01\n\rImageMetadata\x12-\n\x07version\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12-\n\x07release\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12,\n\x06\x66lavor\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12-\n\x07variant\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12*\n\x04\x61rch\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"\xf0\x02\n\tExtension\x12*\n\x04name\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12-\n\x07version\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x33\n\x0freboot_required\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12+\n\x07present\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12@\n\tinstalled\x18\x05 \x01(\x0e\x32-.arista.imagestatus.v1.ExtensionInstallStatus\x12\x33\n\rstatus_detail\x18\x06 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12/\n\x0bis_embedded\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\">\n\nExtensions\x12\x30\n\x06values\x18\x01 \x03(\x0b\x32 .arista.imagestatus.v1.Extension\"\x8f\x02\n\x10\x43omplianceStatus\x12U\n\x1esoftware_image_compliance_code\x18\x01 \x01(\x0e\x32-.arista.imagestatus.v1.SoftwareComplianceCode\x12Q\n\x1aterminattr_compliance_code\x18\x02 \x01(\x0e\x32-.arista.imagestatus.v1.SoftwareComplianceCode\x12Q\n\x1a\x65xtensions_compliance_code\x18\x03 \x01(\x0e\x32-.arista.imagestatus.v1.SoftwareComplianceCode\"\xb9\x01\n\x15\x43omplianceStatusBySup\x12H\n\x06values\x18\x01 \x03(\x0b\x32\x38.arista.imagestatus.v1.ComplianceStatusBySup.ValuesEntry\x1aV\n\x0bValuesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x36\n\x05value\x18\x02 \x01(\x0b\x32\'.arista.imagestatus.v1.ComplianceStatus:\x02\x38\x01\"\xd3\x01\n\x0eRebootRequired\x12\x42\n\x1esoftware_image_reboot_required\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12>\n\x1aterminattr_reboot_required\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12=\n\x19\x65xtension_reboot_required\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\"\xa2\x01\n\x11SoftwareImageDiff\x12+\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x1d.arista.imagestatus.v1.DiffOp\x12/\n\x01\x61\x18\x02 \x01(\x0b\x32$.arista.imagestatus.v1.SoftwareImage\x12/\n\x01\x62\x18\x03 \x01(\x0b\x32$.arista.imagestatus.v1.SoftwareImage\"\xbe\x01\n\x17SoftwareImageDiffsBySup\x12J\n\x06values\x18\x01 \x03(\x0b\x32:.arista.imagestatus.v1.SoftwareImageDiffsBySup.ValuesEntry\x1aW\n\x0bValuesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x37\n\x05value\x18\x02 \x01(\x0b\x32(.arista.imagestatus.v1.SoftwareImageDiff:\x02\x38\x01\"\x96\x01\n\rExtensionDiff\x12+\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x1d.arista.imagestatus.v1.DiffOp\x12+\n\x01\x61\x18\x02 \x01(\x0b\x32 .arista.imagestatus.v1.Extension\x12+\n\x01\x62\x18\x03 \x01(\x0b\x32 .arista.imagestatus.v1.Extension\"\xb4\x01\n\x14TerminAttrDiffsBySup\x12G\n\x06values\x18\x01 \x03(\x0b\x32\x37.arista.imagestatus.v1.TerminAttrDiffsBySup.ValuesEntry\x1aS\n\x0bValuesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x33\n\x05value\x18\x02 \x01(\x0b\x32$.arista.imagestatus.v1.ExtensionDiff:\x02\x38\x01\"F\n\x0e\x45xtensionDiffs\x12\x34\n\x06values\x18\x01 \x03(\x0b\x32$.arista.imagestatus.v1.ExtensionDiff\"\xb3\x01\n\x13\x45xtensionDiffsBySup\x12\x46\n\x06values\x18\x01 \x03(\x0b\x32\x36.arista.imagestatus.v1.ExtensionDiffsBySup.ValuesEntry\x1aT\n\x0bValuesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x34\n\x05value\x18\x02 \x01(\x0b\x32%.arista.imagestatus.v1.ExtensionDiffs:\x02\x38\x01\"\x9d\x06\n\x0cImageSummary\x12)\n\x03sku\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12=\n\x19running_image_update_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12>\n\x1a\x64\x65signed_image_update_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x64ual_sup\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x30\n\x0b\x61\x63tive_slot\x18\x05 \x01(\x0b\x32\x1b.google.protobuf.Int32Value\x12\x31\n\x0cstandby_slot\x18\x06 \x01(\x0b\x32\x1b.google.protobuf.Int32Value\x12K\n\x13software_image_diff\x18\x07 \x01(\x0b\x32..arista.imagestatus.v1.SoftwareImageDiffsBySup\x12\x44\n\x0fterminattr_diff\x18\x08 \x01(\x0b\x32+.arista.imagestatus.v1.TerminAttrDiffsBySup\x12\x43\n\x0f\x65xtensions_diff\x18\t \x01(\x0b\x32*.arista.imagestatus.v1.ExtensionDiffsBySup\x12H\n\x11\x63ompliance_status\x18\n \x01(\x0e\x32-.arista.imagestatus.v1.SoftwareComplianceCode\x12@\n\ncompliance\x18\x0b \x01(\x0b\x32,.arista.imagestatus.v1.ComplianceStatusBySup\x12>\n\x0freboot_required\x18\x0c \x01(\x0b\x32%.arista.imagestatus.v1.RebootRequired\x12,\n\x06\x64igest\x18\r \x01(\x0b\x32\x1c.google.protobuf.StringValue\"C\n\nSummaryKey\x12/\n\tdevice_id\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue:\x04\x80\x8e\x19\x01\"\xe3\x01\n\x07Summary\x12.\n\x03key\x18\x01 \x01(\x0b\x32!.arista.imagestatus.v1.SummaryKey\x12\x34\n\x07summary\x18\x02 \x01(\x0b\x32#.arista.imagestatus.v1.ImageSummary\x12\x32\n\x06\x65rrors\x18\x03 \x01(\x0b\x32\".arista.imagestatus.v1.ImageErrors\x12\x36\n\x08warnings\x18\x04 \x01(\x0b\x32$.arista.imagestatus.v1.ImageWarnings:\x06\xfa\x8d\x19\x02ro\"\x9e\x01\n\nImageError\x12)\n\x03sku\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x34\n\nerror_code\x18\x02 \x01(\x0e\x32 .arista.imagestatus.v1.ErrorCode\x12/\n\terror_msg\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"@\n\x0bImageErrors\x12\x31\n\x06values\x18\x01 \x03(\x0b\x32!.arista.imagestatus.v1.ImageError\"\xa6\x01\n\x0cImageWarning\x12)\n\x03sku\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x38\n\x0cwarning_code\x18\x02 \x01(\x0e\x32\".arista.imagestatus.v1.WarningCode\x12\x31\n\x0bwarning_msg\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.StringValue\"D\n\rImageWarnings\x12\x33\n\x06values\x18\x01 \x03(\x0b\x32#.arista.imagestatus.v1.ImageWarning*\xc4\x01\n\x16\x45xtensionInstallStatus\x12(\n$EXTENSION_INSTALL_STATUS_UNSPECIFIED\x10\x00\x12*\n&EXTENSION_INSTALL_STATUS_NOT_INSTALLED\x10\x01\x12&\n\"EXTENSION_INSTALL_STATUS_INSTALLED\x10\x02\x12,\n(EXTENSION_INSTALL_STATUS_FORCE_INSTALLED\x10\x03*\x92\x01\n\x16SoftwareComplianceCode\x12(\n$SOFTWARE_COMPLIANCE_CODE_UNSPECIFIED\x10\x00\x12$\n SOFTWARE_COMPLIANCE_CODE_IN_SYNC\x10\x01\x12(\n$SOFTWARE_COMPLIANCE_CODE_OUT_OF_SYNC\x10\x02*k\n\x06\x44iffOp\x12\x17\n\x13\x44IFF_OP_UNSPECIFIED\x10\x00\x12\x0f\n\x0b\x44IFF_OP_NOP\x10\x01\x12\x0f\n\x0b\x44IFF_OP_ADD\x10\x02\x12\x12\n\x0e\x44IFF_OP_DELETE\x10\x03\x12\x12\n\x0e\x44IFF_OP_CHANGE\x10\x04*\x9e\x05\n\tErrorCode\x12\x1a\n\x16\x45RROR_CODE_UNSPECIFIED\x10\x00\x12)\n!ERROR_CODE_SUPPORT_NOT_INTRODUCED\x10\x01\x1a\x02\x08\x01\x12\"\n\x1a\x45RROR_CODE_SUPPORT_REMOVED\x10\x02\x1a\x02\x08\x01\x12!\n\x1d\x45RROR_CODE_DEVICE_UNREACHABLE\x10\x03\x12 \n\x1c\x45RROR_CODE_VALIDATION_FAILED\x10\x04\x12-\n)ERROR_CODE_GET_PROPOSED_IMAGE_INFO_FAILED\x10\x05\x12G\n?ERROR_CODE_GET_RUNNING_IMAGE_INFO_FROM_ACTIVE_SUPERVISOR_FAILED\x10\x06\x1a\x02\x08\x01\x12\x45\n=ERROR_CODE_GET_RUNNING_IMAGE_INFO_FROM_PEER_SUPERVISOR_FAILED\x10\x07\x1a\x02\x08\x01\x12/\n+ERROR_CODE_EOS_TA_ARCHITECTURE_INCOMPATIBLE\x10\x08\x12!\n\x1d\x45RROR_CODE_TA_CV_INCOMPATIBLE\x10\t\x12\"\n\x1e\x45RROR_CODE_EOS_CV_INCOMPATIBLE\x10\n\x12)\n%ERROR_CODE_EOS_SUPPORT_NOT_INTRODUCED\x10\x0b\x12\"\n\x1e\x45RROR_CODE_EOS_SUPPORT_REMOVED\x10\x0c\x12/\n+ERROR_CODE_PHYSICAL_DEVICE_EOS_INCOMPATIBLE\x10\r\x12*\n&ERROR_CODE_TA_EMBEDDEDEXT_INCOMPATIBLE\x10\x0e*\x86\x05\n\x0bWarningCode\x12\x1c\n\x18WARNING_CODE_UNSPECIFIED\x10\x00\x12\x1f\n\x1bWARNING_CODE_NOT_APPLICABLE\x10\x01\x12$\n WARNING_CODE_SKUINFO_UNAVAILABLE\x10\x02\x12\'\n#WARNING_CODE_DEVICE_SKU_UNAVAILABLE\x10\x03\x12\x1c\n\x18WARNING_CODE_SWI_UNKNOWN\x10\x04\x12$\n WARNING_CODE_TA_EOS_INCOMPATIBLE\x10\x05\x12\'\n\x1fWARNING_CODE_TA_CV_INCOMPATIBLE\x10\x06\x1a\x02\x08\x01\x12(\n WARNING_CODE_EOS_CV_INCOMPATIBLE\x10\x07\x1a\x02\x08\x01\x12!\n\x1dWARNING_CODE_EOS_ARCH_UNKNOWN\x10\x08\x12,\n(WARNING_CODE_TA_EMBEDDEDEXT_INCOMPATIBLE\x10\t\x12&\n\x1eWARNING_CODE_ARCH_INCOMPATIBLE\x10\n\x1a\x02\x08\x01\x12,\n(WARNING_CODE_EOS_END_OF_LIFE_DATE_PASSED\x10\x0b\x12\'\n#WARNING_CODE_SUPPORT_NOT_INTRODUCED\x10\x0c\x12 \n\x1cWARNING_CODE_SUPPORT_REMOVED\x10\r\x12\x37\n3WARNING_CODE_RUNNING_TA_BELOW_MIN_SUPPORTED_VERSION\x10\x0e\x12\'\n#WARNING_CODE_TA_STUDIO_INCOMPATIBLE\x10\x0f\x42z\n\x19\x63om.arista.imagestatus.v1B\x0bImagestatusP\x01ZNgithub.com/aristanetworks/cloudvision-go/api/arista/imagestatus.v1;imagestatusb\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'arista.imagestatus.v1.imagestatus_pb2', _globals) if _descriptor._USE_C_DESCRIPTORS == False: _globals['DESCRIPTOR']._options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\031com.arista.imagestatus.v1B\013ImagestatusP\001Z2arista/resources/arista/imagestatus.v1;imagestatus' + _globals['DESCRIPTOR']._serialized_options = b'\n\031com.arista.imagestatus.v1B\013ImagestatusP\001ZNgithub.com/aristanetworks/cloudvision-go/api/arista/imagestatus.v1;imagestatus' _globals['_ERRORCODE'].values_by_name["ERROR_CODE_SUPPORT_NOT_INTRODUCED"]._options = None _globals['_ERRORCODE'].values_by_name["ERROR_CODE_SUPPORT_NOT_INTRODUCED"]._serialized_options = b'\010\001' _globals['_ERRORCODE'].values_by_name["ERROR_CODE_SUPPORT_REMOVED"]._options = None @@ -60,7 +60,7 @@ _globals['_ERRORCODE']._serialized_start=4649 _globals['_ERRORCODE']._serialized_end=5319 _globals['_WARNINGCODE']._serialized_start=5322 - _globals['_WARNINGCODE']._serialized_end=5927 + _globals['_WARNINGCODE']._serialized_end=5968 _globals['_SOFTWAREIMAGE']._serialized_start=154 _globals['_SOFTWAREIMAGE']._serialized_end=316 _globals['_IMAGEMETADATA']._serialized_start=319 diff --git a/arista/imagestatus/v1/imagestatus_pb2.pyi b/arista/imagestatus/v1/imagestatus_pb2.pyi index 36359701..488d70dc 100644 --- a/arista/imagestatus/v1/imagestatus_pb2.pyi +++ b/arista/imagestatus/v1/imagestatus_pb2.pyi @@ -376,6 +376,11 @@ class _WarningCodeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._En 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. + """ + class WarningCode(_WarningCode, metaclass=_WarningCodeEnumTypeWrapper): """WarningCode indicates warnings produced during image validations.""" pass @@ -451,6 +456,11 @@ WARNING_CODE_RUNNING_TA_BELOW_MIN_SUPPORTED_VERSION: WarningCode.ValueType # 14 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. +""" + global___WarningCode = WarningCode diff --git a/arista/imagestatus/v1/services/gen_pb2.py b/arista/imagestatus/v1/services/gen_pb2.py index 08611f5b..b87a4904 100644 --- a/arista/imagestatus/v1/services/gen_pb2.py +++ b/arista/imagestatus/v1/services/gen_pb2.py @@ -16,24 +16,35 @@ from arista.time import time_pb2 as arista_dot_time_dot_time__pb2 from arista.subscriptions import subscriptions_pb2 as arista_dot_subscriptions_dot_subscriptions__pb2 from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n(arista/imagestatus.v1/services.gen.proto\x12\x15\x61rista.imagestatus.v1\x1a\'arista/imagestatus.v1/imagestatus.proto\x1a\x16\x61rista/time/time.proto\x1a(arista/subscriptions/subscriptions.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"j\n\x0eSummaryRequest\x12.\n\x03key\x18\x01 \x01(\x0b\x32!.arista.imagestatus.v1.SummaryKey\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"j\n\x0fSummaryResponse\x12-\n\x05value\x18\x01 \x01(\x0b\x32\x1e.arista.imagestatus.v1.Summary\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"x\n\x14SummaryStreamRequest\x12\x39\n\x11partial_eq_filter\x18\x01 \x03(\x0b\x32\x1e.arista.imagestatus.v1.Summary\x12%\n\x04time\x18\x03 \x01(\x0b\x32\x17.arista.time.TimeBounds\"\x9f\x01\n\x15SummaryStreamResponse\x12-\n\x05value\x18\x01 \x01(\x0b\x32\x1e.arista.imagestatus.v1.Summary\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12-\n\x04type\x18\x03 \x01(\x0e\x32\x1f.arista.subscriptions.Operation2\xba\x02\n\x0eSummaryService\x12W\n\x06GetOne\x12%.arista.imagestatus.v1.SummaryRequest\x1a&.arista.imagestatus.v1.SummaryResponse\x12\x65\n\x06GetAll\x12+.arista.imagestatus.v1.SummaryStreamRequest\x1a,.arista.imagestatus.v1.SummaryStreamResponse0\x01\x12h\n\tSubscribe\x12+.arista.imagestatus.v1.SummaryStreamRequest\x1a,.arista.imagestatus.v1.SummaryStreamResponse0\x01\x42\x66\n\x19\x63om.arista.imagestatus.v1B\x13ImagestatusServicesP\x01Z2arista/resources/arista/imagestatus.v1;imagestatusb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n(arista/imagestatus.v1/services.gen.proto\x12\x15\x61rista.imagestatus.v1\x1a\'arista/imagestatus.v1/imagestatus.proto\x1a\x16\x61rista/time/time.proto\x1a(arista/subscriptions/subscriptions.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\x94\x01\n\x0cMetaResponse\x12(\n\x04time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12-\n\x04type\x18\x02 \x01(\x0e\x32\x1f.arista.subscriptions.Operation\x12+\n\x05\x63ount\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.UInt32Value\"j\n\x0eSummaryRequest\x12.\n\x03key\x18\x01 \x01(\x0b\x32!.arista.imagestatus.v1.SummaryKey\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"j\n\x0fSummaryResponse\x12-\n\x05value\x18\x01 \x01(\x0b\x32\x1e.arista.imagestatus.v1.Summary\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"o\n\x12SummarySomeRequest\x12/\n\x04keys\x18\x01 \x03(\x0b\x32!.arista.imagestatus.v1.SummaryKey\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x9b\x01\n\x13SummarySomeResponse\x12-\n\x05value\x18\x01 \x01(\x0b\x32\x1e.arista.imagestatus.v1.Summary\x12+\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12(\n\x04time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"x\n\x14SummaryStreamRequest\x12\x39\n\x11partial_eq_filter\x18\x01 \x03(\x0b\x32\x1e.arista.imagestatus.v1.Summary\x12%\n\x04time\x18\x03 \x01(\x0b\x32\x17.arista.time.TimeBounds\"\x9f\x01\n\x15SummaryStreamResponse\x12-\n\x05value\x18\x01 \x01(\x0b\x32\x1e.arista.imagestatus.v1.Summary\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12-\n\x04type\x18\x03 \x01(\x0e\x32\x1f.arista.subscriptions.Operation\"\xb3\x01\n\x1bSummaryBatchedStreamRequest\x12\x39\n\x11partial_eq_filter\x18\x01 \x03(\x0b\x32\x1e.arista.imagestatus.v1.Summary\x12%\n\x04time\x18\x03 \x01(\x0b\x32\x17.arista.time.TimeBounds\x12\x32\n\x0cmax_messages\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.UInt32Value\"_\n\x1cSummaryBatchedStreamResponse\x12?\n\tresponses\x18\x01 \x03(\x0b\x32,.arista.imagestatus.v1.SummaryStreamResponse2\xdb\x06\n\x0eSummaryService\x12W\n\x06GetOne\x12%.arista.imagestatus.v1.SummaryRequest\x1a&.arista.imagestatus.v1.SummaryResponse\x12\x62\n\x07GetSome\x12).arista.imagestatus.v1.SummarySomeRequest\x1a*.arista.imagestatus.v1.SummarySomeResponse0\x01\x12\x65\n\x06GetAll\x12+.arista.imagestatus.v1.SummaryStreamRequest\x1a,.arista.imagestatus.v1.SummaryStreamResponse0\x01\x12h\n\tSubscribe\x12+.arista.imagestatus.v1.SummaryStreamRequest\x1a,.arista.imagestatus.v1.SummaryStreamResponse0\x01\x12[\n\x07GetMeta\x12+.arista.imagestatus.v1.SummaryStreamRequest\x1a#.arista.imagestatus.v1.MetaResponse\x12\x63\n\rSubscribeMeta\x12+.arista.imagestatus.v1.SummaryStreamRequest\x1a#.arista.imagestatus.v1.MetaResponse0\x01\x12z\n\rGetAllBatched\x12\x32.arista.imagestatus.v1.SummaryBatchedStreamRequest\x1a\x33.arista.imagestatus.v1.SummaryBatchedStreamResponse0\x01\x12}\n\x10SubscribeBatched\x12\x32.arista.imagestatus.v1.SummaryBatchedStreamRequest\x1a\x33.arista.imagestatus.v1.SummaryBatchedStreamResponse0\x01\x42\x82\x01\n\x19\x63om.arista.imagestatus.v1B\x13ImagestatusServicesP\x01ZNgithub.com/aristanetworks/cloudvision-go/api/arista/imagestatus.v1;imagestatusb\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'arista.imagestatus.v1.services.gen_pb2', _globals) if _descriptor._USE_C_DESCRIPTORS == False: _globals['DESCRIPTOR']._options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\031com.arista.imagestatus.v1B\023ImagestatusServicesP\001Z2arista/resources/arista/imagestatus.v1;imagestatus' - _globals['_SUMMARYREQUEST']._serialized_start=207 - _globals['_SUMMARYREQUEST']._serialized_end=313 - _globals['_SUMMARYRESPONSE']._serialized_start=315 - _globals['_SUMMARYRESPONSE']._serialized_end=421 - _globals['_SUMMARYSTREAMREQUEST']._serialized_start=423 - _globals['_SUMMARYSTREAMREQUEST']._serialized_end=543 - _globals['_SUMMARYSTREAMRESPONSE']._serialized_start=546 - _globals['_SUMMARYSTREAMRESPONSE']._serialized_end=705 - _globals['_SUMMARYSERVICE']._serialized_start=708 - _globals['_SUMMARYSERVICE']._serialized_end=1022 + _globals['DESCRIPTOR']._serialized_options = b'\n\031com.arista.imagestatus.v1B\023ImagestatusServicesP\001ZNgithub.com/aristanetworks/cloudvision-go/api/arista/imagestatus.v1;imagestatus' + _globals['_METARESPONSE']._serialized_start=240 + _globals['_METARESPONSE']._serialized_end=388 + _globals['_SUMMARYREQUEST']._serialized_start=390 + _globals['_SUMMARYREQUEST']._serialized_end=496 + _globals['_SUMMARYRESPONSE']._serialized_start=498 + _globals['_SUMMARYRESPONSE']._serialized_end=604 + _globals['_SUMMARYSOMEREQUEST']._serialized_start=606 + _globals['_SUMMARYSOMEREQUEST']._serialized_end=717 + _globals['_SUMMARYSOMERESPONSE']._serialized_start=720 + _globals['_SUMMARYSOMERESPONSE']._serialized_end=875 + _globals['_SUMMARYSTREAMREQUEST']._serialized_start=877 + _globals['_SUMMARYSTREAMREQUEST']._serialized_end=997 + _globals['_SUMMARYSTREAMRESPONSE']._serialized_start=1000 + _globals['_SUMMARYSTREAMRESPONSE']._serialized_end=1159 + _globals['_SUMMARYBATCHEDSTREAMREQUEST']._serialized_start=1162 + _globals['_SUMMARYBATCHEDSTREAMREQUEST']._serialized_end=1341 + _globals['_SUMMARYBATCHEDSTREAMRESPONSE']._serialized_start=1343 + _globals['_SUMMARYBATCHEDSTREAMRESPONSE']._serialized_end=1438 + _globals['_SUMMARYSERVICE']._serialized_start=1441 + _globals['_SUMMARYSERVICE']._serialized_end=2300 # @@protoc_insertion_point(module_scope) diff --git a/arista/imagestatus/v1/services/gen_pb2.pyi b/arista/imagestatus/v1/services/gen_pb2.pyi index eca7b561..39e6c971 100644 --- a/arista/imagestatus/v1/services/gen_pb2.pyi +++ b/arista/imagestatus/v1/services/gen_pb2.pyi @@ -10,11 +10,42 @@ 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 +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 count(self) -> google.protobuf.wrappers_pb2.UInt32Value: + """Count is the number of items present under the conditions of the request.""" + pass + def __init__(self, + *, + time: typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + 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: ... +global___MetaResponse = MetaResponse + class SummaryRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor KEY_FIELD_NUMBER: builtins.int @@ -67,6 +98,58 @@ class SummaryResponse(google.protobuf.message.Message): def ClearField(self, field_name: typing_extensions.Literal["time",b"time","value",b"value"]) -> None: ... global___SummaryResponse = SummaryResponse +class SummarySomeRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEYS_FIELD_NUMBER: builtins.int + TIME_FIELD_NUMBER: builtins.int + @property + def keys(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.imagestatus.v1.imagestatus_pb2.SummaryKey]: ... + @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, + *, + 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: ... +global___SummarySomeRequest = SummarySomeRequest + +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 + @property + def value(self) -> arista.imagestatus.v1.imagestatus_pb2.Summary: + """Value is the value requested. + This structure will be fully-populated as it exists in the datastore. If + optional fields were not given at creation, these fields will be empty or + set to default values. + """ + 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.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: ... +global___SummarySomeResponse = SummarySomeResponse + class SummaryStreamRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int @@ -140,3 +223,71 @@ class SummaryStreamResponse(google.protobuf.message.Message): 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: ... global___SummaryStreamResponse = SummaryStreamResponse + +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 + @property + def partial_eq_filter(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.imagestatus.v1.imagestatus_pb2.Summary]: + """PartialEqFilter provides a way to server-side filter a GetAll/Subscribe. + This requires all provided fields to be equal to the response. + + While transparent to users, this field also allows services to optimize internal + subscriptions if filter(s) are sufficiently specific. + """ + pass + @property + def time(self) -> arista.time.time_pb2.TimeBounds: + """TimeRange allows limiting response data to within a specified time window. + If this field is populated, at least one of the two time fields are required. + + For GetAll, the fields start and end can be used as follows: + + * end: Returns the state of each Summary at end. + * Each Summary response is fully-specified (all fields set). + * start: Returns the state of each Summary at start, followed by updates until now. + * Each Summary response at start is fully-specified, but updates may be partial. + * start and end: Returns the state of each Summary at start, followed by updates + until end. + * Each Summary response at start is fully-specified, but updates until end may + be partial. + + This field is not allowed in the Subscribe RPC. + """ + pass + @property + def max_messages(self) -> google.protobuf.wrappers_pb2.UInt32Value: + """MaxMessages limits the maximum number of messages that can be contained in one batch. + MaxMessages is required to be at least 1. + The maximum number of messages in a batch is min(max_messages, INTERNAL_BATCH_LIMIT) + INTERNAL_BATCH_LIMIT is set based on the maximum message size. + """ + pass + def __init__(self, + *, + 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: ... +global___SummaryBatchedStreamRequest = SummaryBatchedStreamRequest + +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]: + """Values are the values deemed relevant to the initiating request. + The length of this structure is guaranteed to be between (inclusive) 1 and + min(req.max_messages, INTERNAL_BATCH_LIMIT). + """ + pass + def __init__(self, + *, + responses: typing.Optional[typing.Iterable[global___SummaryStreamResponse]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["responses",b"responses"]) -> None: ... +global___SummaryBatchedStreamResponse = SummaryBatchedStreamResponse diff --git a/arista/imagestatus/v1/services/gen_pb2_grpc.py b/arista/imagestatus/v1/services/gen_pb2_grpc.py index 5620c118..5b642ffe 100644 --- a/arista/imagestatus/v1/services/gen_pb2_grpc.py +++ b/arista/imagestatus/v1/services/gen_pb2_grpc.py @@ -19,6 +19,11 @@ def __init__(self, channel): request_serializer=arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummaryRequest.SerializeToString, response_deserializer=arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummaryResponse.FromString, ) + self.GetSome = channel.unary_stream( + '/arista.imagestatus.v1.SummaryService/GetSome', + request_serializer=arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummarySomeRequest.SerializeToString, + response_deserializer=arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummarySomeResponse.FromString, + ) self.GetAll = channel.unary_stream( '/arista.imagestatus.v1.SummaryService/GetAll', request_serializer=arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummaryStreamRequest.SerializeToString, @@ -29,6 +34,26 @@ def __init__(self, channel): request_serializer=arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummaryStreamRequest.SerializeToString, response_deserializer=arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummaryStreamResponse.FromString, ) + self.GetMeta = channel.unary_unary( + '/arista.imagestatus.v1.SummaryService/GetMeta', + request_serializer=arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummaryStreamRequest.SerializeToString, + response_deserializer=arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, + ) + self.SubscribeMeta = channel.unary_stream( + '/arista.imagestatus.v1.SummaryService/SubscribeMeta', + request_serializer=arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummaryStreamRequest.SerializeToString, + response_deserializer=arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, + ) + self.GetAllBatched = channel.unary_stream( + '/arista.imagestatus.v1.SummaryService/GetAllBatched', + request_serializer=arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummaryBatchedStreamRequest.SerializeToString, + response_deserializer=arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummaryBatchedStreamResponse.FromString, + ) + self.SubscribeBatched = channel.unary_stream( + '/arista.imagestatus.v1.SummaryService/SubscribeBatched', + request_serializer=arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummaryBatchedStreamRequest.SerializeToString, + response_deserializer=arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummaryBatchedStreamResponse.FromString, + ) class SummaryServiceServicer(object): @@ -40,6 +65,12 @@ def GetOne(self, request, context): context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') + def GetSome(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + def GetAll(self, request, context): """Missing associated documentation comment in .proto file.""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) @@ -52,6 +83,30 @@ def Subscribe(self, request, context): context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') + def GetMeta(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SubscribeMeta(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetAllBatched(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SubscribeBatched(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + def add_SummaryServiceServicer_to_server(servicer, server): rpc_method_handlers = { @@ -60,6 +115,11 @@ def add_SummaryServiceServicer_to_server(servicer, server): request_deserializer=arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummaryRequest.FromString, response_serializer=arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummaryResponse.SerializeToString, ), + 'GetSome': grpc.unary_stream_rpc_method_handler( + servicer.GetSome, + request_deserializer=arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummarySomeRequest.FromString, + response_serializer=arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummarySomeResponse.SerializeToString, + ), 'GetAll': grpc.unary_stream_rpc_method_handler( servicer.GetAll, request_deserializer=arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummaryStreamRequest.FromString, @@ -70,6 +130,26 @@ def add_SummaryServiceServicer_to_server(servicer, server): request_deserializer=arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummaryStreamRequest.FromString, response_serializer=arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummaryStreamResponse.SerializeToString, ), + 'GetMeta': grpc.unary_unary_rpc_method_handler( + servicer.GetMeta, + request_deserializer=arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummaryStreamRequest.FromString, + response_serializer=arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.MetaResponse.SerializeToString, + ), + 'SubscribeMeta': grpc.unary_stream_rpc_method_handler( + servicer.SubscribeMeta, + request_deserializer=arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummaryStreamRequest.FromString, + response_serializer=arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.MetaResponse.SerializeToString, + ), + 'GetAllBatched': grpc.unary_stream_rpc_method_handler( + servicer.GetAllBatched, + request_deserializer=arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummaryBatchedStreamRequest.FromString, + response_serializer=arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummaryBatchedStreamResponse.SerializeToString, + ), + 'SubscribeBatched': grpc.unary_stream_rpc_method_handler( + servicer.SubscribeBatched, + request_deserializer=arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummaryBatchedStreamRequest.FromString, + response_serializer=arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummaryBatchedStreamResponse.SerializeToString, + ), } generic_handler = grpc.method_handlers_generic_handler( 'arista.imagestatus.v1.SummaryService', rpc_method_handlers) @@ -97,6 +177,23 @@ def GetOne(request, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + @staticmethod + def GetSome(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_stream(request, target, '/arista.imagestatus.v1.SummaryService/GetSome', + arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummarySomeRequest.SerializeToString, + arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummarySomeResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + @staticmethod def GetAll(request, target, @@ -130,3 +227,71 @@ def Subscribe(request, arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummaryStreamResponse.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetMeta(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/arista.imagestatus.v1.SummaryService/GetMeta', + arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummaryStreamRequest.SerializeToString, + arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SubscribeMeta(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_stream(request, target, '/arista.imagestatus.v1.SummaryService/SubscribeMeta', + arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummaryStreamRequest.SerializeToString, + arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetAllBatched(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_stream(request, target, '/arista.imagestatus.v1.SummaryService/GetAllBatched', + arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummaryBatchedStreamRequest.SerializeToString, + arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummaryBatchedStreamResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SubscribeBatched(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_stream(request, target, '/arista.imagestatus.v1.SummaryService/SubscribeBatched', + arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummaryBatchedStreamRequest.SerializeToString, + arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummaryBatchedStreamResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata)