nomadpy 0.1.0__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.
nomadpy/__init__.py ADDED
@@ -0,0 +1,620 @@
1
+ # api first: it defines the option types the service modules import at module level, then imports them.
2
+ from .api import (
3
+ Client,
4
+ Config,
5
+ default_config,
6
+ HttpBasicAuth,
7
+ QueryMeta,
8
+ QueryOptions,
9
+ TLSConfig,
10
+ WriteMeta,
11
+ WriteOptions,
12
+ )
13
+ from .acl import (
14
+ ACLAuthMethod,
15
+ ACLAuthMethodConfig,
16
+ ACLAuthMethodListStub,
17
+ ACLBindingRule,
18
+ ACLBindingRuleListStub,
19
+ ACLIdentityClientIntroductionTokenResponse,
20
+ ACLOIDCAuthURLResponse,
21
+ ACLPolicy,
22
+ ACLPolicyListStub,
23
+ ACLRole,
24
+ ACLRoleListStub,
25
+ ACLRolePolicyLink,
26
+ ACLToken,
27
+ ACLTokenListStub,
28
+ ACLTokenRoleLink,
29
+ JobACL,
30
+ OIDCClientAssertion,
31
+ OIDCClientAssertionKey,
32
+ OneTimeToken,
33
+ )
34
+ from .agent import (
35
+ AgentHealth,
36
+ AgentHealthResponse,
37
+ AgentMember,
38
+ AgentSchedulerWorkerInfo,
39
+ AgentSchedulerWorkersInfo,
40
+ AgentSelf,
41
+ DiskUsage,
42
+ HostData,
43
+ HostDataResponse,
44
+ KeyringResponse,
45
+ SchedulerWorkerPoolArgs,
46
+ ServerMembers,
47
+ )
48
+ from .allocations import (
49
+ AllocatedCpuResources,
50
+ AllocatedDeviceResource,
51
+ AllocatedMemoryResources,
52
+ AllocatedResources,
53
+ AllocatedSharedResources,
54
+ AllocatedTaskResources,
55
+ Allocation,
56
+ AllocationListStub,
57
+ AllocationMetric,
58
+ AllocDeploymentStatus,
59
+ AllocNetworkStatus,
60
+ AllocStopResponse,
61
+ DesiredTransition,
62
+ NodeScoreMeta,
63
+ PortMapping,
64
+ RescheduleEvent,
65
+ RescheduleTracker,
66
+ )
67
+ from .constraint import Constraint
68
+ from .consul import (
69
+ Consul,
70
+ ConsulConnect,
71
+ ConsulExposeConfig,
72
+ ConsulExposePath,
73
+ ConsulGateway,
74
+ ConsulGatewayBindAddress,
75
+ ConsulGatewayProxy,
76
+ ConsulGatewayTLSConfig,
77
+ ConsulGatewayTLSSDSConfig,
78
+ ConsulHTTPHeaderModifiers,
79
+ ConsulIngressConfigEntry,
80
+ ConsulIngressListener,
81
+ ConsulIngressService,
82
+ ConsulLinkedService,
83
+ ConsulMeshGateway,
84
+ ConsulProxy,
85
+ ConsulSidecarService,
86
+ ConsulTerminatingConfigEntry,
87
+ ConsulTransparentProxy,
88
+ ConsulUpstream,
89
+ SidecarTask,
90
+ )
91
+ from .csi import (
92
+ CSIMountOptions,
93
+ CSIPlugin,
94
+ CSIPluginListStub,
95
+ CSISnapshot,
96
+ CSISnapshotCreateResponse,
97
+ CSISnapshotListResponse,
98
+ CSIVolume,
99
+ CSIVolumeCapability,
100
+ CSIVolumeCreateResponse,
101
+ CSIVolumeExternalStub,
102
+ CSIVolumeListExternalResponse,
103
+ CSIVolumeListStub,
104
+ CSIVolumeRegisterResponse,
105
+ )
106
+ from .deployments import (
107
+ Deployment,
108
+ DeploymentState,
109
+ DeploymentUpdateResponse,
110
+ )
111
+ from .error_unexpected_response import UnexpectedResponseError
112
+ from .evaluations import (
113
+ Evaluation,
114
+ EvaluationStub,
115
+ )
116
+ from .event_stream import (
117
+ Event,
118
+ Events,
119
+ )
120
+ from .fs import (
121
+ AllocFileInfo,
122
+ StreamFrame,
123
+ )
124
+ from .host_volume_claims import TaskGroupHostVolumeClaim
125
+ from .host_volumes import (
126
+ HostVolume,
127
+ HostVolumeCapability,
128
+ HostVolumeCreateResponse,
129
+ HostVolumeRegisterResponse,
130
+ HostVolumeStub,
131
+ )
132
+ from .jobs import (
133
+ DesiredUpdates,
134
+ FieldDiff,
135
+ Job,
136
+ JobChildrenSummary,
137
+ JobDiff,
138
+ JobDispatchResponse,
139
+ JobListStub,
140
+ JobPlanResponse,
141
+ JobRegisterResponse,
142
+ JobStabilityResponse,
143
+ JobSubmission,
144
+ JobSummary,
145
+ JobUIConfig,
146
+ JobUILink,
147
+ JobValidateResponse,
148
+ JobVersionTag,
149
+ Multiregion,
150
+ MultiregionRegion,
151
+ MultiregionStrategy,
152
+ ObjectDiff,
153
+ ParameterizedJobConfig,
154
+ PeriodicConfig,
155
+ PlanAnnotations,
156
+ TaskDiff,
157
+ TaskGroupDiff,
158
+ TaskGroupSummary,
159
+ UpdateStrategy,
160
+ )
161
+ from .keyring import RootKeyMeta
162
+ from .namespace import (
163
+ Namespace,
164
+ NamespaceCapabilities,
165
+ NamespaceConsulConfiguration,
166
+ NamespacedID,
167
+ NamespaceNodePoolConfiguration,
168
+ NamespaceVaultConfiguration,
169
+ )
170
+ from .node_identity import (
171
+ NodeIdentityGetResponse,
172
+ NodeIdentityRenewResponse,
173
+ )
174
+ from .node_meta import NodeMetaResponse
175
+ from .node_pools import (
176
+ NodePool,
177
+ NodePoolSchedulerConfiguration,
178
+ )
179
+ from .nodes import (
180
+ CSIControllerInfo,
181
+ CSIInfo,
182
+ CSINodeInfo,
183
+ CSITopology,
184
+ CSITopologyRequest,
185
+ DeviceGroupStats,
186
+ DeviceStats,
187
+ DrainMetadata,
188
+ DrainSpec,
189
+ DrainStrategy,
190
+ DriverInfo,
191
+ HostCPUStats,
192
+ HostDiskStats,
193
+ HostMemoryStats,
194
+ HostNetworkInfo,
195
+ HostStats,
196
+ HostVolumeInfo,
197
+ Node,
198
+ NodeCpuResources,
199
+ NodeDiskResources,
200
+ NodeDrainUpdateResponse,
201
+ NodeEligibilityUpdateResponse,
202
+ NodeEvent,
203
+ NodeListStub,
204
+ NodeMemoryResources,
205
+ NodePurgeResponse,
206
+ NodeReservedCpuResources,
207
+ NodeReservedDiskResources,
208
+ NodeReservedMemoryResources,
209
+ NodeReservedNetworkResources,
210
+ NodeReservedResources,
211
+ NodeResources,
212
+ StatObject,
213
+ StatValue,
214
+ )
215
+ from .operator import (
216
+ License,
217
+ LicenseReply,
218
+ OperatorUtilizationSnapshotResponse,
219
+ PreemptionConfig,
220
+ RaftConfiguration,
221
+ RaftServer,
222
+ SchedulerConfiguration,
223
+ SchedulerConfigurationResponse,
224
+ SchedulerSetConfigurationResponse,
225
+ VaultAccessor,
226
+ VaultWorkloadIdentityUpgradeCheck,
227
+ )
228
+ from .operator_autopilot import (
229
+ AutopilotConfiguration,
230
+ AutopilotUpgrade,
231
+ AutopilotZone,
232
+ AutopilotZoneUpgradeVersions,
233
+ OperatorHealthReply,
234
+ ServerHealth,
235
+ )
236
+ from .operator_metrics import (
237
+ GaugeValue,
238
+ MetricsSummary,
239
+ PointValue,
240
+ SampledValue,
241
+ )
242
+ from .quota import (
243
+ NodePoolLimit,
244
+ QuotaLimit,
245
+ QuotaResources,
246
+ QuotaSpec,
247
+ QuotaStorageResources,
248
+ QuotaUsage,
249
+ )
250
+ from .recommendations import (
251
+ Recommendation,
252
+ RecommendationApplyResponse,
253
+ SingleRecommendationApplyError,
254
+ SingleRecommendationApplyResult,
255
+ )
256
+ from .resources import (
257
+ Attribute,
258
+ CNIConfig,
259
+ DNSConfig,
260
+ NetworkResource,
261
+ NodeDevice,
262
+ NodeDeviceLocality,
263
+ NodeDeviceResource,
264
+ NUMAResource,
265
+ Port,
266
+ RequestedDevice,
267
+ Resources,
268
+ )
269
+ from .scaling import (
270
+ JobScaleStatusResponse,
271
+ ScalingEvent,
272
+ ScalingPolicy,
273
+ ScalingPolicyListStub,
274
+ ScalingRequest,
275
+ TaskGroupScaleStatus,
276
+ )
277
+ from .search import (
278
+ FuzzyMatch,
279
+ FuzzySearchResponse,
280
+ SearchResponse,
281
+ )
282
+ from .sentinel import (
283
+ SentinelPolicy,
284
+ SentinelPolicyListStub,
285
+ )
286
+ from .services import (
287
+ CheckRestart,
288
+ Service,
289
+ ServiceCheck,
290
+ ServiceRegistration,
291
+ ServiceRegistrationListStub,
292
+ ServiceRegistrationStub,
293
+ ServiceWeights,
294
+ )
295
+ from .task_sched import (
296
+ TaskSchedule,
297
+ TaskScheduleCron,
298
+ )
299
+ from .tasks import (
300
+ Action,
301
+ Affinity,
302
+ AllocCheckStatus,
303
+ AllocResourceUsage,
304
+ ChangeScript,
305
+ CpuStats,
306
+ DisconnectStrategy,
307
+ DispatchPayloadConfig,
308
+ EphemeralDisk,
309
+ LogConfig,
310
+ MemoryStats,
311
+ MigrateStrategy,
312
+ ReschedulePolicy,
313
+ ResourceUsage,
314
+ RestartPolicy,
315
+ Secret,
316
+ Spread,
317
+ SpreadTarget,
318
+ Task,
319
+ TaskArtifact,
320
+ TaskCSIPluginConfig,
321
+ TaskEvent,
322
+ TaskGroup,
323
+ TaskLifecycle,
324
+ TaskResourceUsage,
325
+ TaskState,
326
+ Template,
327
+ Vault,
328
+ VolumeMount,
329
+ VolumeRequest,
330
+ WaitConfig,
331
+ WorkloadIdentity,
332
+ )
333
+ from .variables import (
334
+ ErrCASConflict,
335
+ Variable,
336
+ VariableLock,
337
+ VariableMetadata,
338
+ )
339
+
340
+ __all__ = [
341
+ "ACLAuthMethod",
342
+ "ACLAuthMethodConfig",
343
+ "ACLAuthMethodListStub",
344
+ "ACLBindingRule",
345
+ "ACLBindingRuleListStub",
346
+ "ACLIdentityClientIntroductionTokenResponse",
347
+ "ACLOIDCAuthURLResponse",
348
+ "ACLPolicy",
349
+ "ACLPolicyListStub",
350
+ "ACLRole",
351
+ "ACLRoleListStub",
352
+ "ACLRolePolicyLink",
353
+ "ACLToken",
354
+ "ACLTokenListStub",
355
+ "ACLTokenRoleLink",
356
+ "Action",
357
+ "Affinity",
358
+ "AgentHealth",
359
+ "AgentHealthResponse",
360
+ "AgentMember",
361
+ "AgentSchedulerWorkerInfo",
362
+ "AgentSchedulerWorkersInfo",
363
+ "AgentSelf",
364
+ "AllocatedCpuResources",
365
+ "AllocatedDeviceResource",
366
+ "AllocatedMemoryResources",
367
+ "AllocatedResources",
368
+ "AllocatedSharedResources",
369
+ "AllocatedTaskResources",
370
+ "Allocation",
371
+ "AllocationListStub",
372
+ "AllocationMetric",
373
+ "AllocCheckStatus",
374
+ "AllocDeploymentStatus",
375
+ "AllocFileInfo",
376
+ "AllocNetworkStatus",
377
+ "AllocResourceUsage",
378
+ "AllocStopResponse",
379
+ "Attribute",
380
+ "AutopilotConfiguration",
381
+ "AutopilotUpgrade",
382
+ "AutopilotZone",
383
+ "AutopilotZoneUpgradeVersions",
384
+ "ChangeScript",
385
+ "CheckRestart",
386
+ "Client",
387
+ "CNIConfig",
388
+ "Config",
389
+ "Constraint",
390
+ "Consul",
391
+ "ConsulConnect",
392
+ "ConsulExposeConfig",
393
+ "ConsulExposePath",
394
+ "ConsulGateway",
395
+ "ConsulGatewayBindAddress",
396
+ "ConsulGatewayProxy",
397
+ "ConsulGatewayTLSConfig",
398
+ "ConsulGatewayTLSSDSConfig",
399
+ "ConsulHTTPHeaderModifiers",
400
+ "ConsulIngressConfigEntry",
401
+ "ConsulIngressListener",
402
+ "ConsulIngressService",
403
+ "ConsulLinkedService",
404
+ "ConsulMeshGateway",
405
+ "ConsulProxy",
406
+ "ConsulSidecarService",
407
+ "ConsulTerminatingConfigEntry",
408
+ "ConsulTransparentProxy",
409
+ "ConsulUpstream",
410
+ "CpuStats",
411
+ "CSIControllerInfo",
412
+ "CSIInfo",
413
+ "CSIMountOptions",
414
+ "CSINodeInfo",
415
+ "CSIPlugin",
416
+ "CSIPluginListStub",
417
+ "CSISnapshot",
418
+ "CSISnapshotCreateResponse",
419
+ "CSISnapshotListResponse",
420
+ "CSITopology",
421
+ "CSITopologyRequest",
422
+ "CSIVolume",
423
+ "CSIVolumeCapability",
424
+ "CSIVolumeCreateResponse",
425
+ "CSIVolumeExternalStub",
426
+ "CSIVolumeListExternalResponse",
427
+ "CSIVolumeListStub",
428
+ "CSIVolumeRegisterResponse",
429
+ "default_config",
430
+ "Deployment",
431
+ "DeploymentState",
432
+ "DeploymentUpdateResponse",
433
+ "DesiredTransition",
434
+ "DesiredUpdates",
435
+ "DeviceGroupStats",
436
+ "DeviceStats",
437
+ "DisconnectStrategy",
438
+ "DiskUsage",
439
+ "DispatchPayloadConfig",
440
+ "DNSConfig",
441
+ "DrainMetadata",
442
+ "DrainSpec",
443
+ "DrainStrategy",
444
+ "DriverInfo",
445
+ "EphemeralDisk",
446
+ "ErrCASConflict",
447
+ "Evaluation",
448
+ "EvaluationStub",
449
+ "Event",
450
+ "Events",
451
+ "FieldDiff",
452
+ "FuzzyMatch",
453
+ "FuzzySearchResponse",
454
+ "GaugeValue",
455
+ "HostCPUStats",
456
+ "HostData",
457
+ "HostDataResponse",
458
+ "HostDiskStats",
459
+ "HostMemoryStats",
460
+ "HostNetworkInfo",
461
+ "HostStats",
462
+ "HostVolume",
463
+ "HostVolumeCapability",
464
+ "HostVolumeCreateResponse",
465
+ "HostVolumeInfo",
466
+ "HostVolumeRegisterResponse",
467
+ "HostVolumeStub",
468
+ "HttpBasicAuth",
469
+ "Job",
470
+ "JobACL",
471
+ "JobChildrenSummary",
472
+ "JobDiff",
473
+ "JobDispatchResponse",
474
+ "JobListStub",
475
+ "JobPlanResponse",
476
+ "JobRegisterResponse",
477
+ "JobScaleStatusResponse",
478
+ "JobStabilityResponse",
479
+ "JobSubmission",
480
+ "JobSummary",
481
+ "JobUIConfig",
482
+ "JobUILink",
483
+ "JobValidateResponse",
484
+ "JobVersionTag",
485
+ "KeyringResponse",
486
+ "License",
487
+ "LicenseReply",
488
+ "LogConfig",
489
+ "MemoryStats",
490
+ "MetricsSummary",
491
+ "MigrateStrategy",
492
+ "Multiregion",
493
+ "MultiregionRegion",
494
+ "MultiregionStrategy",
495
+ "Namespace",
496
+ "NamespaceCapabilities",
497
+ "NamespaceConsulConfiguration",
498
+ "NamespacedID",
499
+ "NamespaceNodePoolConfiguration",
500
+ "NamespaceVaultConfiguration",
501
+ "NetworkResource",
502
+ "Node",
503
+ "NodeCpuResources",
504
+ "NodeDevice",
505
+ "NodeDeviceLocality",
506
+ "NodeDeviceResource",
507
+ "NodeDiskResources",
508
+ "NodeDrainUpdateResponse",
509
+ "NodeEligibilityUpdateResponse",
510
+ "NodeEvent",
511
+ "NodeIdentityGetResponse",
512
+ "NodeIdentityRenewResponse",
513
+ "NodeListStub",
514
+ "NodeMemoryResources",
515
+ "NodeMetaResponse",
516
+ "NodePool",
517
+ "NodePoolLimit",
518
+ "NodePoolSchedulerConfiguration",
519
+ "NodePurgeResponse",
520
+ "NodeReservedCpuResources",
521
+ "NodeReservedDiskResources",
522
+ "NodeReservedMemoryResources",
523
+ "NodeReservedNetworkResources",
524
+ "NodeReservedResources",
525
+ "NodeResources",
526
+ "NodeScoreMeta",
527
+ "NUMAResource",
528
+ "ObjectDiff",
529
+ "OIDCClientAssertion",
530
+ "OIDCClientAssertionKey",
531
+ "OneTimeToken",
532
+ "OperatorHealthReply",
533
+ "OperatorUtilizationSnapshotResponse",
534
+ "ParameterizedJobConfig",
535
+ "PeriodicConfig",
536
+ "PlanAnnotations",
537
+ "PointValue",
538
+ "Port",
539
+ "PortMapping",
540
+ "PreemptionConfig",
541
+ "QueryMeta",
542
+ "QueryOptions",
543
+ "QuotaLimit",
544
+ "QuotaResources",
545
+ "QuotaSpec",
546
+ "QuotaStorageResources",
547
+ "QuotaUsage",
548
+ "RaftConfiguration",
549
+ "RaftServer",
550
+ "Recommendation",
551
+ "RecommendationApplyResponse",
552
+ "RequestedDevice",
553
+ "RescheduleEvent",
554
+ "ReschedulePolicy",
555
+ "RescheduleTracker",
556
+ "Resources",
557
+ "ResourceUsage",
558
+ "RestartPolicy",
559
+ "RootKeyMeta",
560
+ "SampledValue",
561
+ "ScalingEvent",
562
+ "ScalingPolicy",
563
+ "ScalingPolicyListStub",
564
+ "ScalingRequest",
565
+ "SchedulerConfiguration",
566
+ "SchedulerConfigurationResponse",
567
+ "SchedulerSetConfigurationResponse",
568
+ "SchedulerWorkerPoolArgs",
569
+ "SearchResponse",
570
+ "Secret",
571
+ "SentinelPolicy",
572
+ "SentinelPolicyListStub",
573
+ "ServerHealth",
574
+ "ServerMembers",
575
+ "Service",
576
+ "ServiceCheck",
577
+ "ServiceRegistration",
578
+ "ServiceRegistrationListStub",
579
+ "ServiceRegistrationStub",
580
+ "ServiceWeights",
581
+ "SidecarTask",
582
+ "SingleRecommendationApplyError",
583
+ "SingleRecommendationApplyResult",
584
+ "Spread",
585
+ "SpreadTarget",
586
+ "StatObject",
587
+ "StatValue",
588
+ "StreamFrame",
589
+ "Task",
590
+ "TaskArtifact",
591
+ "TaskCSIPluginConfig",
592
+ "TaskDiff",
593
+ "TaskEvent",
594
+ "TaskGroup",
595
+ "TaskGroupDiff",
596
+ "TaskGroupHostVolumeClaim",
597
+ "TaskGroupScaleStatus",
598
+ "TaskGroupSummary",
599
+ "TaskLifecycle",
600
+ "TaskResourceUsage",
601
+ "TaskSchedule",
602
+ "TaskScheduleCron",
603
+ "TaskState",
604
+ "Template",
605
+ "TLSConfig",
606
+ "UnexpectedResponseError",
607
+ "UpdateStrategy",
608
+ "Variable",
609
+ "VariableLock",
610
+ "VariableMetadata",
611
+ "Vault",
612
+ "VaultAccessor",
613
+ "VaultWorkloadIdentityUpgradeCheck",
614
+ "VolumeMount",
615
+ "VolumeRequest",
616
+ "WaitConfig",
617
+ "WorkloadIdentity",
618
+ "WriteMeta",
619
+ "WriteOptions",
620
+ ]