pulumi-nomad 2.4.3__py3-none-any.whl → 2.5.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.
- pulumi_nomad/__init__.py +20 -0
- pulumi_nomad/_inputs.py +1056 -378
- pulumi_nomad/acl_auth_method.py +85 -84
- pulumi_nomad/acl_binding_rule.py +71 -70
- pulumi_nomad/acl_policy.py +57 -49
- pulumi_nomad/acl_role.py +29 -28
- pulumi_nomad/acl_token.py +99 -98
- pulumi_nomad/config/__init__.py +1 -0
- pulumi_nomad/config/__init__.pyi +1 -10
- pulumi_nomad/config/outputs.py +7 -6
- pulumi_nomad/config/vars.py +1 -14
- pulumi_nomad/csi_volume.py +231 -202
- pulumi_nomad/csi_volume_registration.py +210 -209
- pulumi_nomad/dynamic_host_volume.py +1005 -0
- pulumi_nomad/dynamic_host_volume_registration.py +740 -0
- pulumi_nomad/external_volume.py +195 -194
- pulumi_nomad/get_acl_policies.py +7 -6
- pulumi_nomad/get_acl_policy.py +9 -8
- pulumi_nomad/get_acl_role.py +8 -7
- pulumi_nomad/get_acl_roles.py +7 -6
- pulumi_nomad/get_acl_token.py +15 -14
- pulumi_nomad/get_acl_tokens.py +7 -6
- pulumi_nomad/get_allocations.py +17 -16
- pulumi_nomad/get_datacenters.py +13 -12
- pulumi_nomad/get_deployments.py +3 -2
- pulumi_nomad/get_dynamic_host_volume.py +353 -0
- pulumi_nomad/get_job.py +28 -27
- pulumi_nomad/get_job_parser.py +13 -12
- pulumi_nomad/get_jwks.py +3 -2
- pulumi_nomad/get_namespace.py +10 -9
- pulumi_nomad/get_namespaces.py +3 -2
- pulumi_nomad/get_node_pool.py +9 -8
- pulumi_nomad/get_node_pools.py +12 -11
- pulumi_nomad/get_plugin.py +24 -23
- pulumi_nomad/get_plugins.py +6 -5
- pulumi_nomad/get_regions.py +3 -2
- pulumi_nomad/get_scaling_policies.py +12 -11
- pulumi_nomad/get_scaling_policy.py +12 -11
- pulumi_nomad/get_scheduler_policy.py +5 -4
- pulumi_nomad/get_variable.py +13 -12
- pulumi_nomad/get_volumes.py +23 -22
- pulumi_nomad/job.py +193 -302
- pulumi_nomad/namespace.py +57 -56
- pulumi_nomad/node_pool.py +43 -42
- pulumi_nomad/outputs.py +1030 -451
- pulumi_nomad/provider.py +95 -152
- pulumi_nomad/pulumi-plugin.json +1 -1
- pulumi_nomad/quote_specification.py +29 -28
- pulumi_nomad/scheduler_config.py +43 -42
- pulumi_nomad/sentinel_policy.py +71 -70
- pulumi_nomad/variable.py +43 -42
- pulumi_nomad/volume.py +209 -208
- {pulumi_nomad-2.4.3.dist-info → pulumi_nomad-2.5.0.dist-info}/METADATA +2 -2
- pulumi_nomad-2.5.0.dist-info/RECORD +58 -0
- {pulumi_nomad-2.4.3.dist-info → pulumi_nomad-2.5.0.dist-info}/WHEEL +1 -1
- pulumi_nomad-2.4.3.dist-info/RECORD +0 -55
- {pulumi_nomad-2.4.3.dist-info → pulumi_nomad-2.5.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,353 @@
|
|
1
|
+
# coding=utf-8
|
2
|
+
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
|
+
|
5
|
+
import builtins
|
6
|
+
import copy
|
7
|
+
import warnings
|
8
|
+
import sys
|
9
|
+
import pulumi
|
10
|
+
import pulumi.runtime
|
11
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
12
|
+
if sys.version_info >= (3, 11):
|
13
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
14
|
+
else:
|
15
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
16
|
+
from . import _utilities
|
17
|
+
from . import outputs
|
18
|
+
|
19
|
+
__all__ = [
|
20
|
+
'GetDynamicHostVolumeResult',
|
21
|
+
'AwaitableGetDynamicHostVolumeResult',
|
22
|
+
'get_dynamic_host_volume',
|
23
|
+
'get_dynamic_host_volume_output',
|
24
|
+
]
|
25
|
+
|
26
|
+
@pulumi.output_type
|
27
|
+
class GetDynamicHostVolumeResult:
|
28
|
+
"""
|
29
|
+
A collection of values returned by getDynamicHostVolume.
|
30
|
+
"""
|
31
|
+
def __init__(__self__, capabilities=None, capacity=None, capacity_bytes=None, capacity_max=None, capacity_max_bytes=None, capacity_min=None, capacity_min_bytes=None, constraints=None, host_path=None, id=None, name=None, namespace=None, node_id=None, node_pool=None, parameters=None, plugin_id=None, state=None):
|
32
|
+
if capabilities and not isinstance(capabilities, list):
|
33
|
+
raise TypeError("Expected argument 'capabilities' to be a list")
|
34
|
+
pulumi.set(__self__, "capabilities", capabilities)
|
35
|
+
if capacity and not isinstance(capacity, str):
|
36
|
+
raise TypeError("Expected argument 'capacity' to be a str")
|
37
|
+
pulumi.set(__self__, "capacity", capacity)
|
38
|
+
if capacity_bytes and not isinstance(capacity_bytes, int):
|
39
|
+
raise TypeError("Expected argument 'capacity_bytes' to be a int")
|
40
|
+
pulumi.set(__self__, "capacity_bytes", capacity_bytes)
|
41
|
+
if capacity_max and not isinstance(capacity_max, str):
|
42
|
+
raise TypeError("Expected argument 'capacity_max' to be a str")
|
43
|
+
pulumi.set(__self__, "capacity_max", capacity_max)
|
44
|
+
if capacity_max_bytes and not isinstance(capacity_max_bytes, int):
|
45
|
+
raise TypeError("Expected argument 'capacity_max_bytes' to be a int")
|
46
|
+
pulumi.set(__self__, "capacity_max_bytes", capacity_max_bytes)
|
47
|
+
if capacity_min and not isinstance(capacity_min, str):
|
48
|
+
raise TypeError("Expected argument 'capacity_min' to be a str")
|
49
|
+
pulumi.set(__self__, "capacity_min", capacity_min)
|
50
|
+
if capacity_min_bytes and not isinstance(capacity_min_bytes, int):
|
51
|
+
raise TypeError("Expected argument 'capacity_min_bytes' to be a int")
|
52
|
+
pulumi.set(__self__, "capacity_min_bytes", capacity_min_bytes)
|
53
|
+
if constraints and not isinstance(constraints, list):
|
54
|
+
raise TypeError("Expected argument 'constraints' to be a list")
|
55
|
+
pulumi.set(__self__, "constraints", constraints)
|
56
|
+
if host_path and not isinstance(host_path, str):
|
57
|
+
raise TypeError("Expected argument 'host_path' to be a str")
|
58
|
+
pulumi.set(__self__, "host_path", host_path)
|
59
|
+
if id and not isinstance(id, str):
|
60
|
+
raise TypeError("Expected argument 'id' to be a str")
|
61
|
+
pulumi.set(__self__, "id", id)
|
62
|
+
if name and not isinstance(name, str):
|
63
|
+
raise TypeError("Expected argument 'name' to be a str")
|
64
|
+
pulumi.set(__self__, "name", name)
|
65
|
+
if namespace and not isinstance(namespace, str):
|
66
|
+
raise TypeError("Expected argument 'namespace' to be a str")
|
67
|
+
pulumi.set(__self__, "namespace", namespace)
|
68
|
+
if node_id and not isinstance(node_id, str):
|
69
|
+
raise TypeError("Expected argument 'node_id' to be a str")
|
70
|
+
pulumi.set(__self__, "node_id", node_id)
|
71
|
+
if node_pool and not isinstance(node_pool, str):
|
72
|
+
raise TypeError("Expected argument 'node_pool' to be a str")
|
73
|
+
pulumi.set(__self__, "node_pool", node_pool)
|
74
|
+
if parameters and not isinstance(parameters, dict):
|
75
|
+
raise TypeError("Expected argument 'parameters' to be a dict")
|
76
|
+
pulumi.set(__self__, "parameters", parameters)
|
77
|
+
if plugin_id and not isinstance(plugin_id, str):
|
78
|
+
raise TypeError("Expected argument 'plugin_id' to be a str")
|
79
|
+
pulumi.set(__self__, "plugin_id", plugin_id)
|
80
|
+
if state and not isinstance(state, str):
|
81
|
+
raise TypeError("Expected argument 'state' to be a str")
|
82
|
+
pulumi.set(__self__, "state", state)
|
83
|
+
|
84
|
+
@property
|
85
|
+
@pulumi.getter
|
86
|
+
def capabilities(self) -> Sequence['outputs.GetDynamicHostVolumeCapabilityResult']:
|
87
|
+
"""
|
88
|
+
`(block)` - Option for validating the capability of a
|
89
|
+
volume. Each capability block has the following attributes:
|
90
|
+
"""
|
91
|
+
return pulumi.get(self, "capabilities")
|
92
|
+
|
93
|
+
@property
|
94
|
+
@pulumi.getter
|
95
|
+
def capacity(self) -> builtins.str:
|
96
|
+
"""
|
97
|
+
`(string)` - The size of the volume, in human-friendly format
|
98
|
+
(ex. 10 GiB)
|
99
|
+
"""
|
100
|
+
return pulumi.get(self, "capacity")
|
101
|
+
|
102
|
+
@property
|
103
|
+
@pulumi.getter(name="capacityBytes")
|
104
|
+
def capacity_bytes(self) -> builtins.int:
|
105
|
+
"""
|
106
|
+
`(int)` - The size of the volume, in bytes.
|
107
|
+
"""
|
108
|
+
return pulumi.get(self, "capacity_bytes")
|
109
|
+
|
110
|
+
@property
|
111
|
+
@pulumi.getter(name="capacityMax")
|
112
|
+
def capacity_max(self) -> builtins.str:
|
113
|
+
"""
|
114
|
+
`(string)` - The requested maximum capacity of the volume, in
|
115
|
+
human-friendly format (ex. 10 GiB).
|
116
|
+
"""
|
117
|
+
return pulumi.get(self, "capacity_max")
|
118
|
+
|
119
|
+
@property
|
120
|
+
@pulumi.getter(name="capacityMaxBytes")
|
121
|
+
def capacity_max_bytes(self) -> builtins.int:
|
122
|
+
"""
|
123
|
+
`(string)` - The requested maximum capacity of the
|
124
|
+
volume, in bytes.
|
125
|
+
"""
|
126
|
+
return pulumi.get(self, "capacity_max_bytes")
|
127
|
+
|
128
|
+
@property
|
129
|
+
@pulumi.getter(name="capacityMin")
|
130
|
+
def capacity_min(self) -> builtins.str:
|
131
|
+
"""
|
132
|
+
`(string)` - The requested minimum capacity of the volume, in
|
133
|
+
human-friendly format (ex. 10 GiB).
|
134
|
+
"""
|
135
|
+
return pulumi.get(self, "capacity_min")
|
136
|
+
|
137
|
+
@property
|
138
|
+
@pulumi.getter(name="capacityMinBytes")
|
139
|
+
def capacity_min_bytes(self) -> builtins.int:
|
140
|
+
"""
|
141
|
+
`(string)` - The requested minimum capacity of the
|
142
|
+
volume, in bytes.
|
143
|
+
"""
|
144
|
+
return pulumi.get(self, "capacity_min_bytes")
|
145
|
+
|
146
|
+
@property
|
147
|
+
@pulumi.getter
|
148
|
+
def constraints(self) -> Sequence['outputs.GetDynamicHostVolumeConstraintResult']:
|
149
|
+
"""
|
150
|
+
`(block)` - The restrictions used to place the volume on a node,
|
151
|
+
similar to the [`constraint`][] block on a Nomad job specification. A volume
|
152
|
+
may have multiple `constraint` blocks. Each constraint block has the following
|
153
|
+
attributes.
|
154
|
+
"""
|
155
|
+
return pulumi.get(self, "constraints")
|
156
|
+
|
157
|
+
@property
|
158
|
+
@pulumi.getter(name="hostPath")
|
159
|
+
def host_path(self) -> builtins.str:
|
160
|
+
"""
|
161
|
+
`(string)` - The path on disk where the volume exists.
|
162
|
+
"""
|
163
|
+
return pulumi.get(self, "host_path")
|
164
|
+
|
165
|
+
@property
|
166
|
+
@pulumi.getter
|
167
|
+
def id(self) -> builtins.str:
|
168
|
+
return pulumi.get(self, "id")
|
169
|
+
|
170
|
+
@property
|
171
|
+
@pulumi.getter
|
172
|
+
def name(self) -> builtins.str:
|
173
|
+
"""
|
174
|
+
`(string)` - The name of the volume, which is used as the
|
175
|
+
[`volume.source`][volume_source] field in job specifications that claim this
|
176
|
+
volume. Host volume names are be unique per node. Names are visible to any
|
177
|
+
user with `node:read` ACL, even across namespaces, so they should not be
|
178
|
+
treated as sensitive values.
|
179
|
+
"""
|
180
|
+
return pulumi.get(self, "name")
|
181
|
+
|
182
|
+
@property
|
183
|
+
@pulumi.getter
|
184
|
+
def namespace(self) -> Optional[builtins.str]:
|
185
|
+
"""
|
186
|
+
`(string)` - The namespace of the volume.
|
187
|
+
"""
|
188
|
+
return pulumi.get(self, "namespace")
|
189
|
+
|
190
|
+
@property
|
191
|
+
@pulumi.getter(name="nodeId")
|
192
|
+
def node_id(self) -> builtins.str:
|
193
|
+
"""
|
194
|
+
`(string)` - A specific node where the volume is mounted.
|
195
|
+
"""
|
196
|
+
return pulumi.get(self, "node_id")
|
197
|
+
|
198
|
+
@property
|
199
|
+
@pulumi.getter(name="nodePool")
|
200
|
+
def node_pool(self) -> builtins.str:
|
201
|
+
"""
|
202
|
+
`(string: <optional>)` - The node pool of the node where the
|
203
|
+
volume is mounted.
|
204
|
+
"""
|
205
|
+
return pulumi.get(self, "node_pool")
|
206
|
+
|
207
|
+
@property
|
208
|
+
@pulumi.getter
|
209
|
+
def parameters(self) -> Mapping[str, builtins.str]:
|
210
|
+
"""
|
211
|
+
`(map<string|string>)` - A key-value map of strings
|
212
|
+
passed directly to the plugin to configure the volume. The details of these
|
213
|
+
parameters are specific to the plugin.
|
214
|
+
"""
|
215
|
+
return pulumi.get(self, "parameters")
|
216
|
+
|
217
|
+
@property
|
218
|
+
@pulumi.getter(name="pluginId")
|
219
|
+
def plugin_id(self) -> builtins.str:
|
220
|
+
"""
|
221
|
+
`(string: <required>)` - The ID of the [dynamic host volume
|
222
|
+
plugin][dhv_plugin] that manages this volume.
|
223
|
+
"""
|
224
|
+
return pulumi.get(self, "plugin_id")
|
225
|
+
|
226
|
+
@property
|
227
|
+
@pulumi.getter
|
228
|
+
def state(self) -> builtins.str:
|
229
|
+
return pulumi.get(self, "state")
|
230
|
+
|
231
|
+
|
232
|
+
class AwaitableGetDynamicHostVolumeResult(GetDynamicHostVolumeResult):
|
233
|
+
# pylint: disable=using-constant-test
|
234
|
+
def __await__(self):
|
235
|
+
if False:
|
236
|
+
yield self
|
237
|
+
return GetDynamicHostVolumeResult(
|
238
|
+
capabilities=self.capabilities,
|
239
|
+
capacity=self.capacity,
|
240
|
+
capacity_bytes=self.capacity_bytes,
|
241
|
+
capacity_max=self.capacity_max,
|
242
|
+
capacity_max_bytes=self.capacity_max_bytes,
|
243
|
+
capacity_min=self.capacity_min,
|
244
|
+
capacity_min_bytes=self.capacity_min_bytes,
|
245
|
+
constraints=self.constraints,
|
246
|
+
host_path=self.host_path,
|
247
|
+
id=self.id,
|
248
|
+
name=self.name,
|
249
|
+
namespace=self.namespace,
|
250
|
+
node_id=self.node_id,
|
251
|
+
node_pool=self.node_pool,
|
252
|
+
parameters=self.parameters,
|
253
|
+
plugin_id=self.plugin_id,
|
254
|
+
state=self.state)
|
255
|
+
|
256
|
+
|
257
|
+
def get_dynamic_host_volume(id: Optional[builtins.str] = None,
|
258
|
+
namespace: Optional[builtins.str] = None,
|
259
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDynamicHostVolumeResult:
|
260
|
+
"""
|
261
|
+
Get information on a dynamic host volume from Nomad.
|
262
|
+
|
263
|
+
## Example Usage
|
264
|
+
|
265
|
+
Check for the existing of a host volume:
|
266
|
+
|
267
|
+
```python
|
268
|
+
import pulumi
|
269
|
+
import pulumi_nomad as nomad
|
270
|
+
|
271
|
+
example = nomad.get_dynamic_host_volume(namespace="prod",
|
272
|
+
id="d688ff7a-d299-11ef-ae3c-6f2400953c18")
|
273
|
+
```
|
274
|
+
|
275
|
+
This will check for a dynamic host volume with the ID
|
276
|
+
`d688ff7a-d299-11ef-ae3c-6f2400953c18`.
|
277
|
+
|
278
|
+
|
279
|
+
:param builtins.str id: `(string)` - the ID of the volume
|
280
|
+
:param builtins.str namespace: `(string)` - the namespace of the volume. Defaults to `"default"`
|
281
|
+
"""
|
282
|
+
__args__ = dict()
|
283
|
+
__args__['id'] = id
|
284
|
+
__args__['namespace'] = namespace
|
285
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
286
|
+
__ret__ = pulumi.runtime.invoke('nomad:index/getDynamicHostVolume:getDynamicHostVolume', __args__, opts=opts, typ=GetDynamicHostVolumeResult).value
|
287
|
+
|
288
|
+
return AwaitableGetDynamicHostVolumeResult(
|
289
|
+
capabilities=pulumi.get(__ret__, 'capabilities'),
|
290
|
+
capacity=pulumi.get(__ret__, 'capacity'),
|
291
|
+
capacity_bytes=pulumi.get(__ret__, 'capacity_bytes'),
|
292
|
+
capacity_max=pulumi.get(__ret__, 'capacity_max'),
|
293
|
+
capacity_max_bytes=pulumi.get(__ret__, 'capacity_max_bytes'),
|
294
|
+
capacity_min=pulumi.get(__ret__, 'capacity_min'),
|
295
|
+
capacity_min_bytes=pulumi.get(__ret__, 'capacity_min_bytes'),
|
296
|
+
constraints=pulumi.get(__ret__, 'constraints'),
|
297
|
+
host_path=pulumi.get(__ret__, 'host_path'),
|
298
|
+
id=pulumi.get(__ret__, 'id'),
|
299
|
+
name=pulumi.get(__ret__, 'name'),
|
300
|
+
namespace=pulumi.get(__ret__, 'namespace'),
|
301
|
+
node_id=pulumi.get(__ret__, 'node_id'),
|
302
|
+
node_pool=pulumi.get(__ret__, 'node_pool'),
|
303
|
+
parameters=pulumi.get(__ret__, 'parameters'),
|
304
|
+
plugin_id=pulumi.get(__ret__, 'plugin_id'),
|
305
|
+
state=pulumi.get(__ret__, 'state'))
|
306
|
+
def get_dynamic_host_volume_output(id: Optional[pulumi.Input[builtins.str]] = None,
|
307
|
+
namespace: Optional[pulumi.Input[Optional[builtins.str]]] = None,
|
308
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetDynamicHostVolumeResult]:
|
309
|
+
"""
|
310
|
+
Get information on a dynamic host volume from Nomad.
|
311
|
+
|
312
|
+
## Example Usage
|
313
|
+
|
314
|
+
Check for the existing of a host volume:
|
315
|
+
|
316
|
+
```python
|
317
|
+
import pulumi
|
318
|
+
import pulumi_nomad as nomad
|
319
|
+
|
320
|
+
example = nomad.get_dynamic_host_volume(namespace="prod",
|
321
|
+
id="d688ff7a-d299-11ef-ae3c-6f2400953c18")
|
322
|
+
```
|
323
|
+
|
324
|
+
This will check for a dynamic host volume with the ID
|
325
|
+
`d688ff7a-d299-11ef-ae3c-6f2400953c18`.
|
326
|
+
|
327
|
+
|
328
|
+
:param builtins.str id: `(string)` - the ID of the volume
|
329
|
+
:param builtins.str namespace: `(string)` - the namespace of the volume. Defaults to `"default"`
|
330
|
+
"""
|
331
|
+
__args__ = dict()
|
332
|
+
__args__['id'] = id
|
333
|
+
__args__['namespace'] = namespace
|
334
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
335
|
+
__ret__ = pulumi.runtime.invoke_output('nomad:index/getDynamicHostVolume:getDynamicHostVolume', __args__, opts=opts, typ=GetDynamicHostVolumeResult)
|
336
|
+
return __ret__.apply(lambda __response__: GetDynamicHostVolumeResult(
|
337
|
+
capabilities=pulumi.get(__response__, 'capabilities'),
|
338
|
+
capacity=pulumi.get(__response__, 'capacity'),
|
339
|
+
capacity_bytes=pulumi.get(__response__, 'capacity_bytes'),
|
340
|
+
capacity_max=pulumi.get(__response__, 'capacity_max'),
|
341
|
+
capacity_max_bytes=pulumi.get(__response__, 'capacity_max_bytes'),
|
342
|
+
capacity_min=pulumi.get(__response__, 'capacity_min'),
|
343
|
+
capacity_min_bytes=pulumi.get(__response__, 'capacity_min_bytes'),
|
344
|
+
constraints=pulumi.get(__response__, 'constraints'),
|
345
|
+
host_path=pulumi.get(__response__, 'host_path'),
|
346
|
+
id=pulumi.get(__response__, 'id'),
|
347
|
+
name=pulumi.get(__response__, 'name'),
|
348
|
+
namespace=pulumi.get(__response__, 'namespace'),
|
349
|
+
node_id=pulumi.get(__response__, 'node_id'),
|
350
|
+
node_pool=pulumi.get(__response__, 'node_pool'),
|
351
|
+
parameters=pulumi.get(__response__, 'parameters'),
|
352
|
+
plugin_id=pulumi.get(__response__, 'plugin_id'),
|
353
|
+
state=pulumi.get(__response__, 'state')))
|
pulumi_nomad/get_job.py
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
4
|
|
5
|
+
import builtins
|
5
6
|
import copy
|
6
7
|
import warnings
|
7
8
|
import sys
|
@@ -97,7 +98,7 @@ class GetJobResult:
|
|
97
98
|
|
98
99
|
@property
|
99
100
|
@pulumi.getter(name="allAtOnce")
|
100
|
-
def all_at_once(self) -> bool:
|
101
|
+
def all_at_once(self) -> builtins.bool:
|
101
102
|
"""
|
102
103
|
`(boolean)` If the scheduler can make partial placements on oversubscribed nodes.
|
103
104
|
"""
|
@@ -110,7 +111,7 @@ class GetJobResult:
|
|
110
111
|
|
111
112
|
@property
|
112
113
|
@pulumi.getter(name="createIndex")
|
113
|
-
def create_index(self) -> int:
|
114
|
+
def create_index(self) -> builtins.int:
|
114
115
|
"""
|
115
116
|
`(integer)` Creation Index.
|
116
117
|
"""
|
@@ -118,7 +119,7 @@ class GetJobResult:
|
|
118
119
|
|
119
120
|
@property
|
120
121
|
@pulumi.getter
|
121
|
-
def datacenters(self) -> Sequence[str]:
|
122
|
+
def datacenters(self) -> Sequence[builtins.str]:
|
122
123
|
"""
|
123
124
|
`(list of strings)` Datacenters allowed to run the specified job.
|
124
125
|
"""
|
@@ -126,7 +127,7 @@ class GetJobResult:
|
|
126
127
|
|
127
128
|
@property
|
128
129
|
@pulumi.getter
|
129
|
-
def id(self) -> str:
|
130
|
+
def id(self) -> builtins.str:
|
130
131
|
"""
|
131
132
|
The provider-assigned unique ID for this managed resource.
|
132
133
|
"""
|
@@ -134,12 +135,12 @@ class GetJobResult:
|
|
134
135
|
|
135
136
|
@property
|
136
137
|
@pulumi.getter(name="jobId")
|
137
|
-
def job_id(self) -> str:
|
138
|
+
def job_id(self) -> builtins.str:
|
138
139
|
return pulumi.get(self, "job_id")
|
139
140
|
|
140
141
|
@property
|
141
142
|
@pulumi.getter(name="jobModifyIndex")
|
142
|
-
def job_modify_index(self) -> int:
|
143
|
+
def job_modify_index(self) -> builtins.int:
|
143
144
|
"""
|
144
145
|
`(integer)` Job modify index (used for version verification).
|
145
146
|
"""
|
@@ -147,7 +148,7 @@ class GetJobResult:
|
|
147
148
|
|
148
149
|
@property
|
149
150
|
@pulumi.getter(name="modifyIndex")
|
150
|
-
def modify_index(self) -> int:
|
151
|
+
def modify_index(self) -> builtins.int:
|
151
152
|
"""
|
152
153
|
`(integer)` Modification Index.
|
153
154
|
"""
|
@@ -155,7 +156,7 @@ class GetJobResult:
|
|
155
156
|
|
156
157
|
@property
|
157
158
|
@pulumi.getter
|
158
|
-
def name(self) -> str:
|
159
|
+
def name(self) -> builtins.str:
|
159
160
|
"""
|
160
161
|
`(string)` Name of the job.
|
161
162
|
"""
|
@@ -163,12 +164,12 @@ class GetJobResult:
|
|
163
164
|
|
164
165
|
@property
|
165
166
|
@pulumi.getter
|
166
|
-
def namespace(self) -> Optional[str]:
|
167
|
+
def namespace(self) -> Optional[builtins.str]:
|
167
168
|
return pulumi.get(self, "namespace")
|
168
169
|
|
169
170
|
@property
|
170
171
|
@pulumi.getter(name="parentId")
|
171
|
-
def parent_id(self) -> str:
|
172
|
+
def parent_id(self) -> builtins.str:
|
172
173
|
"""
|
173
174
|
`(string)` Job's parent ID.
|
174
175
|
"""
|
@@ -184,7 +185,7 @@ class GetJobResult:
|
|
184
185
|
|
185
186
|
@property
|
186
187
|
@pulumi.getter
|
187
|
-
def priority(self) -> int:
|
188
|
+
def priority(self) -> builtins.int:
|
188
189
|
"""
|
189
190
|
`(integer)` Used for the prioritization of scheduling and resource access.
|
190
191
|
"""
|
@@ -192,7 +193,7 @@ class GetJobResult:
|
|
192
193
|
|
193
194
|
@property
|
194
195
|
@pulumi.getter
|
195
|
-
def region(self) -> str:
|
196
|
+
def region(self) -> builtins.str:
|
196
197
|
"""
|
197
198
|
`(string)` Region where the Nomad cluster resides.
|
198
199
|
"""
|
@@ -200,7 +201,7 @@ class GetJobResult:
|
|
200
201
|
|
201
202
|
@property
|
202
203
|
@pulumi.getter
|
203
|
-
def stable(self) -> bool:
|
204
|
+
def stable(self) -> builtins.bool:
|
204
205
|
"""
|
205
206
|
`(boolean)` Job stability status.
|
206
207
|
"""
|
@@ -208,7 +209,7 @@ class GetJobResult:
|
|
208
209
|
|
209
210
|
@property
|
210
211
|
@pulumi.getter
|
211
|
-
def status(self) -> str:
|
212
|
+
def status(self) -> builtins.str:
|
212
213
|
"""
|
213
214
|
`(string)` Execution status of the specified job.
|
214
215
|
"""
|
@@ -216,7 +217,7 @@ class GetJobResult:
|
|
216
217
|
|
217
218
|
@property
|
218
219
|
@pulumi.getter(name="statusDescription")
|
219
|
-
def status_description(self) -> str:
|
220
|
+
def status_description(self) -> builtins.str:
|
220
221
|
"""
|
221
222
|
`(string)` Status description of the specified job.
|
222
223
|
"""
|
@@ -224,7 +225,7 @@ class GetJobResult:
|
|
224
225
|
|
225
226
|
@property
|
226
227
|
@pulumi.getter
|
227
|
-
def stop(self) -> bool:
|
228
|
+
def stop(self) -> builtins.bool:
|
228
229
|
"""
|
229
230
|
`(boolean)` Job enabled status.
|
230
231
|
"""
|
@@ -232,7 +233,7 @@ class GetJobResult:
|
|
232
233
|
|
233
234
|
@property
|
234
235
|
@pulumi.getter(name="submitTime")
|
235
|
-
def submit_time(self) -> int:
|
236
|
+
def submit_time(self) -> builtins.int:
|
236
237
|
"""
|
237
238
|
`(integer)` Job submission date.
|
238
239
|
"""
|
@@ -248,7 +249,7 @@ class GetJobResult:
|
|
248
249
|
|
249
250
|
@property
|
250
251
|
@pulumi.getter
|
251
|
-
def type(self) -> str:
|
252
|
+
def type(self) -> builtins.str:
|
252
253
|
"""
|
253
254
|
`(string)` Scheduler type used during job creation.
|
254
255
|
"""
|
@@ -256,7 +257,7 @@ class GetJobResult:
|
|
256
257
|
|
257
258
|
@property
|
258
259
|
@pulumi.getter
|
259
|
-
def version(self) -> int:
|
260
|
+
def version(self) -> builtins.int:
|
260
261
|
"""
|
261
262
|
`(integer)` Version of the specified job.
|
262
263
|
"""
|
@@ -293,8 +294,8 @@ class AwaitableGetJobResult(GetJobResult):
|
|
293
294
|
version=self.version)
|
294
295
|
|
295
296
|
|
296
|
-
def get_job(job_id: Optional[str] = None,
|
297
|
-
namespace: Optional[str] = None,
|
297
|
+
def get_job(job_id: Optional[builtins.str] = None,
|
298
|
+
namespace: Optional[builtins.str] = None,
|
298
299
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetJobResult:
|
299
300
|
"""
|
300
301
|
Get information on a job ID. The aim of this datasource is to enable
|
@@ -315,8 +316,8 @@ def get_job(job_id: Optional[str] = None,
|
|
315
316
|
```
|
316
317
|
|
317
318
|
|
318
|
-
:param str job_id: `(string)` ID of the job.
|
319
|
-
:param str namespace: `(string)` Namespace of the specified job.
|
319
|
+
:param builtins.str job_id: `(string)` ID of the job.
|
320
|
+
:param builtins.str namespace: `(string)` Namespace of the specified job.
|
320
321
|
"""
|
321
322
|
__args__ = dict()
|
322
323
|
__args__['jobId'] = job_id
|
@@ -347,8 +348,8 @@ def get_job(job_id: Optional[str] = None,
|
|
347
348
|
task_groups=pulumi.get(__ret__, 'task_groups'),
|
348
349
|
type=pulumi.get(__ret__, 'type'),
|
349
350
|
version=pulumi.get(__ret__, 'version'))
|
350
|
-
def get_job_output(job_id: Optional[pulumi.Input[str]] = None,
|
351
|
-
namespace: Optional[pulumi.Input[Optional[str]]] = None,
|
351
|
+
def get_job_output(job_id: Optional[pulumi.Input[builtins.str]] = None,
|
352
|
+
namespace: Optional[pulumi.Input[Optional[builtins.str]]] = None,
|
352
353
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetJobResult]:
|
353
354
|
"""
|
354
355
|
Get information on a job ID. The aim of this datasource is to enable
|
@@ -369,8 +370,8 @@ def get_job_output(job_id: Optional[pulumi.Input[str]] = None,
|
|
369
370
|
```
|
370
371
|
|
371
372
|
|
372
|
-
:param str job_id: `(string)` ID of the job.
|
373
|
-
:param str namespace: `(string)` Namespace of the specified job.
|
373
|
+
:param builtins.str job_id: `(string)` ID of the job.
|
374
|
+
:param builtins.str namespace: `(string)` Namespace of the specified job.
|
374
375
|
"""
|
375
376
|
__args__ = dict()
|
376
377
|
__args__['jobId'] = job_id
|
pulumi_nomad/get_job_parser.py
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
4
|
|
5
|
+
import builtins
|
5
6
|
import copy
|
6
7
|
import warnings
|
7
8
|
import sys
|
@@ -42,7 +43,7 @@ class GetJobParserResult:
|
|
42
43
|
|
43
44
|
@property
|
44
45
|
@pulumi.getter
|
45
|
-
def canonicalize(self) -> Optional[bool]:
|
46
|
+
def canonicalize(self) -> Optional[builtins.bool]:
|
46
47
|
"""
|
47
48
|
`(boolean: true)` - flag to enable setting any unset fields to their default values.
|
48
49
|
"""
|
@@ -50,7 +51,7 @@ class GetJobParserResult:
|
|
50
51
|
|
51
52
|
@property
|
52
53
|
@pulumi.getter
|
53
|
-
def hcl(self) -> str:
|
54
|
+
def hcl(self) -> builtins.str:
|
54
55
|
"""
|
55
56
|
`(string)` - the HCL definition of the job.
|
56
57
|
"""
|
@@ -58,7 +59,7 @@ class GetJobParserResult:
|
|
58
59
|
|
59
60
|
@property
|
60
61
|
@pulumi.getter
|
61
|
-
def id(self) -> str:
|
62
|
+
def id(self) -> builtins.str:
|
62
63
|
"""
|
63
64
|
The provider-assigned unique ID for this managed resource.
|
64
65
|
"""
|
@@ -66,7 +67,7 @@ class GetJobParserResult:
|
|
66
67
|
|
67
68
|
@property
|
68
69
|
@pulumi.getter
|
69
|
-
def json(self) -> str:
|
70
|
+
def json(self) -> builtins.str:
|
70
71
|
"""
|
71
72
|
`(string)` - the parsed job as JSON string.
|
72
73
|
"""
|
@@ -85,15 +86,15 @@ class AwaitableGetJobParserResult(GetJobParserResult):
|
|
85
86
|
json=self.json)
|
86
87
|
|
87
88
|
|
88
|
-
def get_job_parser(canonicalize: Optional[bool] = None,
|
89
|
-
hcl: Optional[str] = None,
|
89
|
+
def get_job_parser(canonicalize: Optional[builtins.bool] = None,
|
90
|
+
hcl: Optional[builtins.str] = None,
|
90
91
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetJobParserResult:
|
91
92
|
"""
|
92
93
|
Parse a HCL jobspec and produce the equivalent JSON encoded job.
|
93
94
|
|
94
95
|
|
95
|
-
:param bool canonicalize: `(boolean: true)` - flag to enable setting any unset fields to their default values.
|
96
|
-
:param str hcl: `(string)` - the HCL definition of the job.
|
96
|
+
:param builtins.bool canonicalize: `(boolean: true)` - flag to enable setting any unset fields to their default values.
|
97
|
+
:param builtins.str hcl: `(string)` - the HCL definition of the job.
|
97
98
|
"""
|
98
99
|
__args__ = dict()
|
99
100
|
__args__['canonicalize'] = canonicalize
|
@@ -106,15 +107,15 @@ def get_job_parser(canonicalize: Optional[bool] = None,
|
|
106
107
|
hcl=pulumi.get(__ret__, 'hcl'),
|
107
108
|
id=pulumi.get(__ret__, 'id'),
|
108
109
|
json=pulumi.get(__ret__, 'json'))
|
109
|
-
def get_job_parser_output(canonicalize: Optional[pulumi.Input[Optional[bool]]] = None,
|
110
|
-
hcl: Optional[pulumi.Input[str]] = None,
|
110
|
+
def get_job_parser_output(canonicalize: Optional[pulumi.Input[Optional[builtins.bool]]] = None,
|
111
|
+
hcl: Optional[pulumi.Input[builtins.str]] = None,
|
111
112
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetJobParserResult]:
|
112
113
|
"""
|
113
114
|
Parse a HCL jobspec and produce the equivalent JSON encoded job.
|
114
115
|
|
115
116
|
|
116
|
-
:param bool canonicalize: `(boolean: true)` - flag to enable setting any unset fields to their default values.
|
117
|
-
:param str hcl: `(string)` - the HCL definition of the job.
|
117
|
+
:param builtins.bool canonicalize: `(boolean: true)` - flag to enable setting any unset fields to their default values.
|
118
|
+
:param builtins.str hcl: `(string)` - the HCL definition of the job.
|
118
119
|
"""
|
119
120
|
__args__ = dict()
|
120
121
|
__args__['canonicalize'] = canonicalize
|
pulumi_nomad/get_jwks.py
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
4
|
|
5
|
+
import builtins
|
5
6
|
import copy
|
6
7
|
import warnings
|
7
8
|
import sys
|
@@ -40,7 +41,7 @@ class GetJwksResult:
|
|
40
41
|
|
41
42
|
@property
|
42
43
|
@pulumi.getter
|
43
|
-
def id(self) -> str:
|
44
|
+
def id(self) -> builtins.str:
|
44
45
|
"""
|
45
46
|
The provider-assigned unique ID for this managed resource.
|
46
47
|
"""
|
@@ -57,7 +58,7 @@ class GetJwksResult:
|
|
57
58
|
|
58
59
|
@property
|
59
60
|
@pulumi.getter(name="pemKeys")
|
60
|
-
def pem_keys(self) -> Sequence[str]:
|
61
|
+
def pem_keys(self) -> Sequence[builtins.str]:
|
61
62
|
"""
|
62
63
|
`list of strings` a list JWK keys rendered as PEM-encoded X.509 keys
|
63
64
|
"""
|