pulumi-nomad 2.2.0a1710156747__py3-none-any.whl → 2.2.1__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 +92 -146
- pulumi_nomad/acl_auth_method.py +46 -41
- pulumi_nomad/acl_policy.py +0 -64
- pulumi_nomad/acl_token.py +18 -26
- pulumi_nomad/csi_volume.py +0 -72
- pulumi_nomad/csi_volume_registration.py +7 -79
- pulumi_nomad/external_volume.py +6 -78
- pulumi_nomad/get_acl_policies.py +0 -4
- pulumi_nomad/get_acl_policy.py +0 -4
- pulumi_nomad/get_acl_role.py +0 -4
- pulumi_nomad/get_acl_roles.py +0 -4
- pulumi_nomad/get_acl_token.py +0 -4
- pulumi_nomad/get_acl_tokens.py +0 -4
- pulumi_nomad/get_allocations.py +21 -5
- pulumi_nomad/get_datacenters.py +4 -8
- pulumi_nomad/get_deployments.py +0 -4
- pulumi_nomad/get_job.py +4 -9
- pulumi_nomad/get_job_parser.py +0 -24
- pulumi_nomad/get_namespace.py +0 -4
- pulumi_nomad/get_namespaces.py +2 -4
- pulumi_nomad/get_node_pool.py +0 -4
- pulumi_nomad/get_node_pools.py +0 -4
- pulumi_nomad/get_plugin.py +0 -4
- pulumi_nomad/get_plugins.py +0 -4
- pulumi_nomad/get_regions.py +34 -0
- pulumi_nomad/get_scaling_policies.py +0 -4
- pulumi_nomad/get_scaling_policy.py +0 -4
- pulumi_nomad/get_scheduler_policy.py +0 -4
- pulumi_nomad/get_variable.py +0 -4
- pulumi_nomad/get_volumes.py +0 -4
- pulumi_nomad/job.py +16 -16
- pulumi_nomad/namespace.py +14 -16
- pulumi_nomad/node_pool.py +2 -4
- pulumi_nomad/outputs.py +94 -148
- pulumi_nomad/quote_specification.py +4 -6
- pulumi_nomad/scheduler_config.py +6 -10
- pulumi_nomad/sentinel_policy.py +6 -10
- pulumi_nomad/variable.py +14 -18
- pulumi_nomad/volume.py +15 -87
- {pulumi_nomad-2.2.0a1710156747.dist-info → pulumi_nomad-2.2.1.dist-info}/METADATA +1 -1
- pulumi_nomad-2.2.1.dist-info/RECORD +54 -0
- {pulumi_nomad-2.2.0a1710156747.dist-info → pulumi_nomad-2.2.1.dist-info}/WHEEL +1 -1
- pulumi_nomad-2.2.0a1710156747.dist-info/RECORD +0 -54
- {pulumi_nomad-2.2.0a1710156747.dist-info → pulumi_nomad-2.2.1.dist-info}/top_level.txt +0 -0
pulumi_nomad/outputs.py
CHANGED
@@ -97,6 +97,8 @@ class AclAuthMethodConfig(dict):
|
|
97
97
|
suggest = "discovery_ca_pems"
|
98
98
|
elif key == "listClaimMappings":
|
99
99
|
suggest = "list_claim_mappings"
|
100
|
+
elif key == "oidcDisableUserinfo":
|
101
|
+
suggest = "oidc_disable_userinfo"
|
100
102
|
elif key == "oidcScopes":
|
101
103
|
suggest = "oidc_scopes"
|
102
104
|
elif key == "signingAlgs":
|
@@ -122,19 +124,33 @@ class AclAuthMethodConfig(dict):
|
|
122
124
|
claim_mappings: Optional[Mapping[str, str]] = None,
|
123
125
|
discovery_ca_pems: Optional[Sequence[str]] = None,
|
124
126
|
list_claim_mappings: Optional[Mapping[str, str]] = None,
|
127
|
+
oidc_disable_userinfo: Optional[bool] = None,
|
125
128
|
oidc_scopes: Optional[Sequence[str]] = None,
|
126
129
|
signing_algs: Optional[Sequence[str]] = None):
|
127
130
|
"""
|
128
|
-
:param Sequence[str] allowed_redirect_uris: A list of allowed values
|
129
|
-
|
130
|
-
:param str
|
131
|
-
|
132
|
-
:param
|
133
|
-
|
134
|
-
:param
|
135
|
-
|
136
|
-
:param Sequence[str]
|
137
|
-
|
131
|
+
:param Sequence[str] allowed_redirect_uris: `([]string: <optional>)` - A list of allowed values
|
132
|
+
that can be used for the redirect URI.
|
133
|
+
:param str oidc_client_id: `(string: <required>)` - The OAuth Client ID configured
|
134
|
+
with the OIDC provider.
|
135
|
+
:param str oidc_client_secret: `(string: <required>)` - The OAuth Client Secret
|
136
|
+
configured with the OIDC provider.
|
137
|
+
:param str oidc_discovery_url: `(string: <required>)` - The OIDC Discovery URL,
|
138
|
+
without any .well-known component (base path).
|
139
|
+
:param Sequence[str] bound_audiences: `([]string: <optional>)` - List of auth claims that are
|
140
|
+
valid for login.
|
141
|
+
:param Mapping[str, str] claim_mappings: `(map[string]string: <optional>)` - Mappings of claims (key)
|
142
|
+
that will be copied to a metadata field (value).
|
143
|
+
:param Sequence[str] discovery_ca_pems: `([]string: <optional>)` - PEM encoded CA certs for use
|
144
|
+
by the TLS client used to talk with the OIDC Discovery URL.
|
145
|
+
:param Mapping[str, str] list_claim_mappings: `(map[string]string: <optional>)` - Mappings of list
|
146
|
+
claims (key) that will be copied to a metadata field (value).
|
147
|
+
:param bool oidc_disable_userinfo: `(bool: false)` - When set to `true`, Nomad will
|
148
|
+
not make a request to the identity provider to get OIDC `UserInfo`.
|
149
|
+
You may wish to set this if your identity provider doesn't send any
|
150
|
+
additional claims from the `UserInfo` endpoint.
|
151
|
+
:param Sequence[str] oidc_scopes: `([]string: <optional>)` - List of OIDC scopes.
|
152
|
+
:param Sequence[str] signing_algs: `([]string: <optional>)` - A list of supported signing
|
153
|
+
algorithms.
|
138
154
|
"""
|
139
155
|
pulumi.set(__self__, "allowed_redirect_uris", allowed_redirect_uris)
|
140
156
|
pulumi.set(__self__, "oidc_client_id", oidc_client_id)
|
@@ -148,6 +164,8 @@ class AclAuthMethodConfig(dict):
|
|
148
164
|
pulumi.set(__self__, "discovery_ca_pems", discovery_ca_pems)
|
149
165
|
if list_claim_mappings is not None:
|
150
166
|
pulumi.set(__self__, "list_claim_mappings", list_claim_mappings)
|
167
|
+
if oidc_disable_userinfo is not None:
|
168
|
+
pulumi.set(__self__, "oidc_disable_userinfo", oidc_disable_userinfo)
|
151
169
|
if oidc_scopes is not None:
|
152
170
|
pulumi.set(__self__, "oidc_scopes", oidc_scopes)
|
153
171
|
if signing_algs is not None:
|
@@ -157,7 +175,8 @@ class AclAuthMethodConfig(dict):
|
|
157
175
|
@pulumi.getter(name="allowedRedirectUris")
|
158
176
|
def allowed_redirect_uris(self) -> Sequence[str]:
|
159
177
|
"""
|
160
|
-
A list of allowed values
|
178
|
+
`([]string: <optional>)` - A list of allowed values
|
179
|
+
that can be used for the redirect URI.
|
161
180
|
"""
|
162
181
|
return pulumi.get(self, "allowed_redirect_uris")
|
163
182
|
|
@@ -165,7 +184,8 @@ class AclAuthMethodConfig(dict):
|
|
165
184
|
@pulumi.getter(name="oidcClientId")
|
166
185
|
def oidc_client_id(self) -> str:
|
167
186
|
"""
|
168
|
-
The OAuth Client ID configured
|
187
|
+
`(string: <required>)` - The OAuth Client ID configured
|
188
|
+
with the OIDC provider.
|
169
189
|
"""
|
170
190
|
return pulumi.get(self, "oidc_client_id")
|
171
191
|
|
@@ -173,7 +193,8 @@ class AclAuthMethodConfig(dict):
|
|
173
193
|
@pulumi.getter(name="oidcClientSecret")
|
174
194
|
def oidc_client_secret(self) -> str:
|
175
195
|
"""
|
176
|
-
The OAuth Client Secret
|
196
|
+
`(string: <required>)` - The OAuth Client Secret
|
197
|
+
configured with the OIDC provider.
|
177
198
|
"""
|
178
199
|
return pulumi.get(self, "oidc_client_secret")
|
179
200
|
|
@@ -181,7 +202,8 @@ class AclAuthMethodConfig(dict):
|
|
181
202
|
@pulumi.getter(name="oidcDiscoveryUrl")
|
182
203
|
def oidc_discovery_url(self) -> str:
|
183
204
|
"""
|
184
|
-
The OIDC Discovery URL,
|
205
|
+
`(string: <required>)` - The OIDC Discovery URL,
|
206
|
+
without any .well-known component (base path).
|
185
207
|
"""
|
186
208
|
return pulumi.get(self, "oidc_discovery_url")
|
187
209
|
|
@@ -189,7 +211,8 @@ class AclAuthMethodConfig(dict):
|
|
189
211
|
@pulumi.getter(name="boundAudiences")
|
190
212
|
def bound_audiences(self) -> Optional[Sequence[str]]:
|
191
213
|
"""
|
192
|
-
List of auth claims that are
|
214
|
+
`([]string: <optional>)` - List of auth claims that are
|
215
|
+
valid for login.
|
193
216
|
"""
|
194
217
|
return pulumi.get(self, "bound_audiences")
|
195
218
|
|
@@ -197,7 +220,8 @@ class AclAuthMethodConfig(dict):
|
|
197
220
|
@pulumi.getter(name="claimMappings")
|
198
221
|
def claim_mappings(self) -> Optional[Mapping[str, str]]:
|
199
222
|
"""
|
200
|
-
Mappings of claims (key)
|
223
|
+
`(map[string]string: <optional>)` - Mappings of claims (key)
|
224
|
+
that will be copied to a metadata field (value).
|
201
225
|
"""
|
202
226
|
return pulumi.get(self, "claim_mappings")
|
203
227
|
|
@@ -205,7 +229,8 @@ class AclAuthMethodConfig(dict):
|
|
205
229
|
@pulumi.getter(name="discoveryCaPems")
|
206
230
|
def discovery_ca_pems(self) -> Optional[Sequence[str]]:
|
207
231
|
"""
|
208
|
-
PEM encoded CA certs for use
|
232
|
+
`([]string: <optional>)` - PEM encoded CA certs for use
|
233
|
+
by the TLS client used to talk with the OIDC Discovery URL.
|
209
234
|
"""
|
210
235
|
return pulumi.get(self, "discovery_ca_pems")
|
211
236
|
|
@@ -213,15 +238,27 @@ class AclAuthMethodConfig(dict):
|
|
213
238
|
@pulumi.getter(name="listClaimMappings")
|
214
239
|
def list_claim_mappings(self) -> Optional[Mapping[str, str]]:
|
215
240
|
"""
|
216
|
-
|
241
|
+
`(map[string]string: <optional>)` - Mappings of list
|
242
|
+
claims (key) that will be copied to a metadata field (value).
|
217
243
|
"""
|
218
244
|
return pulumi.get(self, "list_claim_mappings")
|
219
245
|
|
246
|
+
@property
|
247
|
+
@pulumi.getter(name="oidcDisableUserinfo")
|
248
|
+
def oidc_disable_userinfo(self) -> Optional[bool]:
|
249
|
+
"""
|
250
|
+
`(bool: false)` - When set to `true`, Nomad will
|
251
|
+
not make a request to the identity provider to get OIDC `UserInfo`.
|
252
|
+
You may wish to set this if your identity provider doesn't send any
|
253
|
+
additional claims from the `UserInfo` endpoint.
|
254
|
+
"""
|
255
|
+
return pulumi.get(self, "oidc_disable_userinfo")
|
256
|
+
|
220
257
|
@property
|
221
258
|
@pulumi.getter(name="oidcScopes")
|
222
259
|
def oidc_scopes(self) -> Optional[Sequence[str]]:
|
223
260
|
"""
|
224
|
-
List of OIDC scopes.
|
261
|
+
`([]string: <optional>)` - List of OIDC scopes.
|
225
262
|
"""
|
226
263
|
return pulumi.get(self, "oidc_scopes")
|
227
264
|
|
@@ -229,7 +266,8 @@ class AclAuthMethodConfig(dict):
|
|
229
266
|
@pulumi.getter(name="signingAlgs")
|
230
267
|
def signing_algs(self) -> Optional[Sequence[str]]:
|
231
268
|
"""
|
232
|
-
A list of supported signing
|
269
|
+
`([]string: <optional>)` - A list of supported signing
|
270
|
+
algorithms.
|
233
271
|
"""
|
234
272
|
return pulumi.get(self, "signing_algs")
|
235
273
|
|
@@ -259,15 +297,10 @@ class AclPolicyJobAcl(dict):
|
|
259
297
|
namespace: Optional[str] = None,
|
260
298
|
task: Optional[str] = None):
|
261
299
|
"""
|
262
|
-
:param str job_id:
|
263
|
-
|
264
|
-
:param str
|
265
|
-
|
266
|
-
:param str namespace: `(string: "default")` - The namespace to attach the policy.
|
267
|
-
Required if `job_id` is set.
|
268
|
-
:param str task: `(string: <optional>` - The task to attach the policy.
|
269
|
-
|
270
|
-
[nomad_docs_wi]: https://www.nomadproject.io/docs/concepts/workload-identity#workload-associated-acl-policies
|
300
|
+
:param str job_id: Job
|
301
|
+
:param str group: Group
|
302
|
+
:param str namespace: Namespace
|
303
|
+
:param str task: Task
|
271
304
|
"""
|
272
305
|
pulumi.set(__self__, "job_id", job_id)
|
273
306
|
if group is not None:
|
@@ -281,8 +314,7 @@ class AclPolicyJobAcl(dict):
|
|
281
314
|
@pulumi.getter(name="jobId")
|
282
315
|
def job_id(self) -> str:
|
283
316
|
"""
|
284
|
-
|
285
|
-
`group` is set.
|
317
|
+
Job
|
286
318
|
"""
|
287
319
|
return pulumi.get(self, "job_id")
|
288
320
|
|
@@ -290,8 +322,7 @@ class AclPolicyJobAcl(dict):
|
|
290
322
|
@pulumi.getter
|
291
323
|
def group(self) -> Optional[str]:
|
292
324
|
"""
|
293
|
-
|
294
|
-
`task` is set.
|
325
|
+
Group
|
295
326
|
"""
|
296
327
|
return pulumi.get(self, "group")
|
297
328
|
|
@@ -299,8 +330,7 @@ class AclPolicyJobAcl(dict):
|
|
299
330
|
@pulumi.getter
|
300
331
|
def namespace(self) -> Optional[str]:
|
301
332
|
"""
|
302
|
-
|
303
|
-
Required if `job_id` is set.
|
333
|
+
Namespace
|
304
334
|
"""
|
305
335
|
return pulumi.get(self, "namespace")
|
306
336
|
|
@@ -308,9 +338,7 @@ class AclPolicyJobAcl(dict):
|
|
308
338
|
@pulumi.getter
|
309
339
|
def task(self) -> Optional[str]:
|
310
340
|
"""
|
311
|
-
|
312
|
-
|
313
|
-
[nomad_docs_wi]: https://www.nomadproject.io/docs/concepts/workload-identity#workload-associated-acl-policies
|
341
|
+
Task
|
314
342
|
"""
|
315
343
|
return pulumi.get(self, "task")
|
316
344
|
|
@@ -591,24 +619,12 @@ class CsiVolumeRegistrationMountOptions(dict):
|
|
591
619
|
class CsiVolumeRegistrationTopology(dict):
|
592
620
|
def __init__(__self__, *,
|
593
621
|
segments: Optional[Mapping[str, str]] = None):
|
594
|
-
"""
|
595
|
-
:param Mapping[str, str] segments: `(map[string]string)` - Define the attributes for the topology request.
|
596
|
-
|
597
|
-
In addition to the above arguments, the following attributes are exported and
|
598
|
-
can be referenced:
|
599
|
-
"""
|
600
622
|
if segments is not None:
|
601
623
|
pulumi.set(__self__, "segments", segments)
|
602
624
|
|
603
625
|
@property
|
604
626
|
@pulumi.getter
|
605
627
|
def segments(self) -> Optional[Mapping[str, str]]:
|
606
|
-
"""
|
607
|
-
`(map[string]string)` - Define the attributes for the topology request.
|
608
|
-
|
609
|
-
In addition to the above arguments, the following attributes are exported and
|
610
|
-
can be referenced:
|
611
|
-
"""
|
612
628
|
return pulumi.get(self, "segments")
|
613
629
|
|
614
630
|
|
@@ -636,7 +652,7 @@ class CsiVolumeRegistrationTopologyRequestRequired(dict):
|
|
636
652
|
def __init__(__self__, *,
|
637
653
|
topologies: Sequence['outputs.CsiVolumeRegistrationTopologyRequestRequiredTopology']):
|
638
654
|
"""
|
639
|
-
:param Sequence['CsiVolumeRegistrationTopologyRequestRequiredTopologyArgs'] topologies:
|
655
|
+
:param Sequence['CsiVolumeRegistrationTopologyRequestRequiredTopologyArgs'] topologies: Defines the location for the volume.
|
640
656
|
"""
|
641
657
|
pulumi.set(__self__, "topologies", topologies)
|
642
658
|
|
@@ -644,7 +660,7 @@ class CsiVolumeRegistrationTopologyRequestRequired(dict):
|
|
644
660
|
@pulumi.getter
|
645
661
|
def topologies(self) -> Sequence['outputs.CsiVolumeRegistrationTopologyRequestRequiredTopology']:
|
646
662
|
"""
|
647
|
-
|
663
|
+
Defines the location for the volume.
|
648
664
|
"""
|
649
665
|
return pulumi.get(self, "topologies")
|
650
666
|
|
@@ -654,10 +670,7 @@ class CsiVolumeRegistrationTopologyRequestRequiredTopology(dict):
|
|
654
670
|
def __init__(__self__, *,
|
655
671
|
segments: Mapping[str, str]):
|
656
672
|
"""
|
657
|
-
:param Mapping[str, str] segments:
|
658
|
-
|
659
|
-
In addition to the above arguments, the following attributes are exported and
|
660
|
-
can be referenced:
|
673
|
+
:param Mapping[str, str] segments: Define attributes for the topology request.
|
661
674
|
"""
|
662
675
|
pulumi.set(__self__, "segments", segments)
|
663
676
|
|
@@ -665,10 +678,7 @@ class CsiVolumeRegistrationTopologyRequestRequiredTopology(dict):
|
|
665
678
|
@pulumi.getter
|
666
679
|
def segments(self) -> Mapping[str, str]:
|
667
680
|
"""
|
668
|
-
|
669
|
-
|
670
|
-
In addition to the above arguments, the following attributes are exported and
|
671
|
-
can be referenced:
|
681
|
+
Define attributes for the topology request.
|
672
682
|
"""
|
673
683
|
return pulumi.get(self, "segments")
|
674
684
|
|
@@ -677,24 +687,12 @@ class CsiVolumeRegistrationTopologyRequestRequiredTopology(dict):
|
|
677
687
|
class CsiVolumeTopology(dict):
|
678
688
|
def __init__(__self__, *,
|
679
689
|
segments: Optional[Mapping[str, str]] = None):
|
680
|
-
"""
|
681
|
-
:param Mapping[str, str] segments: `(map[string]string)` - Define the attributes for the topology request.
|
682
|
-
|
683
|
-
In addition to the above arguments, the following attributes are exported and
|
684
|
-
can be referenced:
|
685
|
-
"""
|
686
690
|
if segments is not None:
|
687
691
|
pulumi.set(__self__, "segments", segments)
|
688
692
|
|
689
693
|
@property
|
690
694
|
@pulumi.getter
|
691
695
|
def segments(self) -> Optional[Mapping[str, str]]:
|
692
|
-
"""
|
693
|
-
`(map[string]string)` - Define the attributes for the topology request.
|
694
|
-
|
695
|
-
In addition to the above arguments, the following attributes are exported and
|
696
|
-
can be referenced:
|
697
|
-
"""
|
698
696
|
return pulumi.get(self, "segments")
|
699
697
|
|
700
698
|
|
@@ -734,7 +732,7 @@ class CsiVolumeTopologyRequestPreferred(dict):
|
|
734
732
|
def __init__(__self__, *,
|
735
733
|
topologies: Sequence['outputs.CsiVolumeTopologyRequestPreferredTopology']):
|
736
734
|
"""
|
737
|
-
:param Sequence['CsiVolumeTopologyRequestPreferredTopologyArgs'] topologies:
|
735
|
+
:param Sequence['CsiVolumeTopologyRequestPreferredTopologyArgs'] topologies: Defines the location for the volume.
|
738
736
|
"""
|
739
737
|
pulumi.set(__self__, "topologies", topologies)
|
740
738
|
|
@@ -742,7 +740,7 @@ class CsiVolumeTopologyRequestPreferred(dict):
|
|
742
740
|
@pulumi.getter
|
743
741
|
def topologies(self) -> Sequence['outputs.CsiVolumeTopologyRequestPreferredTopology']:
|
744
742
|
"""
|
745
|
-
|
743
|
+
Defines the location for the volume.
|
746
744
|
"""
|
747
745
|
return pulumi.get(self, "topologies")
|
748
746
|
|
@@ -752,10 +750,7 @@ class CsiVolumeTopologyRequestPreferredTopology(dict):
|
|
752
750
|
def __init__(__self__, *,
|
753
751
|
segments: Mapping[str, str]):
|
754
752
|
"""
|
755
|
-
:param Mapping[str, str] segments:
|
756
|
-
|
757
|
-
In addition to the above arguments, the following attributes are exported and
|
758
|
-
can be referenced:
|
753
|
+
:param Mapping[str, str] segments: Define the attributes for the topology request.
|
759
754
|
"""
|
760
755
|
pulumi.set(__self__, "segments", segments)
|
761
756
|
|
@@ -763,10 +758,7 @@ class CsiVolumeTopologyRequestPreferredTopology(dict):
|
|
763
758
|
@pulumi.getter
|
764
759
|
def segments(self) -> Mapping[str, str]:
|
765
760
|
"""
|
766
|
-
|
767
|
-
|
768
|
-
In addition to the above arguments, the following attributes are exported and
|
769
|
-
can be referenced:
|
761
|
+
Define the attributes for the topology request.
|
770
762
|
"""
|
771
763
|
return pulumi.get(self, "segments")
|
772
764
|
|
@@ -776,7 +768,7 @@ class CsiVolumeTopologyRequestRequired(dict):
|
|
776
768
|
def __init__(__self__, *,
|
777
769
|
topologies: Sequence['outputs.CsiVolumeTopologyRequestRequiredTopology']):
|
778
770
|
"""
|
779
|
-
:param Sequence['CsiVolumeTopologyRequestRequiredTopologyArgs'] topologies:
|
771
|
+
:param Sequence['CsiVolumeTopologyRequestRequiredTopologyArgs'] topologies: Defines the location for the volume.
|
780
772
|
"""
|
781
773
|
pulumi.set(__self__, "topologies", topologies)
|
782
774
|
|
@@ -784,7 +776,7 @@ class CsiVolumeTopologyRequestRequired(dict):
|
|
784
776
|
@pulumi.getter
|
785
777
|
def topologies(self) -> Sequence['outputs.CsiVolumeTopologyRequestRequiredTopology']:
|
786
778
|
"""
|
787
|
-
|
779
|
+
Defines the location for the volume.
|
788
780
|
"""
|
789
781
|
return pulumi.get(self, "topologies")
|
790
782
|
|
@@ -794,10 +786,7 @@ class CsiVolumeTopologyRequestRequiredTopology(dict):
|
|
794
786
|
def __init__(__self__, *,
|
795
787
|
segments: Mapping[str, str]):
|
796
788
|
"""
|
797
|
-
:param Mapping[str, str] segments:
|
798
|
-
|
799
|
-
In addition to the above arguments, the following attributes are exported and
|
800
|
-
can be referenced:
|
789
|
+
:param Mapping[str, str] segments: Define the attributes for the topology request.
|
801
790
|
"""
|
802
791
|
pulumi.set(__self__, "segments", segments)
|
803
792
|
|
@@ -805,10 +794,7 @@ class CsiVolumeTopologyRequestRequiredTopology(dict):
|
|
805
794
|
@pulumi.getter
|
806
795
|
def segments(self) -> Mapping[str, str]:
|
807
796
|
"""
|
808
|
-
|
809
|
-
|
810
|
-
In addition to the above arguments, the following attributes are exported and
|
811
|
-
can be referenced:
|
797
|
+
Define the attributes for the topology request.
|
812
798
|
"""
|
813
799
|
return pulumi.get(self, "segments")
|
814
800
|
|
@@ -929,24 +915,12 @@ class ExternalVolumeMountOptions(dict):
|
|
929
915
|
class ExternalVolumeTopology(dict):
|
930
916
|
def __init__(__self__, *,
|
931
917
|
segments: Optional[Mapping[str, str]] = None):
|
932
|
-
"""
|
933
|
-
:param Mapping[str, str] segments: `(map[string]string)` - Define the attributes for the topology request.
|
934
|
-
|
935
|
-
In addition to the above arguments, the following attributes are exported and
|
936
|
-
can be referenced:
|
937
|
-
"""
|
938
918
|
if segments is not None:
|
939
919
|
pulumi.set(__self__, "segments", segments)
|
940
920
|
|
941
921
|
@property
|
942
922
|
@pulumi.getter
|
943
923
|
def segments(self) -> Optional[Mapping[str, str]]:
|
944
|
-
"""
|
945
|
-
`(map[string]string)` - Define the attributes for the topology request.
|
946
|
-
|
947
|
-
In addition to the above arguments, the following attributes are exported and
|
948
|
-
can be referenced:
|
949
|
-
"""
|
950
924
|
return pulumi.get(self, "segments")
|
951
925
|
|
952
926
|
|
@@ -986,7 +960,7 @@ class ExternalVolumeTopologyRequestPreferred(dict):
|
|
986
960
|
def __init__(__self__, *,
|
987
961
|
topologies: Sequence['outputs.ExternalVolumeTopologyRequestPreferredTopology']):
|
988
962
|
"""
|
989
|
-
:param Sequence['ExternalVolumeTopologyRequestPreferredTopologyArgs'] topologies:
|
963
|
+
:param Sequence['ExternalVolumeTopologyRequestPreferredTopologyArgs'] topologies: Defines the location for the volume.
|
990
964
|
"""
|
991
965
|
pulumi.set(__self__, "topologies", topologies)
|
992
966
|
|
@@ -994,7 +968,7 @@ class ExternalVolumeTopologyRequestPreferred(dict):
|
|
994
968
|
@pulumi.getter
|
995
969
|
def topologies(self) -> Sequence['outputs.ExternalVolumeTopologyRequestPreferredTopology']:
|
996
970
|
"""
|
997
|
-
|
971
|
+
Defines the location for the volume.
|
998
972
|
"""
|
999
973
|
return pulumi.get(self, "topologies")
|
1000
974
|
|
@@ -1004,10 +978,7 @@ class ExternalVolumeTopologyRequestPreferredTopology(dict):
|
|
1004
978
|
def __init__(__self__, *,
|
1005
979
|
segments: Mapping[str, str]):
|
1006
980
|
"""
|
1007
|
-
:param Mapping[str, str] segments:
|
1008
|
-
|
1009
|
-
In addition to the above arguments, the following attributes are exported and
|
1010
|
-
can be referenced:
|
981
|
+
:param Mapping[str, str] segments: Define the attributes for the topology request.
|
1011
982
|
"""
|
1012
983
|
pulumi.set(__self__, "segments", segments)
|
1013
984
|
|
@@ -1015,10 +986,7 @@ class ExternalVolumeTopologyRequestPreferredTopology(dict):
|
|
1015
986
|
@pulumi.getter
|
1016
987
|
def segments(self) -> Mapping[str, str]:
|
1017
988
|
"""
|
1018
|
-
|
1019
|
-
|
1020
|
-
In addition to the above arguments, the following attributes are exported and
|
1021
|
-
can be referenced:
|
989
|
+
Define the attributes for the topology request.
|
1022
990
|
"""
|
1023
991
|
return pulumi.get(self, "segments")
|
1024
992
|
|
@@ -1028,7 +996,7 @@ class ExternalVolumeTopologyRequestRequired(dict):
|
|
1028
996
|
def __init__(__self__, *,
|
1029
997
|
topologies: Sequence['outputs.ExternalVolumeTopologyRequestRequiredTopology']):
|
1030
998
|
"""
|
1031
|
-
:param Sequence['ExternalVolumeTopologyRequestRequiredTopologyArgs'] topologies:
|
999
|
+
:param Sequence['ExternalVolumeTopologyRequestRequiredTopologyArgs'] topologies: Defines the location for the volume.
|
1032
1000
|
"""
|
1033
1001
|
pulumi.set(__self__, "topologies", topologies)
|
1034
1002
|
|
@@ -1036,7 +1004,7 @@ class ExternalVolumeTopologyRequestRequired(dict):
|
|
1036
1004
|
@pulumi.getter
|
1037
1005
|
def topologies(self) -> Sequence['outputs.ExternalVolumeTopologyRequestRequiredTopology']:
|
1038
1006
|
"""
|
1039
|
-
|
1007
|
+
Defines the location for the volume.
|
1040
1008
|
"""
|
1041
1009
|
return pulumi.get(self, "topologies")
|
1042
1010
|
|
@@ -1046,10 +1014,7 @@ class ExternalVolumeTopologyRequestRequiredTopology(dict):
|
|
1046
1014
|
def __init__(__self__, *,
|
1047
1015
|
segments: Mapping[str, str]):
|
1048
1016
|
"""
|
1049
|
-
:param Mapping[str, str] segments:
|
1050
|
-
|
1051
|
-
In addition to the above arguments, the following attributes are exported and
|
1052
|
-
can be referenced:
|
1017
|
+
:param Mapping[str, str] segments: Define the attributes for the topology request.
|
1053
1018
|
"""
|
1054
1019
|
pulumi.set(__self__, "segments", segments)
|
1055
1020
|
|
@@ -1057,10 +1022,7 @@ class ExternalVolumeTopologyRequestRequiredTopology(dict):
|
|
1057
1022
|
@pulumi.getter
|
1058
1023
|
def segments(self) -> Mapping[str, str]:
|
1059
1024
|
"""
|
1060
|
-
|
1061
|
-
|
1062
|
-
In addition to the above arguments, the following attributes are exported and
|
1063
|
-
can be referenced:
|
1025
|
+
Define the attributes for the topology request.
|
1064
1026
|
"""
|
1065
1027
|
return pulumi.get(self, "segments")
|
1066
1028
|
|
@@ -1712,24 +1674,12 @@ class VolumeMountOptions(dict):
|
|
1712
1674
|
class VolumeTopology(dict):
|
1713
1675
|
def __init__(__self__, *,
|
1714
1676
|
segments: Optional[Mapping[str, str]] = None):
|
1715
|
-
"""
|
1716
|
-
:param Mapping[str, str] segments: `(map[string]string)` - Define the attributes for the topology request.
|
1717
|
-
|
1718
|
-
In addition to the above arguments, the following attributes are exported and
|
1719
|
-
can be referenced:
|
1720
|
-
"""
|
1721
1677
|
if segments is not None:
|
1722
1678
|
pulumi.set(__self__, "segments", segments)
|
1723
1679
|
|
1724
1680
|
@property
|
1725
1681
|
@pulumi.getter
|
1726
1682
|
def segments(self) -> Optional[Mapping[str, str]]:
|
1727
|
-
"""
|
1728
|
-
`(map[string]string)` - Define the attributes for the topology request.
|
1729
|
-
|
1730
|
-
In addition to the above arguments, the following attributes are exported and
|
1731
|
-
can be referenced:
|
1732
|
-
"""
|
1733
1683
|
return pulumi.get(self, "segments")
|
1734
1684
|
|
1735
1685
|
|
@@ -1757,7 +1707,7 @@ class VolumeTopologyRequestRequired(dict):
|
|
1757
1707
|
def __init__(__self__, *,
|
1758
1708
|
topologies: Sequence['outputs.VolumeTopologyRequestRequiredTopology']):
|
1759
1709
|
"""
|
1760
|
-
:param Sequence['VolumeTopologyRequestRequiredTopologyArgs'] topologies:
|
1710
|
+
:param Sequence['VolumeTopologyRequestRequiredTopologyArgs'] topologies: Defines the location for the volume.
|
1761
1711
|
"""
|
1762
1712
|
pulumi.set(__self__, "topologies", topologies)
|
1763
1713
|
|
@@ -1765,7 +1715,7 @@ class VolumeTopologyRequestRequired(dict):
|
|
1765
1715
|
@pulumi.getter
|
1766
1716
|
def topologies(self) -> Sequence['outputs.VolumeTopologyRequestRequiredTopology']:
|
1767
1717
|
"""
|
1768
|
-
|
1718
|
+
Defines the location for the volume.
|
1769
1719
|
"""
|
1770
1720
|
return pulumi.get(self, "topologies")
|
1771
1721
|
|
@@ -1775,10 +1725,7 @@ class VolumeTopologyRequestRequiredTopology(dict):
|
|
1775
1725
|
def __init__(__self__, *,
|
1776
1726
|
segments: Mapping[str, str]):
|
1777
1727
|
"""
|
1778
|
-
:param Mapping[str, str] segments:
|
1779
|
-
|
1780
|
-
In addition to the above arguments, the following attributes are exported and
|
1781
|
-
can be referenced:
|
1728
|
+
:param Mapping[str, str] segments: Define attributes for the topology request.
|
1782
1729
|
"""
|
1783
1730
|
pulumi.set(__self__, "segments", segments)
|
1784
1731
|
|
@@ -1786,10 +1733,7 @@ class VolumeTopologyRequestRequiredTopology(dict):
|
|
1786
1733
|
@pulumi.getter
|
1787
1734
|
def segments(self) -> Mapping[str, str]:
|
1788
1735
|
"""
|
1789
|
-
|
1790
|
-
|
1791
|
-
In addition to the above arguments, the following attributes are exported and
|
1792
|
-
can be referenced:
|
1736
|
+
Define attributes for the topology request.
|
1793
1737
|
"""
|
1794
1738
|
return pulumi.get(self, "segments")
|
1795
1739
|
|
@@ -2103,7 +2047,8 @@ class GetAllocationsAllocationResult(dict):
|
|
2103
2047
|
:param int modify_index: `(int)` - The Raft index in which the allocation was last modified.
|
2104
2048
|
:param int modify_time: `(int)` - The timestamp of when the allocation was last modified.
|
2105
2049
|
:param str name: `(string)` - The name of the allocation.
|
2106
|
-
:param str namespace: `(string)` -
|
2050
|
+
:param str namespace: `(string: <optional>)` - Specifies the namespace to search for
|
2051
|
+
allocations in.
|
2107
2052
|
:param str next_allocation: `(string)` - The ID of the allocation that succeeds the allocation.
|
2108
2053
|
:param str node_id: `(string)` - The ID of the node to which the allocation was scheduled.
|
2109
2054
|
:param str node_name: `(string)` - The ID of the node to which the allocation was scheduled.
|
@@ -2238,7 +2183,8 @@ class GetAllocationsAllocationResult(dict):
|
|
2238
2183
|
@pulumi.getter
|
2239
2184
|
def namespace(self) -> str:
|
2240
2185
|
"""
|
2241
|
-
`(string)` -
|
2186
|
+
`(string: <optional>)` - Specifies the namespace to search for
|
2187
|
+
allocations in.
|
2242
2188
|
"""
|
2243
2189
|
return pulumi.get(self, "namespace")
|
2244
2190
|
|
@@ -144,12 +144,12 @@ class QuoteSpecification(pulumi.CustomResource):
|
|
144
144
|
|
145
145
|
Registering a quota specification:
|
146
146
|
|
147
|
-
<!--Start PulumiCodeChooser -->
|
148
147
|
```python
|
149
148
|
import pulumi
|
150
149
|
import pulumi_nomad as nomad
|
151
150
|
|
152
|
-
prod_api = nomad.QuoteSpecification("
|
151
|
+
prod_api = nomad.QuoteSpecification("prod_api",
|
152
|
+
name="prod-api",
|
153
153
|
description="Production instances of backend API servers",
|
154
154
|
limits=[nomad.QuoteSpecificationLimitArgs(
|
155
155
|
region="global",
|
@@ -159,7 +159,6 @@ class QuoteSpecification(pulumi.CustomResource):
|
|
159
159
|
),
|
160
160
|
)])
|
161
161
|
```
|
162
|
-
<!--End PulumiCodeChooser -->
|
163
162
|
|
164
163
|
:param str resource_name: The name of the resource.
|
165
164
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
@@ -181,12 +180,12 @@ class QuoteSpecification(pulumi.CustomResource):
|
|
181
180
|
|
182
181
|
Registering a quota specification:
|
183
182
|
|
184
|
-
<!--Start PulumiCodeChooser -->
|
185
183
|
```python
|
186
184
|
import pulumi
|
187
185
|
import pulumi_nomad as nomad
|
188
186
|
|
189
|
-
prod_api = nomad.QuoteSpecification("
|
187
|
+
prod_api = nomad.QuoteSpecification("prod_api",
|
188
|
+
name="prod-api",
|
190
189
|
description="Production instances of backend API servers",
|
191
190
|
limits=[nomad.QuoteSpecificationLimitArgs(
|
192
191
|
region="global",
|
@@ -196,7 +195,6 @@ class QuoteSpecification(pulumi.CustomResource):
|
|
196
195
|
),
|
197
196
|
)])
|
198
197
|
```
|
199
|
-
<!--End PulumiCodeChooser -->
|
200
198
|
|
201
199
|
:param str resource_name: The name of the resource.
|
202
200
|
:param QuoteSpecificationArgs args: The arguments to use to populate this resource's properties.
|