@lansweeper/install-api-grpc 0.0.6 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"file":[{"name":"proto/install.proto","package":"lansweeper.install.v1","messageType":[{"name":"SetPublicKeyRequest","field":[{"name":"site_id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"siteId"},{"name":"install_key","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"installKey"},{"name":"public_key","number":3,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"publicKey"},{"name":"signed_identity","number":4,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"signedIdentity"}]},{"name":"SetPublicKeyResponse"},{"name":"SetHubCertificateRequest","field":[{"name":"site_id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"siteId"},{"name":"install_key","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"installKey"},{"name":"hub_certificate","number":3,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"hubCertificate"}]},{"name":"SetHubCertificateResponse"},{"name":"RemoveHubCertificateRequest","field":[{"name":"site_id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"siteId"},{"name":"install_key","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"installKey"}]},{"name":"RemoveHubCertificateResponse"},{"name":"GetHubCertificatesRequest","field":[{"name":"site_id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"siteId"},{"name":"install_keys","number":2,"label":"LABEL_REPEATED","type":"TYPE_STRING","jsonName":"installKeys"}]},{"name":"GetHubCertificatesResponse","field":[{"name":"hub_certificates","number":1,"label":"LABEL_REPEATED","type":"TYPE_MESSAGE","typeName":".lansweeper.install.v1.HubCertificateInstallation","jsonName":"hubCertificates"}]},{"name":"HubCertificateInstallation","field":[{"name":"install_key","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"installKey"},{"name":"hub_certificate","number":3,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"hubCertificate"}]}],"service":[{"name":"InstallService","method":[{"name":"GetHubCertificates","inputType":".lansweeper.install.v1.GetHubCertificatesRequest","outputType":".lansweeper.install.v1.GetHubCertificatesResponse","options":{}},{"name":"SetPublicKey","inputType":".lansweeper.install.v1.SetPublicKeyRequest","outputType":".lansweeper.install.v1.SetPublicKeyResponse","options":{}},{"name":"SetHubCertificate","inputType":".lansweeper.install.v1.SetHubCertificateRequest","outputType":".lansweeper.install.v1.SetHubCertificateResponse","options":{}},{"name":"RemoveHubCertificate","inputType":".lansweeper.install.v1.RemoveHubCertificateRequest","outputType":".lansweeper.install.v1.RemoveHubCertificateResponse","options":{}}]}],"options":{"goPackage":"./generated-go"},"sourceCodeInfo":{"location":[{"span":[0,0,52,1]},{"path":[12],"span":[0,0,18]},{"path":[2],"span":[2,0,30]},{"path":[8],"span":[4,0,37]},{"path":[8,11],"span":[4,0,37]},{"path":[4,0],"span":[6,0,11,1]},{"path":[4,0,1],"span":[6,8,27]},{"path":[4,0,2,0],"span":[7,2,21]},{"path":[4,0,2,0,5],"span":[7,2,8]},{"path":[4,0,2,0,1],"span":[7,9,16]},{"path":[4,0,2,0,3],"span":[7,19,20]},{"path":[4,0,2,1],"span":[8,2,25]},{"path":[4,0,2,1,5],"span":[8,2,8]},{"path":[4,0,2,1,1],"span":[8,9,20]},{"path":[4,0,2,1,3],"span":[8,23,24]},{"path":[4,0,2,2],"span":[9,2,24]},{"path":[4,0,2,2,5],"span":[9,2,8]},{"path":[4,0,2,2,1],"span":[9,9,19]},{"path":[4,0,2,2,3],"span":[9,22,23]},{"path":[4,0,2,3],"span":[10,2,29]},{"path":[4,0,2,3,5],"span":[10,2,8]},{"path":[4,0,2,3,1],"span":[10,9,24]},{"path":[4,0,2,3,3],"span":[10,27,28]},{"path":[4,1],"span":[13,0,14,1]},{"path":[4,1,1],"span":[13,8,28]},{"path":[4,2],"span":[16,0,20,1]},{"path":[4,2,1],"span":[16,8,32]},{"path":[4,2,2,0],"span":[17,2,21]},{"path":[4,2,2,0,5],"span":[17,2,8]},{"path":[4,2,2,0,1],"span":[17,9,16]},{"path":[4,2,2,0,3],"span":[17,19,20]},{"path":[4,2,2,1],"span":[18,2,25]},{"path":[4,2,2,1,5],"span":[18,2,8]},{"path":[4,2,2,1,1],"span":[18,9,20]},{"path":[4,2,2,1,3],"span":[18,23,24]},{"path":[4,2,2,2],"span":[19,2,29]},{"path":[4,2,2,2,5],"span":[19,2,8]},{"path":[4,2,2,2,1],"span":[19,9,24]},{"path":[4,2,2,2,3],"span":[19,27,28]},{"path":[4,3],"span":[22,0,23,1]},{"path":[4,3,1],"span":[22,8,33]},{"path":[4,4],"span":[25,0,28,1]},{"path":[4,4,1],"span":[25,8,35]},{"path":[4,4,2,0],"span":[26,2,21]},{"path":[4,4,2,0,5],"span":[26,2,8]},{"path":[4,4,2,0,1],"span":[26,9,16]},{"path":[4,4,2,0,3],"span":[26,19,20]},{"path":[4,4,2,1],"span":[27,2,25]},{"path":[4,4,2,1,5],"span":[27,2,8]},{"path":[4,4,2,1,1],"span":[27,9,20]},{"path":[4,4,2,1,3],"span":[27,23,24]},{"path":[4,5],"span":[30,0,31,1]},{"path":[4,5,1],"span":[30,8,36]},{"path":[4,6],"span":[33,0,36,1]},{"path":[4,6,1],"span":[33,8,33]},{"path":[4,6,2,0],"span":[34,2,21]},{"path":[4,6,2,0,5],"span":[34,2,8]},{"path":[4,6,2,0,1],"span":[34,9,16]},{"path":[4,6,2,0,3],"span":[34,19,20]},{"path":[4,6,2,1],"span":[35,2,35]},{"path":[4,6,2,1,4],"span":[35,2,10]},{"path":[4,6,2,1,5],"span":[35,11,17]},{"path":[4,6,2,1,1],"span":[35,18,30]},{"path":[4,6,2,1,3],"span":[35,33,34]},{"path":[4,7],"span":[38,0,40,1]},{"path":[4,7,1],"span":[38,8,34]},{"path":[4,7,2,0],"span":[39,2,59]},{"path":[4,7,2,0,4],"span":[39,2,10]},{"path":[4,7,2,0,6],"span":[39,11,37]},{"path":[4,7,2,0,1],"span":[39,38,54]},{"path":[4,7,2,0,3],"span":[39,57,58]},{"path":[4,8],"span":[42,0,45,1]},{"path":[4,8,1],"span":[42,8,34]},{"path":[4,8,2,0],"span":[43,2,25]},{"path":[4,8,2,0,5],"span":[43,2,8]},{"path":[4,8,2,0,1],"span":[43,9,20]},{"path":[4,8,2,0,3],"span":[43,23,24]},{"path":[4,8,2,1],"span":[44,2,29]},{"path":[4,8,2,1,5],"span":[44,2,8]},{"path":[4,8,2,1,1],"span":[44,9,24]},{"path":[4,8,2,1,3],"span":[44,27,28]},{"path":[6,0],"span":[47,0,52,1]},{"path":[6,0,1],"span":[47,8,22]},{"path":[6,0,2,0],"span":[48,2,91]},{"path":[6,0,2,0,1],"span":[48,6,24]},{"path":[6,0,2,0,2],"span":[48,25,50]},{"path":[6,0,2,0,3],"span":[48,61,87]},{"path":[6,0,2,1],"span":[49,2,73]},{"path":[6,0,2,1,1],"span":[49,6,18]},{"path":[6,0,2,1,2],"span":[49,19,38]},{"path":[6,0,2,1,3],"span":[49,49,69]},{"path":[6,0,2,2],"span":[50,2,88]},{"path":[6,0,2,2,1],"span":[50,6,23]},{"path":[6,0,2,2,2],"span":[50,24,48]},{"path":[6,0,2,2,3],"span":[50,59,84]},{"path":[6,0,2,3],"span":[51,2,97]},{"path":[6,0,2,3,1],"span":[51,6,26]},{"path":[6,0,2,3,2],"span":[51,27,54]},{"path":[6,0,2,3,3],"span":[51,65,93]}]},"syntax":"proto3","bufExtension":{"isImport":false,"isSyntaxUnspecified":false}}]}
1
+ {"file":[{"name":"google/protobuf/timestamp.proto","package":"google.protobuf","messageType":[{"name":"Timestamp","field":[{"name":"seconds","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_INT64","jsonName":"seconds"},{"name":"nanos","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_INT32","jsonName":"nanos"}]}],"options":{"javaPackage":"com.google.protobuf","javaOuterClassname":"TimestampProto","javaMultipleFiles":true,"goPackage":"google.golang.org/protobuf/types/known/timestamppb","ccEnableArenas":true,"objcClassPrefix":"GPB","csharpNamespace":"Google.Protobuf.WellKnownTypes"},"sourceCodeInfo":{"location":[{"span":[30,0,146,1]},{"path":[12],"span":[30,0,18],"leadingDetachedComments":[" Protocol Buffers - Google's data interchange format\n Copyright 2008 Google Inc. All rights reserved.\n https://developers.google.com/protocol-buffers/\n\n Redistribution and use in source and binary forms, with or without\n modification, are permitted provided that the following conditions are\n met:\n\n * Redistributions of source code must retain the above copyright\n notice, this list of conditions and the following disclaimer.\n * Redistributions in binary form must reproduce the above\n copyright notice, this list of conditions and the following disclaimer\n in the documentation and/or other materials provided with the\n distribution.\n * Neither the name of Google Inc. nor the names of its\n contributors may be used to endorse or promote products derived from\n this software without specific prior written permission.\n\n THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n"]},{"path":[2],"span":[32,0,24]},{"path":[8],"span":[34,0,59]},{"path":[8,37],"span":[34,0,59]},{"path":[8],"span":[35,0,31]},{"path":[8,31],"span":[35,0,31]},{"path":[8],"span":[36,0,73]},{"path":[8,11],"span":[36,0,73]},{"path":[8],"span":[37,0,44]},{"path":[8,1],"span":[37,0,44]},{"path":[8],"span":[38,0,47]},{"path":[8,8],"span":[38,0,47]},{"path":[8],"span":[39,0,34]},{"path":[8,10],"span":[39,0,34]},{"path":[8],"span":[40,0,33]},{"path":[8,36],"span":[40,0,33]},{"path":[4,0],"span":[135,0,146,1],"leadingComments":" A Timestamp represents a point in time independent of any time zone or local\n calendar, encoded as a count of seconds and fractions of seconds at\n nanosecond resolution. The count is relative to an epoch at UTC midnight on\n January 1, 1970, in the proleptic Gregorian calendar which extends the\n Gregorian calendar backwards to year one.\n\n All minutes are 60 seconds long. Leap seconds are \"smeared\" so that no leap\n second table is needed for interpretation, using a [24-hour linear\n smear](https://developers.google.com/time/smear).\n\n The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By\n restricting to that range, we ensure that we can convert to and from [RFC\n 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings.\n\n # Examples\n\n Example 1: Compute Timestamp from POSIX `time()`.\n\n Timestamp timestamp;\n timestamp.set_seconds(time(NULL));\n timestamp.set_nanos(0);\n\n Example 2: Compute Timestamp from POSIX `gettimeofday()`.\n\n struct timeval tv;\n gettimeofday(&tv, NULL);\n\n Timestamp timestamp;\n timestamp.set_seconds(tv.tv_sec);\n timestamp.set_nanos(tv.tv_usec * 1000);\n\n Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.\n\n FILETIME ft;\n GetSystemTimeAsFileTime(&ft);\n UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime;\n\n // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z\n // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z.\n Timestamp timestamp;\n timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL));\n timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));\n\n Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.\n\n long millis = System.currentTimeMillis();\n\n Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)\n .setNanos((int) ((millis % 1000) * 1000000)).build();\n\n\n Example 5: Compute Timestamp from Java `Instant.now()`.\n\n Instant now = Instant.now();\n\n Timestamp timestamp =\n Timestamp.newBuilder().setSeconds(now.getEpochSecond())\n .setNanos(now.getNano()).build();\n\n\n Example 6: Compute Timestamp from current time in Python.\n\n timestamp = Timestamp()\n timestamp.GetCurrentTime()\n\n # JSON Mapping\n\n In JSON format, the Timestamp type is encoded as a string in the\n [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the\n format is \"{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z\"\n where {year} is always expressed using four digits while {month}, {day},\n {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional\n seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),\n are optional. The \"Z\" suffix indicates the timezone (\"UTC\"); the timezone\n is required. A proto3 JSON serializer should always use UTC (as indicated by\n \"Z\") when printing the Timestamp type and a proto3 JSON parser should be\n able to accept both UTC and other timezones (as indicated by an offset).\n\n For example, \"2017-01-15T01:30:15.01Z\" encodes 15.01 seconds past\n 01:30 UTC on January 15, 2017.\n\n In JavaScript, one can convert a Date object to this format using the\n standard\n [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)\n method. In Python, a standard `datetime.datetime` object can be converted\n to this format using\n [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with\n the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use\n the Joda Time's [`ISODateTimeFormat.dateTime()`](\n http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D\n ) to obtain a formatter capable of generating timestamps in this format.\n\n\n"},{"path":[4,0,1],"span":[135,8,17]},{"path":[4,0,2,0],"span":[139,2,20],"leadingComments":" Represents seconds of UTC time since Unix epoch\n 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to\n 9999-12-31T23:59:59Z inclusive.\n"},{"path":[4,0,2,0,5],"span":[139,2,7]},{"path":[4,0,2,0,1],"span":[139,8,15]},{"path":[4,0,2,0,3],"span":[139,18,19]},{"path":[4,0,2,1],"span":[145,2,18],"leadingComments":" Non-negative fractions of a second at nanosecond resolution. Negative\n second values with fractions must still have non-negative nanos values\n that count forward in time. Must be from 0 to 999,999,999\n inclusive.\n"},{"path":[4,0,2,1,5],"span":[145,2,7]},{"path":[4,0,2,1,1],"span":[145,8,13]},{"path":[4,0,2,1,3],"span":[145,16,17]}]},"syntax":"proto3","bufExtension":{"isImport":true,"isSyntaxUnspecified":false}},{"name":"proto/install.proto","package":"lansweeper.install.v1","dependency":["google/protobuf/timestamp.proto"],"messageType":[{"name":"SetPublicKeyRequest","field":[{"name":"site_id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"siteId"},{"name":"install_key","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"installKey"},{"name":"public_key","number":3,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"publicKey"},{"name":"signed_identity","number":4,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"signedIdentity"}]},{"name":"SetPublicKeyResponse"},{"name":"SetHubCertificateRequest","field":[{"name":"site_id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"siteId"},{"name":"install_key","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"installKey"},{"name":"hub_certificate","number":3,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"hubCertificate"}]},{"name":"SetHubCertificateResponse"},{"name":"RemoveHubCertificateRequest","field":[{"name":"site_id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"siteId"},{"name":"install_key","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"installKey"}]},{"name":"RemoveHubCertificateResponse"},{"name":"GetHubCertificatesRequest","field":[{"name":"site_id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"siteId"},{"name":"install_keys","number":2,"label":"LABEL_REPEATED","type":"TYPE_STRING","jsonName":"installKeys"}]},{"name":"GetHubCertificatesResponse","field":[{"name":"hub_certificates","number":1,"label":"LABEL_REPEATED","type":"TYPE_MESSAGE","typeName":".lansweeper.install.v1.HubCertificateInstallation","jsonName":"hubCertificates"}]},{"name":"HubCertificateInstallation","field":[{"name":"install_key","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"installKey"},{"name":"hub_certificate","number":3,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"hubCertificate"}]},{"name":"Installation","field":[{"name":"id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"id"},{"name":"site_id","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"siteId"},{"name":"type","number":3,"label":"LABEL_OPTIONAL","type":"TYPE_ENUM","typeName":".lansweeper.install.v1.InstallType","jsonName":"type"},{"name":"state","number":4,"label":"LABEL_OPTIONAL","type":"TYPE_ENUM","typeName":".lansweeper.install.v1.InstallStateValue","jsonName":"state"},{"name":"last_connection","number":6,"label":"LABEL_OPTIONAL","type":"TYPE_MESSAGE","typeName":".google.protobuf.Timestamp","jsonName":"lastConnection"}]},{"name":"GetInstallationsBySiteRequest","field":[{"name":"site_id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"siteId"},{"name":"filter","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_MESSAGE","typeName":".lansweeper.install.v1.GetInstallationsBySiteRequest.Filter","oneofIndex":0,"jsonName":"filter","proto3Optional":true}],"nestedType":[{"name":"Filter","field":[{"name":"type","number":1,"label":"LABEL_REPEATED","type":"TYPE_ENUM","typeName":".lansweeper.install.v1.InstallType","jsonName":"type"},{"name":"last_connection","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_MESSAGE","typeName":".google.protobuf.Timestamp","oneofIndex":0,"jsonName":"lastConnection","proto3Optional":true}],"oneofDecl":[{"name":"_last_connection"}]}],"oneofDecl":[{"name":"_filter"}]},{"name":"GetInstallationsBySiteResponse","field":[{"name":"installations","number":1,"label":"LABEL_REPEATED","type":"TYPE_MESSAGE","typeName":".lansweeper.install.v1.Installation","jsonName":"installations"}]}],"enumType":[{"name":"InstallType","value":[{"name":"IT","number":0},{"name":"OT","number":1},{"name":"IT_AGENT","number":2},{"name":"CLOUD","number":3},{"name":"NETWORK_DISCOVERY","number":4}]},{"name":"InstallStateValue","value":[{"name":"UNESPECIFIED","number":0},{"name":"LINKED","number":1},{"name":"UNLINKED","number":2}]}],"service":[{"name":"InstallService","method":[{"name":"GetHubCertificates","inputType":".lansweeper.install.v1.GetHubCertificatesRequest","outputType":".lansweeper.install.v1.GetHubCertificatesResponse","options":{}},{"name":"SetPublicKey","inputType":".lansweeper.install.v1.SetPublicKeyRequest","outputType":".lansweeper.install.v1.SetPublicKeyResponse","options":{}},{"name":"SetHubCertificate","inputType":".lansweeper.install.v1.SetHubCertificateRequest","outputType":".lansweeper.install.v1.SetHubCertificateResponse","options":{}},{"name":"RemoveHubCertificate","inputType":".lansweeper.install.v1.RemoveHubCertificateRequest","outputType":".lansweeper.install.v1.RemoveHubCertificateResponse","options":{}},{"name":"GetInstallationsBySite","inputType":".lansweeper.install.v1.GetInstallationsBySiteRequest","outputType":".lansweeper.install.v1.GetInstallationsBySiteResponse","options":{}}]}],"options":{"goPackage":"./generated-go"},"sourceCodeInfo":{"location":[{"span":[0,0,90,1]},{"path":[12],"span":[0,0,18]},{"path":[3,0],"span":[2,0,41]},{"path":[2],"span":[4,0,30]},{"path":[8],"span":[6,0,37]},{"path":[8,11],"span":[6,0,37]},{"path":[4,0],"span":[8,0,13,1]},{"path":[4,0,1],"span":[8,8,27]},{"path":[4,0,2,0],"span":[9,2,21]},{"path":[4,0,2,0,5],"span":[9,2,8]},{"path":[4,0,2,0,1],"span":[9,9,16]},{"path":[4,0,2,0,3],"span":[9,19,20]},{"path":[4,0,2,1],"span":[10,2,25]},{"path":[4,0,2,1,5],"span":[10,2,8]},{"path":[4,0,2,1,1],"span":[10,9,20]},{"path":[4,0,2,1,3],"span":[10,23,24]},{"path":[4,0,2,2],"span":[11,2,24]},{"path":[4,0,2,2,5],"span":[11,2,8]},{"path":[4,0,2,2,1],"span":[11,9,19]},{"path":[4,0,2,2,3],"span":[11,22,23]},{"path":[4,0,2,3],"span":[12,2,29]},{"path":[4,0,2,3,5],"span":[12,2,8]},{"path":[4,0,2,3,1],"span":[12,9,24]},{"path":[4,0,2,3,3],"span":[12,27,28]},{"path":[4,1],"span":[15,0,16,1]},{"path":[4,1,1],"span":[15,8,28]},{"path":[4,2],"span":[18,0,22,1]},{"path":[4,2,1],"span":[18,8,32]},{"path":[4,2,2,0],"span":[19,2,21]},{"path":[4,2,2,0,5],"span":[19,2,8]},{"path":[4,2,2,0,1],"span":[19,9,16]},{"path":[4,2,2,0,3],"span":[19,19,20]},{"path":[4,2,2,1],"span":[20,2,25]},{"path":[4,2,2,1,5],"span":[20,2,8]},{"path":[4,2,2,1,1],"span":[20,9,20]},{"path":[4,2,2,1,3],"span":[20,23,24]},{"path":[4,2,2,2],"span":[21,2,29]},{"path":[4,2,2,2,5],"span":[21,2,8]},{"path":[4,2,2,2,1],"span":[21,9,24]},{"path":[4,2,2,2,3],"span":[21,27,28]},{"path":[4,3],"span":[24,0,25,1]},{"path":[4,3,1],"span":[24,8,33]},{"path":[4,4],"span":[27,0,30,1]},{"path":[4,4,1],"span":[27,8,35]},{"path":[4,4,2,0],"span":[28,2,21]},{"path":[4,4,2,0,5],"span":[28,2,8]},{"path":[4,4,2,0,1],"span":[28,9,16]},{"path":[4,4,2,0,3],"span":[28,19,20]},{"path":[4,4,2,1],"span":[29,2,25]},{"path":[4,4,2,1,5],"span":[29,2,8]},{"path":[4,4,2,1,1],"span":[29,9,20]},{"path":[4,4,2,1,3],"span":[29,23,24]},{"path":[4,5],"span":[32,0,33,1]},{"path":[4,5,1],"span":[32,8,36]},{"path":[4,6],"span":[35,0,38,1]},{"path":[4,6,1],"span":[35,8,33]},{"path":[4,6,2,0],"span":[36,2,21]},{"path":[4,6,2,0,5],"span":[36,2,8]},{"path":[4,6,2,0,1],"span":[36,9,16]},{"path":[4,6,2,0,3],"span":[36,19,20]},{"path":[4,6,2,1],"span":[37,2,35]},{"path":[4,6,2,1,4],"span":[37,2,10]},{"path":[4,6,2,1,5],"span":[37,11,17]},{"path":[4,6,2,1,1],"span":[37,18,30]},{"path":[4,6,2,1,3],"span":[37,33,34]},{"path":[4,7],"span":[40,0,42,1]},{"path":[4,7,1],"span":[40,8,34]},{"path":[4,7,2,0],"span":[41,2,59]},{"path":[4,7,2,0,4],"span":[41,2,10]},{"path":[4,7,2,0,6],"span":[41,11,37]},{"path":[4,7,2,0,1],"span":[41,38,54]},{"path":[4,7,2,0,3],"span":[41,57,58]},{"path":[4,8],"span":[44,0,47,1]},{"path":[4,8,1],"span":[44,8,34]},{"path":[4,8,2,0],"span":[45,2,25]},{"path":[4,8,2,0,5],"span":[45,2,8]},{"path":[4,8,2,0,1],"span":[45,9,20]},{"path":[4,8,2,0,3],"span":[45,23,24]},{"path":[4,8,2,1],"span":[46,2,29]},{"path":[4,8,2,1,5],"span":[46,2,8]},{"path":[4,8,2,1,1],"span":[46,9,24]},{"path":[4,8,2,1,3],"span":[46,27,28]},{"path":[5,0],"span":[49,0,55,1]},{"path":[5,0,1],"span":[49,5,16]},{"path":[5,0,2,0],"span":[50,2,7]},{"path":[5,0,2,0,1],"span":[50,2,4]},{"path":[5,0,2,0,2],"span":[50,5,6]},{"path":[5,0,2,1],"span":[51,2,7]},{"path":[5,0,2,1,1],"span":[51,2,4]},{"path":[5,0,2,1,2],"span":[51,5,6]},{"path":[5,0,2,2],"span":[52,2,13]},{"path":[5,0,2,2,1],"span":[52,2,10]},{"path":[5,0,2,2,2],"span":[52,11,12]},{"path":[5,0,2,3],"span":[53,2,10]},{"path":[5,0,2,3,1],"span":[53,2,7]},{"path":[5,0,2,3,2],"span":[53,8,9]},{"path":[5,0,2,4],"span":[54,2,22]},{"path":[5,0,2,4,1],"span":[54,2,19]},{"path":[5,0,2,4,2],"span":[54,20,21]},{"path":[5,1],"span":[57,0,61,1]},{"path":[5,1,1],"span":[57,5,22]},{"path":[5,1,2,0],"span":[58,2,19]},{"path":[5,1,2,0,1],"span":[58,2,14]},{"path":[5,1,2,0,2],"span":[58,17,18]},{"path":[5,1,2,1],"span":[59,2,13]},{"path":[5,1,2,1,1],"span":[59,2,8]},{"path":[5,1,2,1,2],"span":[59,11,12]},{"path":[5,1,2,2],"span":[60,2,15]},{"path":[5,1,2,2,1],"span":[60,2,10]},{"path":[5,1,2,2,2],"span":[60,13,14]},{"path":[4,9],"span":[63,0,69,1]},{"path":[4,9,1],"span":[63,8,20]},{"path":[4,9,2,0],"span":[64,2,16]},{"path":[4,9,2,0,5],"span":[64,2,8]},{"path":[4,9,2,0,1],"span":[64,9,11]},{"path":[4,9,2,0,3],"span":[64,14,15]},{"path":[4,9,2,1],"span":[65,2,21]},{"path":[4,9,2,1,5],"span":[65,2,8]},{"path":[4,9,2,1,1],"span":[65,9,16]},{"path":[4,9,2,1,3],"span":[65,19,20]},{"path":[4,9,2,2],"span":[66,2,23]},{"path":[4,9,2,2,6],"span":[66,2,13]},{"path":[4,9,2,2,1],"span":[66,14,18]},{"path":[4,9,2,2,3],"span":[66,21,22]},{"path":[4,9,2,3],"span":[67,2,30]},{"path":[4,9,2,3,6],"span":[67,2,19]},{"path":[4,9,2,3,1],"span":[67,20,25]},{"path":[4,9,2,3,3],"span":[67,28,29]},{"path":[4,9,2,4],"span":[68,2,48]},{"path":[4,9,2,4,6],"span":[68,2,27]},{"path":[4,9,2,4,1],"span":[68,28,43]},{"path":[4,9,2,4,3],"span":[68,46,47]},{"path":[4,10],"span":[71,0,78,1]},{"path":[4,10,1],"span":[71,8,37]},{"path":[4,10,2,0],"span":[72,2,21]},{"path":[4,10,2,0,5],"span":[72,2,8]},{"path":[4,10,2,0,1],"span":[72,9,16]},{"path":[4,10,2,0,3],"span":[72,19,20]},{"path":[4,10,3,0],"span":[73,2,76,3]},{"path":[4,10,3,0,1],"span":[73,10,16]},{"path":[4,10,3,0,2,0],"span":[74,4,32]},{"path":[4,10,3,0,2,0,4],"span":[74,4,12]},{"path":[4,10,3,0,2,0,6],"span":[74,13,24]},{"path":[4,10,3,0,2,0,1],"span":[74,25,29]},{"path":[4,10,3,0,2,0,3],"span":[74,30,31]},{"path":[4,10,3,0,2,1],"span":[75,4,59]},{"path":[4,10,3,0,2,1,4],"span":[75,4,12]},{"path":[4,10,3,0,2,1,6],"span":[75,13,38]},{"path":[4,10,3,0,2,1,1],"span":[75,39,54]},{"path":[4,10,3,0,2,1,3],"span":[75,57,58]},{"path":[4,10,2,1],"span":[77,2,29]},{"path":[4,10,2,1,4],"span":[77,2,10]},{"path":[4,10,2,1,6],"span":[77,11,17]},{"path":[4,10,2,1,1],"span":[77,18,24]},{"path":[4,10,2,1,3],"span":[77,27,28]},{"path":[4,11],"span":[80,0,82,1]},{"path":[4,11,1],"span":[80,8,38]},{"path":[4,11,2,0],"span":[81,2,42]},{"path":[4,11,2,0,4],"span":[81,2,10]},{"path":[4,11,2,0,6],"span":[81,11,23]},{"path":[4,11,2,0,1],"span":[81,24,37]},{"path":[4,11,2,0,3],"span":[81,40,41]},{"path":[6,0],"span":[84,0,90,1]},{"path":[6,0,1],"span":[84,8,22]},{"path":[6,0,2,0],"span":[85,2,91]},{"path":[6,0,2,0,1],"span":[85,6,24]},{"path":[6,0,2,0,2],"span":[85,25,50]},{"path":[6,0,2,0,3],"span":[85,61,87]},{"path":[6,0,2,1],"span":[86,2,73]},{"path":[6,0,2,1,1],"span":[86,6,18]},{"path":[6,0,2,1,2],"span":[86,19,38]},{"path":[6,0,2,1,3],"span":[86,49,69]},{"path":[6,0,2,2],"span":[87,2,88]},{"path":[6,0,2,2,1],"span":[87,6,23]},{"path":[6,0,2,2,2],"span":[87,24,48]},{"path":[6,0,2,2,3],"span":[87,59,84]},{"path":[6,0,2,3],"span":[88,2,97]},{"path":[6,0,2,3,1],"span":[88,6,26]},{"path":[6,0,2,3,2],"span":[88,27,54]},{"path":[6,0,2,3,3],"span":[88,65,93]},{"path":[6,0,2,4],"span":[89,2,103]},{"path":[6,0,2,4,1],"span":[89,6,28]},{"path":[6,0,2,4,2],"span":[89,29,58]},{"path":[6,0,2,4,3],"span":[89,69,99]}]},"syntax":"proto3","bufExtension":{"isImport":false,"isSyntaxUnspecified":false}}]}
@@ -6,12 +6,14 @@
6
6
 
7
7
  import * as grpc from "@grpc/grpc-js";
8
8
  import * as install_pb from "./install_pb";
9
+ import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb";
9
10
 
10
11
  interface IInstallServiceService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
11
12
  getHubCertificates: IInstallServiceService_IGetHubCertificates;
12
13
  setPublicKey: IInstallServiceService_ISetPublicKey;
13
14
  setHubCertificate: IInstallServiceService_ISetHubCertificate;
14
15
  removeHubCertificate: IInstallServiceService_IRemoveHubCertificate;
16
+ getInstallationsBySite: IInstallServiceService_IGetInstallationsBySite;
15
17
  }
16
18
 
17
19
  interface IInstallServiceService_IGetHubCertificates extends grpc.MethodDefinition<install_pb.GetHubCertificatesRequest, install_pb.GetHubCertificatesResponse> {
@@ -50,6 +52,15 @@ interface IInstallServiceService_IRemoveHubCertificate extends grpc.MethodDefini
50
52
  responseSerialize: grpc.serialize<install_pb.RemoveHubCertificateResponse>;
51
53
  responseDeserialize: grpc.deserialize<install_pb.RemoveHubCertificateResponse>;
52
54
  }
55
+ interface IInstallServiceService_IGetInstallationsBySite extends grpc.MethodDefinition<install_pb.GetInstallationsBySiteRequest, install_pb.GetInstallationsBySiteResponse> {
56
+ path: "/lansweeper.install.v1.InstallService/GetInstallationsBySite";
57
+ requestStream: false;
58
+ responseStream: false;
59
+ requestSerialize: grpc.serialize<install_pb.GetInstallationsBySiteRequest>;
60
+ requestDeserialize: grpc.deserialize<install_pb.GetInstallationsBySiteRequest>;
61
+ responseSerialize: grpc.serialize<install_pb.GetInstallationsBySiteResponse>;
62
+ responseDeserialize: grpc.deserialize<install_pb.GetInstallationsBySiteResponse>;
63
+ }
53
64
 
54
65
  export const InstallServiceService: IInstallServiceService;
55
66
 
@@ -58,6 +69,7 @@ export interface IInstallServiceServer extends grpc.UntypedServiceImplementation
58
69
  setPublicKey: grpc.handleUnaryCall<install_pb.SetPublicKeyRequest, install_pb.SetPublicKeyResponse>;
59
70
  setHubCertificate: grpc.handleUnaryCall<install_pb.SetHubCertificateRequest, install_pb.SetHubCertificateResponse>;
60
71
  removeHubCertificate: grpc.handleUnaryCall<install_pb.RemoveHubCertificateRequest, install_pb.RemoveHubCertificateResponse>;
72
+ getInstallationsBySite: grpc.handleUnaryCall<install_pb.GetInstallationsBySiteRequest, install_pb.GetInstallationsBySiteResponse>;
61
73
  }
62
74
 
63
75
  export interface IInstallServiceClient {
@@ -73,6 +85,9 @@ export interface IInstallServiceClient {
73
85
  removeHubCertificate(request: install_pb.RemoveHubCertificateRequest, callback: (error: grpc.ServiceError | null, response: install_pb.RemoveHubCertificateResponse) => void): grpc.ClientUnaryCall;
74
86
  removeHubCertificate(request: install_pb.RemoveHubCertificateRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: install_pb.RemoveHubCertificateResponse) => void): grpc.ClientUnaryCall;
75
87
  removeHubCertificate(request: install_pb.RemoveHubCertificateRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: install_pb.RemoveHubCertificateResponse) => void): grpc.ClientUnaryCall;
88
+ getInstallationsBySite(request: install_pb.GetInstallationsBySiteRequest, callback: (error: grpc.ServiceError | null, response: install_pb.GetInstallationsBySiteResponse) => void): grpc.ClientUnaryCall;
89
+ getInstallationsBySite(request: install_pb.GetInstallationsBySiteRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: install_pb.GetInstallationsBySiteResponse) => void): grpc.ClientUnaryCall;
90
+ getInstallationsBySite(request: install_pb.GetInstallationsBySiteRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: install_pb.GetInstallationsBySiteResponse) => void): grpc.ClientUnaryCall;
76
91
  }
77
92
 
78
93
  export class InstallServiceClient extends grpc.Client implements IInstallServiceClient {
@@ -89,4 +104,7 @@ export class InstallServiceClient extends grpc.Client implements IInstallService
89
104
  public removeHubCertificate(request: install_pb.RemoveHubCertificateRequest, callback: (error: grpc.ServiceError | null, response: install_pb.RemoveHubCertificateResponse) => void): grpc.ClientUnaryCall;
90
105
  public removeHubCertificate(request: install_pb.RemoveHubCertificateRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: install_pb.RemoveHubCertificateResponse) => void): grpc.ClientUnaryCall;
91
106
  public removeHubCertificate(request: install_pb.RemoveHubCertificateRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: install_pb.RemoveHubCertificateResponse) => void): grpc.ClientUnaryCall;
107
+ public getInstallationsBySite(request: install_pb.GetInstallationsBySiteRequest, callback: (error: grpc.ServiceError | null, response: install_pb.GetInstallationsBySiteResponse) => void): grpc.ClientUnaryCall;
108
+ public getInstallationsBySite(request: install_pb.GetInstallationsBySiteRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: install_pb.GetInstallationsBySiteResponse) => void): grpc.ClientUnaryCall;
109
+ public getInstallationsBySite(request: install_pb.GetInstallationsBySiteRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: install_pb.GetInstallationsBySiteResponse) => void): grpc.ClientUnaryCall;
92
110
  }
@@ -3,6 +3,7 @@
3
3
  'use strict';
4
4
  var grpc = require('@grpc/grpc-js');
5
5
  var install_pb = require('./install_pb.js');
6
+ var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
6
7
 
7
8
  function serialize_lansweeper_install_v1_GetHubCertificatesRequest(arg) {
8
9
  if (!(arg instanceof install_pb.GetHubCertificatesRequest)) {
@@ -26,6 +27,28 @@ function deserialize_lansweeper_install_v1_GetHubCertificatesResponse(buffer_arg
26
27
  return install_pb.GetHubCertificatesResponse.deserializeBinary(new Uint8Array(buffer_arg));
27
28
  }
28
29
 
30
+ function serialize_lansweeper_install_v1_GetInstallationsBySiteRequest(arg) {
31
+ if (!(arg instanceof install_pb.GetInstallationsBySiteRequest)) {
32
+ throw new Error('Expected argument of type lansweeper.install.v1.GetInstallationsBySiteRequest');
33
+ }
34
+ return Buffer.from(arg.serializeBinary());
35
+ }
36
+
37
+ function deserialize_lansweeper_install_v1_GetInstallationsBySiteRequest(buffer_arg) {
38
+ return install_pb.GetInstallationsBySiteRequest.deserializeBinary(new Uint8Array(buffer_arg));
39
+ }
40
+
41
+ function serialize_lansweeper_install_v1_GetInstallationsBySiteResponse(arg) {
42
+ if (!(arg instanceof install_pb.GetInstallationsBySiteResponse)) {
43
+ throw new Error('Expected argument of type lansweeper.install.v1.GetInstallationsBySiteResponse');
44
+ }
45
+ return Buffer.from(arg.serializeBinary());
46
+ }
47
+
48
+ function deserialize_lansweeper_install_v1_GetInstallationsBySiteResponse(buffer_arg) {
49
+ return install_pb.GetInstallationsBySiteResponse.deserializeBinary(new Uint8Array(buffer_arg));
50
+ }
51
+
29
52
  function serialize_lansweeper_install_v1_RemoveHubCertificateRequest(arg) {
30
53
  if (!(arg instanceof install_pb.RemoveHubCertificateRequest)) {
31
54
  throw new Error('Expected argument of type lansweeper.install.v1.RemoveHubCertificateRequest');
@@ -138,6 +161,17 @@ var InstallServiceService = exports.InstallServiceService = {
138
161
  responseSerialize: serialize_lansweeper_install_v1_RemoveHubCertificateResponse,
139
162
  responseDeserialize: deserialize_lansweeper_install_v1_RemoveHubCertificateResponse,
140
163
  },
164
+ getInstallationsBySite: {
165
+ path: '/lansweeper.install.v1.InstallService/GetInstallationsBySite',
166
+ requestStream: false,
167
+ responseStream: false,
168
+ requestType: install_pb.GetInstallationsBySiteRequest,
169
+ responseType: install_pb.GetInstallationsBySiteResponse,
170
+ requestSerialize: serialize_lansweeper_install_v1_GetInstallationsBySiteRequest,
171
+ requestDeserialize: deserialize_lansweeper_install_v1_GetInstallationsBySiteRequest,
172
+ responseSerialize: serialize_lansweeper_install_v1_GetInstallationsBySiteResponse,
173
+ responseDeserialize: deserialize_lansweeper_install_v1_GetInstallationsBySiteResponse,
174
+ },
141
175
  };
142
176
 
143
177
  exports.InstallServiceClient = grpc.makeGenericClientConstructor(InstallServiceService);
@@ -5,6 +5,7 @@
5
5
  /* eslint-disable */
6
6
 
7
7
  import * as jspb from "google-protobuf";
8
+ import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb";
8
9
 
9
10
  export class SetPublicKeyRequest extends jspb.Message {
10
11
  getSiteId(): string;
@@ -204,3 +205,130 @@ export namespace HubCertificateInstallation {
204
205
  hubCertificate: string,
205
206
  }
206
207
  }
208
+
209
+ export class Installation extends jspb.Message {
210
+ getId(): string;
211
+ setId(value: string): Installation;
212
+ getSiteId(): string;
213
+ setSiteId(value: string): Installation;
214
+ getType(): InstallType;
215
+ setType(value: InstallType): Installation;
216
+ getState(): InstallStateValue;
217
+ setState(value: InstallStateValue): Installation;
218
+
219
+ hasLastConnection(): boolean;
220
+ clearLastConnection(): void;
221
+ getLastConnection(): google_protobuf_timestamp_pb.Timestamp | undefined;
222
+ setLastConnection(value?: google_protobuf_timestamp_pb.Timestamp): Installation;
223
+
224
+ serializeBinary(): Uint8Array;
225
+ toObject(includeInstance?: boolean): Installation.AsObject;
226
+ static toObject(includeInstance: boolean, msg: Installation): Installation.AsObject;
227
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
228
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
229
+ static serializeBinaryToWriter(message: Installation, writer: jspb.BinaryWriter): void;
230
+ static deserializeBinary(bytes: Uint8Array): Installation;
231
+ static deserializeBinaryFromReader(message: Installation, reader: jspb.BinaryReader): Installation;
232
+ }
233
+
234
+ export namespace Installation {
235
+ export type AsObject = {
236
+ id: string,
237
+ siteId: string,
238
+ type: InstallType,
239
+ state: InstallStateValue,
240
+ lastConnection?: google_protobuf_timestamp_pb.Timestamp.AsObject,
241
+ }
242
+ }
243
+
244
+ export class GetInstallationsBySiteRequest extends jspb.Message {
245
+ getSiteId(): string;
246
+ setSiteId(value: string): GetInstallationsBySiteRequest;
247
+
248
+ hasFilter(): boolean;
249
+ clearFilter(): void;
250
+ getFilter(): GetInstallationsBySiteRequest.Filter | undefined;
251
+ setFilter(value?: GetInstallationsBySiteRequest.Filter): GetInstallationsBySiteRequest;
252
+
253
+ serializeBinary(): Uint8Array;
254
+ toObject(includeInstance?: boolean): GetInstallationsBySiteRequest.AsObject;
255
+ static toObject(includeInstance: boolean, msg: GetInstallationsBySiteRequest): GetInstallationsBySiteRequest.AsObject;
256
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
257
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
258
+ static serializeBinaryToWriter(message: GetInstallationsBySiteRequest, writer: jspb.BinaryWriter): void;
259
+ static deserializeBinary(bytes: Uint8Array): GetInstallationsBySiteRequest;
260
+ static deserializeBinaryFromReader(message: GetInstallationsBySiteRequest, reader: jspb.BinaryReader): GetInstallationsBySiteRequest;
261
+ }
262
+
263
+ export namespace GetInstallationsBySiteRequest {
264
+ export type AsObject = {
265
+ siteId: string,
266
+ filter?: GetInstallationsBySiteRequest.Filter.AsObject,
267
+ }
268
+
269
+
270
+ export class Filter extends jspb.Message {
271
+ clearTypeList(): void;
272
+ getTypeList(): Array<InstallType>;
273
+ setTypeList(value: Array<InstallType>): Filter;
274
+ addType(value: InstallType, index?: number): InstallType;
275
+
276
+ hasLastConnection(): boolean;
277
+ clearLastConnection(): void;
278
+ getLastConnection(): google_protobuf_timestamp_pb.Timestamp | undefined;
279
+ setLastConnection(value?: google_protobuf_timestamp_pb.Timestamp): Filter;
280
+
281
+ serializeBinary(): Uint8Array;
282
+ toObject(includeInstance?: boolean): Filter.AsObject;
283
+ static toObject(includeInstance: boolean, msg: Filter): Filter.AsObject;
284
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
285
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
286
+ static serializeBinaryToWriter(message: Filter, writer: jspb.BinaryWriter): void;
287
+ static deserializeBinary(bytes: Uint8Array): Filter;
288
+ static deserializeBinaryFromReader(message: Filter, reader: jspb.BinaryReader): Filter;
289
+ }
290
+
291
+ export namespace Filter {
292
+ export type AsObject = {
293
+ typeList: Array<InstallType>,
294
+ lastConnection?: google_protobuf_timestamp_pb.Timestamp.AsObject,
295
+ }
296
+ }
297
+
298
+ }
299
+
300
+ export class GetInstallationsBySiteResponse extends jspb.Message {
301
+ clearInstallationsList(): void;
302
+ getInstallationsList(): Array<Installation>;
303
+ setInstallationsList(value: Array<Installation>): GetInstallationsBySiteResponse;
304
+ addInstallations(value?: Installation, index?: number): Installation;
305
+
306
+ serializeBinary(): Uint8Array;
307
+ toObject(includeInstance?: boolean): GetInstallationsBySiteResponse.AsObject;
308
+ static toObject(includeInstance: boolean, msg: GetInstallationsBySiteResponse): GetInstallationsBySiteResponse.AsObject;
309
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
310
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
311
+ static serializeBinaryToWriter(message: GetInstallationsBySiteResponse, writer: jspb.BinaryWriter): void;
312
+ static deserializeBinary(bytes: Uint8Array): GetInstallationsBySiteResponse;
313
+ static deserializeBinaryFromReader(message: GetInstallationsBySiteResponse, reader: jspb.BinaryReader): GetInstallationsBySiteResponse;
314
+ }
315
+
316
+ export namespace GetInstallationsBySiteResponse {
317
+ export type AsObject = {
318
+ installationsList: Array<Installation.AsObject>,
319
+ }
320
+ }
321
+
322
+ export enum InstallType {
323
+ IT = 0,
324
+ OT = 1,
325
+ IT_AGENT = 2,
326
+ CLOUD = 3,
327
+ NETWORK_DISCOVERY = 4,
328
+ }
329
+
330
+ export enum InstallStateValue {
331
+ UNESPECIFIED = 0,
332
+ LINKED = 1,
333
+ UNLINKED = 2,
334
+ }
@@ -21,9 +21,17 @@ var global = (function() {
21
21
  return Function('return this')();
22
22
  }.call(null));
23
23
 
24
+ var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
25
+ goog.object.extend(proto, google_protobuf_timestamp_pb);
24
26
  goog.exportSymbol('proto.lansweeper.install.v1.GetHubCertificatesRequest', null, global);
25
27
  goog.exportSymbol('proto.lansweeper.install.v1.GetHubCertificatesResponse', null, global);
28
+ goog.exportSymbol('proto.lansweeper.install.v1.GetInstallationsBySiteRequest', null, global);
29
+ goog.exportSymbol('proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter', null, global);
30
+ goog.exportSymbol('proto.lansweeper.install.v1.GetInstallationsBySiteResponse', null, global);
26
31
  goog.exportSymbol('proto.lansweeper.install.v1.HubCertificateInstallation', null, global);
32
+ goog.exportSymbol('proto.lansweeper.install.v1.InstallStateValue', null, global);
33
+ goog.exportSymbol('proto.lansweeper.install.v1.InstallType', null, global);
34
+ goog.exportSymbol('proto.lansweeper.install.v1.Installation', null, global);
27
35
  goog.exportSymbol('proto.lansweeper.install.v1.RemoveHubCertificateRequest', null, global);
28
36
  goog.exportSymbol('proto.lansweeper.install.v1.RemoveHubCertificateResponse', null, global);
29
37
  goog.exportSymbol('proto.lansweeper.install.v1.SetHubCertificateRequest', null, global);
@@ -219,6 +227,90 @@ if (goog.DEBUG && !COMPILED) {
219
227
  */
220
228
  proto.lansweeper.install.v1.HubCertificateInstallation.displayName = 'proto.lansweeper.install.v1.HubCertificateInstallation';
221
229
  }
230
+ /**
231
+ * Generated by JsPbCodeGenerator.
232
+ * @param {Array=} opt_data Optional initial data array, typically from a
233
+ * server response, or constructed directly in Javascript. The array is used
234
+ * in place and becomes part of the constructed object. It is not cloned.
235
+ * If no data is provided, the constructed object will be empty, but still
236
+ * valid.
237
+ * @extends {jspb.Message}
238
+ * @constructor
239
+ */
240
+ proto.lansweeper.install.v1.Installation = function(opt_data) {
241
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
242
+ };
243
+ goog.inherits(proto.lansweeper.install.v1.Installation, jspb.Message);
244
+ if (goog.DEBUG && !COMPILED) {
245
+ /**
246
+ * @public
247
+ * @override
248
+ */
249
+ proto.lansweeper.install.v1.Installation.displayName = 'proto.lansweeper.install.v1.Installation';
250
+ }
251
+ /**
252
+ * Generated by JsPbCodeGenerator.
253
+ * @param {Array=} opt_data Optional initial data array, typically from a
254
+ * server response, or constructed directly in Javascript. The array is used
255
+ * in place and becomes part of the constructed object. It is not cloned.
256
+ * If no data is provided, the constructed object will be empty, but still
257
+ * valid.
258
+ * @extends {jspb.Message}
259
+ * @constructor
260
+ */
261
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest = function(opt_data) {
262
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
263
+ };
264
+ goog.inherits(proto.lansweeper.install.v1.GetInstallationsBySiteRequest, jspb.Message);
265
+ if (goog.DEBUG && !COMPILED) {
266
+ /**
267
+ * @public
268
+ * @override
269
+ */
270
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.displayName = 'proto.lansweeper.install.v1.GetInstallationsBySiteRequest';
271
+ }
272
+ /**
273
+ * Generated by JsPbCodeGenerator.
274
+ * @param {Array=} opt_data Optional initial data array, typically from a
275
+ * server response, or constructed directly in Javascript. The array is used
276
+ * in place and becomes part of the constructed object. It is not cloned.
277
+ * If no data is provided, the constructed object will be empty, but still
278
+ * valid.
279
+ * @extends {jspb.Message}
280
+ * @constructor
281
+ */
282
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter = function(opt_data) {
283
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.repeatedFields_, null);
284
+ };
285
+ goog.inherits(proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter, jspb.Message);
286
+ if (goog.DEBUG && !COMPILED) {
287
+ /**
288
+ * @public
289
+ * @override
290
+ */
291
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.displayName = 'proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter';
292
+ }
293
+ /**
294
+ * Generated by JsPbCodeGenerator.
295
+ * @param {Array=} opt_data Optional initial data array, typically from a
296
+ * server response, or constructed directly in Javascript. The array is used
297
+ * in place and becomes part of the constructed object. It is not cloned.
298
+ * If no data is provided, the constructed object will be empty, but still
299
+ * valid.
300
+ * @extends {jspb.Message}
301
+ * @constructor
302
+ */
303
+ proto.lansweeper.install.v1.GetInstallationsBySiteResponse = function(opt_data) {
304
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.lansweeper.install.v1.GetInstallationsBySiteResponse.repeatedFields_, null);
305
+ };
306
+ goog.inherits(proto.lansweeper.install.v1.GetInstallationsBySiteResponse, jspb.Message);
307
+ if (goog.DEBUG && !COMPILED) {
308
+ /**
309
+ * @public
310
+ * @override
311
+ */
312
+ proto.lansweeper.install.v1.GetInstallationsBySiteResponse.displayName = 'proto.lansweeper.install.v1.GetInstallationsBySiteResponse';
313
+ }
222
314
 
223
315
 
224
316
 
@@ -1598,4 +1690,845 @@ proto.lansweeper.install.v1.HubCertificateInstallation.prototype.setHubCertifica
1598
1690
  };
1599
1691
 
1600
1692
 
1693
+
1694
+
1695
+
1696
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1697
+ /**
1698
+ * Creates an object representation of this proto.
1699
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1700
+ * Optional fields that are not set will be set to undefined.
1701
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1702
+ * For the list of reserved names please see:
1703
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1704
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1705
+ * JSPB instance for transitional soy proto support:
1706
+ * http://goto/soy-param-migration
1707
+ * @return {!Object}
1708
+ */
1709
+ proto.lansweeper.install.v1.Installation.prototype.toObject = function(opt_includeInstance) {
1710
+ return proto.lansweeper.install.v1.Installation.toObject(opt_includeInstance, this);
1711
+ };
1712
+
1713
+
1714
+ /**
1715
+ * Static version of the {@see toObject} method.
1716
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1717
+ * the JSPB instance for transitional soy proto support:
1718
+ * http://goto/soy-param-migration
1719
+ * @param {!proto.lansweeper.install.v1.Installation} msg The msg instance to transform.
1720
+ * @return {!Object}
1721
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1722
+ */
1723
+ proto.lansweeper.install.v1.Installation.toObject = function(includeInstance, msg) {
1724
+ var f, obj = {
1725
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
1726
+ siteId: jspb.Message.getFieldWithDefault(msg, 2, ""),
1727
+ type: jspb.Message.getFieldWithDefault(msg, 3, 0),
1728
+ state: jspb.Message.getFieldWithDefault(msg, 4, 0),
1729
+ lastConnection: (f = msg.getLastConnection()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
1730
+ };
1731
+
1732
+ if (includeInstance) {
1733
+ obj.$jspbMessageInstance = msg;
1734
+ }
1735
+ return obj;
1736
+ };
1737
+ }
1738
+
1739
+
1740
+ /**
1741
+ * Deserializes binary data (in protobuf wire format).
1742
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1743
+ * @return {!proto.lansweeper.install.v1.Installation}
1744
+ */
1745
+ proto.lansweeper.install.v1.Installation.deserializeBinary = function(bytes) {
1746
+ var reader = new jspb.BinaryReader(bytes);
1747
+ var msg = new proto.lansweeper.install.v1.Installation;
1748
+ return proto.lansweeper.install.v1.Installation.deserializeBinaryFromReader(msg, reader);
1749
+ };
1750
+
1751
+
1752
+ /**
1753
+ * Deserializes binary data (in protobuf wire format) from the
1754
+ * given reader into the given message object.
1755
+ * @param {!proto.lansweeper.install.v1.Installation} msg The message object to deserialize into.
1756
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1757
+ * @return {!proto.lansweeper.install.v1.Installation}
1758
+ */
1759
+ proto.lansweeper.install.v1.Installation.deserializeBinaryFromReader = function(msg, reader) {
1760
+ while (reader.nextField()) {
1761
+ if (reader.isEndGroup()) {
1762
+ break;
1763
+ }
1764
+ var field = reader.getFieldNumber();
1765
+ switch (field) {
1766
+ case 1:
1767
+ var value = /** @type {string} */ (reader.readString());
1768
+ msg.setId(value);
1769
+ break;
1770
+ case 2:
1771
+ var value = /** @type {string} */ (reader.readString());
1772
+ msg.setSiteId(value);
1773
+ break;
1774
+ case 3:
1775
+ var value = /** @type {!proto.lansweeper.install.v1.InstallType} */ (reader.readEnum());
1776
+ msg.setType(value);
1777
+ break;
1778
+ case 4:
1779
+ var value = /** @type {!proto.lansweeper.install.v1.InstallStateValue} */ (reader.readEnum());
1780
+ msg.setState(value);
1781
+ break;
1782
+ case 6:
1783
+ var value = new google_protobuf_timestamp_pb.Timestamp;
1784
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
1785
+ msg.setLastConnection(value);
1786
+ break;
1787
+ default:
1788
+ reader.skipField();
1789
+ break;
1790
+ }
1791
+ }
1792
+ return msg;
1793
+ };
1794
+
1795
+
1796
+ /**
1797
+ * Serializes the message to binary data (in protobuf wire format).
1798
+ * @return {!Uint8Array}
1799
+ */
1800
+ proto.lansweeper.install.v1.Installation.prototype.serializeBinary = function() {
1801
+ var writer = new jspb.BinaryWriter();
1802
+ proto.lansweeper.install.v1.Installation.serializeBinaryToWriter(this, writer);
1803
+ return writer.getResultBuffer();
1804
+ };
1805
+
1806
+
1807
+ /**
1808
+ * Serializes the given message to binary data (in protobuf wire
1809
+ * format), writing to the given BinaryWriter.
1810
+ * @param {!proto.lansweeper.install.v1.Installation} message
1811
+ * @param {!jspb.BinaryWriter} writer
1812
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1813
+ */
1814
+ proto.lansweeper.install.v1.Installation.serializeBinaryToWriter = function(message, writer) {
1815
+ var f = undefined;
1816
+ f = message.getId();
1817
+ if (f.length > 0) {
1818
+ writer.writeString(
1819
+ 1,
1820
+ f
1821
+ );
1822
+ }
1823
+ f = message.getSiteId();
1824
+ if (f.length > 0) {
1825
+ writer.writeString(
1826
+ 2,
1827
+ f
1828
+ );
1829
+ }
1830
+ f = message.getType();
1831
+ if (f !== 0.0) {
1832
+ writer.writeEnum(
1833
+ 3,
1834
+ f
1835
+ );
1836
+ }
1837
+ f = message.getState();
1838
+ if (f !== 0.0) {
1839
+ writer.writeEnum(
1840
+ 4,
1841
+ f
1842
+ );
1843
+ }
1844
+ f = message.getLastConnection();
1845
+ if (f != null) {
1846
+ writer.writeMessage(
1847
+ 6,
1848
+ f,
1849
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
1850
+ );
1851
+ }
1852
+ };
1853
+
1854
+
1855
+ /**
1856
+ * optional string id = 1;
1857
+ * @return {string}
1858
+ */
1859
+ proto.lansweeper.install.v1.Installation.prototype.getId = function() {
1860
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1861
+ };
1862
+
1863
+
1864
+ /**
1865
+ * @param {string} value
1866
+ * @return {!proto.lansweeper.install.v1.Installation} returns this
1867
+ */
1868
+ proto.lansweeper.install.v1.Installation.prototype.setId = function(value) {
1869
+ return jspb.Message.setProto3StringField(this, 1, value);
1870
+ };
1871
+
1872
+
1873
+ /**
1874
+ * optional string site_id = 2;
1875
+ * @return {string}
1876
+ */
1877
+ proto.lansweeper.install.v1.Installation.prototype.getSiteId = function() {
1878
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1879
+ };
1880
+
1881
+
1882
+ /**
1883
+ * @param {string} value
1884
+ * @return {!proto.lansweeper.install.v1.Installation} returns this
1885
+ */
1886
+ proto.lansweeper.install.v1.Installation.prototype.setSiteId = function(value) {
1887
+ return jspb.Message.setProto3StringField(this, 2, value);
1888
+ };
1889
+
1890
+
1891
+ /**
1892
+ * optional InstallType type = 3;
1893
+ * @return {!proto.lansweeper.install.v1.InstallType}
1894
+ */
1895
+ proto.lansweeper.install.v1.Installation.prototype.getType = function() {
1896
+ return /** @type {!proto.lansweeper.install.v1.InstallType} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
1897
+ };
1898
+
1899
+
1900
+ /**
1901
+ * @param {!proto.lansweeper.install.v1.InstallType} value
1902
+ * @return {!proto.lansweeper.install.v1.Installation} returns this
1903
+ */
1904
+ proto.lansweeper.install.v1.Installation.prototype.setType = function(value) {
1905
+ return jspb.Message.setProto3EnumField(this, 3, value);
1906
+ };
1907
+
1908
+
1909
+ /**
1910
+ * optional InstallStateValue state = 4;
1911
+ * @return {!proto.lansweeper.install.v1.InstallStateValue}
1912
+ */
1913
+ proto.lansweeper.install.v1.Installation.prototype.getState = function() {
1914
+ return /** @type {!proto.lansweeper.install.v1.InstallStateValue} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
1915
+ };
1916
+
1917
+
1918
+ /**
1919
+ * @param {!proto.lansweeper.install.v1.InstallStateValue} value
1920
+ * @return {!proto.lansweeper.install.v1.Installation} returns this
1921
+ */
1922
+ proto.lansweeper.install.v1.Installation.prototype.setState = function(value) {
1923
+ return jspb.Message.setProto3EnumField(this, 4, value);
1924
+ };
1925
+
1926
+
1927
+ /**
1928
+ * optional google.protobuf.Timestamp last_connection = 6;
1929
+ * @return {?proto.google.protobuf.Timestamp}
1930
+ */
1931
+ proto.lansweeper.install.v1.Installation.prototype.getLastConnection = function() {
1932
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
1933
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6));
1934
+ };
1935
+
1936
+
1937
+ /**
1938
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
1939
+ * @return {!proto.lansweeper.install.v1.Installation} returns this
1940
+ */
1941
+ proto.lansweeper.install.v1.Installation.prototype.setLastConnection = function(value) {
1942
+ return jspb.Message.setWrapperField(this, 6, value);
1943
+ };
1944
+
1945
+
1946
+ /**
1947
+ * Clears the message field making it undefined.
1948
+ * @return {!proto.lansweeper.install.v1.Installation} returns this
1949
+ */
1950
+ proto.lansweeper.install.v1.Installation.prototype.clearLastConnection = function() {
1951
+ return this.setLastConnection(undefined);
1952
+ };
1953
+
1954
+
1955
+ /**
1956
+ * Returns whether this field is set.
1957
+ * @return {boolean}
1958
+ */
1959
+ proto.lansweeper.install.v1.Installation.prototype.hasLastConnection = function() {
1960
+ return jspb.Message.getField(this, 6) != null;
1961
+ };
1962
+
1963
+
1964
+
1965
+
1966
+
1967
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1968
+ /**
1969
+ * Creates an object representation of this proto.
1970
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1971
+ * Optional fields that are not set will be set to undefined.
1972
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1973
+ * For the list of reserved names please see:
1974
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1975
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1976
+ * JSPB instance for transitional soy proto support:
1977
+ * http://goto/soy-param-migration
1978
+ * @return {!Object}
1979
+ */
1980
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.prototype.toObject = function(opt_includeInstance) {
1981
+ return proto.lansweeper.install.v1.GetInstallationsBySiteRequest.toObject(opt_includeInstance, this);
1982
+ };
1983
+
1984
+
1985
+ /**
1986
+ * Static version of the {@see toObject} method.
1987
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1988
+ * the JSPB instance for transitional soy proto support:
1989
+ * http://goto/soy-param-migration
1990
+ * @param {!proto.lansweeper.install.v1.GetInstallationsBySiteRequest} msg The msg instance to transform.
1991
+ * @return {!Object}
1992
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1993
+ */
1994
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.toObject = function(includeInstance, msg) {
1995
+ var f, obj = {
1996
+ siteId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1997
+ filter: (f = msg.getFilter()) && proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.toObject(includeInstance, f)
1998
+ };
1999
+
2000
+ if (includeInstance) {
2001
+ obj.$jspbMessageInstance = msg;
2002
+ }
2003
+ return obj;
2004
+ };
2005
+ }
2006
+
2007
+
2008
+ /**
2009
+ * Deserializes binary data (in protobuf wire format).
2010
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2011
+ * @return {!proto.lansweeper.install.v1.GetInstallationsBySiteRequest}
2012
+ */
2013
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.deserializeBinary = function(bytes) {
2014
+ var reader = new jspb.BinaryReader(bytes);
2015
+ var msg = new proto.lansweeper.install.v1.GetInstallationsBySiteRequest;
2016
+ return proto.lansweeper.install.v1.GetInstallationsBySiteRequest.deserializeBinaryFromReader(msg, reader);
2017
+ };
2018
+
2019
+
2020
+ /**
2021
+ * Deserializes binary data (in protobuf wire format) from the
2022
+ * given reader into the given message object.
2023
+ * @param {!proto.lansweeper.install.v1.GetInstallationsBySiteRequest} msg The message object to deserialize into.
2024
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2025
+ * @return {!proto.lansweeper.install.v1.GetInstallationsBySiteRequest}
2026
+ */
2027
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.deserializeBinaryFromReader = function(msg, reader) {
2028
+ while (reader.nextField()) {
2029
+ if (reader.isEndGroup()) {
2030
+ break;
2031
+ }
2032
+ var field = reader.getFieldNumber();
2033
+ switch (field) {
2034
+ case 1:
2035
+ var value = /** @type {string} */ (reader.readString());
2036
+ msg.setSiteId(value);
2037
+ break;
2038
+ case 2:
2039
+ var value = new proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter;
2040
+ reader.readMessage(value,proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.deserializeBinaryFromReader);
2041
+ msg.setFilter(value);
2042
+ break;
2043
+ default:
2044
+ reader.skipField();
2045
+ break;
2046
+ }
2047
+ }
2048
+ return msg;
2049
+ };
2050
+
2051
+
2052
+ /**
2053
+ * Serializes the message to binary data (in protobuf wire format).
2054
+ * @return {!Uint8Array}
2055
+ */
2056
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.prototype.serializeBinary = function() {
2057
+ var writer = new jspb.BinaryWriter();
2058
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.serializeBinaryToWriter(this, writer);
2059
+ return writer.getResultBuffer();
2060
+ };
2061
+
2062
+
2063
+ /**
2064
+ * Serializes the given message to binary data (in protobuf wire
2065
+ * format), writing to the given BinaryWriter.
2066
+ * @param {!proto.lansweeper.install.v1.GetInstallationsBySiteRequest} message
2067
+ * @param {!jspb.BinaryWriter} writer
2068
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2069
+ */
2070
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.serializeBinaryToWriter = function(message, writer) {
2071
+ var f = undefined;
2072
+ f = message.getSiteId();
2073
+ if (f.length > 0) {
2074
+ writer.writeString(
2075
+ 1,
2076
+ f
2077
+ );
2078
+ }
2079
+ f = message.getFilter();
2080
+ if (f != null) {
2081
+ writer.writeMessage(
2082
+ 2,
2083
+ f,
2084
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.serializeBinaryToWriter
2085
+ );
2086
+ }
2087
+ };
2088
+
2089
+
2090
+
2091
+ /**
2092
+ * List of repeated fields within this message type.
2093
+ * @private {!Array<number>}
2094
+ * @const
2095
+ */
2096
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.repeatedFields_ = [1];
2097
+
2098
+
2099
+
2100
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2101
+ /**
2102
+ * Creates an object representation of this proto.
2103
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2104
+ * Optional fields that are not set will be set to undefined.
2105
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2106
+ * For the list of reserved names please see:
2107
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2108
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2109
+ * JSPB instance for transitional soy proto support:
2110
+ * http://goto/soy-param-migration
2111
+ * @return {!Object}
2112
+ */
2113
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.prototype.toObject = function(opt_includeInstance) {
2114
+ return proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.toObject(opt_includeInstance, this);
2115
+ };
2116
+
2117
+
2118
+ /**
2119
+ * Static version of the {@see toObject} method.
2120
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2121
+ * the JSPB instance for transitional soy proto support:
2122
+ * http://goto/soy-param-migration
2123
+ * @param {!proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter} msg The msg instance to transform.
2124
+ * @return {!Object}
2125
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2126
+ */
2127
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.toObject = function(includeInstance, msg) {
2128
+ var f, obj = {
2129
+ typeList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
2130
+ lastConnection: (f = msg.getLastConnection()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
2131
+ };
2132
+
2133
+ if (includeInstance) {
2134
+ obj.$jspbMessageInstance = msg;
2135
+ }
2136
+ return obj;
2137
+ };
2138
+ }
2139
+
2140
+
2141
+ /**
2142
+ * Deserializes binary data (in protobuf wire format).
2143
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2144
+ * @return {!proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter}
2145
+ */
2146
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.deserializeBinary = function(bytes) {
2147
+ var reader = new jspb.BinaryReader(bytes);
2148
+ var msg = new proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter;
2149
+ return proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.deserializeBinaryFromReader(msg, reader);
2150
+ };
2151
+
2152
+
2153
+ /**
2154
+ * Deserializes binary data (in protobuf wire format) from the
2155
+ * given reader into the given message object.
2156
+ * @param {!proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter} msg The message object to deserialize into.
2157
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2158
+ * @return {!proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter}
2159
+ */
2160
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.deserializeBinaryFromReader = function(msg, reader) {
2161
+ while (reader.nextField()) {
2162
+ if (reader.isEndGroup()) {
2163
+ break;
2164
+ }
2165
+ var field = reader.getFieldNumber();
2166
+ switch (field) {
2167
+ case 1:
2168
+ var values = /** @type {!Array<!proto.lansweeper.install.v1.InstallType>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
2169
+ for (var i = 0; i < values.length; i++) {
2170
+ msg.addType(values[i]);
2171
+ }
2172
+ break;
2173
+ case 2:
2174
+ var value = new google_protobuf_timestamp_pb.Timestamp;
2175
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
2176
+ msg.setLastConnection(value);
2177
+ break;
2178
+ default:
2179
+ reader.skipField();
2180
+ break;
2181
+ }
2182
+ }
2183
+ return msg;
2184
+ };
2185
+
2186
+
2187
+ /**
2188
+ * Serializes the message to binary data (in protobuf wire format).
2189
+ * @return {!Uint8Array}
2190
+ */
2191
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.prototype.serializeBinary = function() {
2192
+ var writer = new jspb.BinaryWriter();
2193
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.serializeBinaryToWriter(this, writer);
2194
+ return writer.getResultBuffer();
2195
+ };
2196
+
2197
+
2198
+ /**
2199
+ * Serializes the given message to binary data (in protobuf wire
2200
+ * format), writing to the given BinaryWriter.
2201
+ * @param {!proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter} message
2202
+ * @param {!jspb.BinaryWriter} writer
2203
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2204
+ */
2205
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.serializeBinaryToWriter = function(message, writer) {
2206
+ var f = undefined;
2207
+ f = message.getTypeList();
2208
+ if (f.length > 0) {
2209
+ writer.writePackedEnum(
2210
+ 1,
2211
+ f
2212
+ );
2213
+ }
2214
+ f = message.getLastConnection();
2215
+ if (f != null) {
2216
+ writer.writeMessage(
2217
+ 2,
2218
+ f,
2219
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
2220
+ );
2221
+ }
2222
+ };
2223
+
2224
+
2225
+ /**
2226
+ * repeated InstallType type = 1;
2227
+ * @return {!Array<!proto.lansweeper.install.v1.InstallType>}
2228
+ */
2229
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.prototype.getTypeList = function() {
2230
+ return /** @type {!Array<!proto.lansweeper.install.v1.InstallType>} */ (jspb.Message.getRepeatedField(this, 1));
2231
+ };
2232
+
2233
+
2234
+ /**
2235
+ * @param {!Array<!proto.lansweeper.install.v1.InstallType>} value
2236
+ * @return {!proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter} returns this
2237
+ */
2238
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.prototype.setTypeList = function(value) {
2239
+ return jspb.Message.setField(this, 1, value || []);
2240
+ };
2241
+
2242
+
2243
+ /**
2244
+ * @param {!proto.lansweeper.install.v1.InstallType} value
2245
+ * @param {number=} opt_index
2246
+ * @return {!proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter} returns this
2247
+ */
2248
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.prototype.addType = function(value, opt_index) {
2249
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
2250
+ };
2251
+
2252
+
2253
+ /**
2254
+ * Clears the list making it empty but non-null.
2255
+ * @return {!proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter} returns this
2256
+ */
2257
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.prototype.clearTypeList = function() {
2258
+ return this.setTypeList([]);
2259
+ };
2260
+
2261
+
2262
+ /**
2263
+ * optional google.protobuf.Timestamp last_connection = 2;
2264
+ * @return {?proto.google.protobuf.Timestamp}
2265
+ */
2266
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.prototype.getLastConnection = function() {
2267
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
2268
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
2269
+ };
2270
+
2271
+
2272
+ /**
2273
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
2274
+ * @return {!proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter} returns this
2275
+ */
2276
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.prototype.setLastConnection = function(value) {
2277
+ return jspb.Message.setWrapperField(this, 2, value);
2278
+ };
2279
+
2280
+
2281
+ /**
2282
+ * Clears the message field making it undefined.
2283
+ * @return {!proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter} returns this
2284
+ */
2285
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.prototype.clearLastConnection = function() {
2286
+ return this.setLastConnection(undefined);
2287
+ };
2288
+
2289
+
2290
+ /**
2291
+ * Returns whether this field is set.
2292
+ * @return {boolean}
2293
+ */
2294
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.prototype.hasLastConnection = function() {
2295
+ return jspb.Message.getField(this, 2) != null;
2296
+ };
2297
+
2298
+
2299
+ /**
2300
+ * optional string site_id = 1;
2301
+ * @return {string}
2302
+ */
2303
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.prototype.getSiteId = function() {
2304
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2305
+ };
2306
+
2307
+
2308
+ /**
2309
+ * @param {string} value
2310
+ * @return {!proto.lansweeper.install.v1.GetInstallationsBySiteRequest} returns this
2311
+ */
2312
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.prototype.setSiteId = function(value) {
2313
+ return jspb.Message.setProto3StringField(this, 1, value);
2314
+ };
2315
+
2316
+
2317
+ /**
2318
+ * optional Filter filter = 2;
2319
+ * @return {?proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter}
2320
+ */
2321
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.prototype.getFilter = function() {
2322
+ return /** @type{?proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter} */ (
2323
+ jspb.Message.getWrapperField(this, proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter, 2));
2324
+ };
2325
+
2326
+
2327
+ /**
2328
+ * @param {?proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter|undefined} value
2329
+ * @return {!proto.lansweeper.install.v1.GetInstallationsBySiteRequest} returns this
2330
+ */
2331
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.prototype.setFilter = function(value) {
2332
+ return jspb.Message.setWrapperField(this, 2, value);
2333
+ };
2334
+
2335
+
2336
+ /**
2337
+ * Clears the message field making it undefined.
2338
+ * @return {!proto.lansweeper.install.v1.GetInstallationsBySiteRequest} returns this
2339
+ */
2340
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.prototype.clearFilter = function() {
2341
+ return this.setFilter(undefined);
2342
+ };
2343
+
2344
+
2345
+ /**
2346
+ * Returns whether this field is set.
2347
+ * @return {boolean}
2348
+ */
2349
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.prototype.hasFilter = function() {
2350
+ return jspb.Message.getField(this, 2) != null;
2351
+ };
2352
+
2353
+
2354
+
2355
+ /**
2356
+ * List of repeated fields within this message type.
2357
+ * @private {!Array<number>}
2358
+ * @const
2359
+ */
2360
+ proto.lansweeper.install.v1.GetInstallationsBySiteResponse.repeatedFields_ = [1];
2361
+
2362
+
2363
+
2364
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2365
+ /**
2366
+ * Creates an object representation of this proto.
2367
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2368
+ * Optional fields that are not set will be set to undefined.
2369
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2370
+ * For the list of reserved names please see:
2371
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2372
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2373
+ * JSPB instance for transitional soy proto support:
2374
+ * http://goto/soy-param-migration
2375
+ * @return {!Object}
2376
+ */
2377
+ proto.lansweeper.install.v1.GetInstallationsBySiteResponse.prototype.toObject = function(opt_includeInstance) {
2378
+ return proto.lansweeper.install.v1.GetInstallationsBySiteResponse.toObject(opt_includeInstance, this);
2379
+ };
2380
+
2381
+
2382
+ /**
2383
+ * Static version of the {@see toObject} method.
2384
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2385
+ * the JSPB instance for transitional soy proto support:
2386
+ * http://goto/soy-param-migration
2387
+ * @param {!proto.lansweeper.install.v1.GetInstallationsBySiteResponse} msg The msg instance to transform.
2388
+ * @return {!Object}
2389
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2390
+ */
2391
+ proto.lansweeper.install.v1.GetInstallationsBySiteResponse.toObject = function(includeInstance, msg) {
2392
+ var f, obj = {
2393
+ installationsList: jspb.Message.toObjectList(msg.getInstallationsList(),
2394
+ proto.lansweeper.install.v1.Installation.toObject, includeInstance)
2395
+ };
2396
+
2397
+ if (includeInstance) {
2398
+ obj.$jspbMessageInstance = msg;
2399
+ }
2400
+ return obj;
2401
+ };
2402
+ }
2403
+
2404
+
2405
+ /**
2406
+ * Deserializes binary data (in protobuf wire format).
2407
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2408
+ * @return {!proto.lansweeper.install.v1.GetInstallationsBySiteResponse}
2409
+ */
2410
+ proto.lansweeper.install.v1.GetInstallationsBySiteResponse.deserializeBinary = function(bytes) {
2411
+ var reader = new jspb.BinaryReader(bytes);
2412
+ var msg = new proto.lansweeper.install.v1.GetInstallationsBySiteResponse;
2413
+ return proto.lansweeper.install.v1.GetInstallationsBySiteResponse.deserializeBinaryFromReader(msg, reader);
2414
+ };
2415
+
2416
+
2417
+ /**
2418
+ * Deserializes binary data (in protobuf wire format) from the
2419
+ * given reader into the given message object.
2420
+ * @param {!proto.lansweeper.install.v1.GetInstallationsBySiteResponse} msg The message object to deserialize into.
2421
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2422
+ * @return {!proto.lansweeper.install.v1.GetInstallationsBySiteResponse}
2423
+ */
2424
+ proto.lansweeper.install.v1.GetInstallationsBySiteResponse.deserializeBinaryFromReader = function(msg, reader) {
2425
+ while (reader.nextField()) {
2426
+ if (reader.isEndGroup()) {
2427
+ break;
2428
+ }
2429
+ var field = reader.getFieldNumber();
2430
+ switch (field) {
2431
+ case 1:
2432
+ var value = new proto.lansweeper.install.v1.Installation;
2433
+ reader.readMessage(value,proto.lansweeper.install.v1.Installation.deserializeBinaryFromReader);
2434
+ msg.addInstallations(value);
2435
+ break;
2436
+ default:
2437
+ reader.skipField();
2438
+ break;
2439
+ }
2440
+ }
2441
+ return msg;
2442
+ };
2443
+
2444
+
2445
+ /**
2446
+ * Serializes the message to binary data (in protobuf wire format).
2447
+ * @return {!Uint8Array}
2448
+ */
2449
+ proto.lansweeper.install.v1.GetInstallationsBySiteResponse.prototype.serializeBinary = function() {
2450
+ var writer = new jspb.BinaryWriter();
2451
+ proto.lansweeper.install.v1.GetInstallationsBySiteResponse.serializeBinaryToWriter(this, writer);
2452
+ return writer.getResultBuffer();
2453
+ };
2454
+
2455
+
2456
+ /**
2457
+ * Serializes the given message to binary data (in protobuf wire
2458
+ * format), writing to the given BinaryWriter.
2459
+ * @param {!proto.lansweeper.install.v1.GetInstallationsBySiteResponse} message
2460
+ * @param {!jspb.BinaryWriter} writer
2461
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2462
+ */
2463
+ proto.lansweeper.install.v1.GetInstallationsBySiteResponse.serializeBinaryToWriter = function(message, writer) {
2464
+ var f = undefined;
2465
+ f = message.getInstallationsList();
2466
+ if (f.length > 0) {
2467
+ writer.writeRepeatedMessage(
2468
+ 1,
2469
+ f,
2470
+ proto.lansweeper.install.v1.Installation.serializeBinaryToWriter
2471
+ );
2472
+ }
2473
+ };
2474
+
2475
+
2476
+ /**
2477
+ * repeated Installation installations = 1;
2478
+ * @return {!Array<!proto.lansweeper.install.v1.Installation>}
2479
+ */
2480
+ proto.lansweeper.install.v1.GetInstallationsBySiteResponse.prototype.getInstallationsList = function() {
2481
+ return /** @type{!Array<!proto.lansweeper.install.v1.Installation>} */ (
2482
+ jspb.Message.getRepeatedWrapperField(this, proto.lansweeper.install.v1.Installation, 1));
2483
+ };
2484
+
2485
+
2486
+ /**
2487
+ * @param {!Array<!proto.lansweeper.install.v1.Installation>} value
2488
+ * @return {!proto.lansweeper.install.v1.GetInstallationsBySiteResponse} returns this
2489
+ */
2490
+ proto.lansweeper.install.v1.GetInstallationsBySiteResponse.prototype.setInstallationsList = function(value) {
2491
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
2492
+ };
2493
+
2494
+
2495
+ /**
2496
+ * @param {!proto.lansweeper.install.v1.Installation=} opt_value
2497
+ * @param {number=} opt_index
2498
+ * @return {!proto.lansweeper.install.v1.Installation}
2499
+ */
2500
+ proto.lansweeper.install.v1.GetInstallationsBySiteResponse.prototype.addInstallations = function(opt_value, opt_index) {
2501
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.lansweeper.install.v1.Installation, opt_index);
2502
+ };
2503
+
2504
+
2505
+ /**
2506
+ * Clears the list making it empty but non-null.
2507
+ * @return {!proto.lansweeper.install.v1.GetInstallationsBySiteResponse} returns this
2508
+ */
2509
+ proto.lansweeper.install.v1.GetInstallationsBySiteResponse.prototype.clearInstallationsList = function() {
2510
+ return this.setInstallationsList([]);
2511
+ };
2512
+
2513
+
2514
+ /**
2515
+ * @enum {number}
2516
+ */
2517
+ proto.lansweeper.install.v1.InstallType = {
2518
+ IT: 0,
2519
+ OT: 1,
2520
+ IT_AGENT: 2,
2521
+ CLOUD: 3,
2522
+ NETWORK_DISCOVERY: 4
2523
+ };
2524
+
2525
+ /**
2526
+ * @enum {number}
2527
+ */
2528
+ proto.lansweeper.install.v1.InstallStateValue = {
2529
+ UNESPECIFIED: 0,
2530
+ LINKED: 1,
2531
+ UNLINKED: 2
2532
+ };
2533
+
1601
2534
  goog.object.extend(exports, proto.lansweeper.install.v1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lansweeper/install-api-grpc",
3
- "version": "0.0.6",
3
+ "version": "0.1.0",
4
4
  "description": "install api grpc",
5
5
  "main": "gen-proto/index.js",
6
6
  "types": "gen-proto/index.d.ts",
@@ -16,5 +16,5 @@
16
16
  "devDependencies": {
17
17
  "@types/google-protobuf": "^3.15.5"
18
18
  },
19
- "gitHead": "1b8cb0bdaf7fcb4f1f20fa1e7508edd112b76a9e"
19
+ "gitHead": "44a72b1059911838db197d6f4d3e7c77449a46f4"
20
20
  }
@@ -1,5 +1,7 @@
1
1
  syntax = "proto3";
2
2
 
3
+ import "google/protobuf/timestamp.proto";
4
+
3
5
  package lansweeper.install.v1;
4
6
 
5
7
  option go_package = "./generated-go";
@@ -45,9 +47,45 @@ message HubCertificateInstallation {
45
47
  string hub_certificate = 3;
46
48
  }
47
49
 
50
+ enum InstallType {
51
+ IT=0;
52
+ OT=1;
53
+ IT_AGENT=2;
54
+ CLOUD=3;
55
+ NETWORK_DISCOVERY=4;
56
+ }
57
+
58
+ enum InstallStateValue {
59
+ UNESPECIFIED = 0;
60
+ LINKED = 1;
61
+ UNLINKED = 2;
62
+ }
63
+
64
+ message Installation {
65
+ string id = 1;
66
+ string site_id = 2;
67
+ InstallType type = 3;
68
+ InstallStateValue state = 4;
69
+ google.protobuf.Timestamp last_connection = 6;
70
+ }
71
+
72
+ message GetInstallationsBySiteRequest {
73
+ string site_id = 1;
74
+ message Filter {
75
+ repeated InstallType type=1;
76
+ optional google.protobuf.Timestamp last_connection = 2;
77
+ }
78
+ optional Filter filter = 2;
79
+ }
80
+
81
+ message GetInstallationsBySiteResponse {
82
+ repeated Installation installations = 1;
83
+ }
84
+
48
85
  service InstallService {
49
86
  rpc GetHubCertificates(GetHubCertificatesRequest) returns (GetHubCertificatesResponse) {}
50
87
  rpc SetPublicKey(SetPublicKeyRequest) returns (SetPublicKeyResponse) {}
51
88
  rpc SetHubCertificate(SetHubCertificateRequest) returns (SetHubCertificateResponse) {}
52
89
  rpc RemoveHubCertificate(RemoveHubCertificateRequest) returns (RemoveHubCertificateResponse) {}
90
+ rpc GetInstallationsBySite(GetInstallationsBySiteRequest) returns (GetInstallationsBySiteResponse) {}
53
91
  }