From f0b8bad69ce028bd7ec52c600f01d514583c6f7c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 8 Oct 2020 10:25:19 +0000 Subject: [PATCH 01/13] Bump grpcio from 1.31.0 to 1.32.0 Bumps [grpcio](https://github.com/grpc/grpc) from 1.31.0 to 1.32.0. - [Release notes](https://github.com/grpc/grpc/releases) - [Changelog](https://github.com/grpc/grpc/blob/master/doc/grpc_release_schedule.md) - [Commits](https://github.com/grpc/grpc/compare/v1.31.0...v1.32.0) Signed-off-by: dependabot[bot] --- Pipfile | 2 +- Pipfile.lock | 227 ++++++++++++++++++++------------------------------- 2 files changed, 90 insertions(+), 139 deletions(-) diff --git a/Pipfile b/Pipfile index 7fcb35ed..937a11f9 100644 --- a/Pipfile +++ b/Pipfile @@ -17,7 +17,7 @@ sphinx = "~=3.2.1" sphinx-rtd-theme = "*" [packages] -grpcio = "~=1.31.0" +grpcio = "~=1.32.0" protobuf = "~=3.13.0" oauthlib = "~=3.1.0" requests-oauthlib = "~=1.3.0" diff --git a/Pipfile.lock b/Pipfile.lock index e0ea8fdb..d48c7bec 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -1,7 +1,7 @@ { "_meta": { "hash": { - "sha256": "149fa7a9f59eed05549f84ebf0107445089952897347f0bb678be8e9cba074fb" + "sha256": "2d80c8961ac1ab86009b3f42dc9389c9c850cace359d5c11761db430cb449547" }, "pipfile-spec": 6, "requires": {}, @@ -30,55 +30,54 @@ }, "grpcio": { "hashes": [ - "sha256:013287f99c99b201aa8a5f6bc7918f616739b9be031db132d9e3b8453e95e151", - "sha256:0397616355760cd8282ed5ea34d51830ae4cb6613b7e5f66bed3be5d041b8b9a", - "sha256:074871a184483d5cd0746fd01e7d214d3ee9d36e67e32a5786b0a21f29fb8304", - "sha256:08a9b648dbe8852ff94b73a1c96da126834c3057ba2301d13e8c4adff334c482", - "sha256:0fa86ac4452602c79774783aa68979a1a7625ebb7eaabee2b6550b975b9d61e6", - "sha256:220c46b1fc9c9a6fcca4caac398f08f0ed43cdd63c45b7458983c4a1575ef6df", - "sha256:259240aab2603891553e17ad5b2655693df79e02a9b887ff605bdeb2fcd3dcc9", - "sha256:292635f05b6ce33f87116951d0b3d8d330bdfc5cac74f739370d60981e8c256c", - "sha256:344b50865914cc8e6d023457bffee9a640abb18f75d0f2bb519041961c748da9", - "sha256:3c2aa6d7a5e5bf73fdb1715eee777efe06dd39df03383f1cc095b2fdb34883e6", - "sha256:43d44548ad6ee738b941abd9f09e3b83a5c13f3e1410321023c3c148ba50e796", - "sha256:5043440c45c0a031f387e7f48527541c65d672005fb24cf18ef6857483557d39", - "sha256:58d7121f48cb94535a4cedcce32921d0d0a78563c7372a143dedeec196d1c637", - "sha256:5d7faa89992e015d245750ca9ac916c161bbf72777b2c60abc61da3fae41339e", - "sha256:5fb0923b16590bac338e92d98c7d8effb3cfad1d2e18c71bf86bde32c49cd6dd", - "sha256:63ee8e02d04272c3d103f44b4bce5d43ea757dd288673cea212d2f7da27967d2", - "sha256:64077e3a9a7cf2f59e6c76d503c8de1f18a76428f41a5b000dc53c48a0b772ff", - "sha256:739a72abffbd36083ff7adbb862cf1afc1e311c35834bed9c0361d8e68b063e1", - "sha256:75e383053dccb610590aa53eed5278db5c09bf498d3b5105ce6c776478f59352", - "sha256:7a11b1ebb3210f34913b8be6995936bf9ebc541a65ab69e75db5ce1fe5047e8f", - "sha256:8002a89ea91c0078c15d3c0daf423fd4968946be78f08545e807ea9a5ff8054a", - "sha256:8b42f0ac76be07a5fa31117a3388d754ad35ef05e2e34be185ca9ccbcfac2069", - "sha256:8ca26b489b5dc1e3d31807d329c23d6cb06fe40fbae25b0649b718947936e26a", - "sha256:92e54ab65e782f227e751c7555918afaba8d1229601687e89b80c2b65d2f6642", - "sha256:a9a7ae74cb3108e6457cf15532d4c300324b48fbcf3ef290bcd2835745f20510", - "sha256:ba3e43cb984399064ffaa3c0997576e46a1e268f9da05f97cd9b272f0b59ee71", - "sha256:baaa036540d7ace433bdf38a3fe5e41cf9f84cdf10a88bac805f678a7ca8ddcc", - "sha256:bf00ab06ea4f89976288f4d6224d4aa120780e30c955d4f85c3214ada29b3ddf", - "sha256:bf39977282a79dc1b2765cc3402c0ada571c29a491caec6ed12c0993c1ec115e", - "sha256:c22b19abba63562a5a200e586b5bde39d26c8ec30c92e26d209d81182371693b", - "sha256:c9016ab1eaf4e054099303287195f3746bd4e69f2631d040f9dca43e910a5408", - "sha256:d2c5e05c257859febd03f5d81b5015e1946d6bcf475c7bf63ee99cea8ab0d590", - "sha256:e64bddd09842ef508d72ca354319b0eb126205d951e8ac3128fe9869bd563552", - "sha256:e8c3264b0fd728aadf3f0324471843f65bd3b38872bdab2a477e31ffb685dd5b", - "sha256:ea849210e7362559f326cbe603d5b8d8bb1e556e86a7393b5a8847057de5b084", - "sha256:ebb2ca09fa17537e35508a29dcb05575d4d9401138a68e83d1c605d65e8a1770", - "sha256:ef9fce98b6fe03874c2a6576b02aec1a0df25742cd67d1d7b75a49e30aa74225", - "sha256:f04c59d186af3157dc8811114130aaeae92e90a65283733f41de94eed484e1f7", - "sha256:f5b0870b733bcb7b6bf05a02035e7aaf20f599d3802b390282d4c2309f825f1d" + "sha256:01d3046fe980be25796d368f8fc5ff34b7cf5e1444f3789a017a7fe794465639", + "sha256:07b430fa68e5eecd78e2ad529ab80f6a234b55fc1b675fe47335ccbf64c6c6c8", + "sha256:0e3edd8cdb71809d2455b9dbff66b4dd3d36c321e64bfa047da5afdfb0db332b", + "sha256:0f3f09269ffd3fded430cd89ba2397eabbf7e47be93983b25c187cdfebb302a7", + "sha256:1376a60f9bfce781b39973f100b5f67e657b5be479f2fd8a7d2a408fc61c085c", + "sha256:14c0f017bfebbc18139551111ac58ecbde11f4bc375b73a53af38927d60308b6", + "sha256:182c64ade34c341398bf71ec0975613970feb175090760ab4f51d1e9a5424f05", + "sha256:1ada89326a364a299527c7962e5c362dbae58c67b283fe8383c4d952b26565d5", + "sha256:1ce6f5ff4f4a548c502d5237a071fa617115df58ea4b7bd41dac77c1ab126e9c", + "sha256:1d384a61f96a1fc6d5d3e0b62b0a859abc8d4c3f6d16daba51ebf253a3e7df5d", + "sha256:25959a651420dd4a6fd7d3e8dee53f4f5fd8c56336a64963428e78b276389a59", + "sha256:28677f057e2ef11501860a7bc15de12091d40b95dd0fddab3c37ff1542e6b216", + "sha256:378fe80ec5d9353548eb2a8a43ea03747a80f2e387c4f177f2b3ff6c7d898753", + "sha256:3afb058b6929eba07dba9ae6c5b555aa1d88cb140187d78cc510bd72d0329f28", + "sha256:4396b1d0f388ae875eaf6dc05cdcb612c950fd9355bc34d38b90aaa0665a0d4b", + "sha256:4775bc35af9cd3b5033700388deac2e1d611fa45f4a8dcb93667d94cb25f0444", + "sha256:5bddf9d53c8df70061916c3bfd2f468ccf26c348bb0fb6211531d895ed5e4c72", + "sha256:6d869a3e8e62562b48214de95e9231c97c53caa7172802236cd5d60140d7cddd", + "sha256:6f7947dad606c509d067e5b91a92b250aa0530162ab99e4737090f6b17eb12c4", + "sha256:7cda998b7b551503beefc38db9be18c878cfb1596e1418647687575cdefa9273", + "sha256:99bac0e2c820bf446662365df65841f0c2a55b0e2c419db86eaf5d162ddae73e", + "sha256:9c0d8f2346c842088b8cbe3e14985b36e5191a34bf79279ba321a4bf69bd88b7", + "sha256:a8004b34f600a8a51785e46859cd88f3386ef67cccd1cfc7598e3d317608c643", + "sha256:ac7028d363d2395f3d755166d0161556a3f99500a5b44890421ccfaaf2aaeb08", + "sha256:be98e3198ec765d0a1e27f69d760f69374ded8a33b953dcfe790127731f7e690", + "sha256:c31e8a219650ddae1cd02f5a169e1bffe66a429a8255d3ab29e9363c73003b62", + "sha256:c4966d746dccb639ef93f13560acbe9630681c07f2b320b7ec03fe2c8f0a1f15", + "sha256:c58825a3d8634cd634d8f869afddd4d5742bdb59d594aea4cea17b8f39269a55", + "sha256:ce617e1c4a39131f8527964ac9e700eb199484937d7a0b3e52655a3ba50d5fb9", + "sha256:e28e4c0d4231beda5dee94808e3a224d85cbaba3cfad05f2192e6f4ec5318053", + "sha256:e467af6bb8f5843f5a441e124b43474715cfb3981264e7cd227343e826dcc3ce", + "sha256:e6786f6f7be0937614577edcab886ddce91b7c1ea972a07ef9972e9f9ecbbb78", + "sha256:e811ce5c387256609d56559d944a974cc6934a8eea8c76e7c86ec388dc06192d", + "sha256:ec10d5f680b8e95a06f1367d73c5ddcc0ed04a3f38d6e4c9346988fb0cea2ffa", + "sha256:ef9bd7fdfc0a063b4ed0efcab7906df5cae9bbcf79d05c583daa2eba56752b00", + "sha256:f03dfefa9075dd1c6c5cc27b1285c521434643b09338d8b29e1d6a27b386aa82", + "sha256:f12900be4c3fd2145ba94ab0d80b7c3d71c9e6414cfee2f31b1c20188b5c281f", + "sha256:f53f2dfc8ff9a58a993e414a016c8b21af333955ae83960454ad91798d467c7b", + "sha256:f7d508691301027033215d3662dab7e178f54d5cca2329f26a71ae175d94b83f" ], "index": "pypi", - "version": "==1.31.0" + "version": "==1.32.0" }, "idna": { "hashes": [ "sha256:b307872f855b18632ce0c21c5e45be78c0ea7ae4c15c828c20788b26921eb3f6", "sha256:b97d804b1e9b523befed77c48dacec60e6dcb0b5391d57af6a65a312a90648c0" ], - "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", "version": "==2.10" }, "oauthlib": { @@ -118,14 +117,12 @@ "sha256:b3559a131db72c33ee969480840fff4bb6dd111de7dd27c8ee1f820f4f00231b", "sha256:fe75cc94a9443b9246fc7049224f75604b113c36acb93f87b80ed42c44cbb898" ], - "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'", "version": "==2.24.0" }, "requests-oauthlib": { "hashes": [ "sha256:7f71572defaecd16372f9006f33c2ec8c077c3cfa6f5911a9a90202beb513f3d", - "sha256:b4261601a71fd721a8bd6d7aa1cc1d6a8a93b4a9f5e96626f8e4d91e8beeaa6a", - "sha256:fa6c47b933f01060936d87ae9327fead68768b69c6c9ea2109c48be30f2d4dbc" + "sha256:b4261601a71fd721a8bd6d7aa1cc1d6a8a93b4a9f5e96626f8e4d91e8beeaa6a" ], "index": "pypi", "version": "==1.3.0" @@ -135,7 +132,6 @@ "sha256:30639c035cdb23534cd4aa2dd52c3bf48f06e5f4a941509c8bafd8ce11080259", "sha256:8b74bedcbbbaca38ff6d7491d76f2b06b3592611af620f8426e82dddb04a5ced" ], - "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", "version": "==1.15.0" }, "urllib3": { @@ -143,7 +139,6 @@ "sha256:91056c15fa70756691db97756772bb1eb9678fa585d9184f24534b100dc60f4a", "sha256:e7983572181f5e1522d9c98453462384ee92a0be7fac5f1413a1e35c56cc0461" ], - "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4' and python_version < '4'", "version": "==1.25.10" } }, @@ -160,23 +155,13 @@ "sha256:2f4078c2a41bf377eea06d71c9d2ba4eb8f6b1af2135bec27bbbb7d8f12bb703", "sha256:bc58d83eb610252fd8de6363e39d4f1d0619c894b0ed24603b881c02e64c7386" ], - "markers": "python_version >= '3.5'", "version": "==2.4.2" }, - "atomicwrites": { - "hashes": [ - "sha256:6d1784dea7c0c8d4a5172b6c620f40b6e4cbfdf96d783691f2e1302a7b88e197", - "sha256:ae70396ad1a434f9c7046fd2dd196fc04b12f9e91ffb859164193be8b6168a7a" - ], - "markers": "sys_platform == 'win32'", - "version": "==1.4.0" - }, "attrs": { "hashes": [ "sha256:26b54ddbbb9ee1d34d5d3668dd37d6cf74990ab23c828c2888dccdceee395594", "sha256:fce7fc47dfc976152e82d53ff92fa0407700c21acd20886a13777a0d20e655dc" ], - "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", "version": "==20.2.0" }, "autopep8": { @@ -191,7 +176,6 @@ "sha256:1aac2ae2d0d8ea368fa90906567f5c08463d98ade155c0c4bfedd6a0f7160e38", "sha256:d670ea0b10f8b723672d3a6abeb87b565b244da220d76b4dba1b66269ec152d4" ], - "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", "version": "==2.8.0" }, "certifi": { @@ -208,14 +192,6 @@ ], "version": "==3.0.4" }, - "colorama": { - "hashes": [ - "sha256:7d73d2a99753107a36ac6b455ee49046802e59d9d076ef8e47b61499fa29afff", - "sha256:e96da0d330793e2cb9485e9ddfd918d456036c7149416295932478192f4436a1" - ], - "markers": "sys_platform == 'win32' and sys_platform == 'win32' and sys_platform == 'win32'", - "version": "==0.4.3" - }, "coverage": { "hashes": [ "sha256:098a703d913be6fbd146a8c50cc76513d726b022d170e5e98dc56d958fd592fb", @@ -275,60 +251,58 @@ "sha256:0c5b78adfbf7762415433f5515cd5c9e762339e23369dbe8000d84a4bf4ab3af", "sha256:c2de3a60e9e7d07be26b7f2b00ca0309c207e06c100f9cc2a94931fc75a478fc" ], - "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'", "version": "==0.16" }, "grpcio": { "hashes": [ - "sha256:013287f99c99b201aa8a5f6bc7918f616739b9be031db132d9e3b8453e95e151", - "sha256:0397616355760cd8282ed5ea34d51830ae4cb6613b7e5f66bed3be5d041b8b9a", - "sha256:074871a184483d5cd0746fd01e7d214d3ee9d36e67e32a5786b0a21f29fb8304", - "sha256:08a9b648dbe8852ff94b73a1c96da126834c3057ba2301d13e8c4adff334c482", - "sha256:0fa86ac4452602c79774783aa68979a1a7625ebb7eaabee2b6550b975b9d61e6", - "sha256:220c46b1fc9c9a6fcca4caac398f08f0ed43cdd63c45b7458983c4a1575ef6df", - "sha256:259240aab2603891553e17ad5b2655693df79e02a9b887ff605bdeb2fcd3dcc9", - "sha256:292635f05b6ce33f87116951d0b3d8d330bdfc5cac74f739370d60981e8c256c", - "sha256:344b50865914cc8e6d023457bffee9a640abb18f75d0f2bb519041961c748da9", - "sha256:3c2aa6d7a5e5bf73fdb1715eee777efe06dd39df03383f1cc095b2fdb34883e6", - "sha256:43d44548ad6ee738b941abd9f09e3b83a5c13f3e1410321023c3c148ba50e796", - "sha256:5043440c45c0a031f387e7f48527541c65d672005fb24cf18ef6857483557d39", - "sha256:58d7121f48cb94535a4cedcce32921d0d0a78563c7372a143dedeec196d1c637", - "sha256:5d7faa89992e015d245750ca9ac916c161bbf72777b2c60abc61da3fae41339e", - "sha256:5fb0923b16590bac338e92d98c7d8effb3cfad1d2e18c71bf86bde32c49cd6dd", - "sha256:63ee8e02d04272c3d103f44b4bce5d43ea757dd288673cea212d2f7da27967d2", - "sha256:64077e3a9a7cf2f59e6c76d503c8de1f18a76428f41a5b000dc53c48a0b772ff", - "sha256:739a72abffbd36083ff7adbb862cf1afc1e311c35834bed9c0361d8e68b063e1", - "sha256:75e383053dccb610590aa53eed5278db5c09bf498d3b5105ce6c776478f59352", - "sha256:7a11b1ebb3210f34913b8be6995936bf9ebc541a65ab69e75db5ce1fe5047e8f", - "sha256:8002a89ea91c0078c15d3c0daf423fd4968946be78f08545e807ea9a5ff8054a", - "sha256:8b42f0ac76be07a5fa31117a3388d754ad35ef05e2e34be185ca9ccbcfac2069", - "sha256:8ca26b489b5dc1e3d31807d329c23d6cb06fe40fbae25b0649b718947936e26a", - "sha256:92e54ab65e782f227e751c7555918afaba8d1229601687e89b80c2b65d2f6642", - "sha256:a9a7ae74cb3108e6457cf15532d4c300324b48fbcf3ef290bcd2835745f20510", - "sha256:ba3e43cb984399064ffaa3c0997576e46a1e268f9da05f97cd9b272f0b59ee71", - "sha256:baaa036540d7ace433bdf38a3fe5e41cf9f84cdf10a88bac805f678a7ca8ddcc", - "sha256:bf00ab06ea4f89976288f4d6224d4aa120780e30c955d4f85c3214ada29b3ddf", - "sha256:bf39977282a79dc1b2765cc3402c0ada571c29a491caec6ed12c0993c1ec115e", - "sha256:c22b19abba63562a5a200e586b5bde39d26c8ec30c92e26d209d81182371693b", - "sha256:c9016ab1eaf4e054099303287195f3746bd4e69f2631d040f9dca43e910a5408", - "sha256:d2c5e05c257859febd03f5d81b5015e1946d6bcf475c7bf63ee99cea8ab0d590", - "sha256:e64bddd09842ef508d72ca354319b0eb126205d951e8ac3128fe9869bd563552", - "sha256:e8c3264b0fd728aadf3f0324471843f65bd3b38872bdab2a477e31ffb685dd5b", - "sha256:ea849210e7362559f326cbe603d5b8d8bb1e556e86a7393b5a8847057de5b084", - "sha256:ebb2ca09fa17537e35508a29dcb05575d4d9401138a68e83d1c605d65e8a1770", - "sha256:ef9fce98b6fe03874c2a6576b02aec1a0df25742cd67d1d7b75a49e30aa74225", - "sha256:f04c59d186af3157dc8811114130aaeae92e90a65283733f41de94eed484e1f7", - "sha256:f5b0870b733bcb7b6bf05a02035e7aaf20f599d3802b390282d4c2309f825f1d" + "sha256:01d3046fe980be25796d368f8fc5ff34b7cf5e1444f3789a017a7fe794465639", + "sha256:07b430fa68e5eecd78e2ad529ab80f6a234b55fc1b675fe47335ccbf64c6c6c8", + "sha256:0e3edd8cdb71809d2455b9dbff66b4dd3d36c321e64bfa047da5afdfb0db332b", + "sha256:0f3f09269ffd3fded430cd89ba2397eabbf7e47be93983b25c187cdfebb302a7", + "sha256:1376a60f9bfce781b39973f100b5f67e657b5be479f2fd8a7d2a408fc61c085c", + "sha256:14c0f017bfebbc18139551111ac58ecbde11f4bc375b73a53af38927d60308b6", + "sha256:182c64ade34c341398bf71ec0975613970feb175090760ab4f51d1e9a5424f05", + "sha256:1ada89326a364a299527c7962e5c362dbae58c67b283fe8383c4d952b26565d5", + "sha256:1ce6f5ff4f4a548c502d5237a071fa617115df58ea4b7bd41dac77c1ab126e9c", + "sha256:1d384a61f96a1fc6d5d3e0b62b0a859abc8d4c3f6d16daba51ebf253a3e7df5d", + "sha256:25959a651420dd4a6fd7d3e8dee53f4f5fd8c56336a64963428e78b276389a59", + "sha256:28677f057e2ef11501860a7bc15de12091d40b95dd0fddab3c37ff1542e6b216", + "sha256:378fe80ec5d9353548eb2a8a43ea03747a80f2e387c4f177f2b3ff6c7d898753", + "sha256:3afb058b6929eba07dba9ae6c5b555aa1d88cb140187d78cc510bd72d0329f28", + "sha256:4396b1d0f388ae875eaf6dc05cdcb612c950fd9355bc34d38b90aaa0665a0d4b", + "sha256:4775bc35af9cd3b5033700388deac2e1d611fa45f4a8dcb93667d94cb25f0444", + "sha256:5bddf9d53c8df70061916c3bfd2f468ccf26c348bb0fb6211531d895ed5e4c72", + "sha256:6d869a3e8e62562b48214de95e9231c97c53caa7172802236cd5d60140d7cddd", + "sha256:6f7947dad606c509d067e5b91a92b250aa0530162ab99e4737090f6b17eb12c4", + "sha256:7cda998b7b551503beefc38db9be18c878cfb1596e1418647687575cdefa9273", + "sha256:99bac0e2c820bf446662365df65841f0c2a55b0e2c419db86eaf5d162ddae73e", + "sha256:9c0d8f2346c842088b8cbe3e14985b36e5191a34bf79279ba321a4bf69bd88b7", + "sha256:a8004b34f600a8a51785e46859cd88f3386ef67cccd1cfc7598e3d317608c643", + "sha256:ac7028d363d2395f3d755166d0161556a3f99500a5b44890421ccfaaf2aaeb08", + "sha256:be98e3198ec765d0a1e27f69d760f69374ded8a33b953dcfe790127731f7e690", + "sha256:c31e8a219650ddae1cd02f5a169e1bffe66a429a8255d3ab29e9363c73003b62", + "sha256:c4966d746dccb639ef93f13560acbe9630681c07f2b320b7ec03fe2c8f0a1f15", + "sha256:c58825a3d8634cd634d8f869afddd4d5742bdb59d594aea4cea17b8f39269a55", + "sha256:ce617e1c4a39131f8527964ac9e700eb199484937d7a0b3e52655a3ba50d5fb9", + "sha256:e28e4c0d4231beda5dee94808e3a224d85cbaba3cfad05f2192e6f4ec5318053", + "sha256:e467af6bb8f5843f5a441e124b43474715cfb3981264e7cd227343e826dcc3ce", + "sha256:e6786f6f7be0937614577edcab886ddce91b7c1ea972a07ef9972e9f9ecbbb78", + "sha256:e811ce5c387256609d56559d944a974cc6934a8eea8c76e7c86ec388dc06192d", + "sha256:ec10d5f680b8e95a06f1367d73c5ddcc0ed04a3f38d6e4c9346988fb0cea2ffa", + "sha256:ef9bd7fdfc0a063b4ed0efcab7906df5cae9bbcf79d05c583daa2eba56752b00", + "sha256:f03dfefa9075dd1c6c5cc27b1285c521434643b09338d8b29e1d6a27b386aa82", + "sha256:f12900be4c3fd2145ba94ab0d80b7c3d71c9e6414cfee2f31b1c20188b5c281f", + "sha256:f53f2dfc8ff9a58a993e414a016c8b21af333955ae83960454ad91798d467c7b", + "sha256:f7d508691301027033215d3662dab7e178f54d5cca2329f26a71ae175d94b83f" ], "index": "pypi", - "version": "==1.31.0" + "version": "==1.32.0" }, "idna": { "hashes": [ "sha256:b307872f855b18632ce0c21c5e45be78c0ea7ae4c15c828c20788b26921eb3f6", "sha256:b97d804b1e9b523befed77c48dacec60e6dcb0b5391d57af6a65a312a90648c0" ], - "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", "version": "==2.10" }, "imagesize": { @@ -336,7 +310,6 @@ "sha256:6965f19a6a2039c7d48bca7dba2473069ff854c36ae6f19d2cde309d998228a1", "sha256:b1f6b5a4eab1f73479a50fb79fcf729514a900c341d8503d62a62dbc4127a2b1" ], - "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", "version": "==1.2.0" }, "importlib-metadata": { @@ -356,18 +329,16 @@ }, "isort": { "hashes": [ - "sha256:36f0c6659b9000597e92618d05b72d4181104cf59472b1c6a039e3783f930c95", - "sha256:ba040c24d20aa302f78f4747df549573ae1eaf8e1084269199154da9c483f07f" + "sha256:20544581447ccb6a80940c5cace8cbc32c0f58d82d67d34a182950fe7b93321b", + "sha256:ef200cc0ebd896c5bb0d7da9fd390392648c56c2099c2d2ff940ac94739f62aa" ], - "markers": "python_version >= '3.6' and python_version < '4.0'", - "version": "==5.5.4" + "version": "==5.6.0" }, "jinja2": { "hashes": [ "sha256:89aab215427ef59c34ad58735269eb58b1a5808103067f7bb9d5836c651b3bb0", "sha256:f0a4641d3cf955324a89c04f3d94663aa4d638abe8f733ecd3582848e1c37035" ], - "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'", "version": "==2.11.2" }, "lazy-object-proxy": { @@ -394,7 +365,6 @@ "sha256:efa1909120ce98bbb3777e8b6f92237f5d5c8ea6758efea36a473e1d38f7d3e4", "sha256:f3900e8a5de27447acbf900b4750b0ddfd7ec1ea7fbaf11dfa911141bc522af0" ], - "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", "version": "==1.4.3" }, "markupsafe": { @@ -433,7 +403,6 @@ "sha256:e249096428b3ae81b08327a63a485ad0878de3fb939049038579ac0ef61e17e7", "sha256:e8313f01ba26fbbe36c7be1966a7b7424942f670f38e666995b88d012765b9be" ], - "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", "version": "==1.1.1" }, "mccabe": { @@ -448,7 +417,6 @@ "sha256:6f83822ae94818eae2612063a5101a7311e68ae8002005b5e05f03fd74a86a20", "sha256:9b30f12df9393f0d28af9210ff8efe48d10c94f73e5daf886f10c4b0b0b4f03c" ], - "markers": "python_version >= '3.5'", "version": "==8.5.0" }, "mypy": { @@ -491,7 +459,6 @@ "sha256:4357f74f47b9c12db93624a82154e9b120fa8293699949152b22065d556079f8", "sha256:998416ba6962ae7fbd6596850b80e17859a5753ba17c32284f67bfff33784181" ], - "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", "version": "==20.4" }, "pluggy": { @@ -499,7 +466,6 @@ "sha256:15b2acde666561e1298d71b523007ed7364de07029219b604cf808bfa1c765b0", "sha256:966c145cd83c96502c3c3868f50408687b38434af77734af1e9ca461a4081d2d" ], - "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", "version": "==0.13.1" }, "protobuf": { @@ -531,7 +497,6 @@ "sha256:366389d1db726cd2fcfc79732e75410e5fe4d31db13692115529d34069a043c2", "sha256:9ca6883ce56b4e8da7e79ac18787889fa5206c79dcc67fb065376cd2fe03f342" ], - "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", "version": "==1.9.0" }, "pycodestyle": { @@ -539,7 +504,6 @@ "sha256:2295e7b2f6b5bd100585ebcb1f616591b652db8a741695b3d8f5d28bdc934367", "sha256:c58a7d2815e0e8d7972bf1803331fb0152f867bd89adf8a01dfd55085434192e" ], - "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", "version": "==2.6.0" }, "pygments": { @@ -547,7 +511,6 @@ "sha256:307543fe65c0947b126e83dd5a61bd8acbd84abec11f43caebaf5534cbc17998", "sha256:926c3f319eda178d1bd90851e4317e6d8cdb5e292a3386aac9bd75eca29cf9c7" ], - "markers": "python_version >= '3.5'", "version": "==2.7.1" }, "pylint": { @@ -563,7 +526,6 @@ "sha256:c203ec8783bf771a155b207279b9bccb8dea02d8f0c9e5f8ead507bc3246ecc1", "sha256:ef9d7589ef3c200abe66653d3f1ab1033c3c419ae9b9bdb1240a85b024efc88b" ], - "markers": "python_version >= '2.6' and python_version not in '3.0, 3.1, 3.2, 3.3'", "version": "==2.4.7" }, "pytest": { @@ -598,14 +560,12 @@ "sha256:b3559a131db72c33ee969480840fff4bb6dd111de7dd27c8ee1f820f4f00231b", "sha256:fe75cc94a9443b9246fc7049224f75604b113c36acb93f87b80ed42c44cbb898" ], - "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'", "version": "==2.24.0" }, "requests-oauthlib": { "hashes": [ "sha256:7f71572defaecd16372f9006f33c2ec8c077c3cfa6f5911a9a90202beb513f3d", - "sha256:b4261601a71fd721a8bd6d7aa1cc1d6a8a93b4a9f5e96626f8e4d91e8beeaa6a", - "sha256:fa6c47b933f01060936d87ae9327fead68768b69c6c9ea2109c48be30f2d4dbc" + "sha256:b4261601a71fd721a8bd6d7aa1cc1d6a8a93b4a9f5e96626f8e4d91e8beeaa6a" ], "index": "pypi", "version": "==1.3.0" @@ -615,7 +575,6 @@ "sha256:30639c035cdb23534cd4aa2dd52c3bf48f06e5f4a941509c8bafd8ce11080259", "sha256:8b74bedcbbbaca38ff6d7491d76f2b06b3592611af620f8426e82dddb04a5ced" ], - "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", "version": "==1.15.0" }, "snowballstemmer": { @@ -646,7 +605,6 @@ "sha256:806111e5e962be97c29ec4c1e7fe277bfd19e9652fb1a4392105b43e01af885a", "sha256:a072735ec80e7675e3f432fcae8610ecf509c5f1869d17e2eecff44389cdbc58" ], - "markers": "python_version >= '3.5'", "version": "==1.0.2" }, "sphinxcontrib-devhelp": { @@ -654,7 +612,6 @@ "sha256:8165223f9a335cc1af7ffe1ed31d2871f325254c0423bc0c4c7cd1c1e4734a2e", "sha256:ff7f1afa7b9642e7060379360a67e9c41e8f3121f2ce9164266f61b9f4b338e4" ], - "markers": "python_version >= '3.5'", "version": "==1.0.2" }, "sphinxcontrib-htmlhelp": { @@ -662,7 +619,6 @@ "sha256:3c0bc24a2c41e340ac37c85ced6dafc879ab485c095b1d65d2461ac2f7cca86f", "sha256:e8f5bb7e31b2dbb25b9cc435c8ab7a79787ebf7f906155729338f3156d93659b" ], - "markers": "python_version >= '3.5'", "version": "==1.0.3" }, "sphinxcontrib-jsmath": { @@ -670,7 +626,6 @@ "sha256:2ec2eaebfb78f3f2078e73666b1415417a116cc848b72e5172e596c871103178", "sha256:a9925e4a4587247ed2191a22df5f6970656cb8ca2bd6284309578f2153e0c4b8" ], - "markers": "python_version >= '3.5'", "version": "==1.0.1" }, "sphinxcontrib-qthelp": { @@ -678,7 +633,6 @@ "sha256:4c33767ee058b70dba89a6fc5c1892c0d57a54be67ddd3e7875a18d14cba5a72", "sha256:bd9fc24bcb748a8d51fd4ecaade681350aa63009a347a8c14e637895444dfab6" ], - "markers": "python_version >= '3.5'", "version": "==1.0.3" }, "sphinxcontrib-serializinghtml": { @@ -686,7 +640,6 @@ "sha256:eaa0eccc86e982a9b939b2b82d12cc5d013385ba5eadcc7e4fed23f4405f77bc", "sha256:f242a81d423f59617a8e5cf16f5d4d74e28ee9a66f9e5b637a18082991db5a9a" ], - "markers": "python_version >= '3.5'", "version": "==1.1.4" }, "toml": { @@ -735,7 +688,6 @@ "sha256:91056c15fa70756691db97756772bb1eb9678fa585d9184f24534b100dc60f4a", "sha256:e7983572181f5e1522d9c98453462384ee92a0be7fac5f1413a1e35c56cc0461" ], - "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4' and python_version < '4'", "version": "==1.25.10" }, "wrapt": { @@ -746,11 +698,10 @@ }, "zipp": { "hashes": [ - "sha256:43f4fa8d8bb313e65d8323a3952ef8756bf40f9a5c3ea7334be23ee4ec8278b6", - "sha256:b52f22895f4cfce194bc8172f3819ee8de7540aa6d873535a8668b730b8b411f" + "sha256:64ad89efee774d1897a58607895d80789c59778ea02185dd846ac38394a8642b", + "sha256:eed8ec0b8d1416b2ca33516a37a08892442f3954dee131e92cfd92d8fe3e7066" ], - "markers": "python_version >= '3.6'", - "version": "==3.2.0" + "version": "==3.3.0" } } } From e8e14932ae6f9c0e548c60e97b69ed55a5f54bfa Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 8 Oct 2020 10:38:41 +0000 Subject: [PATCH 02/13] Bump pytest from 6.0.2 to 6.1.1 Bumps [pytest](https://github.com/pytest-dev/pytest) from 6.0.2 to 6.1.1. - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/master/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest/compare/6.0.2...6.1.1) Signed-off-by: dependabot[bot] --- Pipfile | 2 +- Pipfile.lock | 15 ++++----------- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/Pipfile b/Pipfile index 937a11f9..e441c4e5 100644 --- a/Pipfile +++ b/Pipfile @@ -7,7 +7,7 @@ verify_ssl = true autopep8 = "~=1.5.4" pylint = "~=2.6.0" coverage = "~=5.2.1" -pytest = "~=6.0.1" +pytest = "~=6.1.1" pytest-grpc = "~=0.8.0" mypy = "~=0.782" coveralls = "~=2.1.2" diff --git a/Pipfile.lock b/Pipfile.lock index d48c7bec..0aadc6da 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -1,7 +1,7 @@ { "_meta": { "hash": { - "sha256": "2d80c8961ac1ab86009b3f42dc9389c9c850cace359d5c11761db430cb449547" + "sha256": "c9c94033dccea4f98f15f24859848e3eba026d443af69ced5b9248726f0231ca" }, "pipfile-spec": 6, "requires": {}, @@ -412,13 +412,6 @@ ], "version": "==0.6.1" }, - "more-itertools": { - "hashes": [ - "sha256:6f83822ae94818eae2612063a5101a7311e68ae8002005b5e05f03fd74a86a20", - "sha256:9b30f12df9393f0d28af9210ff8efe48d10c94f73e5daf886f10c4b0b0b4f03c" - ], - "version": "==8.5.0" - }, "mypy": { "hashes": [ "sha256:2c6cde8aa3426c1682d35190b59b71f661237d74b053822ea3d748e2c9578a7c", @@ -530,11 +523,11 @@ }, "pytest": { "hashes": [ - "sha256:0e37f61339c4578776e090c3b8f6b16ce4db333889d65d0efb305243ec544b40", - "sha256:c8f57c2a30983f469bf03e68cdfa74dc474ce56b8f280ddcb080dfd91df01043" + "sha256:7a8190790c17d79a11f847fba0b004ee9a8122582ebff4729a082c109e81a4c9", + "sha256:8f593023c1a0f916110285b6efd7f99db07d59546e3d8c36fc60e2ab05d3be92" ], "index": "pypi", - "version": "==6.0.2" + "version": "==6.1.1" }, "pytest-grpc": { "hashes": [ From 1d992afc5c673c95e92f8d9af0264d60d317d33b Mon Sep 17 00:00:00 2001 From: Jonatan Martens Date: Thu, 8 Oct 2020 13:43:18 +0300 Subject: [PATCH 03/13] [FIXED] grpcio 1.31.0 -> 1.32.0 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index d1e75b0e..8370a099 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ long_description_content_type="text/markdown", url="https://github.com/JonatanMartens/pyzeebe", packages=setuptools.find_packages(exclude=("tests",)), - install_requires=["grpcio==1.31.0", "protobuf==3.13.0", "oauthlib==3.1.0", "requests-oauthlib==1.3.0"], + install_requires=["grpcio==1.32.0", "protobuf==3.13.0", "oauthlib==3.1.0", "requests-oauthlib==1.3.0"], exclude=["*test.py", "tests", "*.bpmn"], keywords="zeebe workflow workflow-engine", license="MIT", From e8e2b34771e53a75ba538e0e8a65ec61b88a15bd Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 8 Oct 2020 10:43:42 +0000 Subject: [PATCH 04/13] Bump coverage from 5.2.1 to 5.3 Bumps [coverage](https://github.com/nedbat/coveragepy) from 5.2.1 to 5.3. - [Release notes](https://github.com/nedbat/coveragepy/releases) - [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst) - [Commits](https://github.com/nedbat/coveragepy/compare/coverage-5.2.1...coverage-5.3) Signed-off-by: dependabot[bot] --- Pipfile | 2 +- Pipfile.lock | 72 ++++++++++++++++++++++++++-------------------------- 2 files changed, 37 insertions(+), 37 deletions(-) diff --git a/Pipfile b/Pipfile index e441c4e5..191e807b 100644 --- a/Pipfile +++ b/Pipfile @@ -6,7 +6,7 @@ verify_ssl = true [dev-packages] autopep8 = "~=1.5.4" pylint = "~=2.6.0" -coverage = "~=5.2.1" +coverage = "~=5.3" pytest = "~=6.1.1" pytest-grpc = "~=0.8.0" mypy = "~=0.782" diff --git a/Pipfile.lock b/Pipfile.lock index 0aadc6da..bdbf7944 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -1,7 +1,7 @@ { "_meta": { "hash": { - "sha256": "c9c94033dccea4f98f15f24859848e3eba026d443af69ced5b9248726f0231ca" + "sha256": "c975392beb29a5cfa5708c4b575d97432421b7ef92ed65ed49c540de6903c2cd" }, "pipfile-spec": 6, "requires": {}, @@ -194,43 +194,43 @@ }, "coverage": { "hashes": [ - "sha256:098a703d913be6fbd146a8c50cc76513d726b022d170e5e98dc56d958fd592fb", - "sha256:16042dc7f8e632e0dcd5206a5095ebd18cb1d005f4c89694f7f8aafd96dd43a3", - "sha256:1adb6be0dcef0cf9434619d3b892772fdb48e793300f9d762e480e043bd8e716", - "sha256:27ca5a2bc04d68f0776f2cdcb8bbd508bbe430a7bf9c02315cd05fb1d86d0034", - "sha256:28f42dc5172ebdc32622a2c3f7ead1b836cdbf253569ae5673f499e35db0bac3", - "sha256:2fcc8b58953d74d199a1a4d633df8146f0ac36c4e720b4a1997e9b6327af43a8", - "sha256:304fbe451698373dc6653772c72c5d5e883a4aadaf20343592a7abb2e643dae0", - "sha256:30bc103587e0d3df9e52cd9da1dd915265a22fad0b72afe54daf840c984b564f", - "sha256:40f70f81be4d34f8d491e55936904db5c527b0711b2a46513641a5729783c2e4", - "sha256:4186fc95c9febeab5681bc3248553d5ec8c2999b8424d4fc3a39c9cba5796962", - "sha256:46794c815e56f1431c66d81943fa90721bb858375fb36e5903697d5eef88627d", - "sha256:4869ab1c1ed33953bb2433ce7b894a28d724b7aa76c19b11e2878034a4e4680b", - "sha256:4f6428b55d2916a69f8d6453e48a505c07b2245653b0aa9f0dee38785939f5e4", - "sha256:52f185ffd3291196dc1aae506b42e178a592b0b60a8610b108e6ad892cfc1bb3", - "sha256:538f2fd5eb64366f37c97fdb3077d665fa946d2b6d95447622292f38407f9258", - "sha256:64c4f340338c68c463f1b56e3f2f0423f7b17ba6c3febae80b81f0e093077f59", - "sha256:675192fca634f0df69af3493a48224f211f8db4e84452b08d5fcebb9167adb01", - "sha256:700997b77cfab016533b3e7dbc03b71d33ee4df1d79f2463a318ca0263fc29dd", - "sha256:8505e614c983834239f865da2dd336dcf9d72776b951d5dfa5ac36b987726e1b", - "sha256:962c44070c281d86398aeb8f64e1bf37816a4dfc6f4c0f114756b14fc575621d", - "sha256:9e536783a5acee79a9b308be97d3952b662748c4037b6a24cbb339dc7ed8eb89", - "sha256:9ea749fd447ce7fb1ac71f7616371f04054d969d412d37611716721931e36efd", - "sha256:a34cb28e0747ea15e82d13e14de606747e9e484fb28d63c999483f5d5188e89b", - "sha256:a3ee9c793ffefe2944d3a2bd928a0e436cd0ac2d9e3723152d6fd5398838ce7d", - "sha256:aab75d99f3f2874733946a7648ce87a50019eb90baef931698f96b76b6769a46", - "sha256:b1ed2bdb27b4c9fc87058a1cb751c4df8752002143ed393899edb82b131e0546", - "sha256:b360d8fd88d2bad01cb953d81fd2edd4be539df7bfec41e8753fe9f4456a5082", - "sha256:b8f58c7db64d8f27078cbf2a4391af6aa4e4767cc08b37555c4ae064b8558d9b", - "sha256:c1bbb628ed5192124889b51204de27c575b3ffc05a5a91307e7640eff1d48da4", - "sha256:c2ff24df02a125b7b346c4c9078c8936da06964cc2d276292c357d64378158f8", - "sha256:c890728a93fffd0407d7d37c1e6083ff3f9f211c83b4316fae3778417eab9811", - "sha256:c96472b8ca5dc135fb0aa62f79b033f02aa434fb03a8b190600a5ae4102df1fd", - "sha256:ce7866f29d3025b5b34c2e944e66ebef0d92e4a4f2463f7266daa03a1332a651", - "sha256:e26c993bd4b220429d4ec8c1468eca445a4064a61c74ca08da7429af9bc53bb0" + "sha256:0203acd33d2298e19b57451ebb0bed0ab0c602e5cf5a818591b4918b1f97d516", + "sha256:0f313707cdecd5cd3e217fc68c78a960b616604b559e9ea60cc16795c4304259", + "sha256:1c6703094c81fa55b816f5ae542c6ffc625fec769f22b053adb42ad712d086c9", + "sha256:1d44bb3a652fed01f1f2c10d5477956116e9b391320c94d36c6bf13b088a1097", + "sha256:280baa8ec489c4f542f8940f9c4c2181f0306a8ee1a54eceba071a449fb870a0", + "sha256:29a6272fec10623fcbe158fdf9abc7a5fa032048ac1d8631f14b50fbfc10d17f", + "sha256:2b31f46bf7b31e6aa690d4c7a3d51bb262438c6dcb0d528adde446531d0d3bb7", + "sha256:2d43af2be93ffbad25dd959899b5b809618a496926146ce98ee0b23683f8c51c", + "sha256:381ead10b9b9af5f64646cd27107fb27b614ee7040bb1226f9c07ba96625cbb5", + "sha256:47a11bdbd8ada9b7ee628596f9d97fbd3851bd9999d398e9436bd67376dbece7", + "sha256:4d6a42744139a7fa5b46a264874a781e8694bb32f1d76d8137b68138686f1729", + "sha256:50691e744714856f03a86df3e2bff847c2acede4c191f9a1da38f088df342978", + "sha256:530cc8aaf11cc2ac7430f3614b04645662ef20c348dce4167c22d99bec3480e9", + "sha256:582ddfbe712025448206a5bc45855d16c2e491c2dd102ee9a2841418ac1c629f", + "sha256:63808c30b41f3bbf65e29f7280bf793c79f54fb807057de7e5238ffc7cc4d7b9", + "sha256:71b69bd716698fa62cd97137d6f2fdf49f534decb23a2c6fc80813e8b7be6822", + "sha256:7858847f2d84bf6e64c7f66498e851c54de8ea06a6f96a32a1d192d846734418", + "sha256:78e93cc3571fd928a39c0b26767c986188a4118edc67bc0695bc7a284da22e82", + "sha256:7f43286f13d91a34fadf61ae252a51a130223c52bfefb50310d5b2deb062cf0f", + "sha256:86e9f8cd4b0cdd57b4ae71a9c186717daa4c5a99f3238a8723f416256e0b064d", + "sha256:8f264ba2701b8c9f815b272ad568d555ef98dfe1576802ab3149c3629a9f2221", + "sha256:9342dd70a1e151684727c9c91ea003b2fb33523bf19385d4554f7897ca0141d4", + "sha256:9361de40701666b034c59ad9e317bae95c973b9ff92513dd0eced11c6adf2e21", + "sha256:9669179786254a2e7e57f0ecf224e978471491d660aaca833f845b72a2df3709", + "sha256:aac1ba0a253e17889550ddb1b60a2063f7474155465577caa2a3b131224cfd54", + "sha256:aef72eae10b5e3116bac6957de1df4d75909fc76d1499a53fb6387434b6bcd8d", + "sha256:bd3166bb3b111e76a4f8e2980fa1addf2920a4ca9b2b8ca36a3bc3dedc618270", + "sha256:c1b78fb9700fc961f53386ad2fd86d87091e06ede5d118b8a50dea285a071c24", + "sha256:c3888a051226e676e383de03bf49eb633cd39fc829516e5334e69b8d81aae751", + "sha256:c5f17ad25d2c1286436761b462e22b5020d83316f8e8fcb5deb2b3151f8f1d3a", + "sha256:c851b35fc078389bc16b915a0a7c1d5923e12e2c5aeec58c52f4aa8085ac8237", + "sha256:cb7df71de0af56000115eafd000b867d1261f786b5eebd88a0ca6360cccfaca7", + "sha256:cedb2f9e1f990918ea061f28a0f0077a07702e3819602d3507e2ff98c8d20636", + "sha256:e8caf961e1b1a945db76f1b5fa9c91498d15f545ac0ababbe575cfab185d3bd8" ], "index": "pypi", - "version": "==5.2.1" + "version": "==5.3" }, "coveralls": { "hashes": [ From 1117166a2165171c4fbf98e1489803186fc56fa0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 8 Oct 2020 10:52:55 +0000 Subject: [PATCH 05/13] Bump importlib-metadata from 1.7.0 to 2.0.0 Bumps [importlib-metadata](http://importlib-metadata.readthedocs.io/) from 1.7.0 to 2.0.0. Signed-off-by: dependabot[bot] --- Pipfile | 2 +- Pipfile.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Pipfile b/Pipfile index 191e807b..bc5c26ea 100644 --- a/Pipfile +++ b/Pipfile @@ -11,7 +11,7 @@ pytest = "~=6.1.1" pytest-grpc = "~=0.8.0" mypy = "~=0.782" coveralls = "~=2.1.2" -importlib-metadata = "~=1.7.0" +importlib-metadata = "~=2.0.0" pyzeebe = {editable = true, path = "."} sphinx = "~=3.2.1" sphinx-rtd-theme = "*" diff --git a/Pipfile.lock b/Pipfile.lock index bdbf7944..0e24de45 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -1,7 +1,7 @@ { "_meta": { "hash": { - "sha256": "c975392beb29a5cfa5708c4b575d97432421b7ef92ed65ed49c540de6903c2cd" + "sha256": "1ed115616eaa96dac1ed8b6120301e13440ef0b3cf3cf5d11e824de385be2feb" }, "pipfile-spec": 6, "requires": {}, @@ -314,11 +314,11 @@ }, "importlib-metadata": { "hashes": [ - "sha256:90bb658cdbbf6d1735b6341ce708fc7024a3e14e99ffdc5783edea9f9b077f83", - "sha256:dc15b2969b4ce36305c51eebe62d418ac7791e9a157911d58bfb1f9ccd8e2070" + "sha256:77a540690e24b0305878c37ffd421785a6f7e53c8b5720d211b211de8d0e95da", + "sha256:cefa1a2f919b866c5beb7c9f7b0ebb4061f30a8a9bf16d609b000e2dfaceb9c3" ], "index": "pypi", - "version": "==1.7.0" + "version": "==2.0.0" }, "iniconfig": { "hashes": [ From bbd7354be847dd9a4a837d7c9b213cc9a5cce469 Mon Sep 17 00:00:00 2001 From: Jonatan Martens Date: Thu, 8 Oct 2020 16:13:03 +0300 Subject: [PATCH 06/13] [CHANGED] Using zeebe_grpc instead of own implementation --- Pipfile | 1 + Pipfile.lock | 68 +- pyzeebe/grpc_internals/zeebe_adapter_base.py | 2 +- pyzeebe/grpc_internals/zeebe_job_adapter.py | 4 +- .../grpc_internals/zeebe_message_adapter.py | 2 +- pyzeebe/grpc_internals/zeebe_pb2.py | 1820 ----------------- pyzeebe/grpc_internals/zeebe_pb2_grpc.py | 355 ---- .../grpc_internals/zeebe_workflow_adapter.py | 4 +- .../grpc_internals/zeebe_job_adapter_test.py | 3 +- .../zeebe_message_adapter_test.py | 3 +- tests/unit/utils/gateway_mock.py | 4 +- tests/unit/utils/grpc_utils.py | 4 +- 12 files changed, 77 insertions(+), 2193 deletions(-) delete mode 100644 pyzeebe/grpc_internals/zeebe_pb2.py delete mode 100644 pyzeebe/grpc_internals/zeebe_pb2_grpc.py diff --git a/Pipfile b/Pipfile index bc5c26ea..71e73c5a 100644 --- a/Pipfile +++ b/Pipfile @@ -21,3 +21,4 @@ grpcio = "~=1.32.0" protobuf = "~=3.13.0" oauthlib = "~=3.1.0" requests-oauthlib = "~=1.3.0" +zeebe-grpc = "~=0.24.3.3" diff --git a/Pipfile.lock b/Pipfile.lock index 0e24de45..6a2f2bea 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -1,7 +1,7 @@ { "_meta": { "hash": { - "sha256": "1ed115616eaa96dac1ed8b6120301e13440ef0b3cf3cf5d11e824de385be2feb" + "sha256": "ebc21c36e40c5602486c8a5b564d1b02f2c95340c63cc3f4fbc7215f134e26d3" }, "pipfile-spec": 6, "requires": {}, @@ -78,6 +78,7 @@ "sha256:b307872f855b18632ce0c21c5e45be78c0ea7ae4c15c828c20788b26921eb3f6", "sha256:b97d804b1e9b523befed77c48dacec60e6dcb0b5391d57af6a65a312a90648c0" ], + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", "version": "==2.10" }, "oauthlib": { @@ -117,12 +118,14 @@ "sha256:b3559a131db72c33ee969480840fff4bb6dd111de7dd27c8ee1f820f4f00231b", "sha256:fe75cc94a9443b9246fc7049224f75604b113c36acb93f87b80ed42c44cbb898" ], + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'", "version": "==2.24.0" }, "requests-oauthlib": { "hashes": [ "sha256:7f71572defaecd16372f9006f33c2ec8c077c3cfa6f5911a9a90202beb513f3d", - "sha256:b4261601a71fd721a8bd6d7aa1cc1d6a8a93b4a9f5e96626f8e4d91e8beeaa6a" + "sha256:b4261601a71fd721a8bd6d7aa1cc1d6a8a93b4a9f5e96626f8e4d91e8beeaa6a", + "sha256:fa6c47b933f01060936d87ae9327fead68768b69c6c9ea2109c48be30f2d4dbc" ], "index": "pypi", "version": "==1.3.0" @@ -132,6 +135,7 @@ "sha256:30639c035cdb23534cd4aa2dd52c3bf48f06e5f4a941509c8bafd8ce11080259", "sha256:8b74bedcbbbaca38ff6d7491d76f2b06b3592611af620f8426e82dddb04a5ced" ], + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", "version": "==1.15.0" }, "urllib3": { @@ -139,7 +143,16 @@ "sha256:91056c15fa70756691db97756772bb1eb9678fa585d9184f24534b100dc60f4a", "sha256:e7983572181f5e1522d9c98453462384ee92a0be7fac5f1413a1e35c56cc0461" ], + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4' and python_version < '4'", "version": "==1.25.10" + }, + "zeebe-grpc": { + "hashes": [ + "sha256:50106bfdf970c75b6191b733b2502f85a5f642bed91f105fc22cb09be4c6f674", + "sha256:d04fb7c6d49362ca6f83ab666443b1dcf51e76f57e3996c8f72f1265f6962601" + ], + "index": "pypi", + "version": "==0.24.3.3" } }, "develop": { @@ -155,13 +168,23 @@ "sha256:2f4078c2a41bf377eea06d71c9d2ba4eb8f6b1af2135bec27bbbb7d8f12bb703", "sha256:bc58d83eb610252fd8de6363e39d4f1d0619c894b0ed24603b881c02e64c7386" ], + "markers": "python_version >= '3.5'", "version": "==2.4.2" }, + "atomicwrites": { + "hashes": [ + "sha256:6d1784dea7c0c8d4a5172b6c620f40b6e4cbfdf96d783691f2e1302a7b88e197", + "sha256:ae70396ad1a434f9c7046fd2dd196fc04b12f9e91ffb859164193be8b6168a7a" + ], + "markers": "sys_platform == 'win32'", + "version": "==1.4.0" + }, "attrs": { "hashes": [ "sha256:26b54ddbbb9ee1d34d5d3668dd37d6cf74990ab23c828c2888dccdceee395594", "sha256:fce7fc47dfc976152e82d53ff92fa0407700c21acd20886a13777a0d20e655dc" ], + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", "version": "==20.2.0" }, "autopep8": { @@ -176,6 +199,7 @@ "sha256:1aac2ae2d0d8ea368fa90906567f5c08463d98ade155c0c4bfedd6a0f7160e38", "sha256:d670ea0b10f8b723672d3a6abeb87b565b244da220d76b4dba1b66269ec152d4" ], + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", "version": "==2.8.0" }, "certifi": { @@ -192,6 +216,14 @@ ], "version": "==3.0.4" }, + "colorama": { + "hashes": [ + "sha256:7d73d2a99753107a36ac6b455ee49046802e59d9d076ef8e47b61499fa29afff", + "sha256:e96da0d330793e2cb9485e9ddfd918d456036c7149416295932478192f4436a1" + ], + "markers": "sys_platform == 'win32' and sys_platform == 'win32' and sys_platform == 'win32'", + "version": "==0.4.3" + }, "coverage": { "hashes": [ "sha256:0203acd33d2298e19b57451ebb0bed0ab0c602e5cf5a818591b4918b1f97d516", @@ -251,6 +283,7 @@ "sha256:0c5b78adfbf7762415433f5515cd5c9e762339e23369dbe8000d84a4bf4ab3af", "sha256:c2de3a60e9e7d07be26b7f2b00ca0309c207e06c100f9cc2a94931fc75a478fc" ], + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'", "version": "==0.16" }, "grpcio": { @@ -303,6 +336,7 @@ "sha256:b307872f855b18632ce0c21c5e45be78c0ea7ae4c15c828c20788b26921eb3f6", "sha256:b97d804b1e9b523befed77c48dacec60e6dcb0b5391d57af6a65a312a90648c0" ], + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", "version": "==2.10" }, "imagesize": { @@ -310,6 +344,7 @@ "sha256:6965f19a6a2039c7d48bca7dba2473069ff854c36ae6f19d2cde309d998228a1", "sha256:b1f6b5a4eab1f73479a50fb79fcf729514a900c341d8503d62a62dbc4127a2b1" ], + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", "version": "==1.2.0" }, "importlib-metadata": { @@ -329,16 +364,18 @@ }, "isort": { "hashes": [ - "sha256:20544581447ccb6a80940c5cace8cbc32c0f58d82d67d34a182950fe7b93321b", - "sha256:ef200cc0ebd896c5bb0d7da9fd390392648c56c2099c2d2ff940ac94739f62aa" + "sha256:2f510f34ae18a8d0958c53eec51ef84fd099f07c4c639676525acbcd7b5bd3ff", + "sha256:dd3211f513f4a92ec1ec1876fc1dc3c686649c349d49523f5b5adbb0814e5960" ], - "version": "==5.6.0" + "markers": "python_version >= '3.6' and python_version < '4.0'", + "version": "==5.6.1" }, "jinja2": { "hashes": [ "sha256:89aab215427ef59c34ad58735269eb58b1a5808103067f7bb9d5836c651b3bb0", "sha256:f0a4641d3cf955324a89c04f3d94663aa4d638abe8f733ecd3582848e1c37035" ], + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'", "version": "==2.11.2" }, "lazy-object-proxy": { @@ -365,6 +402,7 @@ "sha256:efa1909120ce98bbb3777e8b6f92237f5d5c8ea6758efea36a473e1d38f7d3e4", "sha256:f3900e8a5de27447acbf900b4750b0ddfd7ec1ea7fbaf11dfa911141bc522af0" ], + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", "version": "==1.4.3" }, "markupsafe": { @@ -403,6 +441,7 @@ "sha256:e249096428b3ae81b08327a63a485ad0878de3fb939049038579ac0ef61e17e7", "sha256:e8313f01ba26fbbe36c7be1966a7b7424942f670f38e666995b88d012765b9be" ], + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", "version": "==1.1.1" }, "mccabe": { @@ -452,6 +491,7 @@ "sha256:4357f74f47b9c12db93624a82154e9b120fa8293699949152b22065d556079f8", "sha256:998416ba6962ae7fbd6596850b80e17859a5753ba17c32284f67bfff33784181" ], + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", "version": "==20.4" }, "pluggy": { @@ -459,6 +499,7 @@ "sha256:15b2acde666561e1298d71b523007ed7364de07029219b604cf808bfa1c765b0", "sha256:966c145cd83c96502c3c3868f50408687b38434af77734af1e9ca461a4081d2d" ], + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", "version": "==0.13.1" }, "protobuf": { @@ -490,6 +531,7 @@ "sha256:366389d1db726cd2fcfc79732e75410e5fe4d31db13692115529d34069a043c2", "sha256:9ca6883ce56b4e8da7e79ac18787889fa5206c79dcc67fb065376cd2fe03f342" ], + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", "version": "==1.9.0" }, "pycodestyle": { @@ -497,6 +539,7 @@ "sha256:2295e7b2f6b5bd100585ebcb1f616591b652db8a741695b3d8f5d28bdc934367", "sha256:c58a7d2815e0e8d7972bf1803331fb0152f867bd89adf8a01dfd55085434192e" ], + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", "version": "==2.6.0" }, "pygments": { @@ -504,6 +547,7 @@ "sha256:307543fe65c0947b126e83dd5a61bd8acbd84abec11f43caebaf5534cbc17998", "sha256:926c3f319eda178d1bd90851e4317e6d8cdb5e292a3386aac9bd75eca29cf9c7" ], + "markers": "python_version >= '3.5'", "version": "==2.7.1" }, "pylint": { @@ -519,6 +563,7 @@ "sha256:c203ec8783bf771a155b207279b9bccb8dea02d8f0c9e5f8ead507bc3246ecc1", "sha256:ef9d7589ef3c200abe66653d3f1ab1033c3c419ae9b9bdb1240a85b024efc88b" ], + "markers": "python_version >= '2.6' and python_version not in '3.0, 3.1, 3.2, 3.3'", "version": "==2.4.7" }, "pytest": { @@ -553,12 +598,14 @@ "sha256:b3559a131db72c33ee969480840fff4bb6dd111de7dd27c8ee1f820f4f00231b", "sha256:fe75cc94a9443b9246fc7049224f75604b113c36acb93f87b80ed42c44cbb898" ], + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'", "version": "==2.24.0" }, "requests-oauthlib": { "hashes": [ "sha256:7f71572defaecd16372f9006f33c2ec8c077c3cfa6f5911a9a90202beb513f3d", - "sha256:b4261601a71fd721a8bd6d7aa1cc1d6a8a93b4a9f5e96626f8e4d91e8beeaa6a" + "sha256:b4261601a71fd721a8bd6d7aa1cc1d6a8a93b4a9f5e96626f8e4d91e8beeaa6a", + "sha256:fa6c47b933f01060936d87ae9327fead68768b69c6c9ea2109c48be30f2d4dbc" ], "index": "pypi", "version": "==1.3.0" @@ -568,6 +615,7 @@ "sha256:30639c035cdb23534cd4aa2dd52c3bf48f06e5f4a941509c8bafd8ce11080259", "sha256:8b74bedcbbbaca38ff6d7491d76f2b06b3592611af620f8426e82dddb04a5ced" ], + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", "version": "==1.15.0" }, "snowballstemmer": { @@ -598,6 +646,7 @@ "sha256:806111e5e962be97c29ec4c1e7fe277bfd19e9652fb1a4392105b43e01af885a", "sha256:a072735ec80e7675e3f432fcae8610ecf509c5f1869d17e2eecff44389cdbc58" ], + "markers": "python_version >= '3.5'", "version": "==1.0.2" }, "sphinxcontrib-devhelp": { @@ -605,6 +654,7 @@ "sha256:8165223f9a335cc1af7ffe1ed31d2871f325254c0423bc0c4c7cd1c1e4734a2e", "sha256:ff7f1afa7b9642e7060379360a67e9c41e8f3121f2ce9164266f61b9f4b338e4" ], + "markers": "python_version >= '3.5'", "version": "==1.0.2" }, "sphinxcontrib-htmlhelp": { @@ -612,6 +662,7 @@ "sha256:3c0bc24a2c41e340ac37c85ced6dafc879ab485c095b1d65d2461ac2f7cca86f", "sha256:e8f5bb7e31b2dbb25b9cc435c8ab7a79787ebf7f906155729338f3156d93659b" ], + "markers": "python_version >= '3.5'", "version": "==1.0.3" }, "sphinxcontrib-jsmath": { @@ -619,6 +670,7 @@ "sha256:2ec2eaebfb78f3f2078e73666b1415417a116cc848b72e5172e596c871103178", "sha256:a9925e4a4587247ed2191a22df5f6970656cb8ca2bd6284309578f2153e0c4b8" ], + "markers": "python_version >= '3.5'", "version": "==1.0.1" }, "sphinxcontrib-qthelp": { @@ -626,6 +678,7 @@ "sha256:4c33767ee058b70dba89a6fc5c1892c0d57a54be67ddd3e7875a18d14cba5a72", "sha256:bd9fc24bcb748a8d51fd4ecaade681350aa63009a347a8c14e637895444dfab6" ], + "markers": "python_version >= '3.5'", "version": "==1.0.3" }, "sphinxcontrib-serializinghtml": { @@ -633,6 +686,7 @@ "sha256:eaa0eccc86e982a9b939b2b82d12cc5d013385ba5eadcc7e4fed23f4405f77bc", "sha256:f242a81d423f59617a8e5cf16f5d4d74e28ee9a66f9e5b637a18082991db5a9a" ], + "markers": "python_version >= '3.5'", "version": "==1.1.4" }, "toml": { @@ -681,6 +735,7 @@ "sha256:91056c15fa70756691db97756772bb1eb9678fa585d9184f24534b100dc60f4a", "sha256:e7983572181f5e1522d9c98453462384ee92a0be7fac5f1413a1e35c56cc0461" ], + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4' and python_version < '4'", "version": "==1.25.10" }, "wrapt": { @@ -694,6 +749,7 @@ "sha256:64ad89efee774d1897a58607895d80789c59778ea02185dd846ac38394a8642b", "sha256:eed8ec0b8d1416b2ca33516a37a08892442f3954dee131e92cfd92d8fe3e7066" ], + "markers": "python_version >= '3.6'", "version": "==3.3.0" } } diff --git a/pyzeebe/grpc_internals/zeebe_adapter_base.py b/pyzeebe/grpc_internals/zeebe_adapter_base.py index 6c14f71a..6e4cbba9 100644 --- a/pyzeebe/grpc_internals/zeebe_adapter_base.py +++ b/pyzeebe/grpc_internals/zeebe_adapter_base.py @@ -2,10 +2,10 @@ import os import grpc +from zeebe_grpc.gateway_pb2_grpc import GatewayStub from pyzeebe.credentials.base_credentials import BaseCredentials from pyzeebe.exceptions import ZeebeBackPressure, ZeebeGatewayUnavailable, ZeebeInternalError -from pyzeebe.grpc_internals.zeebe_pb2_grpc import GatewayStub class ZeebeAdapterBase(object): diff --git a/pyzeebe/grpc_internals/zeebe_job_adapter.py b/pyzeebe/grpc_internals/zeebe_job_adapter.py index b3af3d98..b6782571 100644 --- a/pyzeebe/grpc_internals/zeebe_job_adapter.py +++ b/pyzeebe/grpc_internals/zeebe_job_adapter.py @@ -3,11 +3,11 @@ from typing import Dict, List, Generator import grpc +from zeebe_grpc.gateway_pb2 import ActivateJobsRequest, CompleteJobRequest, CompleteJobResponse, FailJobRequest, \ + FailJobResponse, ThrowErrorRequest, ThrowErrorResponse from pyzeebe.exceptions import ActivateJobsRequestInvalid, JobAlreadyDeactivated, JobNotFound from pyzeebe.grpc_internals.zeebe_adapter_base import ZeebeAdapterBase -from pyzeebe.grpc_internals.zeebe_pb2 import ActivateJobsRequest, CompleteJobRequest, CompleteJobResponse, \ - FailJobRequest, FailJobResponse, ThrowErrorRequest, ThrowErrorResponse from pyzeebe.job.job import Job diff --git a/pyzeebe/grpc_internals/zeebe_message_adapter.py b/pyzeebe/grpc_internals/zeebe_message_adapter.py index ce72f53e..01d9a75e 100644 --- a/pyzeebe/grpc_internals/zeebe_message_adapter.py +++ b/pyzeebe/grpc_internals/zeebe_message_adapter.py @@ -2,10 +2,10 @@ from typing import Dict import grpc +from zeebe_grpc.gateway_pb2 import PublishMessageRequest, PublishMessageResponse from pyzeebe.exceptions import MessageAlreadyExists from pyzeebe.grpc_internals.zeebe_adapter_base import ZeebeAdapterBase -from pyzeebe.grpc_internals.zeebe_pb2 import PublishMessageRequest, PublishMessageResponse class ZeebeMessageAdapter(ZeebeAdapterBase): diff --git a/pyzeebe/grpc_internals/zeebe_pb2.py b/pyzeebe/grpc_internals/zeebe_pb2.py deleted file mode 100644 index c1dd9393..00000000 --- a/pyzeebe/grpc_internals/zeebe_pb2.py +++ /dev/null @@ -1,1820 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: zeebe.proto - -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - - - -DESCRIPTOR = _descriptor.FileDescriptor( - name='zeebe.proto', - package='gateway_protocol', - syntax='proto3', - serialized_options=b'\n\031io.zeebe.gateway.protocolP\000Z\002pb', - create_key=_descriptor._internal_create_key, - serialized_pb=b'\n\x0bzeebe.proto\x12\x10gateway_protocol\"\x8e\x01\n\x13\x41\x63tivateJobsRequest\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x0e\n\x06worker\x18\x02 \x01(\t\x12\x0f\n\x07timeout\x18\x03 \x01(\x03\x12\x19\n\x11maxJobsToActivate\x18\x04 \x01(\x05\x12\x15\n\rfetchVariable\x18\x05 \x03(\t\x12\x16\n\x0erequestTimeout\x18\x06 \x01(\x03\"D\n\x14\x41\x63tivateJobsResponse\x12,\n\x04jobs\x18\x01 \x03(\x0b\x32\x1e.gateway_protocol.ActivatedJob\"\xa1\x02\n\x0c\x41\x63tivatedJob\x12\x0b\n\x03key\x18\x01 \x01(\x03\x12\x0c\n\x04type\x18\x02 \x01(\t\x12\x1b\n\x13workflowInstanceKey\x18\x03 \x01(\x03\x12\x15\n\rbpmnProcessId\x18\x04 \x01(\t\x12!\n\x19workflowDefinitionVersion\x18\x05 \x01(\x05\x12\x13\n\x0bworkflowKey\x18\x06 \x01(\x03\x12\x11\n\telementId\x18\x07 \x01(\t\x12\x1a\n\x12\x65lementInstanceKey\x18\x08 \x01(\x03\x12\x15\n\rcustomHeaders\x18\t \x01(\t\x12\x0e\n\x06worker\x18\n \x01(\t\x12\x0f\n\x07retries\x18\x0b \x01(\x05\x12\x10\n\x08\x64\x65\x61\x64line\x18\x0c \x01(\x03\x12\x11\n\tvariables\x18\r \x01(\t\"<\n\x1d\x43\x61ncelWorkflowInstanceRequest\x12\x1b\n\x13workflowInstanceKey\x18\x01 \x01(\x03\" \n\x1e\x43\x61ncelWorkflowInstanceResponse\"7\n\x12\x43ompleteJobRequest\x12\x0e\n\x06jobKey\x18\x01 \x01(\x03\x12\x11\n\tvariables\x18\x02 \x01(\t\"\x15\n\x13\x43ompleteJobResponse\"o\n\x1d\x43reateWorkflowInstanceRequest\x12\x13\n\x0bworkflowKey\x18\x01 \x01(\x03\x12\x15\n\rbpmnProcessId\x18\x02 \x01(\t\x12\x0f\n\x07version\x18\x03 \x01(\x05\x12\x11\n\tvariables\x18\x04 \x01(\t\"z\n\x1e\x43reateWorkflowInstanceResponse\x12\x13\n\x0bworkflowKey\x18\x01 \x01(\x03\x12\x15\n\rbpmnProcessId\x18\x02 \x01(\t\x12\x0f\n\x07version\x18\x03 \x01(\x05\x12\x1b\n\x13workflowInstanceKey\x18\x04 \x01(\x03\"\x9b\x01\n\'CreateWorkflowInstanceWithResultRequest\x12@\n\x07request\x18\x01 \x01(\x0b\x32/.gateway_protocol.CreateWorkflowInstanceRequest\x12\x16\n\x0erequestTimeout\x18\x02 \x01(\x03\x12\x16\n\x0e\x66\x65tchVariables\x18\x03 \x03(\t\"\x97\x01\n(CreateWorkflowInstanceWithResultResponse\x12\x13\n\x0bworkflowKey\x18\x01 \x01(\x03\x12\x15\n\rbpmnProcessId\x18\x02 \x01(\t\x12\x0f\n\x07version\x18\x03 \x01(\x05\x12\x1b\n\x13workflowInstanceKey\x18\x04 \x01(\x03\x12\x11\n\tvariables\x18\x05 \x01(\t\"S\n\x15\x44\x65ployWorkflowRequest\x12:\n\tworkflows\x18\x01 \x03(\x0b\x32\'.gateway_protocol.WorkflowRequestObject\"\xab\x01\n\x15WorkflowRequestObject\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x42\n\x04type\x18\x02 \x01(\x0e\x32\x34.gateway_protocol.WorkflowRequestObject.ResourceType\x12\x12\n\ndefinition\x18\x03 \x01(\x0c\",\n\x0cResourceType\x12\x08\n\x04\x46ILE\x10\x00\x12\x08\n\x04\x42PMN\x10\x01\x12\x08\n\x04YAML\x10\x02\"\\\n\x16\x44\x65ployWorkflowResponse\x12\x0b\n\x03key\x18\x01 \x01(\x03\x12\x35\n\tworkflows\x18\x02 \x03(\x0b\x32\".gateway_protocol.WorkflowMetadata\"e\n\x10WorkflowMetadata\x12\x15\n\rbpmnProcessId\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\x05\x12\x13\n\x0bworkflowKey\x18\x03 \x01(\x03\x12\x14\n\x0cresourceName\x18\x04 \x01(\t\"G\n\x0e\x46\x61ilJobRequest\x12\x0e\n\x06jobKey\x18\x01 \x01(\x03\x12\x0f\n\x07retries\x18\x02 \x01(\x05\x12\x14\n\x0c\x65rrorMessage\x18\x03 \x01(\t\"\x11\n\x0f\x46\x61ilJobResponse\"L\n\x11ThrowErrorRequest\x12\x0e\n\x06jobKey\x18\x01 \x01(\x03\x12\x11\n\terrorCode\x18\x02 \x01(\t\x12\x14\n\x0c\x65rrorMessage\x18\x03 \x01(\t\"\x14\n\x12ThrowErrorResponse\"w\n\x15PublishMessageRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x16\n\x0e\x63orrelationKey\x18\x02 \x01(\t\x12\x12\n\ntimeToLive\x18\x03 \x01(\x03\x12\x11\n\tmessageId\x18\x04 \x01(\t\x12\x11\n\tvariables\x18\x05 \x01(\t\"\x18\n\x16PublishMessageResponse\"-\n\x16ResolveIncidentRequest\x12\x13\n\x0bincidentKey\x18\x01 \x01(\x03\"\x19\n\x17ResolveIncidentResponse\"\x11\n\x0fTopologyRequest\"\xa2\x01\n\x10TopologyResponse\x12-\n\x07\x62rokers\x18\x01 \x03(\x0b\x32\x1c.gateway_protocol.BrokerInfo\x12\x13\n\x0b\x63lusterSize\x18\x02 \x01(\x05\x12\x17\n\x0fpartitionsCount\x18\x03 \x01(\x05\x12\x19\n\x11replicationFactor\x18\x04 \x01(\x05\x12\x16\n\x0egatewayVersion\x18\x05 \x01(\t\"z\n\nBrokerInfo\x12\x0e\n\x06nodeId\x18\x01 \x01(\x05\x12\x0c\n\x04host\x18\x02 \x01(\t\x12\x0c\n\x04port\x18\x03 \x01(\x05\x12/\n\npartitions\x18\x04 \x03(\x0b\x32\x1b.gateway_protocol.Partition\x12\x0f\n\x07version\x18\x05 \x01(\t\"\x90\x01\n\tPartition\x12\x13\n\x0bpartitionId\x18\x01 \x01(\x05\x12=\n\x04role\x18\x02 \x01(\x0e\x32/.gateway_protocol.Partition.PartitionBrokerRole\"/\n\x13PartitionBrokerRole\x12\n\n\x06LEADER\x10\x00\x12\x0c\n\x08\x46OLLOWER\x10\x01\":\n\x17UpdateJobRetriesRequest\x12\x0e\n\x06jobKey\x18\x01 \x01(\x03\x12\x0f\n\x07retries\x18\x02 \x01(\x05\"\x1a\n\x18UpdateJobRetriesResponse\"S\n\x13SetVariablesRequest\x12\x1a\n\x12\x65lementInstanceKey\x18\x01 \x01(\x03\x12\x11\n\tvariables\x18\x02 \x01(\t\x12\r\n\x05local\x18\x03 \x01(\x08\"#\n\x14SetVariablesResponse\x12\x0b\n\x03key\x18\x01 \x01(\x03\x32\xee\n\n\x07Gateway\x12\x61\n\x0c\x41\x63tivateJobs\x12%.gateway_protocol.ActivateJobsRequest\x1a&.gateway_protocol.ActivateJobsResponse\"\x00\x30\x01\x12}\n\x16\x43\x61ncelWorkflowInstance\x12/.gateway_protocol.CancelWorkflowInstanceRequest\x1a\x30.gateway_protocol.CancelWorkflowInstanceResponse\"\x00\x12\\\n\x0b\x43ompleteJob\x12$.gateway_protocol.CompleteJobRequest\x1a%.gateway_protocol.CompleteJobResponse\"\x00\x12}\n\x16\x43reateWorkflowInstance\x12/.gateway_protocol.CreateWorkflowInstanceRequest\x1a\x30.gateway_protocol.CreateWorkflowInstanceResponse\"\x00\x12\x9b\x01\n CreateWorkflowInstanceWithResult\x12\x39.gateway_protocol.CreateWorkflowInstanceWithResultRequest\x1a:.gateway_protocol.CreateWorkflowInstanceWithResultResponse\"\x00\x12\x65\n\x0e\x44\x65ployWorkflow\x12\'.gateway_protocol.DeployWorkflowRequest\x1a(.gateway_protocol.DeployWorkflowResponse\"\x00\x12P\n\x07\x46\x61ilJob\x12 .gateway_protocol.FailJobRequest\x1a!.gateway_protocol.FailJobResponse\"\x00\x12Y\n\nThrowError\x12#.gateway_protocol.ThrowErrorRequest\x1a$.gateway_protocol.ThrowErrorResponse\"\x00\x12\x65\n\x0ePublishMessage\x12\'.gateway_protocol.PublishMessageRequest\x1a(.gateway_protocol.PublishMessageResponse\"\x00\x12h\n\x0fResolveIncident\x12(.gateway_protocol.ResolveIncidentRequest\x1a).gateway_protocol.ResolveIncidentResponse\"\x00\x12_\n\x0cSetVariables\x12%.gateway_protocol.SetVariablesRequest\x1a&.gateway_protocol.SetVariablesResponse\"\x00\x12S\n\x08Topology\x12!.gateway_protocol.TopologyRequest\x1a\".gateway_protocol.TopologyResponse\"\x00\x12k\n\x10UpdateJobRetries\x12).gateway_protocol.UpdateJobRetriesRequest\x1a*.gateway_protocol.UpdateJobRetriesResponse\"\x00\x42!\n\x19io.zeebe.gateway.protocolP\x00Z\x02pbb\x06proto3' -) - - - -_WORKFLOWREQUESTOBJECT_RESOURCETYPE = _descriptor.EnumDescriptor( - name='ResourceType', - full_name='gateway_protocol.WorkflowRequestObject.ResourceType', - filename=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - values=[ - _descriptor.EnumValueDescriptor( - name='FILE', index=0, number=0, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='BPMN', index=1, number=1, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='YAML', index=2, number=2, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - ], - containing_type=None, - serialized_options=None, - serialized_start=1478, - serialized_end=1522, -) -_sym_db.RegisterEnumDescriptor(_WORKFLOWREQUESTOBJECT_RESOURCETYPE) - -_PARTITION_PARTITIONBROKERROLE = _descriptor.EnumDescriptor( - name='PartitionBrokerRole', - full_name='gateway_protocol.Partition.PartitionBrokerRole', - filename=None, - file=DESCRIPTOR, - create_key=_descriptor._internal_create_key, - values=[ - _descriptor.EnumValueDescriptor( - name='LEADER', index=0, number=0, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - _descriptor.EnumValueDescriptor( - name='FOLLOWER', index=1, number=1, - serialized_options=None, - type=None, - create_key=_descriptor._internal_create_key), - ], - containing_type=None, - serialized_options=None, - serialized_start=2540, - serialized_end=2587, -) -_sym_db.RegisterEnumDescriptor(_PARTITION_PARTITIONBROKERROLE) - - -_ACTIVATEJOBSREQUEST = _descriptor.Descriptor( - name='ActivateJobsRequest', - full_name='gateway_protocol.ActivateJobsRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='type', full_name='gateway_protocol.ActivateJobsRequest.type', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='worker', full_name='gateway_protocol.ActivateJobsRequest.worker', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='timeout', full_name='gateway_protocol.ActivateJobsRequest.timeout', index=2, - number=3, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='maxJobsToActivate', full_name='gateway_protocol.ActivateJobsRequest.maxJobsToActivate', index=3, - number=4, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='fetchVariable', full_name='gateway_protocol.ActivateJobsRequest.fetchVariable', index=4, - number=5, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='requestTimeout', full_name='gateway_protocol.ActivateJobsRequest.requestTimeout', index=5, - number=6, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=34, - serialized_end=176, -) - - -_ACTIVATEJOBSRESPONSE = _descriptor.Descriptor( - name='ActivateJobsResponse', - full_name='gateway_protocol.ActivateJobsResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='jobs', full_name='gateway_protocol.ActivateJobsResponse.jobs', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=178, - serialized_end=246, -) - - -_ACTIVATEDJOB = _descriptor.Descriptor( - name='ActivatedJob', - full_name='gateway_protocol.ActivatedJob', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='gateway_protocol.ActivatedJob.key', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='type', full_name='gateway_protocol.ActivatedJob.type', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='workflowInstanceKey', full_name='gateway_protocol.ActivatedJob.workflowInstanceKey', index=2, - number=3, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='bpmnProcessId', full_name='gateway_protocol.ActivatedJob.bpmnProcessId', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='workflowDefinitionVersion', full_name='gateway_protocol.ActivatedJob.workflowDefinitionVersion', index=4, - number=5, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='workflowKey', full_name='gateway_protocol.ActivatedJob.workflowKey', index=5, - number=6, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='elementId', full_name='gateway_protocol.ActivatedJob.elementId', index=6, - number=7, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='elementInstanceKey', full_name='gateway_protocol.ActivatedJob.elementInstanceKey', index=7, - number=8, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='customHeaders', full_name='gateway_protocol.ActivatedJob.customHeaders', index=8, - number=9, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='worker', full_name='gateway_protocol.ActivatedJob.worker', index=9, - number=10, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='retries', full_name='gateway_protocol.ActivatedJob.retries', index=10, - number=11, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='deadline', full_name='gateway_protocol.ActivatedJob.deadline', index=11, - number=12, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='variables', full_name='gateway_protocol.ActivatedJob.variables', index=12, - number=13, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=249, - serialized_end=538, -) - - -_CANCELWORKFLOWINSTANCEREQUEST = _descriptor.Descriptor( - name='CancelWorkflowInstanceRequest', - full_name='gateway_protocol.CancelWorkflowInstanceRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='workflowInstanceKey', full_name='gateway_protocol.CancelWorkflowInstanceRequest.workflowInstanceKey', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=540, - serialized_end=600, -) - - -_CANCELWORKFLOWINSTANCERESPONSE = _descriptor.Descriptor( - name='CancelWorkflowInstanceResponse', - full_name='gateway_protocol.CancelWorkflowInstanceResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=602, - serialized_end=634, -) - - -_COMPLETEJOBREQUEST = _descriptor.Descriptor( - name='CompleteJobRequest', - full_name='gateway_protocol.CompleteJobRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='jobKey', full_name='gateway_protocol.CompleteJobRequest.jobKey', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='variables', full_name='gateway_protocol.CompleteJobRequest.variables', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=636, - serialized_end=691, -) - - -_COMPLETEJOBRESPONSE = _descriptor.Descriptor( - name='CompleteJobResponse', - full_name='gateway_protocol.CompleteJobResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=693, - serialized_end=714, -) - - -_CREATEWORKFLOWINSTANCEREQUEST = _descriptor.Descriptor( - name='CreateWorkflowInstanceRequest', - full_name='gateway_protocol.CreateWorkflowInstanceRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='workflowKey', full_name='gateway_protocol.CreateWorkflowInstanceRequest.workflowKey', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='bpmnProcessId', full_name='gateway_protocol.CreateWorkflowInstanceRequest.bpmnProcessId', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='version', full_name='gateway_protocol.CreateWorkflowInstanceRequest.version', index=2, - number=3, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='variables', full_name='gateway_protocol.CreateWorkflowInstanceRequest.variables', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=716, - serialized_end=827, -) - - -_CREATEWORKFLOWINSTANCERESPONSE = _descriptor.Descriptor( - name='CreateWorkflowInstanceResponse', - full_name='gateway_protocol.CreateWorkflowInstanceResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='workflowKey', full_name='gateway_protocol.CreateWorkflowInstanceResponse.workflowKey', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='bpmnProcessId', full_name='gateway_protocol.CreateWorkflowInstanceResponse.bpmnProcessId', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='version', full_name='gateway_protocol.CreateWorkflowInstanceResponse.version', index=2, - number=3, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='workflowInstanceKey', full_name='gateway_protocol.CreateWorkflowInstanceResponse.workflowInstanceKey', index=3, - number=4, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=829, - serialized_end=951, -) - - -_CREATEWORKFLOWINSTANCEWITHRESULTREQUEST = _descriptor.Descriptor( - name='CreateWorkflowInstanceWithResultRequest', - full_name='gateway_protocol.CreateWorkflowInstanceWithResultRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='request', full_name='gateway_protocol.CreateWorkflowInstanceWithResultRequest.request', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='requestTimeout', full_name='gateway_protocol.CreateWorkflowInstanceWithResultRequest.requestTimeout', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='fetchVariables', full_name='gateway_protocol.CreateWorkflowInstanceWithResultRequest.fetchVariables', index=2, - number=3, type=9, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=954, - serialized_end=1109, -) - - -_CREATEWORKFLOWINSTANCEWITHRESULTRESPONSE = _descriptor.Descriptor( - name='CreateWorkflowInstanceWithResultResponse', - full_name='gateway_protocol.CreateWorkflowInstanceWithResultResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='workflowKey', full_name='gateway_protocol.CreateWorkflowInstanceWithResultResponse.workflowKey', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='bpmnProcessId', full_name='gateway_protocol.CreateWorkflowInstanceWithResultResponse.bpmnProcessId', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='version', full_name='gateway_protocol.CreateWorkflowInstanceWithResultResponse.version', index=2, - number=3, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='workflowInstanceKey', full_name='gateway_protocol.CreateWorkflowInstanceWithResultResponse.workflowInstanceKey', index=3, - number=4, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='variables', full_name='gateway_protocol.CreateWorkflowInstanceWithResultResponse.variables', index=4, - number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1112, - serialized_end=1263, -) - - -_DEPLOYWORKFLOWREQUEST = _descriptor.Descriptor( - name='DeployWorkflowRequest', - full_name='gateway_protocol.DeployWorkflowRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='workflows', full_name='gateway_protocol.DeployWorkflowRequest.workflows', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1265, - serialized_end=1348, -) - - -_WORKFLOWREQUESTOBJECT = _descriptor.Descriptor( - name='WorkflowRequestObject', - full_name='gateway_protocol.WorkflowRequestObject', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='gateway_protocol.WorkflowRequestObject.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='type', full_name='gateway_protocol.WorkflowRequestObject.type', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='definition', full_name='gateway_protocol.WorkflowRequestObject.definition', index=2, - number=3, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _WORKFLOWREQUESTOBJECT_RESOURCETYPE, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1351, - serialized_end=1522, -) - - -_DEPLOYWORKFLOWRESPONSE = _descriptor.Descriptor( - name='DeployWorkflowResponse', - full_name='gateway_protocol.DeployWorkflowResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='gateway_protocol.DeployWorkflowResponse.key', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='workflows', full_name='gateway_protocol.DeployWorkflowResponse.workflows', index=1, - number=2, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1524, - serialized_end=1616, -) - - -_WORKFLOWMETADATA = _descriptor.Descriptor( - name='WorkflowMetadata', - full_name='gateway_protocol.WorkflowMetadata', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='bpmnProcessId', full_name='gateway_protocol.WorkflowMetadata.bpmnProcessId', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='version', full_name='gateway_protocol.WorkflowMetadata.version', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='workflowKey', full_name='gateway_protocol.WorkflowMetadata.workflowKey', index=2, - number=3, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='resourceName', full_name='gateway_protocol.WorkflowMetadata.resourceName', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1618, - serialized_end=1719, -) - - -_FAILJOBREQUEST = _descriptor.Descriptor( - name='FailJobRequest', - full_name='gateway_protocol.FailJobRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='jobKey', full_name='gateway_protocol.FailJobRequest.jobKey', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='retries', full_name='gateway_protocol.FailJobRequest.retries', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='errorMessage', full_name='gateway_protocol.FailJobRequest.errorMessage', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1721, - serialized_end=1792, -) - - -_FAILJOBRESPONSE = _descriptor.Descriptor( - name='FailJobResponse', - full_name='gateway_protocol.FailJobResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1794, - serialized_end=1811, -) - - -_THROWERRORREQUEST = _descriptor.Descriptor( - name='ThrowErrorRequest', - full_name='gateway_protocol.ThrowErrorRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='jobKey', full_name='gateway_protocol.ThrowErrorRequest.jobKey', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='errorCode', full_name='gateway_protocol.ThrowErrorRequest.errorCode', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='errorMessage', full_name='gateway_protocol.ThrowErrorRequest.errorMessage', index=2, - number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1813, - serialized_end=1889, -) - - -_THROWERRORRESPONSE = _descriptor.Descriptor( - name='ThrowErrorResponse', - full_name='gateway_protocol.ThrowErrorResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1891, - serialized_end=1911, -) - - -_PUBLISHMESSAGEREQUEST = _descriptor.Descriptor( - name='PublishMessageRequest', - full_name='gateway_protocol.PublishMessageRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='gateway_protocol.PublishMessageRequest.name', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='correlationKey', full_name='gateway_protocol.PublishMessageRequest.correlationKey', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='timeToLive', full_name='gateway_protocol.PublishMessageRequest.timeToLive', index=2, - number=3, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='messageId', full_name='gateway_protocol.PublishMessageRequest.messageId', index=3, - number=4, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='variables', full_name='gateway_protocol.PublishMessageRequest.variables', index=4, - number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1913, - serialized_end=2032, -) - - -_PUBLISHMESSAGERESPONSE = _descriptor.Descriptor( - name='PublishMessageResponse', - full_name='gateway_protocol.PublishMessageResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2034, - serialized_end=2058, -) - - -_RESOLVEINCIDENTREQUEST = _descriptor.Descriptor( - name='ResolveIncidentRequest', - full_name='gateway_protocol.ResolveIncidentRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='incidentKey', full_name='gateway_protocol.ResolveIncidentRequest.incidentKey', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2060, - serialized_end=2105, -) - - -_RESOLVEINCIDENTRESPONSE = _descriptor.Descriptor( - name='ResolveIncidentResponse', - full_name='gateway_protocol.ResolveIncidentResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2107, - serialized_end=2132, -) - - -_TOPOLOGYREQUEST = _descriptor.Descriptor( - name='TopologyRequest', - full_name='gateway_protocol.TopologyRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2134, - serialized_end=2151, -) - - -_TOPOLOGYRESPONSE = _descriptor.Descriptor( - name='TopologyResponse', - full_name='gateway_protocol.TopologyResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='brokers', full_name='gateway_protocol.TopologyResponse.brokers', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='clusterSize', full_name='gateway_protocol.TopologyResponse.clusterSize', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='partitionsCount', full_name='gateway_protocol.TopologyResponse.partitionsCount', index=2, - number=3, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='replicationFactor', full_name='gateway_protocol.TopologyResponse.replicationFactor', index=3, - number=4, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='gatewayVersion', full_name='gateway_protocol.TopologyResponse.gatewayVersion', index=4, - number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2154, - serialized_end=2316, -) - - -_BROKERINFO = _descriptor.Descriptor( - name='BrokerInfo', - full_name='gateway_protocol.BrokerInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='nodeId', full_name='gateway_protocol.BrokerInfo.nodeId', index=0, - number=1, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='host', full_name='gateway_protocol.BrokerInfo.host', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='port', full_name='gateway_protocol.BrokerInfo.port', index=2, - number=3, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='partitions', full_name='gateway_protocol.BrokerInfo.partitions', index=3, - number=4, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='version', full_name='gateway_protocol.BrokerInfo.version', index=4, - number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2318, - serialized_end=2440, -) - - -_PARTITION = _descriptor.Descriptor( - name='Partition', - full_name='gateway_protocol.Partition', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='partitionId', full_name='gateway_protocol.Partition.partitionId', index=0, - number=1, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='role', full_name='gateway_protocol.Partition.role', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - _PARTITION_PARTITIONBROKERROLE, - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2443, - serialized_end=2587, -) - - -_UPDATEJOBRETRIESREQUEST = _descriptor.Descriptor( - name='UpdateJobRetriesRequest', - full_name='gateway_protocol.UpdateJobRetriesRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='jobKey', full_name='gateway_protocol.UpdateJobRetriesRequest.jobKey', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='retries', full_name='gateway_protocol.UpdateJobRetriesRequest.retries', index=1, - number=2, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2589, - serialized_end=2647, -) - - -_UPDATEJOBRETRIESRESPONSE = _descriptor.Descriptor( - name='UpdateJobRetriesResponse', - full_name='gateway_protocol.UpdateJobRetriesResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2649, - serialized_end=2675, -) - - -_SETVARIABLESREQUEST = _descriptor.Descriptor( - name='SetVariablesRequest', - full_name='gateway_protocol.SetVariablesRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='elementInstanceKey', full_name='gateway_protocol.SetVariablesRequest.elementInstanceKey', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='variables', full_name='gateway_protocol.SetVariablesRequest.variables', index=1, - number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='local', full_name='gateway_protocol.SetVariablesRequest.local', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2677, - serialized_end=2760, -) - - -_SETVARIABLESRESPONSE = _descriptor.Descriptor( - name='SetVariablesResponse', - full_name='gateway_protocol.SetVariablesResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='gateway_protocol.SetVariablesResponse.key', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2762, - serialized_end=2797, -) - -_ACTIVATEJOBSRESPONSE.fields_by_name['jobs'].message_type = _ACTIVATEDJOB -_CREATEWORKFLOWINSTANCEWITHRESULTREQUEST.fields_by_name['request'].message_type = _CREATEWORKFLOWINSTANCEREQUEST -_DEPLOYWORKFLOWREQUEST.fields_by_name['workflows'].message_type = _WORKFLOWREQUESTOBJECT -_WORKFLOWREQUESTOBJECT.fields_by_name['type'].enum_type = _WORKFLOWREQUESTOBJECT_RESOURCETYPE -_WORKFLOWREQUESTOBJECT_RESOURCETYPE.containing_type = _WORKFLOWREQUESTOBJECT -_DEPLOYWORKFLOWRESPONSE.fields_by_name['workflows'].message_type = _WORKFLOWMETADATA -_TOPOLOGYRESPONSE.fields_by_name['brokers'].message_type = _BROKERINFO -_BROKERINFO.fields_by_name['partitions'].message_type = _PARTITION -_PARTITION.fields_by_name['role'].enum_type = _PARTITION_PARTITIONBROKERROLE -_PARTITION_PARTITIONBROKERROLE.containing_type = _PARTITION -DESCRIPTOR.message_types_by_name['ActivateJobsRequest'] = _ACTIVATEJOBSREQUEST -DESCRIPTOR.message_types_by_name['ActivateJobsResponse'] = _ACTIVATEJOBSRESPONSE -DESCRIPTOR.message_types_by_name['ActivatedJob'] = _ACTIVATEDJOB -DESCRIPTOR.message_types_by_name['CancelWorkflowInstanceRequest'] = _CANCELWORKFLOWINSTANCEREQUEST -DESCRIPTOR.message_types_by_name['CancelWorkflowInstanceResponse'] = _CANCELWORKFLOWINSTANCERESPONSE -DESCRIPTOR.message_types_by_name['CompleteJobRequest'] = _COMPLETEJOBREQUEST -DESCRIPTOR.message_types_by_name['CompleteJobResponse'] = _COMPLETEJOBRESPONSE -DESCRIPTOR.message_types_by_name['CreateWorkflowInstanceRequest'] = _CREATEWORKFLOWINSTANCEREQUEST -DESCRIPTOR.message_types_by_name['CreateWorkflowInstanceResponse'] = _CREATEWORKFLOWINSTANCERESPONSE -DESCRIPTOR.message_types_by_name['CreateWorkflowInstanceWithResultRequest'] = _CREATEWORKFLOWINSTANCEWITHRESULTREQUEST -DESCRIPTOR.message_types_by_name['CreateWorkflowInstanceWithResultResponse'] = _CREATEWORKFLOWINSTANCEWITHRESULTRESPONSE -DESCRIPTOR.message_types_by_name['DeployWorkflowRequest'] = _DEPLOYWORKFLOWREQUEST -DESCRIPTOR.message_types_by_name['WorkflowRequestObject'] = _WORKFLOWREQUESTOBJECT -DESCRIPTOR.message_types_by_name['DeployWorkflowResponse'] = _DEPLOYWORKFLOWRESPONSE -DESCRIPTOR.message_types_by_name['WorkflowMetadata'] = _WORKFLOWMETADATA -DESCRIPTOR.message_types_by_name['FailJobRequest'] = _FAILJOBREQUEST -DESCRIPTOR.message_types_by_name['FailJobResponse'] = _FAILJOBRESPONSE -DESCRIPTOR.message_types_by_name['ThrowErrorRequest'] = _THROWERRORREQUEST -DESCRIPTOR.message_types_by_name['ThrowErrorResponse'] = _THROWERRORRESPONSE -DESCRIPTOR.message_types_by_name['PublishMessageRequest'] = _PUBLISHMESSAGEREQUEST -DESCRIPTOR.message_types_by_name['PublishMessageResponse'] = _PUBLISHMESSAGERESPONSE -DESCRIPTOR.message_types_by_name['ResolveIncidentRequest'] = _RESOLVEINCIDENTREQUEST -DESCRIPTOR.message_types_by_name['ResolveIncidentResponse'] = _RESOLVEINCIDENTRESPONSE -DESCRIPTOR.message_types_by_name['TopologyRequest'] = _TOPOLOGYREQUEST -DESCRIPTOR.message_types_by_name['TopologyResponse'] = _TOPOLOGYRESPONSE -DESCRIPTOR.message_types_by_name['BrokerInfo'] = _BROKERINFO -DESCRIPTOR.message_types_by_name['Partition'] = _PARTITION -DESCRIPTOR.message_types_by_name['UpdateJobRetriesRequest'] = _UPDATEJOBRETRIESREQUEST -DESCRIPTOR.message_types_by_name['UpdateJobRetriesResponse'] = _UPDATEJOBRETRIESRESPONSE -DESCRIPTOR.message_types_by_name['SetVariablesRequest'] = _SETVARIABLESREQUEST -DESCRIPTOR.message_types_by_name['SetVariablesResponse'] = _SETVARIABLESRESPONSE -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -ActivateJobsRequest = _reflection.GeneratedProtocolMessageType('ActivateJobsRequest', (_message.Message,), { - 'DESCRIPTOR' : _ACTIVATEJOBSREQUEST, - '__module__' : 'zeebe_pb2' - # @@protoc_insertion_point(class_scope:gateway_protocol.ActivateJobsRequest) - }) -_sym_db.RegisterMessage(ActivateJobsRequest) - -ActivateJobsResponse = _reflection.GeneratedProtocolMessageType('ActivateJobsResponse', (_message.Message,), { - 'DESCRIPTOR' : _ACTIVATEJOBSRESPONSE, - '__module__' : 'zeebe_pb2' - # @@protoc_insertion_point(class_scope:gateway_protocol.ActivateJobsResponse) - }) -_sym_db.RegisterMessage(ActivateJobsResponse) - -ActivatedJob = _reflection.GeneratedProtocolMessageType('ActivatedJob', (_message.Message,), { - 'DESCRIPTOR' : _ACTIVATEDJOB, - '__module__' : 'zeebe_pb2' - # @@protoc_insertion_point(class_scope:gateway_protocol.ActivatedJob) - }) -_sym_db.RegisterMessage(ActivatedJob) - -CancelWorkflowInstanceRequest = _reflection.GeneratedProtocolMessageType('CancelWorkflowInstanceRequest', (_message.Message,), { - 'DESCRIPTOR' : _CANCELWORKFLOWINSTANCEREQUEST, - '__module__' : 'zeebe_pb2' - # @@protoc_insertion_point(class_scope:gateway_protocol.CancelWorkflowInstanceRequest) - }) -_sym_db.RegisterMessage(CancelWorkflowInstanceRequest) - -CancelWorkflowInstanceResponse = _reflection.GeneratedProtocolMessageType('CancelWorkflowInstanceResponse', (_message.Message,), { - 'DESCRIPTOR' : _CANCELWORKFLOWINSTANCERESPONSE, - '__module__' : 'zeebe_pb2' - # @@protoc_insertion_point(class_scope:gateway_protocol.CancelWorkflowInstanceResponse) - }) -_sym_db.RegisterMessage(CancelWorkflowInstanceResponse) - -CompleteJobRequest = _reflection.GeneratedProtocolMessageType('CompleteJobRequest', (_message.Message,), { - 'DESCRIPTOR' : _COMPLETEJOBREQUEST, - '__module__' : 'zeebe_pb2' - # @@protoc_insertion_point(class_scope:gateway_protocol.CompleteJobRequest) - }) -_sym_db.RegisterMessage(CompleteJobRequest) - -CompleteJobResponse = _reflection.GeneratedProtocolMessageType('CompleteJobResponse', (_message.Message,), { - 'DESCRIPTOR' : _COMPLETEJOBRESPONSE, - '__module__' : 'zeebe_pb2' - # @@protoc_insertion_point(class_scope:gateway_protocol.CompleteJobResponse) - }) -_sym_db.RegisterMessage(CompleteJobResponse) - -CreateWorkflowInstanceRequest = _reflection.GeneratedProtocolMessageType('CreateWorkflowInstanceRequest', (_message.Message,), { - 'DESCRIPTOR' : _CREATEWORKFLOWINSTANCEREQUEST, - '__module__' : 'zeebe_pb2' - # @@protoc_insertion_point(class_scope:gateway_protocol.CreateWorkflowInstanceRequest) - }) -_sym_db.RegisterMessage(CreateWorkflowInstanceRequest) - -CreateWorkflowInstanceResponse = _reflection.GeneratedProtocolMessageType('CreateWorkflowInstanceResponse', (_message.Message,), { - 'DESCRIPTOR' : _CREATEWORKFLOWINSTANCERESPONSE, - '__module__' : 'zeebe_pb2' - # @@protoc_insertion_point(class_scope:gateway_protocol.CreateWorkflowInstanceResponse) - }) -_sym_db.RegisterMessage(CreateWorkflowInstanceResponse) - -CreateWorkflowInstanceWithResultRequest = _reflection.GeneratedProtocolMessageType('CreateWorkflowInstanceWithResultRequest', (_message.Message,), { - 'DESCRIPTOR' : _CREATEWORKFLOWINSTANCEWITHRESULTREQUEST, - '__module__' : 'zeebe_pb2' - # @@protoc_insertion_point(class_scope:gateway_protocol.CreateWorkflowInstanceWithResultRequest) - }) -_sym_db.RegisterMessage(CreateWorkflowInstanceWithResultRequest) - -CreateWorkflowInstanceWithResultResponse = _reflection.GeneratedProtocolMessageType('CreateWorkflowInstanceWithResultResponse', (_message.Message,), { - 'DESCRIPTOR' : _CREATEWORKFLOWINSTANCEWITHRESULTRESPONSE, - '__module__' : 'zeebe_pb2' - # @@protoc_insertion_point(class_scope:gateway_protocol.CreateWorkflowInstanceWithResultResponse) - }) -_sym_db.RegisterMessage(CreateWorkflowInstanceWithResultResponse) - -DeployWorkflowRequest = _reflection.GeneratedProtocolMessageType('DeployWorkflowRequest', (_message.Message,), { - 'DESCRIPTOR' : _DEPLOYWORKFLOWREQUEST, - '__module__' : 'zeebe_pb2' - # @@protoc_insertion_point(class_scope:gateway_protocol.DeployWorkflowRequest) - }) -_sym_db.RegisterMessage(DeployWorkflowRequest) - -WorkflowRequestObject = _reflection.GeneratedProtocolMessageType('WorkflowRequestObject', (_message.Message,), { - 'DESCRIPTOR' : _WORKFLOWREQUESTOBJECT, - '__module__' : 'zeebe_pb2' - # @@protoc_insertion_point(class_scope:gateway_protocol.WorkflowRequestObject) - }) -_sym_db.RegisterMessage(WorkflowRequestObject) - -DeployWorkflowResponse = _reflection.GeneratedProtocolMessageType('DeployWorkflowResponse', (_message.Message,), { - 'DESCRIPTOR' : _DEPLOYWORKFLOWRESPONSE, - '__module__' : 'zeebe_pb2' - # @@protoc_insertion_point(class_scope:gateway_protocol.DeployWorkflowResponse) - }) -_sym_db.RegisterMessage(DeployWorkflowResponse) - -WorkflowMetadata = _reflection.GeneratedProtocolMessageType('WorkflowMetadata', (_message.Message,), { - 'DESCRIPTOR' : _WORKFLOWMETADATA, - '__module__' : 'zeebe_pb2' - # @@protoc_insertion_point(class_scope:gateway_protocol.WorkflowMetadata) - }) -_sym_db.RegisterMessage(WorkflowMetadata) - -FailJobRequest = _reflection.GeneratedProtocolMessageType('FailJobRequest', (_message.Message,), { - 'DESCRIPTOR' : _FAILJOBREQUEST, - '__module__' : 'zeebe_pb2' - # @@protoc_insertion_point(class_scope:gateway_protocol.FailJobRequest) - }) -_sym_db.RegisterMessage(FailJobRequest) - -FailJobResponse = _reflection.GeneratedProtocolMessageType('FailJobResponse', (_message.Message,), { - 'DESCRIPTOR' : _FAILJOBRESPONSE, - '__module__' : 'zeebe_pb2' - # @@protoc_insertion_point(class_scope:gateway_protocol.FailJobResponse) - }) -_sym_db.RegisterMessage(FailJobResponse) - -ThrowErrorRequest = _reflection.GeneratedProtocolMessageType('ThrowErrorRequest', (_message.Message,), { - 'DESCRIPTOR' : _THROWERRORREQUEST, - '__module__' : 'zeebe_pb2' - # @@protoc_insertion_point(class_scope:gateway_protocol.ThrowErrorRequest) - }) -_sym_db.RegisterMessage(ThrowErrorRequest) - -ThrowErrorResponse = _reflection.GeneratedProtocolMessageType('ThrowErrorResponse', (_message.Message,), { - 'DESCRIPTOR' : _THROWERRORRESPONSE, - '__module__' : 'zeebe_pb2' - # @@protoc_insertion_point(class_scope:gateway_protocol.ThrowErrorResponse) - }) -_sym_db.RegisterMessage(ThrowErrorResponse) - -PublishMessageRequest = _reflection.GeneratedProtocolMessageType('PublishMessageRequest', (_message.Message,), { - 'DESCRIPTOR' : _PUBLISHMESSAGEREQUEST, - '__module__' : 'zeebe_pb2' - # @@protoc_insertion_point(class_scope:gateway_protocol.PublishMessageRequest) - }) -_sym_db.RegisterMessage(PublishMessageRequest) - -PublishMessageResponse = _reflection.GeneratedProtocolMessageType('PublishMessageResponse', (_message.Message,), { - 'DESCRIPTOR' : _PUBLISHMESSAGERESPONSE, - '__module__' : 'zeebe_pb2' - # @@protoc_insertion_point(class_scope:gateway_protocol.PublishMessageResponse) - }) -_sym_db.RegisterMessage(PublishMessageResponse) - -ResolveIncidentRequest = _reflection.GeneratedProtocolMessageType('ResolveIncidentRequest', (_message.Message,), { - 'DESCRIPTOR' : _RESOLVEINCIDENTREQUEST, - '__module__' : 'zeebe_pb2' - # @@protoc_insertion_point(class_scope:gateway_protocol.ResolveIncidentRequest) - }) -_sym_db.RegisterMessage(ResolveIncidentRequest) - -ResolveIncidentResponse = _reflection.GeneratedProtocolMessageType('ResolveIncidentResponse', (_message.Message,), { - 'DESCRIPTOR' : _RESOLVEINCIDENTRESPONSE, - '__module__' : 'zeebe_pb2' - # @@protoc_insertion_point(class_scope:gateway_protocol.ResolveIncidentResponse) - }) -_sym_db.RegisterMessage(ResolveIncidentResponse) - -TopologyRequest = _reflection.GeneratedProtocolMessageType('TopologyRequest', (_message.Message,), { - 'DESCRIPTOR' : _TOPOLOGYREQUEST, - '__module__' : 'zeebe_pb2' - # @@protoc_insertion_point(class_scope:gateway_protocol.TopologyRequest) - }) -_sym_db.RegisterMessage(TopologyRequest) - -TopologyResponse = _reflection.GeneratedProtocolMessageType('TopologyResponse', (_message.Message,), { - 'DESCRIPTOR' : _TOPOLOGYRESPONSE, - '__module__' : 'zeebe_pb2' - # @@protoc_insertion_point(class_scope:gateway_protocol.TopologyResponse) - }) -_sym_db.RegisterMessage(TopologyResponse) - -BrokerInfo = _reflection.GeneratedProtocolMessageType('BrokerInfo', (_message.Message,), { - 'DESCRIPTOR' : _BROKERINFO, - '__module__' : 'zeebe_pb2' - # @@protoc_insertion_point(class_scope:gateway_protocol.BrokerInfo) - }) -_sym_db.RegisterMessage(BrokerInfo) - -Partition = _reflection.GeneratedProtocolMessageType('Partition', (_message.Message,), { - 'DESCRIPTOR' : _PARTITION, - '__module__' : 'zeebe_pb2' - # @@protoc_insertion_point(class_scope:gateway_protocol.Partition) - }) -_sym_db.RegisterMessage(Partition) - -UpdateJobRetriesRequest = _reflection.GeneratedProtocolMessageType('UpdateJobRetriesRequest', (_message.Message,), { - 'DESCRIPTOR' : _UPDATEJOBRETRIESREQUEST, - '__module__' : 'zeebe_pb2' - # @@protoc_insertion_point(class_scope:gateway_protocol.UpdateJobRetriesRequest) - }) -_sym_db.RegisterMessage(UpdateJobRetriesRequest) - -UpdateJobRetriesResponse = _reflection.GeneratedProtocolMessageType('UpdateJobRetriesResponse', (_message.Message,), { - 'DESCRIPTOR' : _UPDATEJOBRETRIESRESPONSE, - '__module__' : 'zeebe_pb2' - # @@protoc_insertion_point(class_scope:gateway_protocol.UpdateJobRetriesResponse) - }) -_sym_db.RegisterMessage(UpdateJobRetriesResponse) - -SetVariablesRequest = _reflection.GeneratedProtocolMessageType('SetVariablesRequest', (_message.Message,), { - 'DESCRIPTOR' : _SETVARIABLESREQUEST, - '__module__' : 'zeebe_pb2' - # @@protoc_insertion_point(class_scope:gateway_protocol.SetVariablesRequest) - }) -_sym_db.RegisterMessage(SetVariablesRequest) - -SetVariablesResponse = _reflection.GeneratedProtocolMessageType('SetVariablesResponse', (_message.Message,), { - 'DESCRIPTOR' : _SETVARIABLESRESPONSE, - '__module__' : 'zeebe_pb2' - # @@protoc_insertion_point(class_scope:gateway_protocol.SetVariablesResponse) - }) -_sym_db.RegisterMessage(SetVariablesResponse) - - -DESCRIPTOR._options = None - -_GATEWAY = _descriptor.ServiceDescriptor( - name='Gateway', - full_name='gateway_protocol.Gateway', - file=DESCRIPTOR, - index=0, - serialized_options=None, - create_key=_descriptor._internal_create_key, - serialized_start=2800, - serialized_end=4190, - methods=[ - _descriptor.MethodDescriptor( - name='ActivateJobs', - full_name='gateway_protocol.Gateway.ActivateJobs', - index=0, - containing_service=None, - input_type=_ACTIVATEJOBSREQUEST, - output_type=_ACTIVATEJOBSRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='CancelWorkflowInstance', - full_name='gateway_protocol.Gateway.CancelWorkflowInstance', - index=1, - containing_service=None, - input_type=_CANCELWORKFLOWINSTANCEREQUEST, - output_type=_CANCELWORKFLOWINSTANCERESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='CompleteJob', - full_name='gateway_protocol.Gateway.CompleteJob', - index=2, - containing_service=None, - input_type=_COMPLETEJOBREQUEST, - output_type=_COMPLETEJOBRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='CreateWorkflowInstance', - full_name='gateway_protocol.Gateway.CreateWorkflowInstance', - index=3, - containing_service=None, - input_type=_CREATEWORKFLOWINSTANCEREQUEST, - output_type=_CREATEWORKFLOWINSTANCERESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='CreateWorkflowInstanceWithResult', - full_name='gateway_protocol.Gateway.CreateWorkflowInstanceWithResult', - index=4, - containing_service=None, - input_type=_CREATEWORKFLOWINSTANCEWITHRESULTREQUEST, - output_type=_CREATEWORKFLOWINSTANCEWITHRESULTRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='DeployWorkflow', - full_name='gateway_protocol.Gateway.DeployWorkflow', - index=5, - containing_service=None, - input_type=_DEPLOYWORKFLOWREQUEST, - output_type=_DEPLOYWORKFLOWRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='FailJob', - full_name='gateway_protocol.Gateway.FailJob', - index=6, - containing_service=None, - input_type=_FAILJOBREQUEST, - output_type=_FAILJOBRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='ThrowError', - full_name='gateway_protocol.Gateway.ThrowError', - index=7, - containing_service=None, - input_type=_THROWERRORREQUEST, - output_type=_THROWERRORRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='PublishMessage', - full_name='gateway_protocol.Gateway.PublishMessage', - index=8, - containing_service=None, - input_type=_PUBLISHMESSAGEREQUEST, - output_type=_PUBLISHMESSAGERESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='ResolveIncident', - full_name='gateway_protocol.Gateway.ResolveIncident', - index=9, - containing_service=None, - input_type=_RESOLVEINCIDENTREQUEST, - output_type=_RESOLVEINCIDENTRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='SetVariables', - full_name='gateway_protocol.Gateway.SetVariables', - index=10, - containing_service=None, - input_type=_SETVARIABLESREQUEST, - output_type=_SETVARIABLESRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='Topology', - full_name='gateway_protocol.Gateway.Topology', - index=11, - containing_service=None, - input_type=_TOPOLOGYREQUEST, - output_type=_TOPOLOGYRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='UpdateJobRetries', - full_name='gateway_protocol.Gateway.UpdateJobRetries', - index=12, - containing_service=None, - input_type=_UPDATEJOBRETRIESREQUEST, - output_type=_UPDATEJOBRETRIESRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), -]) -_sym_db.RegisterServiceDescriptor(_GATEWAY) - -DESCRIPTOR.services_by_name['Gateway'] = _GATEWAY - -# @@protoc_insertion_point(module_scope) \ No newline at end of file diff --git a/pyzeebe/grpc_internals/zeebe_pb2_grpc.py b/pyzeebe/grpc_internals/zeebe_pb2_grpc.py deleted file mode 100644 index 91843682..00000000 --- a/pyzeebe/grpc_internals/zeebe_pb2_grpc.py +++ /dev/null @@ -1,355 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - -import pyzeebe.grpc_internals.zeebe_pb2 as zeebe__pb2 - - -class GatewayStub(object): - """Missing associated documentation comment in .proto file.""" - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.ActivateJobs = channel.unary_stream( - "/gateway_protocol.Gateway/ActivateJobs", - request_serializer=zeebe__pb2.ActivateJobsRequest.SerializeToString, - response_deserializer=zeebe__pb2.ActivateJobsResponse.FromString, - ) - self.CancelWorkflowInstance = channel.unary_unary( - "/gateway_protocol.Gateway/CancelWorkflowInstance", - request_serializer=zeebe__pb2.CancelWorkflowInstanceRequest.SerializeToString, - response_deserializer=zeebe__pb2.CancelWorkflowInstanceResponse.FromString, - ) - self.CompleteJob = channel.unary_unary( - "/gateway_protocol.Gateway/CompleteJob", - request_serializer=zeebe__pb2.CompleteJobRequest.SerializeToString, - response_deserializer=zeebe__pb2.CompleteJobResponse.FromString, - ) - self.CreateWorkflowInstance = channel.unary_unary( - "/gateway_protocol.Gateway/CreateWorkflowInstance", - request_serializer=zeebe__pb2.CreateWorkflowInstanceRequest.SerializeToString, - response_deserializer=zeebe__pb2.CreateWorkflowInstanceResponse.FromString, - ) - self.CreateWorkflowInstanceWithResult = channel.unary_unary( - "/gateway_protocol.Gateway/CreateWorkflowInstanceWithResult", - request_serializer=zeebe__pb2.CreateWorkflowInstanceWithResultRequest.SerializeToString, - response_deserializer=zeebe__pb2.CreateWorkflowInstanceWithResultResponse.FromString, - ) - self.DeployWorkflow = channel.unary_unary( - "/gateway_protocol.Gateway/DeployWorkflow", - request_serializer=zeebe__pb2.DeployWorkflowRequest.SerializeToString, - response_deserializer=zeebe__pb2.DeployWorkflowResponse.FromString, - ) - self.FailJob = channel.unary_unary( - "/gateway_protocol.Gateway/FailJob", - request_serializer=zeebe__pb2.FailJobRequest.SerializeToString, - response_deserializer=zeebe__pb2.FailJobResponse.FromString, - ) - self.ThrowError = channel.unary_unary( - "/gateway_protocol.Gateway/ThrowError", - request_serializer=zeebe__pb2.ThrowErrorRequest.SerializeToString, - response_deserializer=zeebe__pb2.ThrowErrorResponse.FromString, - ) - self.PublishMessage = channel.unary_unary( - "/gateway_protocol.Gateway/PublishMessage", - request_serializer=zeebe__pb2.PublishMessageRequest.SerializeToString, - response_deserializer=zeebe__pb2.PublishMessageResponse.FromString, - ) - self.ResolveIncident = channel.unary_unary( - "/gateway_protocol.Gateway/ResolveIncident", - request_serializer=zeebe__pb2.ResolveIncidentRequest.SerializeToString, - response_deserializer=zeebe__pb2.ResolveIncidentResponse.FromString, - ) - self.SetVariables = channel.unary_unary( - "/gateway_protocol.Gateway/SetVariables", - request_serializer=zeebe__pb2.SetVariablesRequest.SerializeToString, - response_deserializer=zeebe__pb2.SetVariablesResponse.FromString, - ) - self.Topology = channel.unary_unary( - "/gateway_protocol.Gateway/Topology", - request_serializer=zeebe__pb2.TopologyRequest.SerializeToString, - response_deserializer=zeebe__pb2.TopologyResponse.FromString, - ) - self.UpdateJobRetries = channel.unary_unary( - "/gateway_protocol.Gateway/UpdateJobRetries", - request_serializer=zeebe__pb2.UpdateJobRetriesRequest.SerializeToString, - response_deserializer=zeebe__pb2.UpdateJobRetriesResponse.FromString, - ) - - -class GatewayServicer(object): - """Missing associated documentation comment in .proto file.""" - - def ActivateJobs(self, request, context): - """ - Iterates through all known partitions round-robin and activates up to the requested - maximum and streams them back to the client as they are activated. - - Errors: - INVALID_ARGUMENT: - - type is blank (empty string, null) - - worker is blank (empty string, null) - - timeout less than 1 - - maxJobsToActivate is less than 1 - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details("Method not implemented!") - raise NotImplementedError("Method not implemented!") - - def CancelWorkflowInstance(self, request, context): - """ - Cancels a running workflow instance - - Errors: - NOT_FOUND: - - no workflow instance exists with the given key - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details("Method not implemented!") - raise NotImplementedError("Method not implemented!") - - def CompleteJob(self, request, context): - """ - Completes a job with the given variables, which allows completing the associated service task. - - Errors: - NOT_FOUND: - - no job exists with the given job key. Note that since jobs are removed once completed, - it could be that this job did exist at some point. - - FAILED_PRECONDITION: - - the job was marked as failed. In that case, the related incident must be resolved before - the job can be activated again and completed. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details("Method not implemented!") - raise NotImplementedError("Method not implemented!") - - def CreateWorkflowInstance(self, request, context): - """ - Creates and starts an instance of the specified workflow. The workflow definition to use to - create the instance can be specified either using its unique key (as returned by - DeployWorkflow), or using the BPMN process ID and a version. Pass -1 as the version to use the - latest deployed version. Note that only workflows with none start events can be started through - this command. - - Errors: - NOT_FOUND: - - no workflow with the given key exists (if workflowKey was given) - - no workflow with the given process ID exists (if bpmnProcessId was given but version was -1) - - no workflow with the given process ID and version exists (if both bpmnProcessId and version were given) - - FAILED_PRECONDITION: - - the workflow definition does not contain a none start event; only workflows with none - start event can be started manually. - - INVALID_ARGUMENT: - - the given variables argument is not a valid JSON document; it is expected to be a valid - JSON document where the root node is an object. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details("Method not implemented!") - raise NotImplementedError("Method not implemented!") - - def CreateWorkflowInstanceWithResult(self, request, context): - """ - Behaves similarly to `rpc CreateWorkflowInstance`, except that a successful response is received when the workflow completes successfully. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details("Method not implemented!") - raise NotImplementedError("Method not implemented!") - - def DeployWorkflow(self, request, context): - """ - Deploys one or more workflows to Zeebe. Note that this is an atomic call, - i.e. either all workflows are deployed, or none of them are. - - Errors: - INVALID_ARGUMENT: - - no resources given. - - if at least one resource is invalid. A resource is considered invalid if: - - it is not a BPMN or YAML file (currently detected through the file extension) - - the resource data is not deserializable (e.g. detected as BPMN, but it"s broken XML) - - the workflow is invalid (e.g. an event-based gateway has an outgoing sequence flow to a task) - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details("Method not implemented!") - raise NotImplementedError("Method not implemented!") - - def FailJob(self, request, context): - """ - Marks the job as failed; if the retries argument is positive, then the job will be immediately - activatable again, and a worker could try again to process it. If it is zero or negative however, - an incident will be raised, tagged with the given errorMessage, and the job will not be - activatable until the incident is resolved. - - Errors: - NOT_FOUND: - - no job was found with the given key - - FAILED_PRECONDITION: - - the job was not activated - - the job is already in a failed state, i.e. ran out of retries - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details("Method not implemented!") - raise NotImplementedError("Method not implemented!") - - def ThrowError(self, request, context): - """ - Reports a business error (i.e. non-technical) that occurs while processing a job. The error is handled in the workflow by an error catch event. If there is no error catch event with the specified errorCode then an incident will be raised instead. - - Errors: - NOT_FOUND: - - no job was found with the given key - - FAILED_PRECONDITION: - - the job is not in an activated state - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details("Method not implemented!") - raise NotImplementedError("Method not implemented!") - - def PublishMessage(self, request, context): - """ - Publishes a single message. Messages are published to specific partitions computed from their - correlation keys. - - Errors: - ALREADY_EXISTS: - - a message with the same ID was previously published (and is still alive) - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details("Method not implemented!") - raise NotImplementedError("Method not implemented!") - - def ResolveIncident(self, request, context): - """ - Resolves a given incident. This simply marks the incident as resolved; most likely a call to - UpdateJobRetries or SetVariables will be necessary to actually resolve the - problem, following by this call. - - Errors: - NOT_FOUND: - - no incident with the given key exists - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details("Method not implemented!") - raise NotImplementedError("Method not implemented!") - - def SetVariables(self, request, context): - """ - Updates all the variables of a particular scope (e.g. workflow instance, flow element instance) - from the given JSON document. - - Errors: - NOT_FOUND: - - no element with the given elementInstanceKey exists - INVALID_ARGUMENT: - - the given variables document is not a valid JSON document; valid documents are expected to - be JSON documents where the root node is an object. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details("Method not implemented!") - raise NotImplementedError("Method not implemented!") - - def Topology(self, request, context): - """ - Obtains the current topology of the cluster the gateway is part of. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details("Method not implemented!") - raise NotImplementedError("Method not implemented!") - - def UpdateJobRetries(self, request, context): - """ - Updates the number of retries a job has left. This is mostly useful for jobs that have run out of - retries, should the underlying problem be solved. - - Errors: - NOT_FOUND: - - no job exists with the given key - - INVALID_ARGUMENT: - - retries is not greater than 0 - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details("Method not implemented!") - raise NotImplementedError("Method not implemented!") - - -def add_GatewayServicer_to_server(servicer, server): - rpc_method_handlers = { - "ActivateJobs": grpc.unary_stream_rpc_method_handler( - servicer.ActivateJobs, - request_deserializer=zeebe__pb2.ActivateJobsRequest.FromString, - response_serializer=zeebe__pb2.ActivateJobsResponse.SerializeToString, - ), - "CancelWorkflowInstance": grpc.unary_unary_rpc_method_handler( - servicer.CancelWorkflowInstance, - request_deserializer=zeebe__pb2.CancelWorkflowInstanceRequest.FromString, - response_serializer=zeebe__pb2.CancelWorkflowInstanceResponse.SerializeToString, - ), - "CompleteJob": grpc.unary_unary_rpc_method_handler( - servicer.CompleteJob, - request_deserializer=zeebe__pb2.CompleteJobRequest.FromString, - response_serializer=zeebe__pb2.CompleteJobResponse.SerializeToString, - ), - "CreateWorkflowInstance": grpc.unary_unary_rpc_method_handler( - servicer.CreateWorkflowInstance, - request_deserializer=zeebe__pb2.CreateWorkflowInstanceRequest.FromString, - response_serializer=zeebe__pb2.CreateWorkflowInstanceResponse.SerializeToString, - ), - "CreateWorkflowInstanceWithResult": grpc.unary_unary_rpc_method_handler( - servicer.CreateWorkflowInstanceWithResult, - request_deserializer=zeebe__pb2.CreateWorkflowInstanceWithResultRequest.FromString, - response_serializer=zeebe__pb2.CreateWorkflowInstanceWithResultResponse.SerializeToString, - ), - "DeployWorkflow": grpc.unary_unary_rpc_method_handler( - servicer.DeployWorkflow, - request_deserializer=zeebe__pb2.DeployWorkflowRequest.FromString, - response_serializer=zeebe__pb2.DeployWorkflowResponse.SerializeToString, - ), - "FailJob": grpc.unary_unary_rpc_method_handler( - servicer.FailJob, - request_deserializer=zeebe__pb2.FailJobRequest.FromString, - response_serializer=zeebe__pb2.FailJobResponse.SerializeToString, - ), - "ThrowError": grpc.unary_unary_rpc_method_handler( - servicer.ThrowError, - request_deserializer=zeebe__pb2.ThrowErrorRequest.FromString, - response_serializer=zeebe__pb2.ThrowErrorResponse.SerializeToString, - ), - "PublishMessage": grpc.unary_unary_rpc_method_handler( - servicer.PublishMessage, - request_deserializer=zeebe__pb2.PublishMessageRequest.FromString, - response_serializer=zeebe__pb2.PublishMessageResponse.SerializeToString, - ), - "ResolveIncident": grpc.unary_unary_rpc_method_handler( - servicer.ResolveIncident, - request_deserializer=zeebe__pb2.ResolveIncidentRequest.FromString, - response_serializer=zeebe__pb2.ResolveIncidentResponse.SerializeToString, - ), - "SetVariables": grpc.unary_unary_rpc_method_handler( - servicer.SetVariables, - request_deserializer=zeebe__pb2.SetVariablesRequest.FromString, - response_serializer=zeebe__pb2.SetVariablesResponse.SerializeToString, - ), - "Topology": grpc.unary_unary_rpc_method_handler( - servicer.Topology, - request_deserializer=zeebe__pb2.TopologyRequest.FromString, - response_serializer=zeebe__pb2.TopologyResponse.SerializeToString, - ), - "UpdateJobRetries": grpc.unary_unary_rpc_method_handler( - servicer.UpdateJobRetries, - request_deserializer=zeebe__pb2.UpdateJobRetriesRequest.FromString, - response_serializer=zeebe__pb2.UpdateJobRetriesResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - "gateway_protocol.Gateway", rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/pyzeebe/grpc_internals/zeebe_workflow_adapter.py b/pyzeebe/grpc_internals/zeebe_workflow_adapter.py index 30841541..ce5c9020 100644 --- a/pyzeebe/grpc_internals/zeebe_workflow_adapter.py +++ b/pyzeebe/grpc_internals/zeebe_workflow_adapter.py @@ -3,12 +3,12 @@ from typing import Dict import grpc +from zeebe_grpc.gateway_pb2 import CreateWorkflowInstanceRequest, CreateWorkflowInstanceWithResultRequest, \ + CancelWorkflowInstanceRequest, WorkflowRequestObject, DeployWorkflowRequest, DeployWorkflowResponse from pyzeebe.exceptions import InvalidJSON, WorkflowNotFound, WorkflowInstanceNotFound, WorkflowHasNoStartEvent, \ WorkflowInvalid from pyzeebe.grpc_internals.zeebe_adapter_base import ZeebeAdapterBase -from pyzeebe.grpc_internals.zeebe_pb2 import CreateWorkflowInstanceRequest, CreateWorkflowInstanceWithResultRequest, \ - CancelWorkflowInstanceRequest, WorkflowRequestObject, DeployWorkflowRequest, DeployWorkflowResponse class ZeebeWorkflowAdapter(ZeebeAdapterBase): diff --git a/tests/unit/grpc_internals/zeebe_job_adapter_test.py b/tests/unit/grpc_internals/zeebe_job_adapter_test.py index 7de0a0cd..ba2ab67f 100644 --- a/tests/unit/grpc_internals/zeebe_job_adapter_test.py +++ b/tests/unit/grpc_internals/zeebe_job_adapter_test.py @@ -2,9 +2,10 @@ from unittest.mock import MagicMock from uuid import uuid4 +from zeebe_grpc.gateway_pb2 import * + from pyzeebe.exceptions import ActivateJobsRequestInvalid, JobAlreadyDeactivated, JobNotFound from pyzeebe.grpc_internals.zeebe_job_adapter import ZeebeJobAdapter -from pyzeebe.grpc_internals.zeebe_pb2 import * from pyzeebe.job.job import Job from pyzeebe.task.task import Task from tests.unit.utils.grpc_utils import * diff --git a/tests/unit/grpc_internals/zeebe_message_adapter_test.py b/tests/unit/grpc_internals/zeebe_message_adapter_test.py index 217a73a4..39761f8b 100644 --- a/tests/unit/grpc_internals/zeebe_message_adapter_test.py +++ b/tests/unit/grpc_internals/zeebe_message_adapter_test.py @@ -2,9 +2,10 @@ from unittest.mock import MagicMock from uuid import uuid4 +from zeebe_grpc.gateway_pb2 import * + from pyzeebe.exceptions import MessageAlreadyExists from pyzeebe.grpc_internals.zeebe_message_adapter import ZeebeMessageAdapter -from pyzeebe.grpc_internals.zeebe_pb2 import * from tests.unit.utils.grpc_utils import * from tests.unit.utils.random_utils import RANDOM_RANGE diff --git a/tests/unit/utils/gateway_mock.py b/tests/unit/utils/gateway_mock.py index c6ec5163..dd11310c 100644 --- a/tests/unit/utils/gateway_mock.py +++ b/tests/unit/utils/gateway_mock.py @@ -5,9 +5,9 @@ from uuid import uuid4 import grpc +from zeebe_grpc.gateway_pb2 import * +from zeebe_grpc.gateway_pb2_grpc import GatewayServicer -from pyzeebe.grpc_internals.zeebe_pb2 import * -from pyzeebe.grpc_internals.zeebe_pb2_grpc import GatewayServicer from pyzeebe.job.job import Job from pyzeebe.job.job_status import JobStatus from pyzeebe.task.task import Task diff --git a/tests/unit/utils/grpc_utils.py b/tests/unit/utils/grpc_utils.py index 8e945f50..f21cc44f 100644 --- a/tests/unit/utils/grpc_utils.py +++ b/tests/unit/utils/grpc_utils.py @@ -6,7 +6,7 @@ @pytest.fixture(scope="module") def grpc_add_to_server(): - from pyzeebe.grpc_internals.zeebe_pb2_grpc import add_GatewayServicer_to_server + from zeebe_grpc.gateway_pb2_grpc import add_GatewayServicer_to_server return add_GatewayServicer_to_server @@ -17,7 +17,7 @@ def grpc_servicer(): @pytest.fixture(scope="module") def grpc_stub_cls(grpc_channel): - from pyzeebe.grpc_internals.zeebe_pb2_grpc import GatewayStub + from zeebe_grpc.gateway_pb2_grpc import GatewayStub return GatewayStub From f787a32e75c9ac7b50767d8c8d7318685ac8c304 Mon Sep 17 00:00:00 2001 From: Jonatan Martens Date: Fri, 9 Oct 2020 16:05:26 +0300 Subject: [PATCH 07/13] [ADDED] zeebe-grpc to setup.py --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 8370a099..9b0a39f0 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,8 @@ long_description_content_type="text/markdown", url="https://github.com/JonatanMartens/pyzeebe", packages=setuptools.find_packages(exclude=("tests",)), - install_requires=["grpcio==1.32.0", "protobuf==3.13.0", "oauthlib==3.1.0", "requests-oauthlib==1.3.0"], + install_requires=["grpcio==1.32.0", "protobuf==3.13.0", "oauthlib==3.1.0", "requests-oauthlib==1.3.0", + "zeebe-grpc==0.24.3.3"], exclude=["*test.py", "tests", "*.bpmn"], keywords="zeebe workflow workflow-engine", license="MIT", From 9fc0f314e49b30a91f1eedb4dd92365b1e4105ec Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 12 Oct 2020 07:10:34 +0000 Subject: [PATCH 08/13] Bump mypy from 0.782 to 0.790 Bumps [mypy](https://github.com/python/mypy) from 0.782 to 0.790. - [Release notes](https://github.com/python/mypy/releases) - [Commits](https://github.com/python/mypy/compare/v0.782...v0.790) Signed-off-by: dependabot[bot] --- Pipfile | 2 +- Pipfile.lock | 38 +++++++++++++++++++------------------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/Pipfile b/Pipfile index bc5c26ea..bc579081 100644 --- a/Pipfile +++ b/Pipfile @@ -9,7 +9,7 @@ pylint = "~=2.6.0" coverage = "~=5.3" pytest = "~=6.1.1" pytest-grpc = "~=0.8.0" -mypy = "~=0.782" +mypy = "~=0.790" coveralls = "~=2.1.2" importlib-metadata = "~=2.0.0" pyzeebe = {editable = true, path = "."} diff --git a/Pipfile.lock b/Pipfile.lock index 0e24de45..83d9c9a9 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -1,7 +1,7 @@ { "_meta": { "hash": { - "sha256": "1ed115616eaa96dac1ed8b6120301e13440ef0b3cf3cf5d11e824de385be2feb" + "sha256": "150d9a4d6201fd1c134abf2b930c8b2535b68dee36b95598260f5bcce94e812e" }, "pipfile-spec": 6, "requires": {}, @@ -329,10 +329,10 @@ }, "isort": { "hashes": [ - "sha256:20544581447ccb6a80940c5cace8cbc32c0f58d82d67d34a182950fe7b93321b", - "sha256:ef200cc0ebd896c5bb0d7da9fd390392648c56c2099c2d2ff940ac94739f62aa" + "sha256:2c1d044a96c74367ab12188593d134c596747d97aec43b9cdb12eea83b6889d2", + "sha256:3820dd92c3214290cda6351f2ae2cedd5170759bc434af600eaad4f7a82a6ade" ], - "version": "==5.6.0" + "version": "==5.6.3" }, "jinja2": { "hashes": [ @@ -414,23 +414,23 @@ }, "mypy": { "hashes": [ - "sha256:2c6cde8aa3426c1682d35190b59b71f661237d74b053822ea3d748e2c9578a7c", - "sha256:3fdda71c067d3ddfb21da4b80e2686b71e9e5c72cca65fa216d207a358827f86", - "sha256:5dd13ff1f2a97f94540fd37a49e5d255950ebcdf446fb597463a40d0df3fac8b", - "sha256:6731603dfe0ce4352c555c6284c6db0dc935b685e9ce2e4cf220abe1e14386fd", - "sha256:6bb93479caa6619d21d6e7160c552c1193f6952f0668cdda2f851156e85186fc", - "sha256:81c7908b94239c4010e16642c9102bfc958ab14e36048fa77d0be3289dda76ea", - "sha256:9c7a9a7ceb2871ba4bac1cf7217a7dd9ccd44c27c2950edbc6dc08530f32ad4e", - "sha256:a4a2cbcfc4cbf45cd126f531dedda8485671545b43107ded25ce952aac6fb308", - "sha256:b7fbfabdbcc78c4f6fc4712544b9b0d6bf171069c6e0e3cb82440dd10ced3406", - "sha256:c05b9e4fb1d8a41d41dec8786c94f3b95d3c5f528298d769eb8e73d293abc48d", - "sha256:d7df6eddb6054d21ca4d3c6249cae5578cb4602951fd2b6ee2f5510ffb098707", - "sha256:e0b61738ab504e656d1fe4ff0c0601387a5489ca122d55390ade31f9ca0e252d", - "sha256:eff7d4a85e9eea55afa34888dfeaccde99e7520b51f867ac28a48492c0b1130c", - "sha256:f05644db6779387ccdb468cc47a44b4356fc2ffa9287135d05b70a98dc83b89a" + "sha256:0a0d102247c16ce93c97066443d11e2d36e6cc2a32d8ccc1f705268970479324", + "sha256:0d34d6b122597d48a36d6c59e35341f410d4abfa771d96d04ae2c468dd201abc", + "sha256:2170492030f6faa537647d29945786d297e4862765f0b4ac5930ff62e300d802", + "sha256:2842d4fbd1b12ab422346376aad03ff5d0805b706102e475e962370f874a5122", + "sha256:2b21ba45ad9ef2e2eb88ce4aeadd0112d0f5026418324176fd494a6824b74975", + "sha256:72060bf64f290fb629bd4a67c707a66fd88ca26e413a91384b18db3876e57ed7", + "sha256:af4e9ff1834e565f1baa74ccf7ae2564ae38c8df2a85b057af1dbbc958eb6666", + "sha256:bd03b3cf666bff8d710d633d1c56ab7facbdc204d567715cb3b9f85c6e94f669", + "sha256:c614194e01c85bb2e551c421397e49afb2872c88b5830e3554f0519f9fb1c178", + "sha256:cf4e7bf7f1214826cf7333627cb2547c0db7e3078723227820d0a2490f117a01", + "sha256:da56dedcd7cd502ccd3c5dddc656cb36113dd793ad466e894574125945653cea", + "sha256:e86bdace26c5fe9cf8cb735e7cedfe7850ad92b327ac5d797c656717d2ca66de", + "sha256:e97e9c13d67fbe524be17e4d8025d51a7dca38f90de2e462243ab8ed8a9178d1", + "sha256:eea260feb1830a627fb526d22fbb426b750d9f5a47b624e8d5e7e004359b219c" ], "index": "pypi", - "version": "==0.782" + "version": "==0.790" }, "mypy-extensions": { "hashes": [ From 5e096b4ee597cb88aa159933ea19af3bae5afc6b Mon Sep 17 00:00:00 2001 From: Jonatan Martens Date: Tue, 13 Oct 2020 11:38:23 +0300 Subject: [PATCH 09/13] [ADDED] zeebe-grpc to pipfile.lock after merge --- Pipfile.lock | 75 +++++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 69 insertions(+), 6 deletions(-) diff --git a/Pipfile.lock b/Pipfile.lock index 83d9c9a9..ac5282e1 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -1,7 +1,7 @@ { "_meta": { "hash": { - "sha256": "150d9a4d6201fd1c134abf2b930c8b2535b68dee36b95598260f5bcce94e812e" + "sha256": "1ab8f13f9c7f6be2237f1d52c8ab29080c5ce222807eae0f63eaa15d7a761fdd" }, "pipfile-spec": 6, "requires": {}, @@ -78,6 +78,7 @@ "sha256:b307872f855b18632ce0c21c5e45be78c0ea7ae4c15c828c20788b26921eb3f6", "sha256:b97d804b1e9b523befed77c48dacec60e6dcb0b5391d57af6a65a312a90648c0" ], + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", "version": "==2.10" }, "oauthlib": { @@ -117,12 +118,14 @@ "sha256:b3559a131db72c33ee969480840fff4bb6dd111de7dd27c8ee1f820f4f00231b", "sha256:fe75cc94a9443b9246fc7049224f75604b113c36acb93f87b80ed42c44cbb898" ], + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'", "version": "==2.24.0" }, "requests-oauthlib": { "hashes": [ "sha256:7f71572defaecd16372f9006f33c2ec8c077c3cfa6f5911a9a90202beb513f3d", - "sha256:b4261601a71fd721a8bd6d7aa1cc1d6a8a93b4a9f5e96626f8e4d91e8beeaa6a" + "sha256:b4261601a71fd721a8bd6d7aa1cc1d6a8a93b4a9f5e96626f8e4d91e8beeaa6a", + "sha256:fa6c47b933f01060936d87ae9327fead68768b69c6c9ea2109c48be30f2d4dbc" ], "index": "pypi", "version": "==1.3.0" @@ -132,6 +135,7 @@ "sha256:30639c035cdb23534cd4aa2dd52c3bf48f06e5f4a941509c8bafd8ce11080259", "sha256:8b74bedcbbbaca38ff6d7491d76f2b06b3592611af620f8426e82dddb04a5ced" ], + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", "version": "==1.15.0" }, "urllib3": { @@ -139,7 +143,16 @@ "sha256:91056c15fa70756691db97756772bb1eb9678fa585d9184f24534b100dc60f4a", "sha256:e7983572181f5e1522d9c98453462384ee92a0be7fac5f1413a1e35c56cc0461" ], + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4' and python_version < '4'", "version": "==1.25.10" + }, + "zeebe-grpc": { + "hashes": [ + "sha256:50106bfdf970c75b6191b733b2502f85a5f642bed91f105fc22cb09be4c6f674", + "sha256:d04fb7c6d49362ca6f83ab666443b1dcf51e76f57e3996c8f72f1265f6962601" + ], + "index": "pypi", + "version": "==0.24.3.3" } }, "develop": { @@ -155,13 +168,23 @@ "sha256:2f4078c2a41bf377eea06d71c9d2ba4eb8f6b1af2135bec27bbbb7d8f12bb703", "sha256:bc58d83eb610252fd8de6363e39d4f1d0619c894b0ed24603b881c02e64c7386" ], + "markers": "python_version >= '3.5'", "version": "==2.4.2" }, + "atomicwrites": { + "hashes": [ + "sha256:6d1784dea7c0c8d4a5172b6c620f40b6e4cbfdf96d783691f2e1302a7b88e197", + "sha256:ae70396ad1a434f9c7046fd2dd196fc04b12f9e91ffb859164193be8b6168a7a" + ], + "markers": "sys_platform == 'win32'", + "version": "==1.4.0" + }, "attrs": { "hashes": [ "sha256:26b54ddbbb9ee1d34d5d3668dd37d6cf74990ab23c828c2888dccdceee395594", "sha256:fce7fc47dfc976152e82d53ff92fa0407700c21acd20886a13777a0d20e655dc" ], + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", "version": "==20.2.0" }, "autopep8": { @@ -176,6 +199,7 @@ "sha256:1aac2ae2d0d8ea368fa90906567f5c08463d98ade155c0c4bfedd6a0f7160e38", "sha256:d670ea0b10f8b723672d3a6abeb87b565b244da220d76b4dba1b66269ec152d4" ], + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", "version": "==2.8.0" }, "certifi": { @@ -192,6 +216,13 @@ ], "version": "==3.0.4" }, + "colorama": { + "hashes": [ + "sha256:9f47eda37229f68eee03b24b9748937c7dc3868f906e8ba69fbcbdd3bc5dc3e2" + ], + "markers": "sys_platform == 'win32' and sys_platform == 'win32' and sys_platform == 'win32'", + "version": "==0.4.4" + }, "coverage": { "hashes": [ "sha256:0203acd33d2298e19b57451ebb0bed0ab0c602e5cf5a818591b4918b1f97d516", @@ -251,6 +282,7 @@ "sha256:0c5b78adfbf7762415433f5515cd5c9e762339e23369dbe8000d84a4bf4ab3af", "sha256:c2de3a60e9e7d07be26b7f2b00ca0309c207e06c100f9cc2a94931fc75a478fc" ], + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'", "version": "==0.16" }, "grpcio": { @@ -303,6 +335,7 @@ "sha256:b307872f855b18632ce0c21c5e45be78c0ea7ae4c15c828c20788b26921eb3f6", "sha256:b97d804b1e9b523befed77c48dacec60e6dcb0b5391d57af6a65a312a90648c0" ], + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", "version": "==2.10" }, "imagesize": { @@ -310,6 +343,7 @@ "sha256:6965f19a6a2039c7d48bca7dba2473069ff854c36ae6f19d2cde309d998228a1", "sha256:b1f6b5a4eab1f73479a50fb79fcf729514a900c341d8503d62a62dbc4127a2b1" ], + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", "version": "==1.2.0" }, "importlib-metadata": { @@ -329,16 +363,18 @@ }, "isort": { "hashes": [ - "sha256:2c1d044a96c74367ab12188593d134c596747d97aec43b9cdb12eea83b6889d2", - "sha256:3820dd92c3214290cda6351f2ae2cedd5170759bc434af600eaad4f7a82a6ade" + "sha256:dcab1d98b469a12a1a624ead220584391648790275560e1a43e54c5dceae65e7", + "sha256:dcaeec1b5f0eca77faea2a35ab790b4f3680ff75590bfcb7145986905aab2f58" ], - "version": "==5.6.3" + "markers": "python_version >= '3.6' and python_version < '4.0'", + "version": "==5.6.4" }, "jinja2": { "hashes": [ "sha256:89aab215427ef59c34ad58735269eb58b1a5808103067f7bb9d5836c651b3bb0", "sha256:f0a4641d3cf955324a89c04f3d94663aa4d638abe8f733ecd3582848e1c37035" ], + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'", "version": "==2.11.2" }, "lazy-object-proxy": { @@ -365,6 +401,7 @@ "sha256:efa1909120ce98bbb3777e8b6f92237f5d5c8ea6758efea36a473e1d38f7d3e4", "sha256:f3900e8a5de27447acbf900b4750b0ddfd7ec1ea7fbaf11dfa911141bc522af0" ], + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", "version": "==1.4.3" }, "markupsafe": { @@ -403,6 +440,7 @@ "sha256:e249096428b3ae81b08327a63a485ad0878de3fb939049038579ac0ef61e17e7", "sha256:e8313f01ba26fbbe36c7be1966a7b7424942f670f38e666995b88d012765b9be" ], + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", "version": "==1.1.1" }, "mccabe": { @@ -452,6 +490,7 @@ "sha256:4357f74f47b9c12db93624a82154e9b120fa8293699949152b22065d556079f8", "sha256:998416ba6962ae7fbd6596850b80e17859a5753ba17c32284f67bfff33784181" ], + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", "version": "==20.4" }, "pluggy": { @@ -459,6 +498,7 @@ "sha256:15b2acde666561e1298d71b523007ed7364de07029219b604cf808bfa1c765b0", "sha256:966c145cd83c96502c3c3868f50408687b38434af77734af1e9ca461a4081d2d" ], + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", "version": "==0.13.1" }, "protobuf": { @@ -490,6 +530,7 @@ "sha256:366389d1db726cd2fcfc79732e75410e5fe4d31db13692115529d34069a043c2", "sha256:9ca6883ce56b4e8da7e79ac18787889fa5206c79dcc67fb065376cd2fe03f342" ], + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", "version": "==1.9.0" }, "pycodestyle": { @@ -497,6 +538,7 @@ "sha256:2295e7b2f6b5bd100585ebcb1f616591b652db8a741695b3d8f5d28bdc934367", "sha256:c58a7d2815e0e8d7972bf1803331fb0152f867bd89adf8a01dfd55085434192e" ], + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", "version": "==2.6.0" }, "pygments": { @@ -504,6 +546,7 @@ "sha256:307543fe65c0947b126e83dd5a61bd8acbd84abec11f43caebaf5534cbc17998", "sha256:926c3f319eda178d1bd90851e4317e6d8cdb5e292a3386aac9bd75eca29cf9c7" ], + "markers": "python_version >= '3.5'", "version": "==2.7.1" }, "pylint": { @@ -519,6 +562,7 @@ "sha256:c203ec8783bf771a155b207279b9bccb8dea02d8f0c9e5f8ead507bc3246ecc1", "sha256:ef9d7589ef3c200abe66653d3f1ab1033c3c419ae9b9bdb1240a85b024efc88b" ], + "markers": "python_version >= '2.6' and python_version not in '3.0, 3.1, 3.2, 3.3'", "version": "==2.4.7" }, "pytest": { @@ -553,12 +597,14 @@ "sha256:b3559a131db72c33ee969480840fff4bb6dd111de7dd27c8ee1f820f4f00231b", "sha256:fe75cc94a9443b9246fc7049224f75604b113c36acb93f87b80ed42c44cbb898" ], + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'", "version": "==2.24.0" }, "requests-oauthlib": { "hashes": [ "sha256:7f71572defaecd16372f9006f33c2ec8c077c3cfa6f5911a9a90202beb513f3d", - "sha256:b4261601a71fd721a8bd6d7aa1cc1d6a8a93b4a9f5e96626f8e4d91e8beeaa6a" + "sha256:b4261601a71fd721a8bd6d7aa1cc1d6a8a93b4a9f5e96626f8e4d91e8beeaa6a", + "sha256:fa6c47b933f01060936d87ae9327fead68768b69c6c9ea2109c48be30f2d4dbc" ], "index": "pypi", "version": "==1.3.0" @@ -568,6 +614,7 @@ "sha256:30639c035cdb23534cd4aa2dd52c3bf48f06e5f4a941509c8bafd8ce11080259", "sha256:8b74bedcbbbaca38ff6d7491d76f2b06b3592611af620f8426e82dddb04a5ced" ], + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", "version": "==1.15.0" }, "snowballstemmer": { @@ -598,6 +645,7 @@ "sha256:806111e5e962be97c29ec4c1e7fe277bfd19e9652fb1a4392105b43e01af885a", "sha256:a072735ec80e7675e3f432fcae8610ecf509c5f1869d17e2eecff44389cdbc58" ], + "markers": "python_version >= '3.5'", "version": "==1.0.2" }, "sphinxcontrib-devhelp": { @@ -605,6 +653,7 @@ "sha256:8165223f9a335cc1af7ffe1ed31d2871f325254c0423bc0c4c7cd1c1e4734a2e", "sha256:ff7f1afa7b9642e7060379360a67e9c41e8f3121f2ce9164266f61b9f4b338e4" ], + "markers": "python_version >= '3.5'", "version": "==1.0.2" }, "sphinxcontrib-htmlhelp": { @@ -612,6 +661,7 @@ "sha256:3c0bc24a2c41e340ac37c85ced6dafc879ab485c095b1d65d2461ac2f7cca86f", "sha256:e8f5bb7e31b2dbb25b9cc435c8ab7a79787ebf7f906155729338f3156d93659b" ], + "markers": "python_version >= '3.5'", "version": "==1.0.3" }, "sphinxcontrib-jsmath": { @@ -619,6 +669,7 @@ "sha256:2ec2eaebfb78f3f2078e73666b1415417a116cc848b72e5172e596c871103178", "sha256:a9925e4a4587247ed2191a22df5f6970656cb8ca2bd6284309578f2153e0c4b8" ], + "markers": "python_version >= '3.5'", "version": "==1.0.1" }, "sphinxcontrib-qthelp": { @@ -626,6 +677,7 @@ "sha256:4c33767ee058b70dba89a6fc5c1892c0d57a54be67ddd3e7875a18d14cba5a72", "sha256:bd9fc24bcb748a8d51fd4ecaade681350aa63009a347a8c14e637895444dfab6" ], + "markers": "python_version >= '3.5'", "version": "==1.0.3" }, "sphinxcontrib-serializinghtml": { @@ -633,6 +685,7 @@ "sha256:eaa0eccc86e982a9b939b2b82d12cc5d013385ba5eadcc7e4fed23f4405f77bc", "sha256:f242a81d423f59617a8e5cf16f5d4d74e28ee9a66f9e5b637a18082991db5a9a" ], + "markers": "python_version >= '3.5'", "version": "==1.1.4" }, "toml": { @@ -681,6 +734,7 @@ "sha256:91056c15fa70756691db97756772bb1eb9678fa585d9184f24534b100dc60f4a", "sha256:e7983572181f5e1522d9c98453462384ee92a0be7fac5f1413a1e35c56cc0461" ], + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4' and python_version < '4'", "version": "==1.25.10" }, "wrapt": { @@ -689,11 +743,20 @@ ], "version": "==1.12.1" }, + "zeebe-grpc": { + "hashes": [ + "sha256:50106bfdf970c75b6191b733b2502f85a5f642bed91f105fc22cb09be4c6f674", + "sha256:d04fb7c6d49362ca6f83ab666443b1dcf51e76f57e3996c8f72f1265f6962601" + ], + "index": "pypi", + "version": "==0.24.3.3" + }, "zipp": { "hashes": [ "sha256:64ad89efee774d1897a58607895d80789c59778ea02185dd846ac38394a8642b", "sha256:eed8ec0b8d1416b2ca33516a37a08892442f3954dee131e92cfd92d8fe3e7066" ], + "markers": "python_version >= '3.6'", "version": "==3.3.0" } } From e08de92fe9f365a3a8a78c7da74303abf7745832 Mon Sep 17 00:00:00 2001 From: Jonatan Martens Date: Tue, 13 Oct 2020 12:16:37 +0300 Subject: [PATCH 10/13] [ADDED] Ability to add multiple routers at once --- pyzeebe/worker/worker.py | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/pyzeebe/worker/worker.py b/pyzeebe/worker/worker.py index 87083f53..f2148bd5 100644 --- a/pyzeebe/worker/worker.py +++ b/pyzeebe/worker/worker.py @@ -1,7 +1,7 @@ import logging import socket from threading import Thread, Event -from typing import List, Callable, Generator, Tuple, Dict +from typing import List, Callable, Generator, Tuple, Dict, Union from pyzeebe.credentials.base_credentials import BaseCredentials from pyzeebe.grpc_internals.zeebe_adapter import ZeebeAdapter @@ -79,6 +79,18 @@ def _get_jobs(self, task: Task) -> Generator[Job, None, None]: variables_to_fetch=task.variables_to_fetch, request_timeout=self.request_timeout) + def include_router(self, *routers: ZeebeTaskRouter) -> None: + """ + Adds all router's tasks to the worker. + + Raises: + DuplicateTaskType: If a task from the router already exists in the worker + + """ + for router in routers: + for task in router.tasks: + self._add_task(task) + def _dict_task(self, task_type: str, exception_handler: ExceptionHandler = default_exception_handler, timeout: int = 10000, max_jobs_to_activate: int = 32, before: List[TaskDecorator] = None, after: List[TaskDecorator] = None, variables_to_fetch: List[str] = None): @@ -91,6 +103,7 @@ def wrapper(fn: Callable[..., Dict]): max_jobs_to_activate=max_jobs_to_activate, before=before, after=after, variables_to_fetch=variables_to_fetch) self._add_task(task) + return fn return wrapper @@ -99,7 +112,7 @@ def _non_dict_task(self, task_type: str, variable_name: str, exception_handler: ExceptionHandler = default_exception_handler, timeout: int = 10000, max_jobs_to_activate: int = 32, before: List[TaskDecorator] = None, after: List[TaskDecorator] = None, variables_to_fetch: List[str] = None): - def wrapper(fn: Callable[..., Dict]): + def wrapper(fn: Callable[..., Union[str, bool, int, List]]): nonlocal variables_to_fetch if not variables_to_fetch: variables_to_fetch = self._get_parameters_from_function(fn) @@ -109,8 +122,8 @@ def wrapper(fn: Callable[..., Dict]): task = Task(task_type=task_type, task_handler=dict_fn, exception_handler=exception_handler, timeout=timeout, max_jobs_to_activate=max_jobs_to_activate, before=before, after=after, variables_to_fetch=variables_to_fetch) - self._add_task(task) + return fn return wrapper @@ -179,14 +192,3 @@ def _run_decorator(decorator: TaskDecorator, job: Job) -> Job: except Exception as e: logging.warning(f"Failed to run decorator {decorator}. Error: {e}") return job - - def include_router(self, router: ZeebeTaskRouter) -> None: - """ - Adds all router's tasks to the worker. - - Raises: - DuplicateTaskType: If a task from the router already exists in the worker - - """ - for task in router.tasks: - self._add_task(task) From 0d17037c1ddc70db49b34c6a2e4aa065e708832e Mon Sep 17 00:00:00 2001 From: Jonatan Martens Date: Tue, 13 Oct 2020 12:35:07 +0300 Subject: [PATCH 11/13] [ADDED] Multiple routers test --- tests/unit/worker/worker_test.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tests/unit/worker/worker_test.py b/tests/unit/worker/worker_test.py index 4d9909b7..ca4e458e 100644 --- a/tests/unit/worker/worker_test.py +++ b/tests/unit/worker/worker_test.py @@ -245,6 +245,21 @@ def task_fn(x): assert zeebe_worker.get_task(task_type) is not None +def test_include_multiple_routers(): + routers = [ZeebeTaskRouter() for _ in range(0, randint(2, 100))] + + for router in routers: + task_type = str(uuid4()) + + @router.task(task_type=task_type) + def task_fn(x): + return {"x": x} + + zeebe_worker.include_router(router) + + assert len(zeebe_worker.tasks) == len(routers) + + def test_router_before_decorator(): with patch("tests.unit.worker.worker_test.decorator") as mock: task_type = str(uuid4()) From 55407e2a5fb1e13bba0acef2202cecfeb72c8584 Mon Sep 17 00:00:00 2001 From: Jonatan Martens Date: Tue, 13 Oct 2020 12:37:02 +0300 Subject: [PATCH 12/13] [ADDED] Multiple routers to docs --- docs/worker_taskrouter.rst | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/worker_taskrouter.rst b/docs/worker_taskrouter.rst index 28515d8d..1c2e1463 100644 --- a/docs/worker_taskrouter.rst +++ b/docs/worker_taskrouter.rst @@ -41,6 +41,13 @@ To add the router tasks to the worker we use the :py:func:`include_router` metho worker.include_router(router) - ... + +Or to add multiple routers at once: + +.. code-block:: python + + worker.include_router(router1, router2, router3, ...) + + That's it! From 222541a93f6883a9d6f0210c0b578f03a7cd3792 Mon Sep 17 00:00:00 2001 From: Jonatan Martens Date: Sun, 18 Oct 2020 20:08:51 +0300 Subject: [PATCH 13/13] [UPDATED] version to v2.2.1 --- docs/conf.py | 2 +- pyzeebe/__init__.py | 2 +- setup.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index ab3549e0..86364970 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -59,6 +59,6 @@ # so a file named "default.css" will overwrite the builtin "default.css". html_static_path = ['_static'] -version = "2.2.0" +version = "2.2.1" master_doc = 'index' diff --git a/pyzeebe/__init__.py b/pyzeebe/__init__.py index 4fb92c9a..e754804d 100644 --- a/pyzeebe/__init__.py +++ b/pyzeebe/__init__.py @@ -1,4 +1,4 @@ -__version__ = "2.2.0" +__version__ = "2.2.1" from pyzeebe import exceptions from pyzeebe.client.client import ZeebeClient diff --git a/setup.py b/setup.py index 9b0a39f0..55567333 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name="pyzeebe", - version="2.2.0", + version="2.2.1", author="Jonatan Martens", author_email="jonatanmartenstav@gmail.com", description="Zeebe client api",