pulumi-nomad 2.3.3a1728590718__py3-none-any.whl → 2.4.0a1717653571__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 +13 -729
- pulumi_nomad/_utilities.py +5 -41
- pulumi_nomad/acl_auth_method.py +23 -28
- pulumi_nomad/acl_binding_rule.py +0 -5
- pulumi_nomad/acl_policy.py +5 -10
- pulumi_nomad/acl_role.py +5 -10
- pulumi_nomad/acl_token.py +5 -10
- pulumi_nomad/config/__init__.pyi +0 -5
- pulumi_nomad/config/outputs.py +0 -5
- pulumi_nomad/config/vars.py +0 -5
- pulumi_nomad/csi_volume.py +16 -21
- pulumi_nomad/csi_volume_registration.py +16 -21
- pulumi_nomad/external_volume.py +54 -59
- pulumi_nomad/get_acl_policies.py +4 -13
- pulumi_nomad/get_acl_policy.py +4 -14
- pulumi_nomad/get_acl_role.py +4 -14
- pulumi_nomad/get_acl_roles.py +4 -13
- pulumi_nomad/get_acl_token.py +4 -21
- pulumi_nomad/get_acl_tokens.py +4 -13
- pulumi_nomad/get_allocations.py +4 -17
- pulumi_nomad/get_datacenters.py +4 -15
- pulumi_nomad/get_deployments.py +5 -12
- pulumi_nomad/get_job.py +4 -33
- pulumi_nomad/get_job_parser.py +4 -15
- pulumi_nomad/get_jwks.py +4 -12
- pulumi_nomad/get_namespace.py +4 -17
- pulumi_nomad/get_namespaces.py +4 -11
- pulumi_nomad/get_node_pool.py +4 -15
- pulumi_nomad/get_node_pools.py +4 -15
- pulumi_nomad/get_plugin.py +4 -24
- pulumi_nomad/get_plugins.py +5 -14
- pulumi_nomad/get_regions.py +4 -11
- pulumi_nomad/get_scaling_policies.py +4 -15
- pulumi_nomad/get_scaling_policy.py +5 -18
- pulumi_nomad/get_scheduler_policy.py +4 -13
- pulumi_nomad/get_variable.py +5 -16
- pulumi_nomad/get_volumes.py +5 -20
- pulumi_nomad/job.py +21 -16
- pulumi_nomad/namespace.py +24 -29
- pulumi_nomad/node_pool.py +5 -10
- pulumi_nomad/outputs.py +17 -68
- pulumi_nomad/provider.py +3 -8
- pulumi_nomad/pulumi-plugin.json +1 -1
- pulumi_nomad/quote_specification.py +19 -24
- pulumi_nomad/scheduler_config.py +0 -5
- pulumi_nomad/sentinel_policy.py +0 -5
- pulumi_nomad/variable.py +14 -19
- pulumi_nomad/volume.py +72 -65
- {pulumi_nomad-2.3.3a1728590718.dist-info → pulumi_nomad-2.4.0a1717653571.dist-info}/METADATA +2 -3
- pulumi_nomad-2.4.0a1717653571.dist-info/RECORD +55 -0
- {pulumi_nomad-2.3.3a1728590718.dist-info → pulumi_nomad-2.4.0a1717653571.dist-info}/WHEEL +1 -1
- pulumi_nomad-2.3.3a1728590718.dist-info/RECORD +0 -55
- {pulumi_nomad-2.3.3a1728590718.dist-info → pulumi_nomad-2.4.0a1717653571.dist-info}/top_level.txt +0 -0
pulumi_nomad/outputs.py
CHANGED
@@ -4,14 +4,9 @@
|
|
4
4
|
|
5
5
|
import copy
|
6
6
|
import warnings
|
7
|
-
import sys
|
8
7
|
import pulumi
|
9
8
|
import pulumi.runtime
|
10
9
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
11
|
-
if sys.version_info >= (3, 11):
|
12
|
-
from typing import NotRequired, TypedDict, TypeAlias
|
13
|
-
else:
|
14
|
-
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
15
10
|
from . import _utilities
|
16
11
|
from . import outputs
|
17
12
|
|
@@ -737,24 +732,12 @@ class CsiVolumeRegistrationMountOptions(dict):
|
|
737
732
|
class CsiVolumeRegistrationTopology(dict):
|
738
733
|
def __init__(__self__, *,
|
739
734
|
segments: Optional[Mapping[str, str]] = None):
|
740
|
-
"""
|
741
|
-
:param Mapping[str, str] segments: `(map[string]string)` - Define the attributes for the topology request.
|
742
|
-
|
743
|
-
In addition to the above arguments, the following attributes are exported and
|
744
|
-
can be referenced:
|
745
|
-
"""
|
746
735
|
if segments is not None:
|
747
736
|
pulumi.set(__self__, "segments", segments)
|
748
737
|
|
749
738
|
@property
|
750
739
|
@pulumi.getter
|
751
740
|
def segments(self) -> Optional[Mapping[str, str]]:
|
752
|
-
"""
|
753
|
-
`(map[string]string)` - Define the attributes for the topology request.
|
754
|
-
|
755
|
-
In addition to the above arguments, the following attributes are exported and
|
756
|
-
can be referenced:
|
757
|
-
"""
|
758
741
|
return pulumi.get(self, "segments")
|
759
742
|
|
760
743
|
|
@@ -817,24 +800,12 @@ class CsiVolumeRegistrationTopologyRequestRequiredTopology(dict):
|
|
817
800
|
class CsiVolumeTopology(dict):
|
818
801
|
def __init__(__self__, *,
|
819
802
|
segments: Optional[Mapping[str, str]] = None):
|
820
|
-
"""
|
821
|
-
:param Mapping[str, str] segments: `(map[string]string)` - Define the attributes for the topology request.
|
822
|
-
|
823
|
-
In addition to the above arguments, the following attributes are exported and
|
824
|
-
can be referenced:
|
825
|
-
"""
|
826
803
|
if segments is not None:
|
827
804
|
pulumi.set(__self__, "segments", segments)
|
828
805
|
|
829
806
|
@property
|
830
807
|
@pulumi.getter
|
831
808
|
def segments(self) -> Optional[Mapping[str, str]]:
|
832
|
-
"""
|
833
|
-
`(map[string]string)` - Define the attributes for the topology request.
|
834
|
-
|
835
|
-
In addition to the above arguments, the following attributes are exported and
|
836
|
-
can be referenced:
|
837
|
-
"""
|
838
809
|
return pulumi.get(self, "segments")
|
839
810
|
|
840
811
|
|
@@ -1057,24 +1028,12 @@ class ExternalVolumeMountOptions(dict):
|
|
1057
1028
|
class ExternalVolumeTopology(dict):
|
1058
1029
|
def __init__(__self__, *,
|
1059
1030
|
segments: Optional[Mapping[str, str]] = None):
|
1060
|
-
"""
|
1061
|
-
:param Mapping[str, str] segments: `(map[string]string)` - Define the attributes for the topology request.
|
1062
|
-
|
1063
|
-
In addition to the above arguments, the following attributes are exported and
|
1064
|
-
can be referenced:
|
1065
|
-
"""
|
1066
1031
|
if segments is not None:
|
1067
1032
|
pulumi.set(__self__, "segments", segments)
|
1068
1033
|
|
1069
1034
|
@property
|
1070
1035
|
@pulumi.getter
|
1071
1036
|
def segments(self) -> Optional[Mapping[str, str]]:
|
1072
|
-
"""
|
1073
|
-
`(map[string]string)` - Define the attributes for the topology request.
|
1074
|
-
|
1075
|
-
In addition to the above arguments, the following attributes are exported and
|
1076
|
-
can be referenced:
|
1077
|
-
"""
|
1078
1037
|
return pulumi.get(self, "segments")
|
1079
1038
|
|
1080
1039
|
|
@@ -1203,13 +1162,13 @@ class JobHcl2(dict):
|
|
1203
1162
|
def __init__(__self__, *,
|
1204
1163
|
allow_fs: Optional[bool] = None,
|
1205
1164
|
enabled: Optional[bool] = None,
|
1206
|
-
vars: Optional[Mapping[str,
|
1165
|
+
vars: Optional[Mapping[str, Any]] = None):
|
1207
1166
|
"""
|
1208
1167
|
:param bool allow_fs: `(boolean: false)` - Set this to `true` to be able to use
|
1209
1168
|
HCL2 filesystem functions
|
1210
1169
|
:param bool enabled: `(boolean: false)` - **Deprecated** All HCL jobs are parsed as
|
1211
1170
|
HCL2 by default.
|
1212
|
-
:param Mapping[str,
|
1171
|
+
:param Mapping[str, Any] vars: Additional variables to use when templating the job with HCL2
|
1213
1172
|
"""
|
1214
1173
|
if allow_fs is not None:
|
1215
1174
|
pulumi.set(__self__, "allow_fs", allow_fs)
|
@@ -1229,17 +1188,19 @@ class JobHcl2(dict):
|
|
1229
1188
|
|
1230
1189
|
@property
|
1231
1190
|
@pulumi.getter
|
1232
|
-
@_utilities.deprecated("""Starting with version 2.0.0 of the Nomad provider, jobs are parsed using HCL2 by default, so this field is no longer used and may be safely removed from your configuration files. Set 'hcl1 = true' if you must use HCL1 job parsing.""")
|
1233
1191
|
def enabled(self) -> Optional[bool]:
|
1234
1192
|
"""
|
1235
1193
|
`(boolean: false)` - **Deprecated** All HCL jobs are parsed as
|
1236
1194
|
HCL2 by default.
|
1237
1195
|
"""
|
1196
|
+
warnings.warn("""Starting with version 2.0.0 of the Nomad provider, jobs are parsed using HCL2 by default, so this field is no longer used and may be safely removed from your configuration files. Set 'hcl1 = true' if you must use HCL1 job parsing.""", DeprecationWarning)
|
1197
|
+
pulumi.log.warn("""enabled is deprecated: Starting with version 2.0.0 of the Nomad provider, jobs are parsed using HCL2 by default, so this field is no longer used and may be safely removed from your configuration files. Set 'hcl1 = true' if you must use HCL1 job parsing.""")
|
1198
|
+
|
1238
1199
|
return pulumi.get(self, "enabled")
|
1239
1200
|
|
1240
1201
|
@property
|
1241
1202
|
@pulumi.getter
|
1242
|
-
def vars(self) -> Optional[Mapping[str,
|
1203
|
+
def vars(self) -> Optional[Mapping[str, Any]]:
|
1243
1204
|
"""
|
1244
1205
|
Additional variables to use when templating the job with HCL2
|
1245
1206
|
"""
|
@@ -1250,7 +1211,7 @@ class JobHcl2(dict):
|
|
1250
1211
|
class JobTaskGroup(dict):
|
1251
1212
|
def __init__(__self__, *,
|
1252
1213
|
count: Optional[int] = None,
|
1253
|
-
meta: Optional[Mapping[str,
|
1214
|
+
meta: Optional[Mapping[str, Any]] = None,
|
1254
1215
|
name: Optional[str] = None,
|
1255
1216
|
tasks: Optional[Sequence['outputs.JobTaskGroupTask']] = None,
|
1256
1217
|
volumes: Optional[Sequence['outputs.JobTaskGroupVolume']] = None):
|
@@ -1272,7 +1233,7 @@ class JobTaskGroup(dict):
|
|
1272
1233
|
|
1273
1234
|
@property
|
1274
1235
|
@pulumi.getter
|
1275
|
-
def meta(self) -> Optional[Mapping[str,
|
1236
|
+
def meta(self) -> Optional[Mapping[str, Any]]:
|
1276
1237
|
return pulumi.get(self, "meta")
|
1277
1238
|
|
1278
1239
|
@property
|
@@ -1312,7 +1273,7 @@ class JobTaskGroupTask(dict):
|
|
1312
1273
|
|
1313
1274
|
def __init__(__self__, *,
|
1314
1275
|
driver: Optional[str] = None,
|
1315
|
-
meta: Optional[Mapping[str,
|
1276
|
+
meta: Optional[Mapping[str, Any]] = None,
|
1316
1277
|
name: Optional[str] = None,
|
1317
1278
|
volume_mounts: Optional[Sequence['outputs.JobTaskGroupTaskVolumeMount']] = None):
|
1318
1279
|
if driver is not None:
|
@@ -1331,7 +1292,7 @@ class JobTaskGroupTask(dict):
|
|
1331
1292
|
|
1332
1293
|
@property
|
1333
1294
|
@pulumi.getter
|
1334
|
-
def meta(self) -> Optional[Mapping[str,
|
1295
|
+
def meta(self) -> Optional[Mapping[str, Any]]:
|
1335
1296
|
return pulumi.get(self, "meta")
|
1336
1297
|
|
1337
1298
|
@property
|
@@ -1826,24 +1787,12 @@ class VolumeMountOptions(dict):
|
|
1826
1787
|
class VolumeTopology(dict):
|
1827
1788
|
def __init__(__self__, *,
|
1828
1789
|
segments: Optional[Mapping[str, str]] = None):
|
1829
|
-
"""
|
1830
|
-
:param Mapping[str, str] segments: `(map[string]string)` - Define the attributes for the topology request.
|
1831
|
-
|
1832
|
-
In addition to the above arguments, the following attributes are exported and
|
1833
|
-
can be referenced:
|
1834
|
-
"""
|
1835
1790
|
if segments is not None:
|
1836
1791
|
pulumi.set(__self__, "segments", segments)
|
1837
1792
|
|
1838
1793
|
@property
|
1839
1794
|
@pulumi.getter
|
1840
1795
|
def segments(self) -> Optional[Mapping[str, str]]:
|
1841
|
-
"""
|
1842
|
-
`(map[string]string)` - Define the attributes for the topology request.
|
1843
|
-
|
1844
|
-
In addition to the above arguments, the following attributes are exported and
|
1845
|
-
can be referenced:
|
1846
|
-
"""
|
1847
1796
|
return pulumi.get(self, "segments")
|
1848
1797
|
|
1849
1798
|
|
@@ -2499,7 +2448,7 @@ class GetJobPeriodicConfigResult(dict):
|
|
2499
2448
|
class GetJobTaskGroupResult(dict):
|
2500
2449
|
def __init__(__self__, *,
|
2501
2450
|
count: int,
|
2502
|
-
meta: Mapping[str,
|
2451
|
+
meta: Mapping[str, Any],
|
2503
2452
|
name: str,
|
2504
2453
|
tasks: Sequence['outputs.GetJobTaskGroupTaskResult'],
|
2505
2454
|
volumes: Sequence['outputs.GetJobTaskGroupVolumeResult']):
|
@@ -2519,7 +2468,7 @@ class GetJobTaskGroupResult(dict):
|
|
2519
2468
|
|
2520
2469
|
@property
|
2521
2470
|
@pulumi.getter
|
2522
|
-
def meta(self) -> Mapping[str,
|
2471
|
+
def meta(self) -> Mapping[str, Any]:
|
2523
2472
|
return pulumi.get(self, "meta")
|
2524
2473
|
|
2525
2474
|
@property
|
@@ -2545,7 +2494,7 @@ class GetJobTaskGroupResult(dict):
|
|
2545
2494
|
class GetJobTaskGroupTaskResult(dict):
|
2546
2495
|
def __init__(__self__, *,
|
2547
2496
|
driver: str,
|
2548
|
-
meta: Mapping[str,
|
2497
|
+
meta: Mapping[str, Any],
|
2549
2498
|
name: str,
|
2550
2499
|
volume_mounts: Sequence['outputs.GetJobTaskGroupTaskVolumeMountResult']):
|
2551
2500
|
"""
|
@@ -2563,7 +2512,7 @@ class GetJobTaskGroupTaskResult(dict):
|
|
2563
2512
|
|
2564
2513
|
@property
|
2565
2514
|
@pulumi.getter
|
2566
|
-
def meta(self) -> Mapping[str,
|
2515
|
+
def meta(self) -> Mapping[str, Any]:
|
2567
2516
|
return pulumi.get(self, "meta")
|
2568
2517
|
|
2569
2518
|
@property
|
@@ -2933,12 +2882,12 @@ class GetScalingPoliciesPolicyResult(dict):
|
|
2933
2882
|
def __init__(__self__, *,
|
2934
2883
|
enabled: bool,
|
2935
2884
|
id: str,
|
2936
|
-
target: Mapping[str,
|
2885
|
+
target: Mapping[str, Any],
|
2937
2886
|
type: str):
|
2938
2887
|
"""
|
2939
2888
|
:param bool enabled: `(boolean)` - Whether or not the scaling policy is enabled.
|
2940
2889
|
:param str id: `(string)` - The scaling policy ID.
|
2941
|
-
:param Mapping[str,
|
2890
|
+
:param Mapping[str, Any] target: `(map[string]string)` - The scaling policy target.
|
2942
2891
|
:param str type: `(string)` - An optional string to filter scaling policies based on policy type. If not provided, policies of all types are returned.
|
2943
2892
|
"""
|
2944
2893
|
pulumi.set(__self__, "enabled", enabled)
|
@@ -2964,7 +2913,7 @@ class GetScalingPoliciesPolicyResult(dict):
|
|
2964
2913
|
|
2965
2914
|
@property
|
2966
2915
|
@pulumi.getter
|
2967
|
-
def target(self) -> Mapping[str,
|
2916
|
+
def target(self) -> Mapping[str, Any]:
|
2968
2917
|
"""
|
2969
2918
|
`(map[string]string)` - The scaling policy target.
|
2970
2919
|
"""
|
pulumi_nomad/provider.py
CHANGED
@@ -4,14 +4,9 @@
|
|
4
4
|
|
5
5
|
import copy
|
6
6
|
import warnings
|
7
|
-
import sys
|
8
7
|
import pulumi
|
9
8
|
import pulumi.runtime
|
10
9
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
11
|
-
if sys.version_info >= (3, 11):
|
12
|
-
from typing import NotRequired, TypedDict, TypeAlias
|
13
|
-
else:
|
14
|
-
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
15
10
|
from . import _utilities
|
16
11
|
from ._inputs import *
|
17
12
|
|
@@ -275,7 +270,7 @@ class Provider(pulumi.ProviderResource):
|
|
275
270
|
cert_file: Optional[pulumi.Input[str]] = None,
|
276
271
|
cert_pem: Optional[pulumi.Input[str]] = None,
|
277
272
|
consul_token: Optional[pulumi.Input[str]] = None,
|
278
|
-
headers: Optional[pulumi.Input[Sequence[pulumi.Input[
|
273
|
+
headers: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ProviderHeaderArgs']]]]] = None,
|
279
274
|
http_auth: Optional[pulumi.Input[str]] = None,
|
280
275
|
ignore_env_vars: Optional[pulumi.Input[Mapping[str, pulumi.Input[bool]]]] = None,
|
281
276
|
key_file: Optional[pulumi.Input[str]] = None,
|
@@ -299,7 +294,7 @@ class Provider(pulumi.ProviderResource):
|
|
299
294
|
:param pulumi.Input[str] cert_file: A path to a PEM-encoded certificate provided to the remote agent; requires use of key_file or key_pem.
|
300
295
|
:param pulumi.Input[str] cert_pem: PEM-encoded certificate provided to the remote agent; requires use of key_file or key_pem.
|
301
296
|
:param pulumi.Input[str] consul_token: Consul token to validate Consul Connect Service Identity policies specified in the job file.
|
302
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
297
|
+
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ProviderHeaderArgs']]]] headers: The headers to send with each Nomad request.
|
303
298
|
:param pulumi.Input[str] http_auth: HTTP basic auth configuration.
|
304
299
|
:param pulumi.Input[Mapping[str, pulumi.Input[bool]]] ignore_env_vars: A set of environment variables that are ignored by the provider when configuring the Nomad API client.
|
305
300
|
:param pulumi.Input[str] key_file: A path to a PEM-encoded private key, required if cert_file or cert_pem is specified.
|
@@ -342,7 +337,7 @@ class Provider(pulumi.ProviderResource):
|
|
342
337
|
cert_file: Optional[pulumi.Input[str]] = None,
|
343
338
|
cert_pem: Optional[pulumi.Input[str]] = None,
|
344
339
|
consul_token: Optional[pulumi.Input[str]] = None,
|
345
|
-
headers: Optional[pulumi.Input[Sequence[pulumi.Input[
|
340
|
+
headers: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ProviderHeaderArgs']]]]] = None,
|
346
341
|
http_auth: Optional[pulumi.Input[str]] = None,
|
347
342
|
ignore_env_vars: Optional[pulumi.Input[Mapping[str, pulumi.Input[bool]]]] = None,
|
348
343
|
key_file: Optional[pulumi.Input[str]] = None,
|
pulumi_nomad/pulumi-plugin.json
CHANGED
@@ -4,14 +4,9 @@
|
|
4
4
|
|
5
5
|
import copy
|
6
6
|
import warnings
|
7
|
-
import sys
|
8
7
|
import pulumi
|
9
8
|
import pulumi.runtime
|
10
9
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
11
|
-
if sys.version_info >= (3, 11):
|
12
|
-
from typing import NotRequired, TypedDict, TypeAlias
|
13
|
-
else:
|
14
|
-
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
15
10
|
from . import _utilities
|
16
11
|
from . import outputs
|
17
12
|
from ._inputs import *
|
@@ -139,7 +134,7 @@ class QuoteSpecification(pulumi.CustomResource):
|
|
139
134
|
resource_name: str,
|
140
135
|
opts: Optional[pulumi.ResourceOptions] = None,
|
141
136
|
description: Optional[pulumi.Input[str]] = None,
|
142
|
-
limits: Optional[pulumi.Input[Sequence[pulumi.Input[
|
137
|
+
limits: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['QuoteSpecificationLimitArgs']]]]] = None,
|
143
138
|
name: Optional[pulumi.Input[str]] = None,
|
144
139
|
__props__=None):
|
145
140
|
"""
|
@@ -156,19 +151,19 @@ class QuoteSpecification(pulumi.CustomResource):
|
|
156
151
|
prod_api = nomad.QuoteSpecification("prod_api",
|
157
152
|
name="prod-api",
|
158
153
|
description="Production instances of backend API servers",
|
159
|
-
limits=[
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
154
|
+
limits=[nomad.QuoteSpecificationLimitArgs(
|
155
|
+
region="global",
|
156
|
+
region_limit=nomad.QuoteSpecificationLimitRegionLimitArgs(
|
157
|
+
cpu=2400,
|
158
|
+
memory_mb=1200,
|
159
|
+
),
|
160
|
+
)])
|
166
161
|
```
|
167
162
|
|
168
163
|
:param str resource_name: The name of the resource.
|
169
164
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
170
165
|
:param pulumi.Input[str] description: `(string: "")` - A description of the quota specification.
|
171
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
166
|
+
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['QuoteSpecificationLimitArgs']]]] limits: `(block: <required>)` - A block of quota limits to enforce. Can
|
172
167
|
be repeated. See below for the structure of this block.
|
173
168
|
:param pulumi.Input[str] name: `(string: <required>)` - A unique name for the quota specification.
|
174
169
|
"""
|
@@ -192,13 +187,13 @@ class QuoteSpecification(pulumi.CustomResource):
|
|
192
187
|
prod_api = nomad.QuoteSpecification("prod_api",
|
193
188
|
name="prod-api",
|
194
189
|
description="Production instances of backend API servers",
|
195
|
-
limits=[
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
190
|
+
limits=[nomad.QuoteSpecificationLimitArgs(
|
191
|
+
region="global",
|
192
|
+
region_limit=nomad.QuoteSpecificationLimitRegionLimitArgs(
|
193
|
+
cpu=2400,
|
194
|
+
memory_mb=1200,
|
195
|
+
),
|
196
|
+
)])
|
202
197
|
```
|
203
198
|
|
204
199
|
:param str resource_name: The name of the resource.
|
@@ -217,7 +212,7 @@ class QuoteSpecification(pulumi.CustomResource):
|
|
217
212
|
resource_name: str,
|
218
213
|
opts: Optional[pulumi.ResourceOptions] = None,
|
219
214
|
description: Optional[pulumi.Input[str]] = None,
|
220
|
-
limits: Optional[pulumi.Input[Sequence[pulumi.Input[
|
215
|
+
limits: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['QuoteSpecificationLimitArgs']]]]] = None,
|
221
216
|
name: Optional[pulumi.Input[str]] = None,
|
222
217
|
__props__=None):
|
223
218
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
@@ -244,7 +239,7 @@ class QuoteSpecification(pulumi.CustomResource):
|
|
244
239
|
id: pulumi.Input[str],
|
245
240
|
opts: Optional[pulumi.ResourceOptions] = None,
|
246
241
|
description: Optional[pulumi.Input[str]] = None,
|
247
|
-
limits: Optional[pulumi.Input[Sequence[pulumi.Input[
|
242
|
+
limits: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['QuoteSpecificationLimitArgs']]]]] = None,
|
248
243
|
name: Optional[pulumi.Input[str]] = None) -> 'QuoteSpecification':
|
249
244
|
"""
|
250
245
|
Get an existing QuoteSpecification resource's state with the given name, id, and optional extra
|
@@ -254,7 +249,7 @@ class QuoteSpecification(pulumi.CustomResource):
|
|
254
249
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
255
250
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
256
251
|
:param pulumi.Input[str] description: `(string: "")` - A description of the quota specification.
|
257
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
252
|
+
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['QuoteSpecificationLimitArgs']]]] limits: `(block: <required>)` - A block of quota limits to enforce. Can
|
258
253
|
be repeated. See below for the structure of this block.
|
259
254
|
:param pulumi.Input[str] name: `(string: <required>)` - A unique name for the quota specification.
|
260
255
|
"""
|
pulumi_nomad/scheduler_config.py
CHANGED
@@ -4,14 +4,9 @@
|
|
4
4
|
|
5
5
|
import copy
|
6
6
|
import warnings
|
7
|
-
import sys
|
8
7
|
import pulumi
|
9
8
|
import pulumi.runtime
|
10
9
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
11
|
-
if sys.version_info >= (3, 11):
|
12
|
-
from typing import NotRequired, TypedDict, TypeAlias
|
13
|
-
else:
|
14
|
-
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
15
10
|
from . import _utilities
|
16
11
|
|
17
12
|
__all__ = ['SchedulerConfigArgs', 'SchedulerConfig']
|
pulumi_nomad/sentinel_policy.py
CHANGED
@@ -4,14 +4,9 @@
|
|
4
4
|
|
5
5
|
import copy
|
6
6
|
import warnings
|
7
|
-
import sys
|
8
7
|
import pulumi
|
9
8
|
import pulumi.runtime
|
10
9
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
11
|
-
if sys.version_info >= (3, 11):
|
12
|
-
from typing import NotRequired, TypedDict, TypeAlias
|
13
|
-
else:
|
14
|
-
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
15
10
|
from . import _utilities
|
16
11
|
|
17
12
|
__all__ = ['SentinelPolicyArgs', 'SentinelPolicy']
|
pulumi_nomad/variable.py
CHANGED
@@ -4,14 +4,9 @@
|
|
4
4
|
|
5
5
|
import copy
|
6
6
|
import warnings
|
7
|
-
import sys
|
8
7
|
import pulumi
|
9
8
|
import pulumi.runtime
|
10
9
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
11
|
-
if sys.version_info >= (3, 11):
|
12
|
-
from typing import NotRequired, TypedDict, TypeAlias
|
13
|
-
else:
|
14
|
-
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
15
10
|
from . import _utilities
|
16
11
|
|
17
12
|
__all__ = ['VariableArgs', 'Variable']
|
@@ -19,12 +14,12 @@ __all__ = ['VariableArgs', 'Variable']
|
|
19
14
|
@pulumi.input_type
|
20
15
|
class VariableArgs:
|
21
16
|
def __init__(__self__, *,
|
22
|
-
items: pulumi.Input[Mapping[str,
|
17
|
+
items: pulumi.Input[Mapping[str, Any]],
|
23
18
|
path: pulumi.Input[str],
|
24
19
|
namespace: Optional[pulumi.Input[str]] = None):
|
25
20
|
"""
|
26
21
|
The set of arguments for constructing a Variable resource.
|
27
|
-
:param pulumi.Input[Mapping[str,
|
22
|
+
:param pulumi.Input[Mapping[str, Any]] items: `(map[string]string: <required>)` - An arbitrary map of items to create in the variable.
|
28
23
|
:param pulumi.Input[str] path: `(string: <required>)` - A unique path to create the variable at.
|
29
24
|
:param pulumi.Input[str] namespace: `(string: "default")` - The namepsace to create the variable in.
|
30
25
|
"""
|
@@ -35,14 +30,14 @@ class VariableArgs:
|
|
35
30
|
|
36
31
|
@property
|
37
32
|
@pulumi.getter
|
38
|
-
def items(self) -> pulumi.Input[Mapping[str,
|
33
|
+
def items(self) -> pulumi.Input[Mapping[str, Any]]:
|
39
34
|
"""
|
40
35
|
`(map[string]string: <required>)` - An arbitrary map of items to create in the variable.
|
41
36
|
"""
|
42
37
|
return pulumi.get(self, "items")
|
43
38
|
|
44
39
|
@items.setter
|
45
|
-
def items(self, value: pulumi.Input[Mapping[str,
|
40
|
+
def items(self, value: pulumi.Input[Mapping[str, Any]]):
|
46
41
|
pulumi.set(self, "items", value)
|
47
42
|
|
48
43
|
@property
|
@@ -73,12 +68,12 @@ class VariableArgs:
|
|
73
68
|
@pulumi.input_type
|
74
69
|
class _VariableState:
|
75
70
|
def __init__(__self__, *,
|
76
|
-
items: Optional[pulumi.Input[Mapping[str,
|
71
|
+
items: Optional[pulumi.Input[Mapping[str, Any]]] = None,
|
77
72
|
namespace: Optional[pulumi.Input[str]] = None,
|
78
73
|
path: Optional[pulumi.Input[str]] = None):
|
79
74
|
"""
|
80
75
|
Input properties used for looking up and filtering Variable resources.
|
81
|
-
:param pulumi.Input[Mapping[str,
|
76
|
+
:param pulumi.Input[Mapping[str, Any]] items: `(map[string]string: <required>)` - An arbitrary map of items to create in the variable.
|
82
77
|
:param pulumi.Input[str] namespace: `(string: "default")` - The namepsace to create the variable in.
|
83
78
|
:param pulumi.Input[str] path: `(string: <required>)` - A unique path to create the variable at.
|
84
79
|
"""
|
@@ -91,14 +86,14 @@ class _VariableState:
|
|
91
86
|
|
92
87
|
@property
|
93
88
|
@pulumi.getter
|
94
|
-
def items(self) -> Optional[pulumi.Input[Mapping[str,
|
89
|
+
def items(self) -> Optional[pulumi.Input[Mapping[str, Any]]]:
|
95
90
|
"""
|
96
91
|
`(map[string]string: <required>)` - An arbitrary map of items to create in the variable.
|
97
92
|
"""
|
98
93
|
return pulumi.get(self, "items")
|
99
94
|
|
100
95
|
@items.setter
|
101
|
-
def items(self, value: Optional[pulumi.Input[Mapping[str,
|
96
|
+
def items(self, value: Optional[pulumi.Input[Mapping[str, Any]]]):
|
102
97
|
pulumi.set(self, "items", value)
|
103
98
|
|
104
99
|
@property
|
@@ -131,7 +126,7 @@ class Variable(pulumi.CustomResource):
|
|
131
126
|
def __init__(__self__,
|
132
127
|
resource_name: str,
|
133
128
|
opts: Optional[pulumi.ResourceOptions] = None,
|
134
|
-
items: Optional[pulumi.Input[Mapping[str,
|
129
|
+
items: Optional[pulumi.Input[Mapping[str, Any]]] = None,
|
135
130
|
namespace: Optional[pulumi.Input[str]] = None,
|
136
131
|
path: Optional[pulumi.Input[str]] = None,
|
137
132
|
__props__=None):
|
@@ -170,7 +165,7 @@ class Variable(pulumi.CustomResource):
|
|
170
165
|
|
171
166
|
:param str resource_name: The name of the resource.
|
172
167
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
173
|
-
:param pulumi.Input[Mapping[str,
|
168
|
+
:param pulumi.Input[Mapping[str, Any]] items: `(map[string]string: <required>)` - An arbitrary map of items to create in the variable.
|
174
169
|
:param pulumi.Input[str] namespace: `(string: "default")` - The namepsace to create the variable in.
|
175
170
|
:param pulumi.Input[str] path: `(string: <required>)` - A unique path to create the variable at.
|
176
171
|
"""
|
@@ -228,7 +223,7 @@ class Variable(pulumi.CustomResource):
|
|
228
223
|
def _internal_init(__self__,
|
229
224
|
resource_name: str,
|
230
225
|
opts: Optional[pulumi.ResourceOptions] = None,
|
231
|
-
items: Optional[pulumi.Input[Mapping[str,
|
226
|
+
items: Optional[pulumi.Input[Mapping[str, Any]]] = None,
|
232
227
|
namespace: Optional[pulumi.Input[str]] = None,
|
233
228
|
path: Optional[pulumi.Input[str]] = None,
|
234
229
|
__props__=None):
|
@@ -259,7 +254,7 @@ class Variable(pulumi.CustomResource):
|
|
259
254
|
def get(resource_name: str,
|
260
255
|
id: pulumi.Input[str],
|
261
256
|
opts: Optional[pulumi.ResourceOptions] = None,
|
262
|
-
items: Optional[pulumi.Input[Mapping[str,
|
257
|
+
items: Optional[pulumi.Input[Mapping[str, Any]]] = None,
|
263
258
|
namespace: Optional[pulumi.Input[str]] = None,
|
264
259
|
path: Optional[pulumi.Input[str]] = None) -> 'Variable':
|
265
260
|
"""
|
@@ -269,7 +264,7 @@ class Variable(pulumi.CustomResource):
|
|
269
264
|
:param str resource_name: The unique name of the resulting resource.
|
270
265
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
271
266
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
272
|
-
:param pulumi.Input[Mapping[str,
|
267
|
+
:param pulumi.Input[Mapping[str, Any]] items: `(map[string]string: <required>)` - An arbitrary map of items to create in the variable.
|
273
268
|
:param pulumi.Input[str] namespace: `(string: "default")` - The namepsace to create the variable in.
|
274
269
|
:param pulumi.Input[str] path: `(string: <required>)` - A unique path to create the variable at.
|
275
270
|
"""
|
@@ -284,7 +279,7 @@ class Variable(pulumi.CustomResource):
|
|
284
279
|
|
285
280
|
@property
|
286
281
|
@pulumi.getter
|
287
|
-
def items(self) -> pulumi.Output[Mapping[str,
|
282
|
+
def items(self) -> pulumi.Output[Mapping[str, Any]]:
|
288
283
|
"""
|
289
284
|
`(map[string]string: <required>)` - An arbitrary map of items to create in the variable.
|
290
285
|
"""
|