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.
Files changed (44) hide show
  1. pulumi_nomad/_inputs.py +92 -146
  2. pulumi_nomad/acl_auth_method.py +46 -41
  3. pulumi_nomad/acl_policy.py +0 -64
  4. pulumi_nomad/acl_token.py +18 -26
  5. pulumi_nomad/csi_volume.py +0 -72
  6. pulumi_nomad/csi_volume_registration.py +7 -79
  7. pulumi_nomad/external_volume.py +6 -78
  8. pulumi_nomad/get_acl_policies.py +0 -4
  9. pulumi_nomad/get_acl_policy.py +0 -4
  10. pulumi_nomad/get_acl_role.py +0 -4
  11. pulumi_nomad/get_acl_roles.py +0 -4
  12. pulumi_nomad/get_acl_token.py +0 -4
  13. pulumi_nomad/get_acl_tokens.py +0 -4
  14. pulumi_nomad/get_allocations.py +21 -5
  15. pulumi_nomad/get_datacenters.py +4 -8
  16. pulumi_nomad/get_deployments.py +0 -4
  17. pulumi_nomad/get_job.py +4 -9
  18. pulumi_nomad/get_job_parser.py +0 -24
  19. pulumi_nomad/get_namespace.py +0 -4
  20. pulumi_nomad/get_namespaces.py +2 -4
  21. pulumi_nomad/get_node_pool.py +0 -4
  22. pulumi_nomad/get_node_pools.py +0 -4
  23. pulumi_nomad/get_plugin.py +0 -4
  24. pulumi_nomad/get_plugins.py +0 -4
  25. pulumi_nomad/get_regions.py +34 -0
  26. pulumi_nomad/get_scaling_policies.py +0 -4
  27. pulumi_nomad/get_scaling_policy.py +0 -4
  28. pulumi_nomad/get_scheduler_policy.py +0 -4
  29. pulumi_nomad/get_variable.py +0 -4
  30. pulumi_nomad/get_volumes.py +0 -4
  31. pulumi_nomad/job.py +16 -16
  32. pulumi_nomad/namespace.py +14 -16
  33. pulumi_nomad/node_pool.py +2 -4
  34. pulumi_nomad/outputs.py +94 -148
  35. pulumi_nomad/quote_specification.py +4 -6
  36. pulumi_nomad/scheduler_config.py +6 -10
  37. pulumi_nomad/sentinel_policy.py +6 -10
  38. pulumi_nomad/variable.py +14 -18
  39. pulumi_nomad/volume.py +15 -87
  40. {pulumi_nomad-2.2.0a1710156747.dist-info → pulumi_nomad-2.2.1.dist-info}/METADATA +1 -1
  41. pulumi_nomad-2.2.1.dist-info/RECORD +54 -0
  42. {pulumi_nomad-2.2.0a1710156747.dist-info → pulumi_nomad-2.2.1.dist-info}/WHEEL +1 -1
  43. pulumi_nomad-2.2.0a1710156747.dist-info/RECORD +0 -54
  44. {pulumi_nomad-2.2.0a1710156747.dist-info → pulumi_nomad-2.2.1.dist-info}/top_level.txt +0 -0
@@ -144,22 +144,20 @@ class SchedulerConfig(pulumi.CustomResource):
144
144
 
145
145
  Set cluster scheduler configuration:
146
146
 
147
- <!--Start PulumiCodeChooser -->
148
147
  ```python
149
148
  import pulumi
150
149
  import pulumi_nomad as nomad
151
150
 
152
151
  config = nomad.SchedulerConfig("config",
152
+ scheduler_algorithm="spread",
153
153
  memory_oversubscription_enabled=True,
154
154
  preemption_config={
155
+ "system_scheduler_enabled": True,
155
156
  "batch_scheduler_enabled": True,
156
157
  "service_scheduler_enabled": True,
157
158
  "sysbatch_scheduler_enabled": True,
158
- "system_scheduler_enabled": True,
159
- },
160
- scheduler_algorithm="spread")
159
+ })
161
160
  ```
162
- <!--End PulumiCodeChooser -->
163
161
 
164
162
  :param str resource_name: The name of the resource.
165
163
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -185,22 +183,20 @@ class SchedulerConfig(pulumi.CustomResource):
185
183
 
186
184
  Set cluster scheduler configuration:
187
185
 
188
- <!--Start PulumiCodeChooser -->
189
186
  ```python
190
187
  import pulumi
191
188
  import pulumi_nomad as nomad
192
189
 
193
190
  config = nomad.SchedulerConfig("config",
191
+ scheduler_algorithm="spread",
194
192
  memory_oversubscription_enabled=True,
195
193
  preemption_config={
194
+ "system_scheduler_enabled": True,
196
195
  "batch_scheduler_enabled": True,
197
196
  "service_scheduler_enabled": True,
198
197
  "sysbatch_scheduler_enabled": True,
199
- "system_scheduler_enabled": True,
200
- },
201
- scheduler_algorithm="spread")
198
+ })
202
199
  ```
203
- <!--End PulumiCodeChooser -->
204
200
 
205
201
  :param str resource_name: The name of the resource.
206
202
  :param SchedulerConfigArgs args: The arguments to use to populate this resource's properties.
@@ -219,14 +219,13 @@ class SentinelPolicy(pulumi.CustomResource):
219
219
 
220
220
  ## Example Usage
221
221
 
222
- <!--Start PulumiCodeChooser -->
223
222
  ```python
224
223
  import pulumi
225
224
  import pulumi_nomad as nomad
226
225
 
227
226
  exec_only = nomad.SentinelPolicy("exec-only",
227
+ name="exec-only",
228
228
  description="Only allow jobs that are based on an exec driver.",
229
- enforcement_level="soft-mandatory",
230
229
  policy=\"\"\"main = rule { all_drivers_exec }
231
230
 
232
231
  # all_drivers_exec checks that all the drivers in use are exec
@@ -237,11 +236,10 @@ class SentinelPolicy(pulumi.CustomResource):
237
236
  }
238
237
  }
239
238
  }
240
-
241
239
  \"\"\",
242
- scope="submit-job")
240
+ scope="submit-job",
241
+ enforcement_level="soft-mandatory")
243
242
  ```
244
- <!--End PulumiCodeChooser -->
245
243
 
246
244
  :param str resource_name: The name of the resource.
247
245
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -269,14 +267,13 @@ class SentinelPolicy(pulumi.CustomResource):
269
267
 
270
268
  ## Example Usage
271
269
 
272
- <!--Start PulumiCodeChooser -->
273
270
  ```python
274
271
  import pulumi
275
272
  import pulumi_nomad as nomad
276
273
 
277
274
  exec_only = nomad.SentinelPolicy("exec-only",
275
+ name="exec-only",
278
276
  description="Only allow jobs that are based on an exec driver.",
279
- enforcement_level="soft-mandatory",
280
277
  policy=\"\"\"main = rule { all_drivers_exec }
281
278
 
282
279
  # all_drivers_exec checks that all the drivers in use are exec
@@ -287,11 +284,10 @@ class SentinelPolicy(pulumi.CustomResource):
287
284
  }
288
285
  }
289
286
  }
290
-
291
287
  \"\"\",
292
- scope="submit-job")
288
+ scope="submit-job",
289
+ enforcement_level="soft-mandatory")
293
290
  ```
294
- <!--End PulumiCodeChooser -->
295
291
 
296
292
  :param str resource_name: The name of the resource.
297
293
  :param SentinelPolicyArgs args: The arguments to use to populate this resource's properties.
pulumi_nomad/variable.py CHANGED
@@ -135,35 +135,33 @@ class Variable(pulumi.CustomResource):
135
135
 
136
136
  Creating a variable in the default namespace:
137
137
 
138
- <!--Start PulumiCodeChooser -->
139
138
  ```python
140
139
  import pulumi
141
140
  import pulumi_nomad as nomad
142
141
 
143
142
  example = nomad.Variable("example",
143
+ path="some/path/of/your/choosing",
144
144
  items={
145
145
  "example_key": "example_value",
146
- },
147
- path="some/path/of/your/choosing")
146
+ })
148
147
  ```
149
- <!--End PulumiCodeChooser -->
150
148
 
151
149
  Creating a variable in a custom namespace:
152
150
 
153
- <!--Start PulumiCodeChooser -->
154
151
  ```python
155
152
  import pulumi
156
153
  import pulumi_nomad as nomad
157
154
 
158
- example_namespace = nomad.Namespace("exampleNamespace", description="Example namespace.")
159
- example_variable = nomad.Variable("exampleVariable",
155
+ example = nomad.Namespace("example",
156
+ name="example",
157
+ description="Example namespace.")
158
+ example_variable = nomad.Variable("example",
160
159
  path="some/path/of/your/choosing",
161
- namespace=example_namespace.name,
160
+ namespace=example.name,
162
161
  items={
163
162
  "example_key": "example_value",
164
163
  })
165
164
  ```
166
- <!--End PulumiCodeChooser -->
167
165
 
168
166
  :param str resource_name: The name of the resource.
169
167
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -182,35 +180,33 @@ class Variable(pulumi.CustomResource):
182
180
 
183
181
  Creating a variable in the default namespace:
184
182
 
185
- <!--Start PulumiCodeChooser -->
186
183
  ```python
187
184
  import pulumi
188
185
  import pulumi_nomad as nomad
189
186
 
190
187
  example = nomad.Variable("example",
188
+ path="some/path/of/your/choosing",
191
189
  items={
192
190
  "example_key": "example_value",
193
- },
194
- path="some/path/of/your/choosing")
191
+ })
195
192
  ```
196
- <!--End PulumiCodeChooser -->
197
193
 
198
194
  Creating a variable in a custom namespace:
199
195
 
200
- <!--Start PulumiCodeChooser -->
201
196
  ```python
202
197
  import pulumi
203
198
  import pulumi_nomad as nomad
204
199
 
205
- example_namespace = nomad.Namespace("exampleNamespace", description="Example namespace.")
206
- example_variable = nomad.Variable("exampleVariable",
200
+ example = nomad.Namespace("example",
201
+ name="example",
202
+ description="Example namespace.")
203
+ example_variable = nomad.Variable("example",
207
204
  path="some/path/of/your/choosing",
208
- namespace=example_namespace.name,
205
+ namespace=example.name,
209
206
  items={
210
207
  "example_key": "example_value",
211
208
  })
212
209
  ```
213
- <!--End PulumiCodeChooser -->
214
210
 
215
211
  :param str resource_name: The name of the resource.
216
212
  :param VariableArgs args: The arguments to use to populate this resource's properties.
pulumi_nomad/volume.py CHANGED
@@ -45,7 +45,7 @@ class VolumeArgs:
45
45
  :param pulumi.Input[str] attachment_mode: `(string: <otional>)` - **Deprecated**. Use `capability` block instead. The storage API that will be used by the volume.
46
46
  :param pulumi.Input[Sequence[pulumi.Input['VolumeCapabilityArgs']]] capabilities: `(``Capability``: <required>)` - Options for validating the capability of a volume.
47
47
  :param pulumi.Input[Mapping[str, pulumi.Input[str]]] context: `(map[string]string: <optional>)` - An optional key-value map of strings passed directly to the CSI plugin to validate the volume.
48
- :param pulumi.Input[bool] deregister_on_destroy: `(boolean: false)` - If true, the volume will be deregistered on destroy.
48
+ :param pulumi.Input[bool] deregister_on_destroy: `(boolean: true)` - If true, the volume will be deregistered on destroy.
49
49
  :param pulumi.Input['VolumeMountOptionsArgs'] mount_options: `(block: <optional>)` Options for mounting `block-device` volumes without a pre-formatted file system.
50
50
  :param pulumi.Input[str] name: `(string: <required>)` - The display name for the volume.
51
51
  :param pulumi.Input[str] namespace: `(string: "default")` - The namespace in which to register the volume.
@@ -187,7 +187,7 @@ class VolumeArgs:
187
187
  @pulumi.getter(name="deregisterOnDestroy")
188
188
  def deregister_on_destroy(self) -> Optional[pulumi.Input[bool]]:
189
189
  """
190
- `(boolean: false)` - If true, the volume will be deregistered on destroy.
190
+ `(boolean: true)` - If true, the volume will be deregistered on destroy.
191
191
  """
192
192
  return pulumi.get(self, "deregister_on_destroy")
193
193
 
@@ -318,23 +318,14 @@ class _VolumeState:
318
318
  :param pulumi.Input[str] attachment_mode: `(string: <otional>)` - **Deprecated**. Use `capability` block instead. The storage API that will be used by the volume.
319
319
  :param pulumi.Input[Sequence[pulumi.Input['VolumeCapabilityArgs']]] capabilities: `(``Capability``: <required>)` - Options for validating the capability of a volume.
320
320
  :param pulumi.Input[Mapping[str, pulumi.Input[str]]] context: `(map[string]string: <optional>)` - An optional key-value map of strings passed directly to the CSI plugin to validate the volume.
321
- :param pulumi.Input[bool] controller_required: `(boolean)`
322
- :param pulumi.Input[int] controllers_expected: `(integer)`
323
- :param pulumi.Input[int] controllers_healthy: `(integer)`
324
- :param pulumi.Input[bool] deregister_on_destroy: `(boolean: false)` - If true, the volume will be deregistered on destroy.
321
+ :param pulumi.Input[bool] deregister_on_destroy: `(boolean: true)` - If true, the volume will be deregistered on destroy.
325
322
  :param pulumi.Input[str] external_id: `(string: <required>)` - The ID of the physical volume from the storage provider.
326
323
  :param pulumi.Input['VolumeMountOptionsArgs'] mount_options: `(block: <optional>)` Options for mounting `block-device` volumes without a pre-formatted file system.
327
324
  :param pulumi.Input[str] name: `(string: <required>)` - The display name for the volume.
328
325
  :param pulumi.Input[str] namespace: `(string: "default")` - The namespace in which to register the volume.
329
- :param pulumi.Input[int] nodes_expected: `(integer)`
330
- :param pulumi.Input[int] nodes_healthy: `(integer)`
331
326
  :param pulumi.Input[Mapping[str, pulumi.Input[str]]] parameters: `(map[string]string: <optional>)` - An optional key-value map of strings passed directly to the CSI plugin to configure the volume.
332
327
  :param pulumi.Input[str] plugin_id: `(string: <required>)` - The ID of the Nomad plugin for registering this volume.
333
- :param pulumi.Input[str] plugin_provider: `(string)`
334
- :param pulumi.Input[str] plugin_provider_version: `(string)`
335
- :param pulumi.Input[bool] schedulable: `(boolean)`
336
328
  :param pulumi.Input[Mapping[str, pulumi.Input[str]]] secrets: `(map[string]string: <optional>)` - An optional key-value map of strings used as credentials for publishing and unpublishing volumes.
337
- :param pulumi.Input[Sequence[pulumi.Input['VolumeTopologyArgs']]] topologies: `(List of topologies)`
338
329
  :param pulumi.Input['VolumeTopologyRequestArgs'] topology_request: `(``TopologyRequest``: <optional>)` - Specify locations (region, zone, rack, etc.) where the provisioned volume is accessible from.
339
330
  :param pulumi.Input[str] type: `(string: <required>)` - The type of the volume. Currently, only `csi` is supported.
340
331
  :param pulumi.Input[str] volume_id: `(string: <required>)` - The unique ID of the volume.
@@ -456,9 +447,6 @@ class _VolumeState:
456
447
  @property
457
448
  @pulumi.getter(name="controllerRequired")
458
449
  def controller_required(self) -> Optional[pulumi.Input[bool]]:
459
- """
460
- `(boolean)`
461
- """
462
450
  return pulumi.get(self, "controller_required")
463
451
 
464
452
  @controller_required.setter
@@ -468,9 +456,6 @@ class _VolumeState:
468
456
  @property
469
457
  @pulumi.getter(name="controllersExpected")
470
458
  def controllers_expected(self) -> Optional[pulumi.Input[int]]:
471
- """
472
- `(integer)`
473
- """
474
459
  return pulumi.get(self, "controllers_expected")
475
460
 
476
461
  @controllers_expected.setter
@@ -480,9 +465,6 @@ class _VolumeState:
480
465
  @property
481
466
  @pulumi.getter(name="controllersHealthy")
482
467
  def controllers_healthy(self) -> Optional[pulumi.Input[int]]:
483
- """
484
- `(integer)`
485
- """
486
468
  return pulumi.get(self, "controllers_healthy")
487
469
 
488
470
  @controllers_healthy.setter
@@ -493,7 +475,7 @@ class _VolumeState:
493
475
  @pulumi.getter(name="deregisterOnDestroy")
494
476
  def deregister_on_destroy(self) -> Optional[pulumi.Input[bool]]:
495
477
  """
496
- `(boolean: false)` - If true, the volume will be deregistered on destroy.
478
+ `(boolean: true)` - If true, the volume will be deregistered on destroy.
497
479
  """
498
480
  return pulumi.get(self, "deregister_on_destroy")
499
481
 
@@ -552,9 +534,6 @@ class _VolumeState:
552
534
  @property
553
535
  @pulumi.getter(name="nodesExpected")
554
536
  def nodes_expected(self) -> Optional[pulumi.Input[int]]:
555
- """
556
- `(integer)`
557
- """
558
537
  return pulumi.get(self, "nodes_expected")
559
538
 
560
539
  @nodes_expected.setter
@@ -564,9 +543,6 @@ class _VolumeState:
564
543
  @property
565
544
  @pulumi.getter(name="nodesHealthy")
566
545
  def nodes_healthy(self) -> Optional[pulumi.Input[int]]:
567
- """
568
- `(integer)`
569
- """
570
546
  return pulumi.get(self, "nodes_healthy")
571
547
 
572
548
  @nodes_healthy.setter
@@ -600,9 +576,6 @@ class _VolumeState:
600
576
  @property
601
577
  @pulumi.getter(name="pluginProvider")
602
578
  def plugin_provider(self) -> Optional[pulumi.Input[str]]:
603
- """
604
- `(string)`
605
- """
606
579
  return pulumi.get(self, "plugin_provider")
607
580
 
608
581
  @plugin_provider.setter
@@ -612,9 +585,6 @@ class _VolumeState:
612
585
  @property
613
586
  @pulumi.getter(name="pluginProviderVersion")
614
587
  def plugin_provider_version(self) -> Optional[pulumi.Input[str]]:
615
- """
616
- `(string)`
617
- """
618
588
  return pulumi.get(self, "plugin_provider_version")
619
589
 
620
590
  @plugin_provider_version.setter
@@ -624,9 +594,6 @@ class _VolumeState:
624
594
  @property
625
595
  @pulumi.getter
626
596
  def schedulable(self) -> Optional[pulumi.Input[bool]]:
627
- """
628
- `(boolean)`
629
- """
630
597
  return pulumi.get(self, "schedulable")
631
598
 
632
599
  @schedulable.setter
@@ -648,9 +615,6 @@ class _VolumeState:
648
615
  @property
649
616
  @pulumi.getter
650
617
  def topologies(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['VolumeTopologyArgs']]]]:
651
- """
652
- `(List of topologies)`
653
- """
654
618
  return pulumi.get(self, "topologies")
655
619
 
656
620
  @topologies.setter
@@ -720,18 +684,19 @@ class Volume(pulumi.CustomResource):
720
684
 
721
685
  Registering a volume:
722
686
 
723
- <!--Start PulumiCodeChooser -->
724
687
  ```python
725
688
  import pulumi
726
689
  import pulumi_nomad as nomad
727
690
 
691
+ # It can sometimes be helpful to wait for a particular plugin to be available
728
692
  ebs = nomad.get_plugin(plugin_id="aws-ebs0",
729
693
  wait_for_healthy=True)
730
- mysql_volume = nomad.Volume("mysqlVolume",
694
+ mysql_volume = nomad.Volume("mysql_volume",
731
695
  type="csi",
732
696
  plugin_id="aws-ebs0",
733
697
  volume_id="mysql_volume",
734
- external_id=module["hashistack"]["ebs_test_volume_id"],
698
+ name="mysql_volume",
699
+ external_id=hashistack["ebsTestVolumeId"],
735
700
  capabilities=[nomad.VolumeCapabilityArgs(
736
701
  access_mode="single-node-writer",
737
702
  attachment_mode="file-system",
@@ -758,7 +723,6 @@ class Volume(pulumi.CustomResource):
758
723
  ),
759
724
  opts=pulumi.ResourceOptions(depends_on=[ebs]))
760
725
  ```
761
- <!--End PulumiCodeChooser -->
762
726
 
763
727
  :param str resource_name: The name of the resource.
764
728
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -771,7 +735,7 @@ class Volume(pulumi.CustomResource):
771
735
  :param pulumi.Input[str] attachment_mode: `(string: <otional>)` - **Deprecated**. Use `capability` block instead. The storage API that will be used by the volume.
772
736
  :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['VolumeCapabilityArgs']]]] capabilities: `(``Capability``: <required>)` - Options for validating the capability of a volume.
773
737
  :param pulumi.Input[Mapping[str, pulumi.Input[str]]] context: `(map[string]string: <optional>)` - An optional key-value map of strings passed directly to the CSI plugin to validate the volume.
774
- :param pulumi.Input[bool] deregister_on_destroy: `(boolean: false)` - If true, the volume will be deregistered on destroy.
738
+ :param pulumi.Input[bool] deregister_on_destroy: `(boolean: true)` - If true, the volume will be deregistered on destroy.
775
739
  :param pulumi.Input[str] external_id: `(string: <required>)` - The ID of the physical volume from the storage provider.
776
740
  :param pulumi.Input[pulumi.InputType['VolumeMountOptionsArgs']] mount_options: `(block: <optional>)` Options for mounting `block-device` volumes without a pre-formatted file system.
777
741
  :param pulumi.Input[str] name: `(string: <required>)` - The display name for the volume.
@@ -794,18 +758,19 @@ class Volume(pulumi.CustomResource):
794
758
 
795
759
  Registering a volume:
796
760
 
797
- <!--Start PulumiCodeChooser -->
798
761
  ```python
799
762
  import pulumi
800
763
  import pulumi_nomad as nomad
801
764
 
765
+ # It can sometimes be helpful to wait for a particular plugin to be available
802
766
  ebs = nomad.get_plugin(plugin_id="aws-ebs0",
803
767
  wait_for_healthy=True)
804
- mysql_volume = nomad.Volume("mysqlVolume",
768
+ mysql_volume = nomad.Volume("mysql_volume",
805
769
  type="csi",
806
770
  plugin_id="aws-ebs0",
807
771
  volume_id="mysql_volume",
808
- external_id=module["hashistack"]["ebs_test_volume_id"],
772
+ name="mysql_volume",
773
+ external_id=hashistack["ebsTestVolumeId"],
809
774
  capabilities=[nomad.VolumeCapabilityArgs(
810
775
  access_mode="single-node-writer",
811
776
  attachment_mode="file-system",
@@ -832,7 +797,6 @@ class Volume(pulumi.CustomResource):
832
797
  ),
833
798
  opts=pulumi.ResourceOptions(depends_on=[ebs]))
834
799
  ```
835
- <!--End PulumiCodeChooser -->
836
800
 
837
801
  :param str resource_name: The name of the resource.
838
802
  :param VolumeArgs args: The arguments to use to populate this resource's properties.
@@ -955,23 +919,14 @@ class Volume(pulumi.CustomResource):
955
919
  :param pulumi.Input[str] attachment_mode: `(string: <otional>)` - **Deprecated**. Use `capability` block instead. The storage API that will be used by the volume.
956
920
  :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['VolumeCapabilityArgs']]]] capabilities: `(``Capability``: <required>)` - Options for validating the capability of a volume.
957
921
  :param pulumi.Input[Mapping[str, pulumi.Input[str]]] context: `(map[string]string: <optional>)` - An optional key-value map of strings passed directly to the CSI plugin to validate the volume.
958
- :param pulumi.Input[bool] controller_required: `(boolean)`
959
- :param pulumi.Input[int] controllers_expected: `(integer)`
960
- :param pulumi.Input[int] controllers_healthy: `(integer)`
961
- :param pulumi.Input[bool] deregister_on_destroy: `(boolean: false)` - If true, the volume will be deregistered on destroy.
922
+ :param pulumi.Input[bool] deregister_on_destroy: `(boolean: true)` - If true, the volume will be deregistered on destroy.
962
923
  :param pulumi.Input[str] external_id: `(string: <required>)` - The ID of the physical volume from the storage provider.
963
924
  :param pulumi.Input[pulumi.InputType['VolumeMountOptionsArgs']] mount_options: `(block: <optional>)` Options for mounting `block-device` volumes without a pre-formatted file system.
964
925
  :param pulumi.Input[str] name: `(string: <required>)` - The display name for the volume.
965
926
  :param pulumi.Input[str] namespace: `(string: "default")` - The namespace in which to register the volume.
966
- :param pulumi.Input[int] nodes_expected: `(integer)`
967
- :param pulumi.Input[int] nodes_healthy: `(integer)`
968
927
  :param pulumi.Input[Mapping[str, pulumi.Input[str]]] parameters: `(map[string]string: <optional>)` - An optional key-value map of strings passed directly to the CSI plugin to configure the volume.
969
928
  :param pulumi.Input[str] plugin_id: `(string: <required>)` - The ID of the Nomad plugin for registering this volume.
970
- :param pulumi.Input[str] plugin_provider: `(string)`
971
- :param pulumi.Input[str] plugin_provider_version: `(string)`
972
- :param pulumi.Input[bool] schedulable: `(boolean)`
973
929
  :param pulumi.Input[Mapping[str, pulumi.Input[str]]] secrets: `(map[string]string: <optional>)` - An optional key-value map of strings used as credentials for publishing and unpublishing volumes.
974
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['VolumeTopologyArgs']]]] topologies: `(List of topologies)`
975
930
  :param pulumi.Input[pulumi.InputType['VolumeTopologyRequestArgs']] topology_request: `(``TopologyRequest``: <optional>)` - Specify locations (region, zone, rack, etc.) where the provisioned volume is accessible from.
976
931
  :param pulumi.Input[str] type: `(string: <required>)` - The type of the volume. Currently, only `csi` is supported.
977
932
  :param pulumi.Input[str] volume_id: `(string: <required>)` - The unique ID of the volume.
@@ -1052,32 +1007,23 @@ class Volume(pulumi.CustomResource):
1052
1007
  @property
1053
1008
  @pulumi.getter(name="controllerRequired")
1054
1009
  def controller_required(self) -> pulumi.Output[bool]:
1055
- """
1056
- `(boolean)`
1057
- """
1058
1010
  return pulumi.get(self, "controller_required")
1059
1011
 
1060
1012
  @property
1061
1013
  @pulumi.getter(name="controllersExpected")
1062
1014
  def controllers_expected(self) -> pulumi.Output[int]:
1063
- """
1064
- `(integer)`
1065
- """
1066
1015
  return pulumi.get(self, "controllers_expected")
1067
1016
 
1068
1017
  @property
1069
1018
  @pulumi.getter(name="controllersHealthy")
1070
1019
  def controllers_healthy(self) -> pulumi.Output[int]:
1071
- """
1072
- `(integer)`
1073
- """
1074
1020
  return pulumi.get(self, "controllers_healthy")
1075
1021
 
1076
1022
  @property
1077
1023
  @pulumi.getter(name="deregisterOnDestroy")
1078
1024
  def deregister_on_destroy(self) -> pulumi.Output[Optional[bool]]:
1079
1025
  """
1080
- `(boolean: false)` - If true, the volume will be deregistered on destroy.
1026
+ `(boolean: true)` - If true, the volume will be deregistered on destroy.
1081
1027
  """
1082
1028
  return pulumi.get(self, "deregister_on_destroy")
1083
1029
 
@@ -1116,17 +1062,11 @@ class Volume(pulumi.CustomResource):
1116
1062
  @property
1117
1063
  @pulumi.getter(name="nodesExpected")
1118
1064
  def nodes_expected(self) -> pulumi.Output[int]:
1119
- """
1120
- `(integer)`
1121
- """
1122
1065
  return pulumi.get(self, "nodes_expected")
1123
1066
 
1124
1067
  @property
1125
1068
  @pulumi.getter(name="nodesHealthy")
1126
1069
  def nodes_healthy(self) -> pulumi.Output[int]:
1127
- """
1128
- `(integer)`
1129
- """
1130
1070
  return pulumi.get(self, "nodes_healthy")
1131
1071
 
1132
1072
  @property
@@ -1148,25 +1088,16 @@ class Volume(pulumi.CustomResource):
1148
1088
  @property
1149
1089
  @pulumi.getter(name="pluginProvider")
1150
1090
  def plugin_provider(self) -> pulumi.Output[str]:
1151
- """
1152
- `(string)`
1153
- """
1154
1091
  return pulumi.get(self, "plugin_provider")
1155
1092
 
1156
1093
  @property
1157
1094
  @pulumi.getter(name="pluginProviderVersion")
1158
1095
  def plugin_provider_version(self) -> pulumi.Output[str]:
1159
- """
1160
- `(string)`
1161
- """
1162
1096
  return pulumi.get(self, "plugin_provider_version")
1163
1097
 
1164
1098
  @property
1165
1099
  @pulumi.getter
1166
1100
  def schedulable(self) -> pulumi.Output[bool]:
1167
- """
1168
- `(boolean)`
1169
- """
1170
1101
  return pulumi.get(self, "schedulable")
1171
1102
 
1172
1103
  @property
@@ -1180,9 +1111,6 @@ class Volume(pulumi.CustomResource):
1180
1111
  @property
1181
1112
  @pulumi.getter
1182
1113
  def topologies(self) -> pulumi.Output[Sequence['outputs.VolumeTopology']]:
1183
- """
1184
- `(List of topologies)`
1185
- """
1186
1114
  return pulumi.get(self, "topologies")
1187
1115
 
1188
1116
  @property
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pulumi_nomad
3
- Version: 2.2.0a1710156747
3
+ Version: 2.2.1
4
4
  Summary: A Pulumi package for creating and managing nomad cloud resources.
5
5
  License: Apache-2.0
6
6
  Project-URL: Homepage, https://pulumi.io
@@ -0,0 +1,54 @@
1
+ pulumi_nomad/__init__.py,sha256=QUArXGICF8dmn0esax2QRn_bSJNVdbfnLlaahZRlmAU,4332
2
+ pulumi_nomad/_inputs.py,sha256=CVe7TuFATGi5A0zjcuDvMnlElkNORHz1TxU1FaCKe3U,68669
3
+ pulumi_nomad/_utilities.py,sha256=b6gJn0IIeM1t6Q7EVjqw3yhuGyP-uENQhtL5yp7aHR8,9248
4
+ pulumi_nomad/acl_auth_method.py,sha256=a1yxkIXrh-vFgcjTW585VKRJzyjwspd8qQku7VLRF4A,23774
5
+ pulumi_nomad/acl_binding_rule.py,sha256=7YZsOVUoabSUsThSiusJBju9S5kYcQGAclPqqRjj3PY,16396
6
+ pulumi_nomad/acl_policy.py,sha256=xN0klfhu-e5EPhKsaofxnj96m3TPTthsdtRbHW4Xr2Y,12176
7
+ pulumi_nomad/acl_role.py,sha256=AzyAijJ-05LPP71sGis0paEqTI9wjVjj9EnTAN1Ln7A,10526
8
+ pulumi_nomad/acl_token.py,sha256=z1DTQyonETd9HCwphdrx5X7GfM2r5kZs98MGswDvBMw,28727
9
+ pulumi_nomad/csi_volume.py,sha256=3MM-OzEabpT9sDKOj-6fQwqaPr6SXX9BNBMGDG_fwlA,48598
10
+ pulumi_nomad/csi_volume_registration.py,sha256=cXkYxrFF83EbzA1EqQl-_zWG5jnmU6ecGfBPonL29Ug,50513
11
+ pulumi_nomad/external_volume.py,sha256=_fsBBm_jpXJhvRp_Q7gX3x3Hf0OPNld_PLVYQjSFcWs,50425
12
+ pulumi_nomad/get_acl_policies.py,sha256=w928nDzy5ax8uGknhbFGffWkxwpFp-KZ1W5__P-BGis,3550
13
+ pulumi_nomad/get_acl_policy.py,sha256=H8j5lwZ1_oMGUCXJ6Bivqq7ExVsFYVWKmLdNu6lRWQ4,3800
14
+ pulumi_nomad/get_acl_role.py,sha256=-HK8G7UxuRllQMlZzWIwYwcZMLsqI_whIO_bZzVyW64,3873
15
+ pulumi_nomad/get_acl_roles.py,sha256=f_0bE9zPIkyiwPMSzTMV433KxiwHkfm2Sb8Kf2wd8wk,3446
16
+ pulumi_nomad/get_acl_token.py,sha256=Z-sznln3wmpih3XeANG6A_8EgS6NwrwPp3_FDd677Zg,7630
17
+ pulumi_nomad/get_acl_tokens.py,sha256=7f6JcqS6QIXlnVWp3EEsMD0QsNRMlAA9YBnYRmYpuV4,3419
18
+ pulumi_nomad/get_allocations.py,sha256=QJzyhCmSr4-GQ9XeYw2TMU0GfvC8_n1-mC4oiIOghrU,5350
19
+ pulumi_nomad/get_datacenters.py,sha256=Zr-3UV3zvv67rtUuljCdWxLKmbBG8RFx_EP_UitlxJs,4647
20
+ pulumi_nomad/get_deployments.py,sha256=GEG8vGt3iE77VuupXQNR6yAzzYwrt-BlLV3iLglumQo,2715
21
+ pulumi_nomad/get_job.py,sha256=i-VSx6jQV2y6U-pct1XqP9DO7_Bvdpe2Nej_Un0CggE,13404
22
+ pulumi_nomad/get_job_parser.py,sha256=seb5mrC1Mr3siKwi21_Jz9IMu4zcTZl0GUo8k4NZBi4,4001
23
+ pulumi_nomad/get_namespace.py,sha256=9adN4SkbcVBpdZHfurTwItlCOfT_AxIYtg6ed8J6q6g,5344
24
+ pulumi_nomad/get_namespaces.py,sha256=8xnI7fTuBlgmTK984IRrJYGn9RA6-YoPdKF8WvJoGdk,3561
25
+ pulumi_nomad/get_node_pool.py,sha256=ZdTbZ52F9WC6sXOuQLDcbN1DH8j29qc1Wr-wLze7Wp4,4427
26
+ pulumi_nomad/get_node_pools.py,sha256=iCF2UKsYpe5YRGCeLaE7bV-0Z7yqB4_KXPCj-ijNUGE,4370
27
+ pulumi_nomad/get_plugin.py,sha256=PDW-DeUwyvlR-lMe1K6DGJ6Al85X_VBxPVNYNjjwhn8,10732
28
+ pulumi_nomad/get_plugins.py,sha256=1KmI_tUHm4oqAyNklXl61jk7M6xAhdfGL3T86QFV3-Q,3109
29
+ pulumi_nomad/get_regions.py,sha256=LhxANBW_mAST_LvbsvMKIKXmtucb2mtTIHDu3rIfbiM,3286
30
+ pulumi_nomad/get_scaling_policies.py,sha256=eAwRT7u4ene-8AM0W8PcXF-G3hfxV-pdFgO_sc_5f3k,4658
31
+ pulumi_nomad/get_scaling_policy.py,sha256=dMBw5Qi17KzFyj1hDjtrh6u4Qqw_khbUysERHWFRty8,5116
32
+ pulumi_nomad/get_scheduler_policy.py,sha256=NCYMl9s00oLdc8j2EkwxNUtq2s9vYU3rDfmtMwQSLPc,4546
33
+ pulumi_nomad/get_variable.py,sha256=FARInWW4OX1W5IwS3GOatclP_BqVcvKqVN7kVFv2tnE,4113
34
+ pulumi_nomad/get_volumes.py,sha256=bxPF8gchK6FhEJcySOi5cnxg0e0bn7xnTvk-2D36vxI,5420
35
+ pulumi_nomad/job.py,sha256=DJ525lS2XkxkgKd3-TkIJCrTLba-NhWPjdo8KwKIgRk,51951
36
+ pulumi_nomad/namespace.py,sha256=3ROS7Fdhbl08fMGk2IGxeC3SMpdbxK_q8y90uil1wf0,20505
37
+ pulumi_nomad/node_pool.py,sha256=OftrmHc1WUaEVnYxjsZDit1sPv_-d2mvflestKGUfVo,13126
38
+ pulumi_nomad/outputs.py,sha256=g5AWtyngKdrcmjrpYMoU2Jn66AZPUguGYUlQSt23pyk,95392
39
+ pulumi_nomad/provider.py,sha256=kXiczhVPifjDrveY1h4jz1sqGvu8ahRNbh-f3QLDuew,21549
40
+ pulumi_nomad/pulumi-plugin.json,sha256=2s0bEeojFder0tplFBIeTqy2h7Y8kNsJQ696Q6gJHqU,42
41
+ pulumi_nomad/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
42
+ pulumi_nomad/quote_specification.py,sha256=KPx5UE35CwbDACT_orhck4wD0czzJCWPWmlldfKq5tk,12113
43
+ pulumi_nomad/scheduler_config.py,sha256=i8ek-d_x7b6PVnL4e0l-06fdVbKyzEzB51kMAIBDbVw,14110
44
+ pulumi_nomad/sentinel_policy.py,sha256=pCJOkT_nQH7cp_QvRllj3Ba9sjXexRnStI7uguLEJp8,17058
45
+ pulumi_nomad/variable.py,sha256=f5Rsw6WTgdvoBX941dEdbn0TO9Rh8dHjggPK_pV9ho8,11529
46
+ pulumi_nomad/volume.py,sha256=a5ju0iXhK0DuTpuXQ3EulJ8iR354wM6aYdEeyAmMuoM,55456
47
+ pulumi_nomad/config/__init__.py,sha256=cfY0smRZD3fDVc93ZIAxEl_IM2pynmXB52n3Ahzi030,285
48
+ pulumi_nomad/config/__init__.pyi,sha256=xqQrj9Co22MZN1IMoQwefoce6b6zI5nQfuA4L_uqw3Q,1865
49
+ pulumi_nomad/config/outputs.py,sha256=EJXQtJx8CPqK4-XlVBLC4rbjzI1AVUBUrOjFgyxwtuk,1003
50
+ pulumi_nomad/config/vars.py,sha256=pNNlDdaVJeMKr6TPOOJ4wW-_KPneYFizgpPjUIxa9rU,3432
51
+ pulumi_nomad-2.2.1.dist-info/METADATA,sha256=xkF6whvyfeccO5x0YUORSXWLvCE1BAwydpe9Q95GBtY,4719
52
+ pulumi_nomad-2.2.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
53
+ pulumi_nomad-2.2.1.dist-info/top_level.txt,sha256=1JxoZWssmXqN-8vVDXtedeoWtI703uNWUOzlm8Byv-o,13
54
+ pulumi_nomad-2.2.1.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.42.0)
2
+ Generator: bdist_wheel (0.43.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,54 +0,0 @@
1
- pulumi_nomad/__init__.py,sha256=QUArXGICF8dmn0esax2QRn_bSJNVdbfnLlaahZRlmAU,4332
2
- pulumi_nomad/_inputs.py,sha256=hDpVMghbzcMFDY7JD0jYRNLNUIJqqWv-vHAik_NH104,71991
3
- pulumi_nomad/_utilities.py,sha256=b6gJn0IIeM1t6Q7EVjqw3yhuGyP-uENQhtL5yp7aHR8,9248
4
- pulumi_nomad/acl_auth_method.py,sha256=L1lltoBFAC2cgFfIEK3cetEjs-OEputc4sg_gUU63Wk,23755
5
- pulumi_nomad/acl_binding_rule.py,sha256=7YZsOVUoabSUsThSiusJBju9S5kYcQGAclPqqRjj3PY,16396
6
- pulumi_nomad/acl_policy.py,sha256=FZsHQ-Csd2I2OmHFm0znGJBwZ2TbX-XD3ZPikAD6r_I,13862
7
- pulumi_nomad/acl_role.py,sha256=AzyAijJ-05LPP71sGis0paEqTI9wjVjj9EnTAN1Ln7A,10526
8
- pulumi_nomad/acl_token.py,sha256=SdRo62U8dczC0ZonjO5mg_SDBpxJ64q7CNRRqQwo_x8,29169
9
- pulumi_nomad/csi_volume.py,sha256=OvyQzy3HejF2Z_cOLVGDRpj9uUvh92QEL0LcW0QGUeQ,50670
10
- pulumi_nomad/csi_volume_registration.py,sha256=1DUu-tWqeT4MuyJXPLa2w-JuxofW4wsUj0sOkUOK58I,52616
11
- pulumi_nomad/external_volume.py,sha256=C0uMzTZNqujNq5cAxQvHjQblAg_MRRIvbMgeexuhnS4,52423
12
- pulumi_nomad/get_acl_policies.py,sha256=yOlZOApdRFEZtUd9mC-W_40IJPNQhRsBl4yrvrr-n6k,3690
13
- pulumi_nomad/get_acl_policy.py,sha256=H1_cLpAJKo0_KiPAzC7xLbyV13DoXadg9KkeAjJQ8ko,3940
14
- pulumi_nomad/get_acl_role.py,sha256=0E48rEByK4-ML_LBivWmf7mMGhGtho8kx8L9G7rCL5U,4013
15
- pulumi_nomad/get_acl_roles.py,sha256=WkTV118LhSJBGIXAG7Sqdzl_AHA4Ak5lZPM_rbbBYDI,3586
16
- pulumi_nomad/get_acl_token.py,sha256=7iO6G5_4xoIZQ-tvuDqtKmUhjGIeSZYv_YVDqQITLdQ,7770
17
- pulumi_nomad/get_acl_tokens.py,sha256=9iim76Kv5TC2GRfvgP8_n61LKtyeXqX6t5ZYOL5qnpM,3559
18
- pulumi_nomad/get_allocations.py,sha256=b0_zSmIKFoReWpbHIoGbAUG0CHMrxnbmenLqkY4tRFs,4587
19
- pulumi_nomad/get_datacenters.py,sha256=84hJ-FNMmkFI5I_WVSg7y2iojJEBsSCTJg3Sx1zMzmE,4787
20
- pulumi_nomad/get_deployments.py,sha256=5Vb127w47avaRjYId1Nl_atp56oTyLmVVbyXe2stxOQ,2855
21
- pulumi_nomad/get_job.py,sha256=vDMOkJXxGELFxsZChbsSl7m0lXjxZk1w9-4p_xyor38,13569
22
- pulumi_nomad/get_job_parser.py,sha256=ZwoO_SPRLkRlJJJKM7Wk9J-a0zkRiLkTpfwRhN_9tzM,4601
23
- pulumi_nomad/get_namespace.py,sha256=-mbFZICuMhqRhGeqPl6tHnbq7eee1W6BsZdwgf9Ztds,5484
24
- pulumi_nomad/get_namespaces.py,sha256=IsCb9UWnLu2KviL-tWSjKWWNGMXbgd_1W9On5lb30Gs,3581
25
- pulumi_nomad/get_node_pool.py,sha256=Rzd3k3YFJ5iqGdaRLnOd5L2jWPdZ69BcNxgD1VT2aBw,4567
26
- pulumi_nomad/get_node_pools.py,sha256=Z_2wMEN09OupmAnT3OSQrbbhl16C3ml-rHia7OHl97Y,4510
27
- pulumi_nomad/get_plugin.py,sha256=TaRHZvSdIqMUOzt_FeWKqoR2yeXcv9Kf0dsdwRGjVe0,10872
28
- pulumi_nomad/get_plugins.py,sha256=vAfKtqQOVmN9DJP7jkvSJbbnM9GL0M_CyxFPnjywdw0,3249
29
- pulumi_nomad/get_regions.py,sha256=lo008485fC7yjnmpzL7R9_m01FeczuAfx8lRe252BC4,2336
30
- pulumi_nomad/get_scaling_policies.py,sha256=gdF77qXTNwqjfXrYw0dQa1upnHzZNnANz6poPrX92h4,4798
31
- pulumi_nomad/get_scaling_policy.py,sha256=kDGLWYiZ2N2Pif6YlOfWheVJD7GpADPdPStQSInjy1Q,5256
32
- pulumi_nomad/get_scheduler_policy.py,sha256=jCMlDXQZvCnS76XMLWmeUZUW0Rm2psNVA7n2ZHRT50w,4686
33
- pulumi_nomad/get_variable.py,sha256=dGzWoEhOnqQF2dL9ZGVG52DzLIIKKknC9TjzGtggVCg,4253
34
- pulumi_nomad/get_volumes.py,sha256=ecBvniqg-ltQ_XvLsYTb4_g3Se3MneS0LQwDbbZl_5w,5560
35
- pulumi_nomad/job.py,sha256=YMuoAetXRNpQCt4NF15_aIjKIIj9Do9AoSFphqddxzw,51983
36
- pulumi_nomad/namespace.py,sha256=uLt6-h0CGTntslI-BVRxy4Gwfhz-I_1lE_hf2_vKID8,20661
37
- pulumi_nomad/node_pool.py,sha256=gElsf_T0PTUZzUVp4C9m94h_LKkqTWW-zjaow5PUsNA,13234
38
- pulumi_nomad/outputs.py,sha256=qI_vtxW4enOynlXgZcTY7eBSMhlM2ji7NxpTxrv9daM,98648
39
- pulumi_nomad/provider.py,sha256=kXiczhVPifjDrveY1h4jz1sqGvu8ahRNbh-f3QLDuew,21549
40
- pulumi_nomad/pulumi-plugin.json,sha256=2s0bEeojFder0tplFBIeTqy2h7Y8kNsJQ696Q6gJHqU,42
41
- pulumi_nomad/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
42
- pulumi_nomad/quote_specification.py,sha256=kHZfd9wL-yXeRFsb0dmKKtrGiB3B4hkKxO8uxGkiBuI,12209
43
- pulumi_nomad/scheduler_config.py,sha256=7Ap8fKun8dqdHE-sw9-yK60RdAfAgCzvu9IhcVD1rSI,14266
44
- pulumi_nomad/sentinel_policy.py,sha256=Bc7s9bUhHrrtgEZQgGK9gYinWN5c9V1e37vXsM8GQlg,17156
45
- pulumi_nomad/variable.py,sha256=uImwdvXU8YwupEqoZAQ8j03cjOk-MjfNVqVPM719u_4,11835
46
- pulumi_nomad/volume.py,sha256=wEz_K84AnEy-Dzg23SC3kVy8obMwz-6rFr30pzAYJw4,57471
47
- pulumi_nomad/config/__init__.py,sha256=cfY0smRZD3fDVc93ZIAxEl_IM2pynmXB52n3Ahzi030,285
48
- pulumi_nomad/config/__init__.pyi,sha256=xqQrj9Co22MZN1IMoQwefoce6b6zI5nQfuA4L_uqw3Q,1865
49
- pulumi_nomad/config/outputs.py,sha256=EJXQtJx8CPqK4-XlVBLC4rbjzI1AVUBUrOjFgyxwtuk,1003
50
- pulumi_nomad/config/vars.py,sha256=pNNlDdaVJeMKr6TPOOJ4wW-_KPneYFizgpPjUIxa9rU,3432
51
- pulumi_nomad-2.2.0a1710156747.dist-info/METADATA,sha256=kZKipitsnbUV_bLaWBnNl1GQaS_lv-tj0x3F8NQjAEM,4730
52
- pulumi_nomad-2.2.0a1710156747.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
53
- pulumi_nomad-2.2.0a1710156747.dist-info/top_level.txt,sha256=1JxoZWssmXqN-8vVDXtedeoWtI703uNWUOzlm8Byv-o,13
54
- pulumi_nomad-2.2.0a1710156747.dist-info/RECORD,,