pulumi-nomad 2.1.0a1698439181__py3-none-any.whl → 2.1.0a1698477283__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/_inputs.py +88 -785
- pulumi_nomad/_utilities.py +0 -19
- pulumi_nomad/acl_auth_method.py +13 -76
- pulumi_nomad/acl_binding_rule.py +11 -69
- pulumi_nomad/acl_policy.py +9 -58
- pulumi_nomad/acl_role.py +7 -43
- pulumi_nomad/acl_token.py +17 -89
- pulumi_nomad/config/outputs.py +3 -20
- pulumi_nomad/config/vars.py +1 -1
- pulumi_nomad/csi_volume.py +36 -182
- pulumi_nomad/csi_volume_registration.py +34 -168
- pulumi_nomad/external_volume.py +38 -188
- pulumi_nomad/get_acl_policies.py +1 -1
- pulumi_nomad/get_acl_policy.py +1 -1
- pulumi_nomad/get_acl_role.py +1 -1
- pulumi_nomad/get_acl_roles.py +1 -1
- pulumi_nomad/get_acl_token.py +1 -1
- pulumi_nomad/get_acl_tokens.py +1 -1
- pulumi_nomad/get_allocations.py +1 -1
- pulumi_nomad/get_datacenters.py +1 -1
- pulumi_nomad/get_deployments.py +1 -1
- pulumi_nomad/get_job.py +1 -1
- pulumi_nomad/get_job_parser.py +1 -1
- pulumi_nomad/get_namespace.py +1 -1
- pulumi_nomad/get_namespaces.py +1 -1
- pulumi_nomad/get_node_pool.py +1 -1
- pulumi_nomad/get_node_pools.py +1 -1
- pulumi_nomad/get_plugin.py +1 -1
- pulumi_nomad/get_plugins.py +1 -1
- pulumi_nomad/get_regions.py +1 -1
- pulumi_nomad/get_scaling_policies.py +1 -1
- pulumi_nomad/get_scaling_policy.py +1 -1
- pulumi_nomad/get_scheduler_policy.py +1 -1
- pulumi_nomad/get_variable.py +1 -1
- pulumi_nomad/get_volumes.py +1 -1
- pulumi_nomad/job.py +35 -166
- pulumi_nomad/namespace.py +13 -65
- pulumi_nomad/node_pool.py +9 -52
- pulumi_nomad/outputs.py +169 -1432
- pulumi_nomad/provider.py +16 -85
- pulumi_nomad/quote_specification.py +7 -43
- pulumi_nomad/scheduler_config.py +7 -53
- pulumi_nomad/sentinel_policy.py +11 -63
- pulumi_nomad/variable.py +7 -45
- pulumi_nomad/volume.py +40 -194
- {pulumi_nomad-2.1.0a1698439181.dist-info → pulumi_nomad-2.1.0a1698477283.dist-info}/METADATA +1 -1
- pulumi_nomad-2.1.0a1698477283.dist-info/RECORD +53 -0
- pulumi_nomad-2.1.0a1698439181.dist-info/RECORD +0 -53
- {pulumi_nomad-2.1.0a1698439181.dist-info → pulumi_nomad-2.1.0a1698477283.dist-info}/WHEEL +0 -0
- {pulumi_nomad-2.1.0a1698439181.dist-info → pulumi_nomad-2.1.0a1698477283.dist-info}/top_level.txt +0 -0
pulumi_nomad/job.py
CHANGED
@@ -6,7 +6,7 @@ import copy
|
|
6
6
|
import warnings
|
7
7
|
import pulumi
|
8
8
|
import pulumi.runtime
|
9
|
-
from typing import Any,
|
9
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
10
10
|
from . import _utilities
|
11
11
|
from . import outputs
|
12
12
|
from ._inputs import *
|
@@ -51,81 +51,32 @@ class JobArgs:
|
|
51
51
|
:param pulumi.Input[str] vault_token: `(string: <optional>)` - Vault token used when registering this job.
|
52
52
|
Will fallback to the value declared in Nomad provider configuration, if any.
|
53
53
|
"""
|
54
|
-
|
55
|
-
lambda key, value: pulumi.set(__self__, key, value),
|
56
|
-
jobspec=jobspec,
|
57
|
-
consul_token=consul_token,
|
58
|
-
deregister_on_destroy=deregister_on_destroy,
|
59
|
-
deregister_on_id_change=deregister_on_id_change,
|
60
|
-
detach=detach,
|
61
|
-
hcl1=hcl1,
|
62
|
-
hcl2=hcl2,
|
63
|
-
json=json,
|
64
|
-
policy_override=policy_override,
|
65
|
-
purge_on_destroy=purge_on_destroy,
|
66
|
-
read_allocation_ids=read_allocation_ids,
|
67
|
-
vault_token=vault_token,
|
68
|
-
)
|
69
|
-
@staticmethod
|
70
|
-
def _configure(
|
71
|
-
_setter: Callable[[Any, Any], None],
|
72
|
-
jobspec: Optional[pulumi.Input[str]] = None,
|
73
|
-
consul_token: Optional[pulumi.Input[str]] = None,
|
74
|
-
deregister_on_destroy: Optional[pulumi.Input[bool]] = None,
|
75
|
-
deregister_on_id_change: Optional[pulumi.Input[bool]] = None,
|
76
|
-
detach: Optional[pulumi.Input[bool]] = None,
|
77
|
-
hcl1: Optional[pulumi.Input[bool]] = None,
|
78
|
-
hcl2: Optional[pulumi.Input['JobHcl2Args']] = None,
|
79
|
-
json: Optional[pulumi.Input[bool]] = None,
|
80
|
-
policy_override: Optional[pulumi.Input[bool]] = None,
|
81
|
-
purge_on_destroy: Optional[pulumi.Input[bool]] = None,
|
82
|
-
read_allocation_ids: Optional[pulumi.Input[bool]] = None,
|
83
|
-
vault_token: Optional[pulumi.Input[str]] = None,
|
84
|
-
opts: Optional[pulumi.ResourceOptions] = None,
|
85
|
-
**kwargs):
|
86
|
-
if jobspec is None:
|
87
|
-
raise TypeError("Missing 'jobspec' argument")
|
88
|
-
if consul_token is None and 'consulToken' in kwargs:
|
89
|
-
consul_token = kwargs['consulToken']
|
90
|
-
if deregister_on_destroy is None and 'deregisterOnDestroy' in kwargs:
|
91
|
-
deregister_on_destroy = kwargs['deregisterOnDestroy']
|
92
|
-
if deregister_on_id_change is None and 'deregisterOnIdChange' in kwargs:
|
93
|
-
deregister_on_id_change = kwargs['deregisterOnIdChange']
|
94
|
-
if policy_override is None and 'policyOverride' in kwargs:
|
95
|
-
policy_override = kwargs['policyOverride']
|
96
|
-
if purge_on_destroy is None and 'purgeOnDestroy' in kwargs:
|
97
|
-
purge_on_destroy = kwargs['purgeOnDestroy']
|
98
|
-
if read_allocation_ids is None and 'readAllocationIds' in kwargs:
|
99
|
-
read_allocation_ids = kwargs['readAllocationIds']
|
100
|
-
if vault_token is None and 'vaultToken' in kwargs:
|
101
|
-
vault_token = kwargs['vaultToken']
|
102
|
-
|
103
|
-
_setter("jobspec", jobspec)
|
54
|
+
pulumi.set(__self__, "jobspec", jobspec)
|
104
55
|
if consul_token is not None:
|
105
|
-
|
56
|
+
pulumi.set(__self__, "consul_token", consul_token)
|
106
57
|
if deregister_on_destroy is not None:
|
107
|
-
|
58
|
+
pulumi.set(__self__, "deregister_on_destroy", deregister_on_destroy)
|
108
59
|
if deregister_on_id_change is not None:
|
109
|
-
|
60
|
+
pulumi.set(__self__, "deregister_on_id_change", deregister_on_id_change)
|
110
61
|
if detach is not None:
|
111
|
-
|
62
|
+
pulumi.set(__self__, "detach", detach)
|
112
63
|
if hcl1 is not None:
|
113
|
-
|
64
|
+
pulumi.set(__self__, "hcl1", hcl1)
|
114
65
|
if hcl2 is not None:
|
115
|
-
|
66
|
+
pulumi.set(__self__, "hcl2", hcl2)
|
116
67
|
if json is not None:
|
117
|
-
|
68
|
+
pulumi.set(__self__, "json", json)
|
118
69
|
if policy_override is not None:
|
119
|
-
|
70
|
+
pulumi.set(__self__, "policy_override", policy_override)
|
120
71
|
if purge_on_destroy is not None:
|
121
|
-
|
72
|
+
pulumi.set(__self__, "purge_on_destroy", purge_on_destroy)
|
122
73
|
if read_allocation_ids is not None:
|
123
74
|
warnings.warn("""Retrieving allocation IDs from the job resource is deprecated and will be removed in a future release. Use the nomad_allocations data source instead.""", DeprecationWarning)
|
124
75
|
pulumi.log.warn("""read_allocation_ids is deprecated: Retrieving allocation IDs from the job resource is deprecated and will be removed in a future release. Use the nomad_allocations data source instead.""")
|
125
76
|
if read_allocation_ids is not None:
|
126
|
-
|
77
|
+
pulumi.set(__self__, "read_allocation_ids", read_allocation_ids)
|
127
78
|
if vault_token is not None:
|
128
|
-
|
79
|
+
pulumi.set(__self__, "vault_token", vault_token)
|
129
80
|
|
130
81
|
@property
|
131
82
|
@pulumi.getter
|
@@ -338,133 +289,56 @@ class _JobState:
|
|
338
289
|
:param pulumi.Input[str] vault_token: `(string: <optional>)` - Vault token used when registering this job.
|
339
290
|
Will fallback to the value declared in Nomad provider configuration, if any.
|
340
291
|
"""
|
341
|
-
_JobState._configure(
|
342
|
-
lambda key, value: pulumi.set(__self__, key, value),
|
343
|
-
allocation_ids=allocation_ids,
|
344
|
-
consul_token=consul_token,
|
345
|
-
datacenters=datacenters,
|
346
|
-
deployment_id=deployment_id,
|
347
|
-
deployment_status=deployment_status,
|
348
|
-
deregister_on_destroy=deregister_on_destroy,
|
349
|
-
deregister_on_id_change=deregister_on_id_change,
|
350
|
-
detach=detach,
|
351
|
-
hcl1=hcl1,
|
352
|
-
hcl2=hcl2,
|
353
|
-
jobspec=jobspec,
|
354
|
-
json=json,
|
355
|
-
modify_index=modify_index,
|
356
|
-
name=name,
|
357
|
-
namespace=namespace,
|
358
|
-
policy_override=policy_override,
|
359
|
-
purge_on_destroy=purge_on_destroy,
|
360
|
-
read_allocation_ids=read_allocation_ids,
|
361
|
-
region=region,
|
362
|
-
task_groups=task_groups,
|
363
|
-
type=type,
|
364
|
-
vault_token=vault_token,
|
365
|
-
)
|
366
|
-
@staticmethod
|
367
|
-
def _configure(
|
368
|
-
_setter: Callable[[Any, Any], None],
|
369
|
-
allocation_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
370
|
-
consul_token: Optional[pulumi.Input[str]] = None,
|
371
|
-
datacenters: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
372
|
-
deployment_id: Optional[pulumi.Input[str]] = None,
|
373
|
-
deployment_status: Optional[pulumi.Input[str]] = None,
|
374
|
-
deregister_on_destroy: Optional[pulumi.Input[bool]] = None,
|
375
|
-
deregister_on_id_change: Optional[pulumi.Input[bool]] = None,
|
376
|
-
detach: Optional[pulumi.Input[bool]] = None,
|
377
|
-
hcl1: Optional[pulumi.Input[bool]] = None,
|
378
|
-
hcl2: Optional[pulumi.Input['JobHcl2Args']] = None,
|
379
|
-
jobspec: Optional[pulumi.Input[str]] = None,
|
380
|
-
json: Optional[pulumi.Input[bool]] = None,
|
381
|
-
modify_index: Optional[pulumi.Input[str]] = None,
|
382
|
-
name: Optional[pulumi.Input[str]] = None,
|
383
|
-
namespace: Optional[pulumi.Input[str]] = None,
|
384
|
-
policy_override: Optional[pulumi.Input[bool]] = None,
|
385
|
-
purge_on_destroy: Optional[pulumi.Input[bool]] = None,
|
386
|
-
read_allocation_ids: Optional[pulumi.Input[bool]] = None,
|
387
|
-
region: Optional[pulumi.Input[str]] = None,
|
388
|
-
task_groups: Optional[pulumi.Input[Sequence[pulumi.Input['JobTaskGroupArgs']]]] = None,
|
389
|
-
type: Optional[pulumi.Input[str]] = None,
|
390
|
-
vault_token: Optional[pulumi.Input[str]] = None,
|
391
|
-
opts: Optional[pulumi.ResourceOptions] = None,
|
392
|
-
**kwargs):
|
393
|
-
if allocation_ids is None and 'allocationIds' in kwargs:
|
394
|
-
allocation_ids = kwargs['allocationIds']
|
395
|
-
if consul_token is None and 'consulToken' in kwargs:
|
396
|
-
consul_token = kwargs['consulToken']
|
397
|
-
if deployment_id is None and 'deploymentId' in kwargs:
|
398
|
-
deployment_id = kwargs['deploymentId']
|
399
|
-
if deployment_status is None and 'deploymentStatus' in kwargs:
|
400
|
-
deployment_status = kwargs['deploymentStatus']
|
401
|
-
if deregister_on_destroy is None and 'deregisterOnDestroy' in kwargs:
|
402
|
-
deregister_on_destroy = kwargs['deregisterOnDestroy']
|
403
|
-
if deregister_on_id_change is None and 'deregisterOnIdChange' in kwargs:
|
404
|
-
deregister_on_id_change = kwargs['deregisterOnIdChange']
|
405
|
-
if modify_index is None and 'modifyIndex' in kwargs:
|
406
|
-
modify_index = kwargs['modifyIndex']
|
407
|
-
if policy_override is None and 'policyOverride' in kwargs:
|
408
|
-
policy_override = kwargs['policyOverride']
|
409
|
-
if purge_on_destroy is None and 'purgeOnDestroy' in kwargs:
|
410
|
-
purge_on_destroy = kwargs['purgeOnDestroy']
|
411
|
-
if read_allocation_ids is None and 'readAllocationIds' in kwargs:
|
412
|
-
read_allocation_ids = kwargs['readAllocationIds']
|
413
|
-
if task_groups is None and 'taskGroups' in kwargs:
|
414
|
-
task_groups = kwargs['taskGroups']
|
415
|
-
if vault_token is None and 'vaultToken' in kwargs:
|
416
|
-
vault_token = kwargs['vaultToken']
|
417
|
-
|
418
292
|
if allocation_ids is not None:
|
419
293
|
warnings.warn("""Retrieving allocation IDs from the job resource is deprecated and will be removed in a future release. Use the nomad_allocations data source instead.""", DeprecationWarning)
|
420
294
|
pulumi.log.warn("""allocation_ids is deprecated: Retrieving allocation IDs from the job resource is deprecated and will be removed in a future release. Use the nomad_allocations data source instead.""")
|
421
295
|
if allocation_ids is not None:
|
422
|
-
|
296
|
+
pulumi.set(__self__, "allocation_ids", allocation_ids)
|
423
297
|
if consul_token is not None:
|
424
|
-
|
298
|
+
pulumi.set(__self__, "consul_token", consul_token)
|
425
299
|
if datacenters is not None:
|
426
|
-
|
300
|
+
pulumi.set(__self__, "datacenters", datacenters)
|
427
301
|
if deployment_id is not None:
|
428
|
-
|
302
|
+
pulumi.set(__self__, "deployment_id", deployment_id)
|
429
303
|
if deployment_status is not None:
|
430
|
-
|
304
|
+
pulumi.set(__self__, "deployment_status", deployment_status)
|
431
305
|
if deregister_on_destroy is not None:
|
432
|
-
|
306
|
+
pulumi.set(__self__, "deregister_on_destroy", deregister_on_destroy)
|
433
307
|
if deregister_on_id_change is not None:
|
434
|
-
|
308
|
+
pulumi.set(__self__, "deregister_on_id_change", deregister_on_id_change)
|
435
309
|
if detach is not None:
|
436
|
-
|
310
|
+
pulumi.set(__self__, "detach", detach)
|
437
311
|
if hcl1 is not None:
|
438
|
-
|
312
|
+
pulumi.set(__self__, "hcl1", hcl1)
|
439
313
|
if hcl2 is not None:
|
440
|
-
|
314
|
+
pulumi.set(__self__, "hcl2", hcl2)
|
441
315
|
if jobspec is not None:
|
442
|
-
|
316
|
+
pulumi.set(__self__, "jobspec", jobspec)
|
443
317
|
if json is not None:
|
444
|
-
|
318
|
+
pulumi.set(__self__, "json", json)
|
445
319
|
if modify_index is not None:
|
446
|
-
|
320
|
+
pulumi.set(__self__, "modify_index", modify_index)
|
447
321
|
if name is not None:
|
448
|
-
|
322
|
+
pulumi.set(__self__, "name", name)
|
449
323
|
if namespace is not None:
|
450
|
-
|
324
|
+
pulumi.set(__self__, "namespace", namespace)
|
451
325
|
if policy_override is not None:
|
452
|
-
|
326
|
+
pulumi.set(__self__, "policy_override", policy_override)
|
453
327
|
if purge_on_destroy is not None:
|
454
|
-
|
328
|
+
pulumi.set(__self__, "purge_on_destroy", purge_on_destroy)
|
455
329
|
if read_allocation_ids is not None:
|
456
330
|
warnings.warn("""Retrieving allocation IDs from the job resource is deprecated and will be removed in a future release. Use the nomad_allocations data source instead.""", DeprecationWarning)
|
457
331
|
pulumi.log.warn("""read_allocation_ids is deprecated: Retrieving allocation IDs from the job resource is deprecated and will be removed in a future release. Use the nomad_allocations data source instead.""")
|
458
332
|
if read_allocation_ids is not None:
|
459
|
-
|
333
|
+
pulumi.set(__self__, "read_allocation_ids", read_allocation_ids)
|
460
334
|
if region is not None:
|
461
|
-
|
335
|
+
pulumi.set(__self__, "region", region)
|
462
336
|
if task_groups is not None:
|
463
|
-
|
337
|
+
pulumi.set(__self__, "task_groups", task_groups)
|
464
338
|
if type is not None:
|
465
|
-
|
339
|
+
pulumi.set(__self__, "type", type)
|
466
340
|
if vault_token is not None:
|
467
|
-
|
341
|
+
pulumi.set(__self__, "vault_token", vault_token)
|
468
342
|
|
469
343
|
@property
|
470
344
|
@pulumi.getter(name="allocationIds")
|
@@ -801,10 +675,6 @@ class Job(pulumi.CustomResource):
|
|
801
675
|
if resource_args is not None:
|
802
676
|
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
803
677
|
else:
|
804
|
-
kwargs = kwargs or {}
|
805
|
-
def _setter(key, value):
|
806
|
-
kwargs[key] = value
|
807
|
-
JobArgs._configure(_setter, **kwargs)
|
808
678
|
__self__._internal_init(resource_name, *args, **kwargs)
|
809
679
|
|
810
680
|
def _internal_init(__self__,
|
@@ -836,7 +706,6 @@ class Job(pulumi.CustomResource):
|
|
836
706
|
__props__.__dict__["deregister_on_id_change"] = deregister_on_id_change
|
837
707
|
__props__.__dict__["detach"] = detach
|
838
708
|
__props__.__dict__["hcl1"] = hcl1
|
839
|
-
hcl2 = _utilities.configure(hcl2, JobHcl2Args, True)
|
840
709
|
__props__.__dict__["hcl2"] = hcl2
|
841
710
|
if jobspec is None and not opts.urn:
|
842
711
|
raise TypeError("Missing required property 'jobspec'")
|
pulumi_nomad/namespace.py
CHANGED
@@ -6,7 +6,7 @@ import copy
|
|
6
6
|
import warnings
|
7
7
|
import pulumi
|
8
8
|
import pulumi.runtime
|
9
|
-
from typing import Any,
|
9
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
10
10
|
from . import _utilities
|
11
11
|
from . import outputs
|
12
12
|
from ._inputs import *
|
@@ -32,41 +32,18 @@ class NamespaceArgs:
|
|
32
32
|
:param pulumi.Input['NamespaceNodePoolConfigArgs'] node_pool_config: `(block: <optional>)` - A block with node pool configuration for the namespace (Nomad Enterprise only).
|
33
33
|
:param pulumi.Input[str] quota: `(string: "")` - A resource quota to attach to the namespace.
|
34
34
|
"""
|
35
|
-
NamespaceArgs._configure(
|
36
|
-
lambda key, value: pulumi.set(__self__, key, value),
|
37
|
-
capabilities=capabilities,
|
38
|
-
description=description,
|
39
|
-
meta=meta,
|
40
|
-
name=name,
|
41
|
-
node_pool_config=node_pool_config,
|
42
|
-
quota=quota,
|
43
|
-
)
|
44
|
-
@staticmethod
|
45
|
-
def _configure(
|
46
|
-
_setter: Callable[[Any, Any], None],
|
47
|
-
capabilities: Optional[pulumi.Input['NamespaceCapabilitiesArgs']] = None,
|
48
|
-
description: Optional[pulumi.Input[str]] = None,
|
49
|
-
meta: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
50
|
-
name: Optional[pulumi.Input[str]] = None,
|
51
|
-
node_pool_config: Optional[pulumi.Input['NamespaceNodePoolConfigArgs']] = None,
|
52
|
-
quota: Optional[pulumi.Input[str]] = None,
|
53
|
-
opts: Optional[pulumi.ResourceOptions] = None,
|
54
|
-
**kwargs):
|
55
|
-
if node_pool_config is None and 'nodePoolConfig' in kwargs:
|
56
|
-
node_pool_config = kwargs['nodePoolConfig']
|
57
|
-
|
58
35
|
if capabilities is not None:
|
59
|
-
|
36
|
+
pulumi.set(__self__, "capabilities", capabilities)
|
60
37
|
if description is not None:
|
61
|
-
|
38
|
+
pulumi.set(__self__, "description", description)
|
62
39
|
if meta is not None:
|
63
|
-
|
40
|
+
pulumi.set(__self__, "meta", meta)
|
64
41
|
if name is not None:
|
65
|
-
|
42
|
+
pulumi.set(__self__, "name", name)
|
66
43
|
if node_pool_config is not None:
|
67
|
-
|
44
|
+
pulumi.set(__self__, "node_pool_config", node_pool_config)
|
68
45
|
if quota is not None:
|
69
|
-
|
46
|
+
pulumi.set(__self__, "quota", quota)
|
70
47
|
|
71
48
|
@property
|
72
49
|
@pulumi.getter
|
@@ -161,41 +138,18 @@ class _NamespaceState:
|
|
161
138
|
:param pulumi.Input['NamespaceNodePoolConfigArgs'] node_pool_config: `(block: <optional>)` - A block with node pool configuration for the namespace (Nomad Enterprise only).
|
162
139
|
:param pulumi.Input[str] quota: `(string: "")` - A resource quota to attach to the namespace.
|
163
140
|
"""
|
164
|
-
_NamespaceState._configure(
|
165
|
-
lambda key, value: pulumi.set(__self__, key, value),
|
166
|
-
capabilities=capabilities,
|
167
|
-
description=description,
|
168
|
-
meta=meta,
|
169
|
-
name=name,
|
170
|
-
node_pool_config=node_pool_config,
|
171
|
-
quota=quota,
|
172
|
-
)
|
173
|
-
@staticmethod
|
174
|
-
def _configure(
|
175
|
-
_setter: Callable[[Any, Any], None],
|
176
|
-
capabilities: Optional[pulumi.Input['NamespaceCapabilitiesArgs']] = None,
|
177
|
-
description: Optional[pulumi.Input[str]] = None,
|
178
|
-
meta: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
179
|
-
name: Optional[pulumi.Input[str]] = None,
|
180
|
-
node_pool_config: Optional[pulumi.Input['NamespaceNodePoolConfigArgs']] = None,
|
181
|
-
quota: Optional[pulumi.Input[str]] = None,
|
182
|
-
opts: Optional[pulumi.ResourceOptions] = None,
|
183
|
-
**kwargs):
|
184
|
-
if node_pool_config is None and 'nodePoolConfig' in kwargs:
|
185
|
-
node_pool_config = kwargs['nodePoolConfig']
|
186
|
-
|
187
141
|
if capabilities is not None:
|
188
|
-
|
142
|
+
pulumi.set(__self__, "capabilities", capabilities)
|
189
143
|
if description is not None:
|
190
|
-
|
144
|
+
pulumi.set(__self__, "description", description)
|
191
145
|
if meta is not None:
|
192
|
-
|
146
|
+
pulumi.set(__self__, "meta", meta)
|
193
147
|
if name is not None:
|
194
|
-
|
148
|
+
pulumi.set(__self__, "name", name)
|
195
149
|
if node_pool_config is not None:
|
196
|
-
|
150
|
+
pulumi.set(__self__, "node_pool_config", node_pool_config)
|
197
151
|
if quota is not None:
|
198
|
-
|
152
|
+
pulumi.set(__self__, "quota", quota)
|
199
153
|
|
200
154
|
@property
|
201
155
|
@pulumi.getter
|
@@ -399,10 +353,6 @@ class Namespace(pulumi.CustomResource):
|
|
399
353
|
if resource_args is not None:
|
400
354
|
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
401
355
|
else:
|
402
|
-
kwargs = kwargs or {}
|
403
|
-
def _setter(key, value):
|
404
|
-
kwargs[key] = value
|
405
|
-
NamespaceArgs._configure(_setter, **kwargs)
|
406
356
|
__self__._internal_init(resource_name, *args, **kwargs)
|
407
357
|
|
408
358
|
def _internal_init(__self__,
|
@@ -423,12 +373,10 @@ class Namespace(pulumi.CustomResource):
|
|
423
373
|
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
424
374
|
__props__ = NamespaceArgs.__new__(NamespaceArgs)
|
425
375
|
|
426
|
-
capabilities = _utilities.configure(capabilities, NamespaceCapabilitiesArgs, True)
|
427
376
|
__props__.__dict__["capabilities"] = capabilities
|
428
377
|
__props__.__dict__["description"] = description
|
429
378
|
__props__.__dict__["meta"] = meta
|
430
379
|
__props__.__dict__["name"] = name
|
431
|
-
node_pool_config = _utilities.configure(node_pool_config, NamespaceNodePoolConfigArgs, True)
|
432
380
|
__props__.__dict__["node_pool_config"] = node_pool_config
|
433
381
|
__props__.__dict__["quota"] = quota
|
434
382
|
super(Namespace, __self__).__init__(
|
pulumi_nomad/node_pool.py
CHANGED
@@ -6,7 +6,7 @@ import copy
|
|
6
6
|
import warnings
|
7
7
|
import pulumi
|
8
8
|
import pulumi.runtime
|
9
|
-
from typing import Any,
|
9
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
10
10
|
from . import _utilities
|
11
11
|
from . import outputs
|
12
12
|
from ._inputs import *
|
@@ -28,33 +28,14 @@ class NodePoolArgs:
|
|
28
28
|
:param pulumi.Input[str] name: `(string)` - The name of the node pool.
|
29
29
|
:param pulumi.Input['NodePoolSchedulerConfigArgs'] scheduler_config: `(block)` - Scheduler configuration for the node pool.
|
30
30
|
"""
|
31
|
-
NodePoolArgs._configure(
|
32
|
-
lambda key, value: pulumi.set(__self__, key, value),
|
33
|
-
description=description,
|
34
|
-
meta=meta,
|
35
|
-
name=name,
|
36
|
-
scheduler_config=scheduler_config,
|
37
|
-
)
|
38
|
-
@staticmethod
|
39
|
-
def _configure(
|
40
|
-
_setter: Callable[[Any, Any], None],
|
41
|
-
description: Optional[pulumi.Input[str]] = None,
|
42
|
-
meta: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
43
|
-
name: Optional[pulumi.Input[str]] = None,
|
44
|
-
scheduler_config: Optional[pulumi.Input['NodePoolSchedulerConfigArgs']] = None,
|
45
|
-
opts: Optional[pulumi.ResourceOptions] = None,
|
46
|
-
**kwargs):
|
47
|
-
if scheduler_config is None and 'schedulerConfig' in kwargs:
|
48
|
-
scheduler_config = kwargs['schedulerConfig']
|
49
|
-
|
50
31
|
if description is not None:
|
51
|
-
|
32
|
+
pulumi.set(__self__, "description", description)
|
52
33
|
if meta is not None:
|
53
|
-
|
34
|
+
pulumi.set(__self__, "meta", meta)
|
54
35
|
if name is not None:
|
55
|
-
|
36
|
+
pulumi.set(__self__, "name", name)
|
56
37
|
if scheduler_config is not None:
|
57
|
-
|
38
|
+
pulumi.set(__self__, "scheduler_config", scheduler_config)
|
58
39
|
|
59
40
|
@property
|
60
41
|
@pulumi.getter
|
@@ -121,33 +102,14 @@ class _NodePoolState:
|
|
121
102
|
:param pulumi.Input[str] name: `(string)` - The name of the node pool.
|
122
103
|
:param pulumi.Input['NodePoolSchedulerConfigArgs'] scheduler_config: `(block)` - Scheduler configuration for the node pool.
|
123
104
|
"""
|
124
|
-
_NodePoolState._configure(
|
125
|
-
lambda key, value: pulumi.set(__self__, key, value),
|
126
|
-
description=description,
|
127
|
-
meta=meta,
|
128
|
-
name=name,
|
129
|
-
scheduler_config=scheduler_config,
|
130
|
-
)
|
131
|
-
@staticmethod
|
132
|
-
def _configure(
|
133
|
-
_setter: Callable[[Any, Any], None],
|
134
|
-
description: Optional[pulumi.Input[str]] = None,
|
135
|
-
meta: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
136
|
-
name: Optional[pulumi.Input[str]] = None,
|
137
|
-
scheduler_config: Optional[pulumi.Input['NodePoolSchedulerConfigArgs']] = None,
|
138
|
-
opts: Optional[pulumi.ResourceOptions] = None,
|
139
|
-
**kwargs):
|
140
|
-
if scheduler_config is None and 'schedulerConfig' in kwargs:
|
141
|
-
scheduler_config = kwargs['schedulerConfig']
|
142
|
-
|
143
105
|
if description is not None:
|
144
|
-
|
106
|
+
pulumi.set(__self__, "description", description)
|
145
107
|
if meta is not None:
|
146
|
-
|
108
|
+
pulumi.set(__self__, "meta", meta)
|
147
109
|
if name is not None:
|
148
|
-
|
110
|
+
pulumi.set(__self__, "name", name)
|
149
111
|
if scheduler_config is not None:
|
150
|
-
|
112
|
+
pulumi.set(__self__, "scheduler_config", scheduler_config)
|
151
113
|
|
152
114
|
@property
|
153
115
|
@pulumi.getter
|
@@ -271,10 +233,6 @@ class NodePool(pulumi.CustomResource):
|
|
271
233
|
if resource_args is not None:
|
272
234
|
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
273
235
|
else:
|
274
|
-
kwargs = kwargs or {}
|
275
|
-
def _setter(key, value):
|
276
|
-
kwargs[key] = value
|
277
|
-
NodePoolArgs._configure(_setter, **kwargs)
|
278
236
|
__self__._internal_init(resource_name, *args, **kwargs)
|
279
237
|
|
280
238
|
def _internal_init(__self__,
|
@@ -296,7 +254,6 @@ class NodePool(pulumi.CustomResource):
|
|
296
254
|
__props__.__dict__["description"] = description
|
297
255
|
__props__.__dict__["meta"] = meta
|
298
256
|
__props__.__dict__["name"] = name
|
299
|
-
scheduler_config = _utilities.configure(scheduler_config, NodePoolSchedulerConfigArgs, True)
|
300
257
|
__props__.__dict__["scheduler_config"] = scheduler_config
|
301
258
|
super(NodePool, __self__).__init__(
|
302
259
|
'nomad:index/nodePool:NodePool',
|