pulumi-nomad 2.4.0__py3-none-any.whl → 2.4.0a1717726506__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 +34 -723
- 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 +82 -16
- pulumi_nomad/namespace.py +24 -29
- pulumi_nomad/node_pool.py +5 -10
- pulumi_nomad/outputs.py +31 -67
- 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.4.0.dist-info → pulumi_nomad-2.4.0a1717726506.dist-info}/METADATA +2 -3
- pulumi_nomad-2.4.0a1717726506.dist-info/RECORD +55 -0
- {pulumi_nomad-2.4.0.dist-info → pulumi_nomad-2.4.0a1717726506.dist-info}/WHEEL +1 -1
- pulumi_nomad-2.4.0.dist-info/RECORD +0 -55
- {pulumi_nomad-2.4.0.dist-info → pulumi_nomad-2.4.0a1717726506.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
|
|
@@ -1202,14 +1161,19 @@ class JobHcl2(dict):
|
|
1202
1161
|
|
1203
1162
|
def __init__(__self__, *,
|
1204
1163
|
allow_fs: Optional[bool] = None,
|
1205
|
-
|
1164
|
+
enabled: Optional[bool] = None,
|
1165
|
+
vars: Optional[Mapping[str, Any]] = None):
|
1206
1166
|
"""
|
1207
1167
|
:param bool allow_fs: `(boolean: false)` - Set this to `true` to be able to use
|
1208
1168
|
HCL2 filesystem functions
|
1209
|
-
:param
|
1169
|
+
:param bool enabled: `(boolean: false)` - **Deprecated** All HCL jobs are parsed as
|
1170
|
+
HCL2 by default.
|
1171
|
+
:param Mapping[str, Any] vars: Additional variables to use when templating the job with HCL2
|
1210
1172
|
"""
|
1211
1173
|
if allow_fs is not None:
|
1212
1174
|
pulumi.set(__self__, "allow_fs", allow_fs)
|
1175
|
+
if enabled is not None:
|
1176
|
+
pulumi.set(__self__, "enabled", enabled)
|
1213
1177
|
if vars is not None:
|
1214
1178
|
pulumi.set(__self__, "vars", vars)
|
1215
1179
|
|
@@ -1224,7 +1188,19 @@ class JobHcl2(dict):
|
|
1224
1188
|
|
1225
1189
|
@property
|
1226
1190
|
@pulumi.getter
|
1227
|
-
def
|
1191
|
+
def enabled(self) -> Optional[bool]:
|
1192
|
+
"""
|
1193
|
+
`(boolean: false)` - **Deprecated** All HCL jobs are parsed as
|
1194
|
+
HCL2 by default.
|
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
|
+
|
1199
|
+
return pulumi.get(self, "enabled")
|
1200
|
+
|
1201
|
+
@property
|
1202
|
+
@pulumi.getter
|
1203
|
+
def vars(self) -> Optional[Mapping[str, Any]]:
|
1228
1204
|
"""
|
1229
1205
|
Additional variables to use when templating the job with HCL2
|
1230
1206
|
"""
|
@@ -1235,7 +1211,7 @@ class JobHcl2(dict):
|
|
1235
1211
|
class JobTaskGroup(dict):
|
1236
1212
|
def __init__(__self__, *,
|
1237
1213
|
count: Optional[int] = None,
|
1238
|
-
meta: Optional[Mapping[str,
|
1214
|
+
meta: Optional[Mapping[str, Any]] = None,
|
1239
1215
|
name: Optional[str] = None,
|
1240
1216
|
tasks: Optional[Sequence['outputs.JobTaskGroupTask']] = None,
|
1241
1217
|
volumes: Optional[Sequence['outputs.JobTaskGroupVolume']] = None):
|
@@ -1257,7 +1233,7 @@ class JobTaskGroup(dict):
|
|
1257
1233
|
|
1258
1234
|
@property
|
1259
1235
|
@pulumi.getter
|
1260
|
-
def meta(self) -> Optional[Mapping[str,
|
1236
|
+
def meta(self) -> Optional[Mapping[str, Any]]:
|
1261
1237
|
return pulumi.get(self, "meta")
|
1262
1238
|
|
1263
1239
|
@property
|
@@ -1297,7 +1273,7 @@ class JobTaskGroupTask(dict):
|
|
1297
1273
|
|
1298
1274
|
def __init__(__self__, *,
|
1299
1275
|
driver: Optional[str] = None,
|
1300
|
-
meta: Optional[Mapping[str,
|
1276
|
+
meta: Optional[Mapping[str, Any]] = None,
|
1301
1277
|
name: Optional[str] = None,
|
1302
1278
|
volume_mounts: Optional[Sequence['outputs.JobTaskGroupTaskVolumeMount']] = None):
|
1303
1279
|
if driver is not None:
|
@@ -1316,7 +1292,7 @@ class JobTaskGroupTask(dict):
|
|
1316
1292
|
|
1317
1293
|
@property
|
1318
1294
|
@pulumi.getter
|
1319
|
-
def meta(self) -> Optional[Mapping[str,
|
1295
|
+
def meta(self) -> Optional[Mapping[str, Any]]:
|
1320
1296
|
return pulumi.get(self, "meta")
|
1321
1297
|
|
1322
1298
|
@property
|
@@ -1811,24 +1787,12 @@ class VolumeMountOptions(dict):
|
|
1811
1787
|
class VolumeTopology(dict):
|
1812
1788
|
def __init__(__self__, *,
|
1813
1789
|
segments: Optional[Mapping[str, str]] = None):
|
1814
|
-
"""
|
1815
|
-
:param Mapping[str, str] segments: `(map[string]string)` - Define the attributes for the topology request.
|
1816
|
-
|
1817
|
-
In addition to the above arguments, the following attributes are exported and
|
1818
|
-
can be referenced:
|
1819
|
-
"""
|
1820
1790
|
if segments is not None:
|
1821
1791
|
pulumi.set(__self__, "segments", segments)
|
1822
1792
|
|
1823
1793
|
@property
|
1824
1794
|
@pulumi.getter
|
1825
1795
|
def segments(self) -> Optional[Mapping[str, str]]:
|
1826
|
-
"""
|
1827
|
-
`(map[string]string)` - Define the attributes for the topology request.
|
1828
|
-
|
1829
|
-
In addition to the above arguments, the following attributes are exported and
|
1830
|
-
can be referenced:
|
1831
|
-
"""
|
1832
1796
|
return pulumi.get(self, "segments")
|
1833
1797
|
|
1834
1798
|
|
@@ -2484,7 +2448,7 @@ class GetJobPeriodicConfigResult(dict):
|
|
2484
2448
|
class GetJobTaskGroupResult(dict):
|
2485
2449
|
def __init__(__self__, *,
|
2486
2450
|
count: int,
|
2487
|
-
meta: Mapping[str,
|
2451
|
+
meta: Mapping[str, Any],
|
2488
2452
|
name: str,
|
2489
2453
|
tasks: Sequence['outputs.GetJobTaskGroupTaskResult'],
|
2490
2454
|
volumes: Sequence['outputs.GetJobTaskGroupVolumeResult']):
|
@@ -2504,7 +2468,7 @@ class GetJobTaskGroupResult(dict):
|
|
2504
2468
|
|
2505
2469
|
@property
|
2506
2470
|
@pulumi.getter
|
2507
|
-
def meta(self) -> Mapping[str,
|
2471
|
+
def meta(self) -> Mapping[str, Any]:
|
2508
2472
|
return pulumi.get(self, "meta")
|
2509
2473
|
|
2510
2474
|
@property
|
@@ -2530,7 +2494,7 @@ class GetJobTaskGroupResult(dict):
|
|
2530
2494
|
class GetJobTaskGroupTaskResult(dict):
|
2531
2495
|
def __init__(__self__, *,
|
2532
2496
|
driver: str,
|
2533
|
-
meta: Mapping[str,
|
2497
|
+
meta: Mapping[str, Any],
|
2534
2498
|
name: str,
|
2535
2499
|
volume_mounts: Sequence['outputs.GetJobTaskGroupTaskVolumeMountResult']):
|
2536
2500
|
"""
|
@@ -2548,7 +2512,7 @@ class GetJobTaskGroupTaskResult(dict):
|
|
2548
2512
|
|
2549
2513
|
@property
|
2550
2514
|
@pulumi.getter
|
2551
|
-
def meta(self) -> Mapping[str,
|
2515
|
+
def meta(self) -> Mapping[str, Any]:
|
2552
2516
|
return pulumi.get(self, "meta")
|
2553
2517
|
|
2554
2518
|
@property
|
@@ -2918,12 +2882,12 @@ class GetScalingPoliciesPolicyResult(dict):
|
|
2918
2882
|
def __init__(__self__, *,
|
2919
2883
|
enabled: bool,
|
2920
2884
|
id: str,
|
2921
|
-
target: Mapping[str,
|
2885
|
+
target: Mapping[str, Any],
|
2922
2886
|
type: str):
|
2923
2887
|
"""
|
2924
2888
|
:param bool enabled: `(boolean)` - Whether or not the scaling policy is enabled.
|
2925
2889
|
:param str id: `(string)` - The scaling policy ID.
|
2926
|
-
:param Mapping[str,
|
2890
|
+
:param Mapping[str, Any] target: `(map[string]string)` - The scaling policy target.
|
2927
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.
|
2928
2892
|
"""
|
2929
2893
|
pulumi.set(__self__, "enabled", enabled)
|
@@ -2949,7 +2913,7 @@ class GetScalingPoliciesPolicyResult(dict):
|
|
2949
2913
|
|
2950
2914
|
@property
|
2951
2915
|
@pulumi.getter
|
2952
|
-
def target(self) -> Mapping[str,
|
2916
|
+
def target(self) -> Mapping[str, Any]:
|
2953
2917
|
"""
|
2954
2918
|
`(map[string]string)` - The scaling policy target.
|
2955
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
|
"""
|