catocli 2.0.1__py3-none-any.whl → 2.0.3__py3-none-any.whl

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.

Potentially problematic release.


This version of catocli might be problematic. Click here for more details.

Files changed (108) hide show
  1. catocli/Utils/clidriver.py +41 -6
  2. catocli/__init__.py +1 -1
  3. catocli/parsers/custom/__init__.py +7 -5
  4. catocli/parsers/custom/customLib.py +490 -1
  5. catocli/parsers/custom/export_rules/__init__.py +5 -1
  6. catocli/parsers/custom/export_rules/export_rules.py +32 -183
  7. catocli/parsers/custom/export_sites/__init__.py +20 -0
  8. catocli/parsers/custom/export_sites/export_sites.py +365 -0
  9. catocli/parsers/custom/import_rules_to_tf/__init__.py +3 -3
  10. catocli/parsers/custom/import_rules_to_tf/import_rules_to_tf.py +20 -146
  11. catocli/parsers/custom/import_sites_to_tf/__init__.py +45 -0
  12. catocli/parsers/custom/import_sites_to_tf/import_sites_to_tf.py +891 -0
  13. catocli/parsers/mutation_accountManagement/__init__.py +18 -21
  14. catocli/parsers/mutation_admin/__init__.py +18 -21
  15. catocli/parsers/mutation_container/__init__.py +6 -7
  16. catocli/parsers/mutation_hardware/__init__.py +6 -7
  17. catocli/parsers/mutation_policy/__init__.py +666 -588
  18. catocli/parsers/mutation_policy_terminalServer/README.md +7 -0
  19. catocli/parsers/mutation_policy_terminalServer_addRule/README.md +18 -0
  20. catocli/parsers/mutation_policy_terminalServer_addSection/README.md +18 -0
  21. catocli/parsers/mutation_policy_terminalServer_createPolicyRevision/README.md +18 -0
  22. catocli/parsers/mutation_policy_terminalServer_discardPolicyRevision/README.md +18 -0
  23. catocli/parsers/mutation_policy_terminalServer_moveRule/README.md +18 -0
  24. catocli/parsers/mutation_policy_terminalServer_moveSection/README.md +18 -0
  25. catocli/parsers/mutation_policy_terminalServer_publishPolicyRevision/README.md +18 -0
  26. catocli/parsers/mutation_policy_terminalServer_removeRule/README.md +18 -0
  27. catocli/parsers/mutation_policy_terminalServer_removeSection/README.md +18 -0
  28. catocli/parsers/mutation_policy_terminalServer_updatePolicy/README.md +18 -0
  29. catocli/parsers/mutation_policy_terminalServer_updateRule/README.md +18 -0
  30. catocli/parsers/mutation_policy_terminalServer_updateSection/README.md +18 -0
  31. catocli/parsers/mutation_sandbox/__init__.py +12 -14
  32. catocli/parsers/mutation_site/__init__.py +189 -175
  33. catocli/parsers/mutation_site_addSocketAddOnCard/README.md +17 -0
  34. catocli/parsers/mutation_site_removeSocketAddOnCard/README.md +17 -0
  35. catocli/parsers/mutation_site_startSiteUpgrade/README.md +17 -0
  36. catocli/parsers/mutation_sites/__init__.py +189 -175
  37. catocli/parsers/mutation_sites_addSocketAddOnCard/README.md +17 -0
  38. catocli/parsers/mutation_sites_removeSocketAddOnCard/README.md +17 -0
  39. catocli/parsers/mutation_sites_startSiteUpgrade/README.md +17 -0
  40. catocli/parsers/mutation_xdr/__init__.py +18 -21
  41. catocli/parsers/parserApiClient.py +36 -11
  42. catocli/parsers/query_accountBySubdomain/__init__.py +6 -7
  43. catocli/parsers/query_accountManagement/__init__.py +6 -7
  44. catocli/parsers/query_accountMetrics/__init__.py +6 -7
  45. catocli/parsers/query_accountRoles/__init__.py +6 -7
  46. catocli/parsers/query_accountSnapshot/__init__.py +6 -7
  47. catocli/parsers/query_admin/__init__.py +6 -7
  48. catocli/parsers/query_admins/__init__.py +6 -7
  49. catocli/parsers/query_appStats/__init__.py +6 -7
  50. catocli/parsers/query_appStatsTimeSeries/__init__.py +6 -7
  51. catocli/parsers/query_auditFeed/__init__.py +6 -7
  52. catocli/parsers/query_catalogs/__init__.py +6 -7
  53. catocli/parsers/query_container/__init__.py +6 -7
  54. catocli/parsers/query_devices/README.md +2 -1
  55. catocli/parsers/query_devices/__init__.py +6 -7
  56. catocli/parsers/query_entityLookup/__init__.py +6 -7
  57. catocli/parsers/query_events/__init__.py +6 -7
  58. catocli/parsers/query_eventsFeed/README.md +1 -1
  59. catocli/parsers/query_eventsFeed/__init__.py +6 -7
  60. catocli/parsers/query_eventsTimeSeries/__init__.py +6 -7
  61. catocli/parsers/query_hardware/__init__.py +6 -7
  62. catocli/parsers/query_hardwareManagement/__init__.py +6 -7
  63. catocli/parsers/query_licensing/__init__.py +6 -7
  64. catocli/parsers/query_policy/README.md +2 -1
  65. catocli/parsers/query_policy/__init__.py +6 -7
  66. catocli/parsers/query_sandbox/__init__.py +6 -7
  67. catocli/parsers/query_site/README.md +2 -1
  68. catocli/parsers/query_site/__init__.py +6 -7
  69. catocli/parsers/query_siteLocation/__init__.py +4 -8
  70. catocli/parsers/query_subDomains/__init__.py +6 -7
  71. catocli/parsers/query_xdr/__init__.py +12 -14
  72. catocli/parsers/raw/README.md +4 -0
  73. catocli/parsers/raw/__init__.py +5 -2
  74. {catocli-2.0.1.dist-info → catocli-2.0.3.dist-info}/METADATA +1 -1
  75. {catocli-2.0.1.dist-info → catocli-2.0.3.dist-info}/RECORD +108 -67
  76. graphql_client/api/call_api.py +12 -6
  77. models/mutation.policy.remotePortFwd.updateRule.json +6 -6
  78. models/mutation.policy.terminalServer.addRule.json +2403 -0
  79. models/mutation.policy.terminalServer.addSection.json +1358 -0
  80. models/mutation.policy.terminalServer.createPolicyRevision.json +1873 -0
  81. models/mutation.policy.terminalServer.discardPolicyRevision.json +1807 -0
  82. models/mutation.policy.terminalServer.moveRule.json +1605 -0
  83. models/mutation.policy.terminalServer.moveSection.json +1259 -0
  84. models/mutation.policy.terminalServer.publishPolicyRevision.json +1864 -0
  85. models/mutation.policy.terminalServer.removeRule.json +1253 -0
  86. models/mutation.policy.terminalServer.removeSection.json +958 -0
  87. models/mutation.policy.terminalServer.updatePolicy.json +1883 -0
  88. models/mutation.policy.terminalServer.updateRule.json +2096 -0
  89. models/mutation.policy.terminalServer.updateSection.json +1111 -0
  90. models/mutation.site.addSocketAddOnCard.json +1050 -0
  91. models/mutation.site.removeSocketAddOnCard.json +786 -0
  92. models/mutation.site.startSiteUpgrade.json +802 -0
  93. models/mutation.sites.addSocketAddOnCard.json +1050 -0
  94. models/mutation.sites.removeSocketAddOnCard.json +786 -0
  95. models/mutation.sites.startSiteUpgrade.json +802 -0
  96. models/query.devices.json +311 -2
  97. models/query.events.json +48 -0
  98. models/query.eventsFeed.json +12 -0
  99. models/query.eventsTimeSeries.json +36 -0
  100. models/query.licensing.json +21815 -10093
  101. models/query.policy.json +1898 -305
  102. models/query.site.json +225 -0
  103. models/query.siteLocation.json +97190 -295396
  104. schema/catolib.py +63 -30
  105. {catocli-2.0.1.dist-info → catocli-2.0.3.dist-info}/LICENSE +0 -0
  106. {catocli-2.0.1.dist-info → catocli-2.0.3.dist-info}/WHEEL +0 -0
  107. {catocli-2.0.1.dist-info → catocli-2.0.3.dist-info}/entry_points.txt +0 -0
  108. {catocli-2.0.1.dist-info → catocli-2.0.3.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,958 @@
1
+ {
2
+ "args": {
3
+ "accountId": {
4
+ "defaultValue": null,
5
+ "description": null,
6
+ "id_str": "accountId",
7
+ "name": "accountId",
8
+ "path": "accountId",
9
+ "requestStr": "$accountId:ID! ",
10
+ "required": true,
11
+ "responseStr": "accountId:$accountId ",
12
+ "type": {
13
+ "kind": [
14
+ "NON_NULL",
15
+ "SCALAR"
16
+ ],
17
+ "name": "ID",
18
+ "non_null": false
19
+ },
20
+ "varName": "accountId"
21
+ }
22
+ },
23
+ "childOperations": {
24
+ "removeSection": {
25
+ "args": {
26
+ "removeSection___input": {
27
+ "defaultValue": null,
28
+ "description": null,
29
+ "id_str": "removeSection___input",
30
+ "name": "input",
31
+ "path": "removeSection.input",
32
+ "requestStr": "$policyRemoveSectionInput:PolicyRemoveSectionInput! ",
33
+ "required": true,
34
+ "responseStr": "input:$policyRemoveSectionInput ",
35
+ "type": {
36
+ "definition": {
37
+ "description": "Input for removing a section from a policy",
38
+ "enumValues": null,
39
+ "fields": null,
40
+ "inputFields": {
41
+ "id": {
42
+ "defaultValue": null,
43
+ "description": null,
44
+ "id_str": "removeSection___input___id",
45
+ "name": "id",
46
+ "path": "removeSection.input.id",
47
+ "requestStr": "$id:ID! ",
48
+ "required": true,
49
+ "responseStr": "id:$id ",
50
+ "type": {
51
+ "kind": [
52
+ "NON_NULL",
53
+ "SCALAR"
54
+ ],
55
+ "name": "ID",
56
+ "non_null": false
57
+ },
58
+ "varName": "id"
59
+ }
60
+ },
61
+ "interfaces": null,
62
+ "kind": "INPUT_OBJECT",
63
+ "name": "PolicyRemoveSectionInput",
64
+ "possibleTypes": null
65
+ },
66
+ "indexType": "input_object",
67
+ "kind": [
68
+ "NON_NULL",
69
+ "INPUT_OBJECT"
70
+ ],
71
+ "name": "PolicyRemoveSectionInput",
72
+ "non_null": false
73
+ },
74
+ "varName": "policyRemoveSectionInput"
75
+ }
76
+ },
77
+ "deprecationReason": null,
78
+ "description": null,
79
+ "isDeprecated": false,
80
+ "name": "removeSection",
81
+ "type": {
82
+ "kind": "NON_NULL",
83
+ "name": null,
84
+ "ofType": {
85
+ "kind": "OBJECT",
86
+ "name": "PolicySectionMutationPayload",
87
+ "ofType": null
88
+ }
89
+ }
90
+ },
91
+ "terminalServer": {
92
+ "args": {
93
+ "terminalServer___input": {
94
+ "defaultValue": null,
95
+ "description": null,
96
+ "id_str": "terminalServer___input",
97
+ "name": "input",
98
+ "path": "terminalServer.input",
99
+ "requestStr": "$terminalServerPolicyMutationInput:TerminalServerPolicyMutationInput ",
100
+ "required": false,
101
+ "responseStr": "input:$terminalServerPolicyMutationInput ",
102
+ "type": {
103
+ "definition": {
104
+ "description": null,
105
+ "enumValues": null,
106
+ "fields": null,
107
+ "inputFields": {
108
+ "revision": {
109
+ "defaultValue": null,
110
+ "description": null,
111
+ "id_str": "terminalServer___input___revision",
112
+ "name": "revision",
113
+ "path": "terminalServer.input.revision",
114
+ "requestStr": "$policyMutationRevisionInput:PolicyMutationRevisionInput ",
115
+ "required": false,
116
+ "responseStr": "revision:$policyMutationRevisionInput ",
117
+ "type": {
118
+ "definition": {
119
+ "description": null,
120
+ "enumValues": null,
121
+ "fields": null,
122
+ "inputFields": {
123
+ "id": {
124
+ "defaultValue": null,
125
+ "description": null,
126
+ "id_str": "terminalServer___input___revision___id",
127
+ "name": "id",
128
+ "path": "terminalServer.input.revision.id",
129
+ "requestStr": "$id:ID ",
130
+ "required": false,
131
+ "responseStr": "id:$id ",
132
+ "type": {
133
+ "kind": [
134
+ "SCALAR"
135
+ ],
136
+ "name": "ID",
137
+ "non_null": false
138
+ },
139
+ "varName": "id"
140
+ }
141
+ },
142
+ "interfaces": null,
143
+ "kind": "INPUT_OBJECT",
144
+ "name": "PolicyMutationRevisionInput",
145
+ "possibleTypes": null
146
+ },
147
+ "indexType": "input_object",
148
+ "kind": [
149
+ "INPUT_OBJECT"
150
+ ],
151
+ "name": "PolicyMutationRevisionInput",
152
+ "non_null": false
153
+ },
154
+ "varName": "policyMutationRevisionInput"
155
+ }
156
+ },
157
+ "interfaces": null,
158
+ "kind": "INPUT_OBJECT",
159
+ "name": "TerminalServerPolicyMutationInput",
160
+ "possibleTypes": null
161
+ },
162
+ "indexType": "input_object",
163
+ "kind": [
164
+ "INPUT_OBJECT"
165
+ ],
166
+ "name": "TerminalServerPolicyMutationInput",
167
+ "non_null": false
168
+ },
169
+ "varName": "terminalServerPolicyMutationInput"
170
+ }
171
+ },
172
+ "deprecationReason": null,
173
+ "description": null,
174
+ "isDeprecated": false,
175
+ "name": "terminalServer",
176
+ "type": {
177
+ "kind": "OBJECT",
178
+ "name": "TerminalServerPolicyMutations",
179
+ "ofType": null
180
+ }
181
+ }
182
+ },
183
+ "deprecationReason": null,
184
+ "description": null,
185
+ "fieldTypes": {
186
+ "PolicyElementAudit": true,
187
+ "PolicyElementPropertiesEnum": true,
188
+ "PolicyMutationError": true,
189
+ "PolicyMutationRevisionInput": true,
190
+ "PolicyMutationStatus": true,
191
+ "PolicySectionInfo": true,
192
+ "PolicySectionMutationPayload": true,
193
+ "PolicySectionPayload": true,
194
+ "TerminalServerPolicyMutations": true
195
+ },
196
+ "isDeprecated": false,
197
+ "name": "policy",
198
+ "operationArgs": {
199
+ "accountId": {
200
+ "defaultValue": null,
201
+ "description": null,
202
+ "id_str": "accountId",
203
+ "name": "accountId",
204
+ "path": "accountId",
205
+ "requestStr": "$accountId:ID! ",
206
+ "required": true,
207
+ "responseStr": "accountId:$accountId ",
208
+ "type": {
209
+ "kind": [
210
+ "NON_NULL",
211
+ "SCALAR"
212
+ ],
213
+ "name": "ID",
214
+ "non_null": false
215
+ },
216
+ "varName": "accountId"
217
+ },
218
+ "policyRemoveSectionInput": {
219
+ "defaultValue": null,
220
+ "description": null,
221
+ "id_str": "removeSection___input",
222
+ "name": "input",
223
+ "path": "removeSection.input",
224
+ "requestStr": "$policyRemoveSectionInput:PolicyRemoveSectionInput! ",
225
+ "required": true,
226
+ "responseStr": "input:$policyRemoveSectionInput ",
227
+ "type": {
228
+ "definition": {
229
+ "description": "Input for removing a section from a policy",
230
+ "enumValues": null,
231
+ "fields": null,
232
+ "inputFields": {
233
+ "id": {
234
+ "defaultValue": null,
235
+ "description": null,
236
+ "id_str": "removeSection___input___id",
237
+ "name": "id",
238
+ "path": "removeSection.input.id",
239
+ "requestStr": "$id:ID! ",
240
+ "required": true,
241
+ "responseStr": "id:$id ",
242
+ "type": {
243
+ "kind": [
244
+ "NON_NULL",
245
+ "SCALAR"
246
+ ],
247
+ "name": "ID",
248
+ "non_null": false
249
+ },
250
+ "varName": "id"
251
+ }
252
+ },
253
+ "interfaces": null,
254
+ "kind": "INPUT_OBJECT",
255
+ "name": "PolicyRemoveSectionInput",
256
+ "possibleTypes": null
257
+ },
258
+ "indexType": "input_object",
259
+ "kind": [
260
+ "NON_NULL",
261
+ "INPUT_OBJECT"
262
+ ],
263
+ "name": "PolicyRemoveSectionInput",
264
+ "non_null": false
265
+ },
266
+ "varName": "policyRemoveSectionInput"
267
+ },
268
+ "terminalServerPolicyMutationInput": {
269
+ "defaultValue": null,
270
+ "description": null,
271
+ "id_str": "terminalServer___input",
272
+ "name": "input",
273
+ "path": "terminalServer.input",
274
+ "requestStr": "$terminalServerPolicyMutationInput:TerminalServerPolicyMutationInput ",
275
+ "required": false,
276
+ "responseStr": "input:$terminalServerPolicyMutationInput ",
277
+ "type": {
278
+ "definition": {
279
+ "description": null,
280
+ "enumValues": null,
281
+ "fields": null,
282
+ "inputFields": {
283
+ "revision": {
284
+ "defaultValue": null,
285
+ "description": null,
286
+ "id_str": "terminalServer___input___revision",
287
+ "name": "revision",
288
+ "path": "terminalServer.input.revision",
289
+ "requestStr": "$policyMutationRevisionInput:PolicyMutationRevisionInput ",
290
+ "required": false,
291
+ "responseStr": "revision:$policyMutationRevisionInput ",
292
+ "type": {
293
+ "definition": {
294
+ "description": null,
295
+ "enumValues": null,
296
+ "fields": null,
297
+ "inputFields": {
298
+ "id": {
299
+ "defaultValue": null,
300
+ "description": null,
301
+ "id_str": "terminalServer___input___revision___id",
302
+ "name": "id",
303
+ "path": "terminalServer.input.revision.id",
304
+ "requestStr": "$id:ID ",
305
+ "required": false,
306
+ "responseStr": "id:$id ",
307
+ "type": {
308
+ "kind": [
309
+ "SCALAR"
310
+ ],
311
+ "name": "ID",
312
+ "non_null": false
313
+ },
314
+ "varName": "id"
315
+ }
316
+ },
317
+ "interfaces": null,
318
+ "kind": "INPUT_OBJECT",
319
+ "name": "PolicyMutationRevisionInput",
320
+ "possibleTypes": null
321
+ },
322
+ "indexType": "input_object",
323
+ "kind": [
324
+ "INPUT_OBJECT"
325
+ ],
326
+ "name": "PolicyMutationRevisionInput",
327
+ "non_null": false
328
+ },
329
+ "varName": "policyMutationRevisionInput"
330
+ }
331
+ },
332
+ "interfaces": null,
333
+ "kind": "INPUT_OBJECT",
334
+ "name": "TerminalServerPolicyMutationInput",
335
+ "possibleTypes": null
336
+ },
337
+ "indexType": "input_object",
338
+ "kind": [
339
+ "INPUT_OBJECT"
340
+ ],
341
+ "name": "TerminalServerPolicyMutationInput",
342
+ "non_null": false
343
+ },
344
+ "varName": "terminalServerPolicyMutationInput"
345
+ }
346
+ },
347
+ "path": "mutation.policy.terminalServer.removeSection",
348
+ "type": {
349
+ "definition": {
350
+ "description": "Policies that can be configured with mutation APIs.",
351
+ "enumValues": null,
352
+ "fields": {
353
+ "terminalServer": {
354
+ "args": {
355
+ "terminalServer___input": {
356
+ "defaultValue": null,
357
+ "description": null,
358
+ "id_str": "terminalServer___input",
359
+ "name": "input",
360
+ "path": "terminalServer.input",
361
+ "requestStr": "$terminalServerPolicyMutationInput:TerminalServerPolicyMutationInput ",
362
+ "required": false,
363
+ "responseStr": "input:$terminalServerPolicyMutationInput ",
364
+ "type": {
365
+ "definition": {
366
+ "description": null,
367
+ "enumValues": null,
368
+ "fields": null,
369
+ "inputFields": {
370
+ "revision": {
371
+ "defaultValue": null,
372
+ "description": null,
373
+ "id_str": "terminalServer___input___revision",
374
+ "name": "revision",
375
+ "path": "terminalServer.input.revision",
376
+ "requestStr": "$policyMutationRevisionInput:PolicyMutationRevisionInput ",
377
+ "required": false,
378
+ "responseStr": "revision:$policyMutationRevisionInput ",
379
+ "type": {
380
+ "definition": {
381
+ "description": null,
382
+ "enumValues": null,
383
+ "fields": null,
384
+ "inputFields": {
385
+ "id": {
386
+ "defaultValue": null,
387
+ "description": null,
388
+ "id_str": "terminalServer___input___revision___id",
389
+ "name": "id",
390
+ "path": "terminalServer.input.revision.id",
391
+ "requestStr": "$id:ID ",
392
+ "required": false,
393
+ "responseStr": "id:$id ",
394
+ "type": {
395
+ "kind": [
396
+ "SCALAR"
397
+ ],
398
+ "name": "ID",
399
+ "non_null": false
400
+ },
401
+ "varName": "id"
402
+ }
403
+ },
404
+ "interfaces": null,
405
+ "kind": "INPUT_OBJECT",
406
+ "name": "PolicyMutationRevisionInput",
407
+ "possibleTypes": null
408
+ },
409
+ "indexType": "input_object",
410
+ "kind": [
411
+ "INPUT_OBJECT"
412
+ ],
413
+ "name": "PolicyMutationRevisionInput",
414
+ "non_null": false
415
+ },
416
+ "varName": "policyMutationRevisionInput"
417
+ }
418
+ },
419
+ "interfaces": null,
420
+ "kind": "INPUT_OBJECT",
421
+ "name": "TerminalServerPolicyMutationInput",
422
+ "possibleTypes": null
423
+ },
424
+ "indexType": "input_object",
425
+ "kind": [
426
+ "INPUT_OBJECT"
427
+ ],
428
+ "name": "TerminalServerPolicyMutationInput",
429
+ "non_null": false
430
+ },
431
+ "varName": "terminalServerPolicyMutationInput"
432
+ }
433
+ },
434
+ "deprecationReason": null,
435
+ "description": null,
436
+ "id_str": "terminalServer",
437
+ "isDeprecated": false,
438
+ "name": "terminalServer",
439
+ "path": "terminalServer",
440
+ "requestStr": "$terminalServerPolicyMutations:TerminalServerPolicyMutations ",
441
+ "required": false,
442
+ "responseStr": "terminalServer:$terminalServerPolicyMutations ",
443
+ "type": {
444
+ "definition": {
445
+ "description": null,
446
+ "enumValues": null,
447
+ "fields": {
448
+ "removeSection": {
449
+ "args": {
450
+ "removeSection___input": {
451
+ "defaultValue": null,
452
+ "description": null,
453
+ "id_str": "removeSection___input",
454
+ "name": "input",
455
+ "path": "removeSection.input",
456
+ "requestStr": "$policyRemoveSectionInput:PolicyRemoveSectionInput! ",
457
+ "required": true,
458
+ "responseStr": "input:$policyRemoveSectionInput ",
459
+ "type": {
460
+ "definition": {
461
+ "description": "Input for removing a section from a policy",
462
+ "enumValues": null,
463
+ "fields": null,
464
+ "inputFields": {
465
+ "id": {
466
+ "defaultValue": null,
467
+ "description": null,
468
+ "id_str": "removeSection___input___id",
469
+ "name": "id",
470
+ "path": "removeSection.input.id",
471
+ "requestStr": "$id:ID! ",
472
+ "required": true,
473
+ "responseStr": "id:$id ",
474
+ "type": {
475
+ "kind": [
476
+ "NON_NULL",
477
+ "SCALAR"
478
+ ],
479
+ "name": "ID",
480
+ "non_null": false
481
+ },
482
+ "varName": "id"
483
+ }
484
+ },
485
+ "interfaces": null,
486
+ "kind": "INPUT_OBJECT",
487
+ "name": "PolicyRemoveSectionInput",
488
+ "possibleTypes": null
489
+ },
490
+ "indexType": "input_object",
491
+ "kind": [
492
+ "NON_NULL",
493
+ "INPUT_OBJECT"
494
+ ],
495
+ "name": "PolicyRemoveSectionInput",
496
+ "non_null": false
497
+ },
498
+ "varName": "policyRemoveSectionInput"
499
+ }
500
+ },
501
+ "deprecationReason": null,
502
+ "description": null,
503
+ "id_str": "terminalServer___removeSection",
504
+ "isDeprecated": false,
505
+ "name": "removeSection",
506
+ "path": "terminalServer.removeSection",
507
+ "requestStr": "$policySectionMutationPayload:PolicySectionMutationPayload! ",
508
+ "required": true,
509
+ "responseStr": "removeSection:$policySectionMutationPayload ",
510
+ "type": {
511
+ "definition": {
512
+ "description": null,
513
+ "enumValues": null,
514
+ "fields": {
515
+ "errors": {
516
+ "alias": "policyMutationErrorErrors: errors",
517
+ "args": {},
518
+ "deprecationReason": null,
519
+ "description": null,
520
+ "id_str": "terminalServer___removeSection___errors",
521
+ "isDeprecated": false,
522
+ "name": "errors",
523
+ "path": "terminalServer.removeSection.errors",
524
+ "requestStr": "$policyMutationError:[PolicyMutationError]! ",
525
+ "required": true,
526
+ "responseStr": "errors:$policyMutationError ",
527
+ "type": {
528
+ "definition": {
529
+ "description": "The `PolicyMutationError` enum defines various error messages related to policy publishing in the policy platform service.\n\n## Policy Errors\n\n### `ConcurrentPolicyPublish`\n- **Error Message:** \"Another policy is currently publishing\"\n\n### `PolicyRevisionMismatch`\n- **Error Message:** \"Revision is not owned by the admin\"\n\n### `PolicyRevisionNotFound`\n- **Error Message:** \"Revision was not found\"\n\n### `PolicyInvalidEntity`\n- **Error Message:** \"Invalid entity\"\n\n### `DuplicateRuleName`\n- **Error Message:** \"Rule with the same name already exists\"\n\n### `DuplicateSectionName`\n- **Error Message:** \"Section with the same name already exists\"\n\n### `PolicyFailure`\n- **Error Message:** \"Can\u2019t publish policy due to an internal error. Please try again in a few minutes\"\n\n\n## Rule Errors\n\n### `ruleIsLocked`\n- **Error Message:** \"Rule is locked by another revision\"\n\n### `ruleWasRemoved`\n- **Error Message:** \"Rule was already removed\"\n\n### `ruleNotExist`\n- **Error Message:** \"Rule does not exist\"\n\n### `ruleSectionNotExist`\n- **Error Message:** \"Section does not exist\"\n\n### `ruleSectionIsLocked`\n- **Error Message:** \"Section is locked by another revision\"\n\n### `rulePositionInvalid`\n- **Error Message:** \"Rule position is invalid\"\n\n### `ruleNameIsEmpty`\n- **Error Message:** \"Rule name can't be empty\"\n\n### `ruleNameAlreadyExists`\n- **Error Message:** \"Rule with the same name already exists\"\n\n### `ruleSystemModification`\n- **Error Message:** \"Can't modify a system rule\"\n\n### `ruleSystemMove`\n- **Error Message:** \"Can't add a rule above the system rules\"\n\n### `ruleHasInvalidEntity`\n- **Error Message:** \"Rule has an invalid entity\"\n\n### `failedValidatingRule`\n- **Error Message:** \"Something went wrong, couldn't validate rule\"\n\n\n## Section Errors\n\n### `sectionIsLocked`\n- **Error Message:** \"Section is locked by another revision\"\n\n### `sectionSystemMove`\n- **Error Message:** \"Section with system rules cannot be moved or removed\"\n\n### `sectionNotExist`\n- **Error Message:** \"Section does not exist\"\n\n### `sectionPositionInvalid`\n- **Error Message:** \"Section position is invalid\"",
530
+ "enumValues": null,
531
+ "fields": {
532
+ "errorCode": {
533
+ "args": {},
534
+ "deprecationReason": null,
535
+ "description": null,
536
+ "id_str": "terminalServer___removeSection___errors___errorCode",
537
+ "isDeprecated": false,
538
+ "name": "errorCode",
539
+ "path": "terminalServer.removeSection.errors.errorCode",
540
+ "requestStr": "$errorCode:String ",
541
+ "required": false,
542
+ "responseStr": "errorCode:$errorCode ",
543
+ "type": {
544
+ "kind": [
545
+ "SCALAR"
546
+ ],
547
+ "name": "String",
548
+ "non_null": false
549
+ },
550
+ "varName": "errorCode"
551
+ },
552
+ "errorMessage": {
553
+ "args": {},
554
+ "deprecationReason": null,
555
+ "description": null,
556
+ "id_str": "terminalServer___removeSection___errors___errorMessage",
557
+ "isDeprecated": false,
558
+ "name": "errorMessage",
559
+ "path": "terminalServer.removeSection.errors.errorMessage",
560
+ "requestStr": "$errorMessage:String ",
561
+ "required": false,
562
+ "responseStr": "errorMessage:$errorMessage ",
563
+ "type": {
564
+ "kind": [
565
+ "SCALAR"
566
+ ],
567
+ "name": "String",
568
+ "non_null": false
569
+ },
570
+ "varName": "errorMessage"
571
+ }
572
+ },
573
+ "inputFields": null,
574
+ "interfaces": {},
575
+ "kind": "OBJECT",
576
+ "name": "PolicyMutationError",
577
+ "possibleTypes": null
578
+ },
579
+ "indexType": "object",
580
+ "kind": [
581
+ "NON_NULL",
582
+ "LIST",
583
+ "NON_NULL",
584
+ "OBJECT"
585
+ ],
586
+ "name": "PolicyMutationError",
587
+ "non_null": false
588
+ },
589
+ "varName": "policyMutationError"
590
+ },
591
+ "section": {
592
+ "alias": "policySectionPayloadSection: section",
593
+ "args": {},
594
+ "deprecationReason": null,
595
+ "description": null,
596
+ "id_str": "terminalServer___removeSection___section",
597
+ "isDeprecated": false,
598
+ "name": "section",
599
+ "path": "terminalServer.removeSection.section",
600
+ "requestStr": "$policySectionPayload:PolicySectionPayload ",
601
+ "required": false,
602
+ "responseStr": "section:$policySectionPayload ",
603
+ "type": {
604
+ "definition": {
605
+ "description": null,
606
+ "enumValues": null,
607
+ "fields": {
608
+ "audit": {
609
+ "args": {},
610
+ "deprecationReason": null,
611
+ "description": null,
612
+ "id_str": "terminalServer___removeSection___section___audit",
613
+ "isDeprecated": false,
614
+ "name": "audit",
615
+ "path": "terminalServer.removeSection.section.audit",
616
+ "requestStr": "$policyElementAudit:PolicyElementAudit! ",
617
+ "required": true,
618
+ "responseStr": "audit:$policyElementAudit ",
619
+ "type": {
620
+ "definition": {
621
+ "description": null,
622
+ "enumValues": null,
623
+ "fields": {
624
+ "updatedBy": {
625
+ "args": {},
626
+ "deprecationReason": null,
627
+ "description": "The admin, or the API-key, that performed the last update",
628
+ "id_str": "terminalServer___removeSection___section___audit___updatedBy",
629
+ "isDeprecated": false,
630
+ "name": "updatedBy",
631
+ "path": "terminalServer.removeSection.section.audit.updatedBy",
632
+ "requestStr": "$updatedBy:String! ",
633
+ "required": true,
634
+ "responseStr": "updatedBy:$updatedBy ",
635
+ "type": {
636
+ "kind": [
637
+ "NON_NULL",
638
+ "SCALAR"
639
+ ],
640
+ "name": "String",
641
+ "non_null": false
642
+ },
643
+ "varName": "updatedBy"
644
+ },
645
+ "updatedTime": {
646
+ "args": {},
647
+ "deprecationReason": null,
648
+ "description": "The last date and time the rule was updated",
649
+ "id_str": "terminalServer___removeSection___section___audit___updatedTime",
650
+ "isDeprecated": false,
651
+ "name": "updatedTime",
652
+ "path": "terminalServer.removeSection.section.audit.updatedTime",
653
+ "requestStr": "$updatedTime:DateTime! ",
654
+ "required": true,
655
+ "responseStr": "updatedTime:$updatedTime ",
656
+ "type": {
657
+ "kind": [
658
+ "NON_NULL",
659
+ "SCALAR"
660
+ ],
661
+ "name": "DateTime",
662
+ "non_null": false
663
+ },
664
+ "varName": "updatedTime"
665
+ }
666
+ },
667
+ "inputFields": null,
668
+ "interfaces": {},
669
+ "kind": "OBJECT",
670
+ "name": "PolicyElementAudit",
671
+ "possibleTypes": null
672
+ },
673
+ "indexType": "object",
674
+ "kind": [
675
+ "NON_NULL",
676
+ "OBJECT"
677
+ ],
678
+ "name": "PolicyElementAudit",
679
+ "non_null": false
680
+ },
681
+ "varName": "policyElementAudit"
682
+ },
683
+ "properties": {
684
+ "args": {},
685
+ "deprecationReason": null,
686
+ "description": null,
687
+ "id_str": "terminalServer___removeSection___section___properties",
688
+ "isDeprecated": false,
689
+ "name": "properties",
690
+ "path": "terminalServer.removeSection.section.properties",
691
+ "requestStr": "$properties:[PolicyElementPropertiesEnum]! ",
692
+ "required": true,
693
+ "responseStr": "properties:$properties ",
694
+ "type": {
695
+ "definition": {
696
+ "description": "Attributes describing the rule state or type",
697
+ "enumValues": [
698
+ {
699
+ "deprecationReason": null,
700
+ "description": "New (added) rule",
701
+ "isDeprecated": false,
702
+ "name": "ADDED"
703
+ },
704
+ {
705
+ "deprecationReason": null,
706
+ "description": "Updated (modified) existing rule",
707
+ "isDeprecated": false,
708
+ "name": "UPDATED"
709
+ },
710
+ {
711
+ "deprecationReason": null,
712
+ "description": "Removed (deleted) rule",
713
+ "isDeprecated": false,
714
+ "name": "REMOVED"
715
+ },
716
+ {
717
+ "deprecationReason": null,
718
+ "description": "A rule moved to a different position",
719
+ "isDeprecated": false,
720
+ "name": "MOVED"
721
+ },
722
+ {
723
+ "deprecationReason": null,
724
+ "description": "A rule locked for changes by other admins",
725
+ "isDeprecated": false,
726
+ "name": "LOCKED"
727
+ },
728
+ {
729
+ "deprecationReason": null,
730
+ "description": "An object can not be moved, or referenced when moving other objects.\nHowever its properties and content can be modified.",
731
+ "isDeprecated": false,
732
+ "name": "ANCHORED"
733
+ },
734
+ {
735
+ "deprecationReason": null,
736
+ "description": "A pre-defined (system) rule that cannot be modified or removed",
737
+ "isDeprecated": false,
738
+ "name": "SYSTEM"
739
+ }
740
+ ],
741
+ "fields": null,
742
+ "inputFields": null,
743
+ "interfaces": null,
744
+ "kind": "ENUM",
745
+ "name": "PolicyElementPropertiesEnum",
746
+ "possibleTypes": null
747
+ },
748
+ "indexType": "enum",
749
+ "kind": [
750
+ "NON_NULL",
751
+ "LIST",
752
+ "NON_NULL",
753
+ "ENUM"
754
+ ],
755
+ "name": "PolicyElementPropertiesEnum",
756
+ "non_null": false
757
+ },
758
+ "varName": "properties"
759
+ },
760
+ "section": {
761
+ "args": {},
762
+ "deprecationReason": null,
763
+ "description": null,
764
+ "id_str": "terminalServer___removeSection___section___section",
765
+ "isDeprecated": false,
766
+ "name": "section",
767
+ "path": "terminalServer.removeSection.section.section",
768
+ "requestStr": "$policySectionInfo:PolicySectionInfo! ",
769
+ "required": true,
770
+ "responseStr": "section:$policySectionInfo ",
771
+ "type": {
772
+ "definition": {
773
+ "description": "Define settings for a policy section",
774
+ "enumValues": null,
775
+ "fields": {
776
+ "id": {
777
+ "args": {},
778
+ "deprecationReason": null,
779
+ "description": null,
780
+ "id_str": "terminalServer___removeSection___section___section___id",
781
+ "isDeprecated": false,
782
+ "name": "id",
783
+ "path": "terminalServer.removeSection.section.section.id",
784
+ "requestStr": "$id:ID! ",
785
+ "required": true,
786
+ "responseStr": "id:$id ",
787
+ "type": {
788
+ "kind": [
789
+ "NON_NULL",
790
+ "SCALAR"
791
+ ],
792
+ "name": "ID",
793
+ "non_null": false
794
+ },
795
+ "varName": "id"
796
+ },
797
+ "name": {
798
+ "args": {},
799
+ "deprecationReason": null,
800
+ "description": null,
801
+ "id_str": "terminalServer___removeSection___section___section___name",
802
+ "isDeprecated": false,
803
+ "name": "name",
804
+ "path": "terminalServer.removeSection.section.section.name",
805
+ "requestStr": "$name:String! ",
806
+ "required": true,
807
+ "responseStr": "name:$name ",
808
+ "type": {
809
+ "kind": [
810
+ "NON_NULL",
811
+ "SCALAR"
812
+ ],
813
+ "name": "String",
814
+ "non_null": false
815
+ },
816
+ "varName": "name"
817
+ }
818
+ },
819
+ "inputFields": null,
820
+ "interfaces": {},
821
+ "kind": "OBJECT",
822
+ "name": "PolicySectionInfo",
823
+ "possibleTypes": null
824
+ },
825
+ "indexType": "object",
826
+ "kind": [
827
+ "NON_NULL",
828
+ "OBJECT"
829
+ ],
830
+ "name": "PolicySectionInfo",
831
+ "non_null": false
832
+ },
833
+ "varName": "policySectionInfo"
834
+ }
835
+ },
836
+ "inputFields": null,
837
+ "interfaces": {},
838
+ "kind": "OBJECT",
839
+ "name": "PolicySectionPayload",
840
+ "possibleTypes": null
841
+ },
842
+ "indexType": "object",
843
+ "kind": [
844
+ "OBJECT"
845
+ ],
846
+ "name": "PolicySectionPayload",
847
+ "non_null": false
848
+ },
849
+ "varName": "policySectionPayload"
850
+ },
851
+ "status": {
852
+ "alias": "policyMutationStatusStatus: status",
853
+ "args": {},
854
+ "deprecationReason": null,
855
+ "description": null,
856
+ "id_str": "terminalServer___removeSection___status",
857
+ "isDeprecated": false,
858
+ "name": "status",
859
+ "path": "terminalServer.removeSection.status",
860
+ "requestStr": "$status:PolicyMutationStatus! ",
861
+ "required": true,
862
+ "responseStr": "status:$status ",
863
+ "type": {
864
+ "definition": {
865
+ "description": "Enum for the status of a policy mutation",
866
+ "enumValues": [
867
+ {
868
+ "deprecationReason": null,
869
+ "description": null,
870
+ "isDeprecated": false,
871
+ "name": "SUCCESS"
872
+ },
873
+ {
874
+ "deprecationReason": null,
875
+ "description": null,
876
+ "isDeprecated": false,
877
+ "name": "FAILURE"
878
+ }
879
+ ],
880
+ "fields": null,
881
+ "inputFields": null,
882
+ "interfaces": null,
883
+ "kind": "ENUM",
884
+ "name": "PolicyMutationStatus",
885
+ "possibleTypes": null
886
+ },
887
+ "indexType": "enum",
888
+ "kind": [
889
+ "NON_NULL",
890
+ "ENUM"
891
+ ],
892
+ "name": "PolicyMutationStatus",
893
+ "non_null": false
894
+ },
895
+ "varName": "status"
896
+ }
897
+ },
898
+ "inputFields": null,
899
+ "interfaces": {},
900
+ "kind": "OBJECT",
901
+ "name": "PolicySectionMutationPayload",
902
+ "possibleTypes": null
903
+ },
904
+ "indexType": "object",
905
+ "kind": [
906
+ "NON_NULL",
907
+ "OBJECT"
908
+ ],
909
+ "name": "PolicySectionMutationPayload",
910
+ "non_null": false
911
+ },
912
+ "varName": "policySectionMutationPayload"
913
+ }
914
+ },
915
+ "inputFields": null,
916
+ "interfaces": {},
917
+ "kind": "OBJECT",
918
+ "name": "TerminalServerPolicyMutations",
919
+ "possibleTypes": null
920
+ },
921
+ "indexType": "object",
922
+ "kind": [
923
+ "OBJECT"
924
+ ],
925
+ "name": "TerminalServerPolicyMutations",
926
+ "non_null": false
927
+ },
928
+ "varName": "terminalServerPolicyMutations"
929
+ }
930
+ },
931
+ "inputFields": null,
932
+ "interfaces": [],
933
+ "kind": "OBJECT",
934
+ "name": "PolicyMutations",
935
+ "possibleTypes": null
936
+ },
937
+ "indexType": "object",
938
+ "kind": [
939
+ "OBJECT"
940
+ ],
941
+ "name": "PolicyMutations",
942
+ "non_null": false
943
+ },
944
+ "variablesPayload": {
945
+ "policyRemoveSectionInput": {
946
+ "id": {
947
+ "id": "ID"
948
+ }
949
+ },
950
+ "terminalServerPolicyMutationInput": {
951
+ "policyMutationRevisionInput": {
952
+ "id": {
953
+ "id": "ID"
954
+ }
955
+ }
956
+ }
957
+ }
958
+ }