neops_graphql 1.7.16.dev0__tar.gz → 1.7.22.dev0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/PKG-INFO +1 -1
  2. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/client.py +74 -14
  3. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/pyproject.toml +1 -1
  4. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/README.md +0 -0
  5. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/__init__.py +0 -0
  6. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/abort_execution.py +0 -0
  7. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/add_api_key.py +0 -0
  8. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/add_role.py +0 -0
  9. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/add_role_device_group.py +0 -0
  10. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/add_role_neops_task.py +0 -0
  11. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/add_user.py +0 -0
  12. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/add_users_to_role.py +0 -0
  13. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/archive_or_delete_task.py +0 -0
  14. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/async_base_client.py +0 -0
  15. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/autocomplete_fields.py +0 -0
  16. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/base_model.py +0 -0
  17. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/client_aggregation.py +0 -0
  18. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/clients.py +0 -0
  19. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/cron_execution_type.py +0 -0
  20. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/device_aggregation.py +0 -0
  21. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/device_group_elastic.py +0 -0
  22. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/device_group_upsert.py +0 -0
  23. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/device_upsert.py +0 -0
  24. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/devices.py +0 -0
  25. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/discovery.py +0 -0
  26. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/enums.py +0 -0
  27. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/exceptions.py +0 -0
  28. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/execute_neops_task.py +0 -0
  29. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/execution.py +0 -0
  30. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/execution_subscription.py +0 -0
  31. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/executions_detail.py +0 -0
  32. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/executions_elastic.py +0 -0
  33. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/executions_simple.py +0 -0
  34. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/get_role.py +0 -0
  35. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/group_aggregation.py +0 -0
  36. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/input_types.py +0 -0
  37. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/interface_aggregation.py +0 -0
  38. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/interfaces.py +0 -0
  39. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/json_form.py +0 -0
  40. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/location_upsert.py +0 -0
  41. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/login.py +0 -0
  42. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/neops_provider.py +0 -0
  43. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/neops_task_create_mutation.py +0 -0
  44. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/neops_task_unarchive.py +0 -0
  45. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/neops_tasks.py +0 -0
  46. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/permissions.py +0 -0
  47. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/platforms.py +0 -0
  48. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/process_overview.py +0 -0
  49. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/providers.py +0 -0
  50. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/refresh_token.py +0 -0
  51. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/reports.py +0 -0
  52. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/reports_execute.py +0 -0
  53. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/role_device_group.py +0 -0
  54. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/role_device_group_upsert.py +0 -0
  55. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/role_neops_task.py +0 -0
  56. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/role_neops_task_upsert.py +0 -0
  57. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/role_permission_element.py +0 -0
  58. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/role_permission_element_upsert.py +0 -0
  59. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/role_permission_upsert.py +0 -0
  60. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/role_permissions.py +0 -0
  61. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/role_scope_upsert.py +0 -0
  62. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/role_user.py +0 -0
  63. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/rollback.py +0 -0
  64. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/saved_search_create.py +0 -0
  65. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/saved_search_delete.py +0 -0
  66. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/saved_searches.py +0 -0
  67. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/scope_delete.py +0 -0
  68. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/scopes.py +0 -0
  69. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/scopes_upsert.py +0 -0
  70. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/single_discovery.py +0 -0
  71. {neops_graphql-1.7.16.dev0 → neops_graphql-1.7.22.dev0}/neops_graphql/topology.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: neops_graphql
3
- Version: 1.7.16.dev0
3
+ Version: 1.7.22.dev0
4
4
  Summary: A low-level generated GraphQL for Neops
5
5
  Author: Leandro Lerena
6
6
  Author-email: leandro.lerena@zebbra.ch
@@ -384,12 +384,20 @@ class Client(AsyncBaseClient):
384
384
  self,
385
385
  aggr_field: str,
386
386
  query: Union[Optional[str], UnsetType] = UNSET,
387
+ size: Union[Optional[int], UnsetType] = UNSET,
388
+ scope: Union[Optional[int], UnsetType] = UNSET,
387
389
  **kwargs: Any
388
390
  ) -> ClientAggregation:
389
391
  _query = gql(
390
392
  """
391
- query clientAggregation($aggrField: String!, $query: String) {
392
- clientAggregation(aggrField: $aggrField, query: $query, queryTypeGlobal: true) {
393
+ query clientAggregation($aggrField: String!, $query: String, $size: Int, $scope: Int) {
394
+ clientAggregation(
395
+ aggrField: $aggrField
396
+ query: $query
397
+ queryTypeGlobal: true
398
+ size: $size
399
+ scope: $scope
400
+ ) {
393
401
  results {
394
402
  value
395
403
  count
@@ -400,7 +408,12 @@ class Client(AsyncBaseClient):
400
408
  }
401
409
  """
402
410
  )
403
- variables: Dict[str, object] = {"aggrField": aggr_field, "query": query}
411
+ variables: Dict[str, object] = {
412
+ "aggrField": aggr_field,
413
+ "query": query,
414
+ "size": size,
415
+ "scope": scope,
416
+ }
404
417
  response = await self.execute(
405
418
  query=_query,
406
419
  operation_name="clientAggregation",
@@ -503,12 +516,20 @@ class Client(AsyncBaseClient):
503
516
  self,
504
517
  aggr_field: str,
505
518
  query: Union[Optional[str], UnsetType] = UNSET,
519
+ size: Union[Optional[int], UnsetType] = UNSET,
520
+ scope: Union[Optional[int], UnsetType] = UNSET,
506
521
  **kwargs: Any
507
522
  ) -> DeviceAggregation:
508
523
  _query = gql(
509
524
  """
510
- query deviceAggregation($aggrField: String!, $query: String) {
511
- deviceAggregation(aggrField: $aggrField, query: $query, queryTypeGlobal: true) {
525
+ query deviceAggregation($aggrField: String!, $query: String, $size: Int, $scope: Int) {
526
+ deviceAggregation(
527
+ aggrField: $aggrField
528
+ query: $query
529
+ queryTypeGlobal: true
530
+ size: $size
531
+ scope: $scope
532
+ ) {
512
533
  results {
513
534
  value
514
535
  count
@@ -519,7 +540,12 @@ class Client(AsyncBaseClient):
519
540
  }
520
541
  """
521
542
  )
522
- variables: Dict[str, object] = {"aggrField": aggr_field, "query": query}
543
+ variables: Dict[str, object] = {
544
+ "aggrField": aggr_field,
545
+ "query": query,
546
+ "size": size,
547
+ "scope": scope,
548
+ }
523
549
  response = await self.execute(
524
550
  query=_query,
525
551
  operation_name="deviceAggregation",
@@ -1037,13 +1063,15 @@ class Client(AsyncBaseClient):
1037
1063
  check_id: Union[Optional[Any], UnsetType] = UNSET,
1038
1064
  user_id: Union[Optional[str], UnsetType] = UNSET,
1039
1065
  user_username: Union[Optional[str], UnsetType] = UNSET,
1066
+ neops_task: Union[Optional[str], UnsetType] = UNSET,
1067
+ neops_task_uniquetaskname: Union[Optional[str], UnsetType] = UNSET,
1040
1068
  updated_at_gt: Union[Optional[Any], UnsetType] = UNSET,
1041
1069
  created_at_gt: Union[Optional[Any], UnsetType] = UNSET,
1042
1070
  **kwargs: Any
1043
1071
  ) -> ExecutionsDetail:
1044
1072
  query = gql(
1045
1073
  """
1046
- query executionsDetail($executionType: ExecutionTypeEnum, $page: Int, $pageSize: Int, $ordering: String = "name", $state: String, $checkId: Decimal, $user_Id: ID, $user_Username: String, $updatedAt_Gt: CustomDateTime, $createdAt_Gt: CustomDateTime) {
1074
+ query executionsDetail($executionType: ExecutionTypeEnum, $page: Int, $pageSize: Int = 20, $ordering: String = "name", $state: String, $checkId: Decimal, $user_Id: ID, $user_Username: String, $neopsTask: ID, $neopsTask_Uniquetaskname: String, $updatedAt_Gt: CustomDateTime, $createdAt_Gt: CustomDateTime) {
1047
1075
  executions(
1048
1076
  states: $state
1049
1077
  process_Isnull: false
@@ -1051,6 +1079,8 @@ class Client(AsyncBaseClient):
1051
1079
  checkId: $checkId
1052
1080
  user_Id: $user_Id
1053
1081
  user_Username: $user_Username
1082
+ neopsTask: $neopsTask
1083
+ neopsTask_Uniquetaskname: $neopsTask_Uniquetaskname
1054
1084
  updatedAt_Gt: $updatedAt_Gt
1055
1085
  createdAt_Gt: $createdAt_Gt
1056
1086
  ) {
@@ -1130,6 +1160,8 @@ class Client(AsyncBaseClient):
1130
1160
  "checkId": check_id,
1131
1161
  "user_Id": user_id,
1132
1162
  "user_Username": user_username,
1163
+ "neopsTask": neops_task,
1164
+ "neopsTask_Uniquetaskname": neops_task_uniquetaskname,
1133
1165
  "updatedAt_Gt": updated_at_gt,
1134
1166
  "createdAt_Gt": created_at_gt,
1135
1167
  }
@@ -1155,7 +1187,7 @@ class Client(AsyncBaseClient):
1155
1187
  ) -> ExecutionsElastic:
1156
1188
  _query = gql(
1157
1189
  """
1158
- query executionsElastic($query: String = "", $page: Int = 1, $pageSize: Int = 999, $id: ID, $ordering: String = "id", $permission: String, $scope: Decimal) {
1190
+ query executionsElastic($query: String = "", $page: Int = 1, $pageSize: Int = 20, $id: ID, $ordering: String = "id", $permission: String, $scope: Decimal) {
1159
1191
  executionsElastic(
1160
1192
  query: $query
1161
1193
  queryTypeGlobal: true
@@ -1223,13 +1255,15 @@ class Client(AsyncBaseClient):
1223
1255
  check_id: Union[Optional[Any], UnsetType] = UNSET,
1224
1256
  user_id: Union[Optional[str], UnsetType] = UNSET,
1225
1257
  user_username: Union[Optional[str], UnsetType] = UNSET,
1258
+ neops_task: Union[Optional[str], UnsetType] = UNSET,
1259
+ neops_task_uniquetaskname: Union[Optional[str], UnsetType] = UNSET,
1226
1260
  updated_at_gt: Union[Optional[Any], UnsetType] = UNSET,
1227
1261
  created_at_gt: Union[Optional[Any], UnsetType] = UNSET,
1228
1262
  **kwargs: Any
1229
1263
  ) -> ExecutionsSimple:
1230
1264
  query = gql(
1231
1265
  """
1232
- query executionsSimple($executionType: ExecutionTypeEnum, $page: Int, $pageSize: Int, $ordering: String = "name", $state: String, $checkId: Decimal, $user_Id: ID, $user_Username: String, $updatedAt_Gt: CustomDateTime, $createdAt_Gt: CustomDateTime) {
1266
+ query executionsSimple($executionType: ExecutionTypeEnum, $page: Int, $pageSize: Int = 20, $ordering: String = "name", $state: String, $checkId: Decimal, $user_Id: ID, $user_Username: String, $neopsTask: ID, $neopsTask_Uniquetaskname: String, $updatedAt_Gt: CustomDateTime, $createdAt_Gt: CustomDateTime) {
1233
1267
  executions(
1234
1268
  states: $state
1235
1269
  process_Isnull: false
@@ -1237,6 +1271,8 @@ class Client(AsyncBaseClient):
1237
1271
  checkId: $checkId
1238
1272
  user_Id: $user_Id
1239
1273
  user_Username: $user_Username
1274
+ neopsTask: $neopsTask
1275
+ neopsTask_Uniquetaskname: $neopsTask_Uniquetaskname
1240
1276
  updatedAt_Gt: $updatedAt_Gt
1241
1277
  createdAt_Gt: $createdAt_Gt
1242
1278
  ) {
@@ -1282,6 +1318,8 @@ class Client(AsyncBaseClient):
1282
1318
  "checkId": check_id,
1283
1319
  "user_Id": user_id,
1284
1320
  "user_Username": user_username,
1321
+ "neopsTask": neops_task,
1322
+ "neopsTask_Uniquetaskname": neops_task_uniquetaskname,
1285
1323
  "updatedAt_Gt": updated_at_gt,
1286
1324
  "createdAt_Gt": created_at_gt,
1287
1325
  }
@@ -1320,12 +1358,20 @@ class Client(AsyncBaseClient):
1320
1358
  self,
1321
1359
  aggr_field: str,
1322
1360
  query: Union[Optional[str], UnsetType] = UNSET,
1361
+ size: Union[Optional[int], UnsetType] = UNSET,
1362
+ scope: Union[Optional[int], UnsetType] = UNSET,
1323
1363
  **kwargs: Any
1324
1364
  ) -> GroupAggregation:
1325
1365
  _query = gql(
1326
1366
  """
1327
- query groupAggregation($aggrField: String!, $query: String) {
1328
- groupAggregation(aggrField: $aggrField, query: $query, queryTypeGlobal: true) {
1367
+ query groupAggregation($aggrField: String!, $query: String, $size: Int, $scope: Int) {
1368
+ groupAggregation(
1369
+ aggrField: $aggrField
1370
+ query: $query
1371
+ queryTypeGlobal: true
1372
+ size: $size
1373
+ scope: $scope
1374
+ ) {
1329
1375
  results {
1330
1376
  value
1331
1377
  count
@@ -1336,7 +1382,12 @@ class Client(AsyncBaseClient):
1336
1382
  }
1337
1383
  """
1338
1384
  )
1339
- variables: Dict[str, object] = {"aggrField": aggr_field, "query": query}
1385
+ variables: Dict[str, object] = {
1386
+ "aggrField": aggr_field,
1387
+ "query": query,
1388
+ "size": size,
1389
+ "scope": scope,
1390
+ }
1340
1391
  response = await self.execute(
1341
1392
  query=_query,
1342
1393
  operation_name="groupAggregation",
@@ -1350,15 +1401,19 @@ class Client(AsyncBaseClient):
1350
1401
  self,
1351
1402
  aggr_field: str,
1352
1403
  query: Union[Optional[str], UnsetType] = UNSET,
1404
+ size: Union[Optional[int], UnsetType] = UNSET,
1405
+ scope: Union[Optional[int], UnsetType] = UNSET,
1353
1406
  **kwargs: Any
1354
1407
  ) -> InterfaceAggregation:
1355
1408
  _query = gql(
1356
1409
  """
1357
- query interfaceAggregation($aggrField: String!, $query: String) {
1410
+ query interfaceAggregation($aggrField: String!, $query: String, $size: Int, $scope: Int) {
1358
1411
  interfaceAggregation(
1359
1412
  aggrField: $aggrField
1360
1413
  query: $query
1361
1414
  queryTypeGlobal: true
1415
+ size: $size
1416
+ scope: $scope
1362
1417
  ) {
1363
1418
  results {
1364
1419
  value
@@ -1370,7 +1425,12 @@ class Client(AsyncBaseClient):
1370
1425
  }
1371
1426
  """
1372
1427
  )
1373
- variables: Dict[str, object] = {"aggrField": aggr_field, "query": query}
1428
+ variables: Dict[str, object] = {
1429
+ "aggrField": aggr_field,
1430
+ "query": query,
1431
+ "size": size,
1432
+ "scope": scope,
1433
+ }
1374
1434
  response = await self.execute(
1375
1435
  query=_query,
1376
1436
  operation_name="interfaceAggregation",
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "neops_graphql"
3
- version = "1.7.16.dev"
3
+ version = "1.7.22.dev"
4
4
  description = "A low-level generated GraphQL for Neops"
5
5
  authors = ["Leandro Lerena <leandro.lerena@zebbra.ch>"]
6
6
  readme = "README.md"