pulumi-nomad 2.2.0a1710332982__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 +32 -126
  2. pulumi_nomad/acl_auth_method.py +4 -6
  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 +0 -72
  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 +0 -4
  15. pulumi_nomad/get_datacenters.py +4 -8
  16. pulumi_nomad/get_deployments.py +0 -4
  17. pulumi_nomad/get_job.py +0 -4
  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 +32 -126
  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 +8 -80
  40. {pulumi_nomad-2.2.0a1710332982.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.0a1710332982.dist-info/RECORD +0 -54
  43. {pulumi_nomad-2.2.0a1710332982.dist-info → pulumi_nomad-2.2.1.dist-info}/WHEEL +0 -0
  44. {pulumi_nomad-2.2.0a1710332982.dist-info → pulumi_nomad-2.2.1.dist-info}/top_level.txt +0 -0
@@ -274,22 +274,13 @@ class _ExternalVolumeState:
274
274
  :param pulumi.Input[str] capacity_max: `(string: <optional>)` - Option to signal a maximum volume size. This may not be supported by all storage providers.
275
275
  :param pulumi.Input[str] capacity_min: `(string: <optional>)` - Option to signal a minimum volume size. This may not be supported by all storage providers.
276
276
  :param pulumi.Input[str] clone_id: `(string: <optional>)` - The external ID of an existing volume to restore. If ommited, the volume will be created from scratch. Conflicts with `snapshot_id`.
277
- :param pulumi.Input[bool] controller_required: `(boolean)`
278
- :param pulumi.Input[int] controllers_expected: `(integer)`
279
- :param pulumi.Input[int] controllers_healthy: `(integer)`
280
277
  :param pulumi.Input['ExternalVolumeMountOptionsArgs'] mount_options: `(block: optional)` Options for mounting `block-device` volumes without a pre-formatted file system.
281
278
  :param pulumi.Input[str] name: `(string: <required>)` - The display name for the volume.
282
279
  :param pulumi.Input[str] namespace: `(string: "default")` - The namespace in which to register the volume.
283
- :param pulumi.Input[int] nodes_expected: `(integer)`
284
- :param pulumi.Input[int] nodes_healthy: `(integer)`
285
280
  :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.
286
281
  :param pulumi.Input[str] plugin_id: `(string: <required>)` - The ID of the Nomad plugin for registering this volume.
287
- :param pulumi.Input[str] plugin_provider: `(string)`
288
- :param pulumi.Input[str] plugin_provider_version: `(string)`
289
- :param pulumi.Input[bool] schedulable: `(boolean)`
290
282
  :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.
291
283
  :param pulumi.Input[str] snapshot_id: `(string: <optional>)` - The external ID of a snapshot to restore. If ommited, the volume will be created from scratch. Conflicts with `clone_id`.
292
- :param pulumi.Input[Sequence[pulumi.Input['ExternalVolumeTopologyArgs']]] topologies: `(List of topologies)`
293
284
  :param pulumi.Input['ExternalVolumeTopologyRequestArgs'] topology_request: `(``TopologyRequest``: <optional>)` - Specify locations (region, zone, rack, etc.) where the provisioned volume is accessible from.
294
285
  :param pulumi.Input[str] type: `(string: <required>)` - The type of the volume. Currently, only `csi` is supported.
295
286
  :param pulumi.Input[str] volume_id: `(string: <required>)` - The unique ID of the volume.
@@ -392,9 +383,6 @@ class _ExternalVolumeState:
392
383
  @property
393
384
  @pulumi.getter(name="controllerRequired")
394
385
  def controller_required(self) -> Optional[pulumi.Input[bool]]:
395
- """
396
- `(boolean)`
397
- """
398
386
  return pulumi.get(self, "controller_required")
399
387
 
400
388
  @controller_required.setter
@@ -404,9 +392,6 @@ class _ExternalVolumeState:
404
392
  @property
405
393
  @pulumi.getter(name="controllersExpected")
406
394
  def controllers_expected(self) -> Optional[pulumi.Input[int]]:
407
- """
408
- `(integer)`
409
- """
410
395
  return pulumi.get(self, "controllers_expected")
411
396
 
412
397
  @controllers_expected.setter
@@ -416,9 +401,6 @@ class _ExternalVolumeState:
416
401
  @property
417
402
  @pulumi.getter(name="controllersHealthy")
418
403
  def controllers_healthy(self) -> Optional[pulumi.Input[int]]:
419
- """
420
- `(integer)`
421
- """
422
404
  return pulumi.get(self, "controllers_healthy")
423
405
 
424
406
  @controllers_healthy.setter
@@ -464,9 +446,6 @@ class _ExternalVolumeState:
464
446
  @property
465
447
  @pulumi.getter(name="nodesExpected")
466
448
  def nodes_expected(self) -> Optional[pulumi.Input[int]]:
467
- """
468
- `(integer)`
469
- """
470
449
  return pulumi.get(self, "nodes_expected")
471
450
 
472
451
  @nodes_expected.setter
@@ -476,9 +455,6 @@ class _ExternalVolumeState:
476
455
  @property
477
456
  @pulumi.getter(name="nodesHealthy")
478
457
  def nodes_healthy(self) -> Optional[pulumi.Input[int]]:
479
- """
480
- `(integer)`
481
- """
482
458
  return pulumi.get(self, "nodes_healthy")
483
459
 
484
460
  @nodes_healthy.setter
@@ -512,9 +488,6 @@ class _ExternalVolumeState:
512
488
  @property
513
489
  @pulumi.getter(name="pluginProvider")
514
490
  def plugin_provider(self) -> Optional[pulumi.Input[str]]:
515
- """
516
- `(string)`
517
- """
518
491
  return pulumi.get(self, "plugin_provider")
519
492
 
520
493
  @plugin_provider.setter
@@ -524,9 +497,6 @@ class _ExternalVolumeState:
524
497
  @property
525
498
  @pulumi.getter(name="pluginProviderVersion")
526
499
  def plugin_provider_version(self) -> Optional[pulumi.Input[str]]:
527
- """
528
- `(string)`
529
- """
530
500
  return pulumi.get(self, "plugin_provider_version")
531
501
 
532
502
  @plugin_provider_version.setter
@@ -536,9 +506,6 @@ class _ExternalVolumeState:
536
506
  @property
537
507
  @pulumi.getter
538
508
  def schedulable(self) -> Optional[pulumi.Input[bool]]:
539
- """
540
- `(boolean)`
541
- """
542
509
  return pulumi.get(self, "schedulable")
543
510
 
544
511
  @schedulable.setter
@@ -572,9 +539,6 @@ class _ExternalVolumeState:
572
539
  @property
573
540
  @pulumi.getter
574
541
  def topologies(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ExternalVolumeTopologyArgs']]]]:
575
- """
576
- `(List of topologies)`
577
- """
578
542
  return pulumi.get(self, "topologies")
579
543
 
580
544
  @topologies.setter
@@ -643,17 +607,18 @@ class ExternalVolume(pulumi.CustomResource):
643
607
 
644
608
  Creating a volume:
645
609
 
646
- <!--Start PulumiCodeChooser -->
647
610
  ```python
648
611
  import pulumi
649
612
  import pulumi_nomad as nomad
650
613
 
614
+ # It can sometimes be helpful to wait for a particular plugin to be available
651
615
  ebs = nomad.get_plugin(plugin_id="aws-ebs0",
652
616
  wait_for_healthy=True)
653
- mysql_volume = nomad.ExternalVolume("mysqlVolume",
617
+ mysql_volume = nomad.ExternalVolume("mysql_volume",
654
618
  type="csi",
655
619
  plugin_id="aws-ebs0",
656
620
  volume_id="mysql_volume",
621
+ name="mysql_volume",
657
622
  capacity_min="10GiB",
658
623
  capacity_max="20GiB",
659
624
  capabilities=[nomad.ExternalVolumeCapabilityArgs(
@@ -682,7 +647,6 @@ class ExternalVolume(pulumi.CustomResource):
682
647
  ),
683
648
  opts=pulumi.ResourceOptions(depends_on=[ebs]))
684
649
  ```
685
- <!--End PulumiCodeChooser -->
686
650
 
687
651
  :param str resource_name: The name of the resource.
688
652
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -712,17 +676,18 @@ class ExternalVolume(pulumi.CustomResource):
712
676
 
713
677
  Creating a volume:
714
678
 
715
- <!--Start PulumiCodeChooser -->
716
679
  ```python
717
680
  import pulumi
718
681
  import pulumi_nomad as nomad
719
682
 
683
+ # It can sometimes be helpful to wait for a particular plugin to be available
720
684
  ebs = nomad.get_plugin(plugin_id="aws-ebs0",
721
685
  wait_for_healthy=True)
722
- mysql_volume = nomad.ExternalVolume("mysqlVolume",
686
+ mysql_volume = nomad.ExternalVolume("mysql_volume",
723
687
  type="csi",
724
688
  plugin_id="aws-ebs0",
725
689
  volume_id="mysql_volume",
690
+ name="mysql_volume",
726
691
  capacity_min="10GiB",
727
692
  capacity_max="20GiB",
728
693
  capabilities=[nomad.ExternalVolumeCapabilityArgs(
@@ -751,7 +716,6 @@ class ExternalVolume(pulumi.CustomResource):
751
716
  ),
752
717
  opts=pulumi.ResourceOptions(depends_on=[ebs]))
753
718
  ```
754
- <!--End PulumiCodeChooser -->
755
719
 
756
720
  :param str resource_name: The name of the resource.
757
721
  :param ExternalVolumeArgs args: The arguments to use to populate this resource's properties.
@@ -866,22 +830,13 @@ class ExternalVolume(pulumi.CustomResource):
866
830
  :param pulumi.Input[str] capacity_max: `(string: <optional>)` - Option to signal a maximum volume size. This may not be supported by all storage providers.
867
831
  :param pulumi.Input[str] capacity_min: `(string: <optional>)` - Option to signal a minimum volume size. This may not be supported by all storage providers.
868
832
  :param pulumi.Input[str] clone_id: `(string: <optional>)` - The external ID of an existing volume to restore. If ommited, the volume will be created from scratch. Conflicts with `snapshot_id`.
869
- :param pulumi.Input[bool] controller_required: `(boolean)`
870
- :param pulumi.Input[int] controllers_expected: `(integer)`
871
- :param pulumi.Input[int] controllers_healthy: `(integer)`
872
833
  :param pulumi.Input[pulumi.InputType['ExternalVolumeMountOptionsArgs']] mount_options: `(block: optional)` Options for mounting `block-device` volumes without a pre-formatted file system.
873
834
  :param pulumi.Input[str] name: `(string: <required>)` - The display name for the volume.
874
835
  :param pulumi.Input[str] namespace: `(string: "default")` - The namespace in which to register the volume.
875
- :param pulumi.Input[int] nodes_expected: `(integer)`
876
- :param pulumi.Input[int] nodes_healthy: `(integer)`
877
836
  :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.
878
837
  :param pulumi.Input[str] plugin_id: `(string: <required>)` - The ID of the Nomad plugin for registering this volume.
879
- :param pulumi.Input[str] plugin_provider: `(string)`
880
- :param pulumi.Input[str] plugin_provider_version: `(string)`
881
- :param pulumi.Input[bool] schedulable: `(boolean)`
882
838
  :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.
883
839
  :param pulumi.Input[str] snapshot_id: `(string: <optional>)` - The external ID of a snapshot to restore. If ommited, the volume will be created from scratch. Conflicts with `clone_id`.
884
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ExternalVolumeTopologyArgs']]]] topologies: `(List of topologies)`
885
840
  :param pulumi.Input[pulumi.InputType['ExternalVolumeTopologyRequestArgs']] topology_request: `(``TopologyRequest``: <optional>)` - Specify locations (region, zone, rack, etc.) where the provisioned volume is accessible from.
886
841
  :param pulumi.Input[str] type: `(string: <required>)` - The type of the volume. Currently, only `csi` is supported.
887
842
  :param pulumi.Input[str] volume_id: `(string: <required>)` - The unique ID of the volume.
@@ -950,25 +905,16 @@ class ExternalVolume(pulumi.CustomResource):
950
905
  @property
951
906
  @pulumi.getter(name="controllerRequired")
952
907
  def controller_required(self) -> pulumi.Output[bool]:
953
- """
954
- `(boolean)`
955
- """
956
908
  return pulumi.get(self, "controller_required")
957
909
 
958
910
  @property
959
911
  @pulumi.getter(name="controllersExpected")
960
912
  def controllers_expected(self) -> pulumi.Output[int]:
961
- """
962
- `(integer)`
963
- """
964
913
  return pulumi.get(self, "controllers_expected")
965
914
 
966
915
  @property
967
916
  @pulumi.getter(name="controllersHealthy")
968
917
  def controllers_healthy(self) -> pulumi.Output[int]:
969
- """
970
- `(integer)`
971
- """
972
918
  return pulumi.get(self, "controllers_healthy")
973
919
 
974
920
  @property
@@ -998,17 +944,11 @@ class ExternalVolume(pulumi.CustomResource):
998
944
  @property
999
945
  @pulumi.getter(name="nodesExpected")
1000
946
  def nodes_expected(self) -> pulumi.Output[int]:
1001
- """
1002
- `(integer)`
1003
- """
1004
947
  return pulumi.get(self, "nodes_expected")
1005
948
 
1006
949
  @property
1007
950
  @pulumi.getter(name="nodesHealthy")
1008
951
  def nodes_healthy(self) -> pulumi.Output[int]:
1009
- """
1010
- `(integer)`
1011
- """
1012
952
  return pulumi.get(self, "nodes_healthy")
1013
953
 
1014
954
  @property
@@ -1030,25 +970,16 @@ class ExternalVolume(pulumi.CustomResource):
1030
970
  @property
1031
971
  @pulumi.getter(name="pluginProvider")
1032
972
  def plugin_provider(self) -> pulumi.Output[str]:
1033
- """
1034
- `(string)`
1035
- """
1036
973
  return pulumi.get(self, "plugin_provider")
1037
974
 
1038
975
  @property
1039
976
  @pulumi.getter(name="pluginProviderVersion")
1040
977
  def plugin_provider_version(self) -> pulumi.Output[str]:
1041
- """
1042
- `(string)`
1043
- """
1044
978
  return pulumi.get(self, "plugin_provider_version")
1045
979
 
1046
980
  @property
1047
981
  @pulumi.getter
1048
982
  def schedulable(self) -> pulumi.Output[bool]:
1049
- """
1050
- `(boolean)`
1051
- """
1052
983
  return pulumi.get(self, "schedulable")
1053
984
 
1054
985
  @property
@@ -1070,9 +1001,6 @@ class ExternalVolume(pulumi.CustomResource):
1070
1001
  @property
1071
1002
  @pulumi.getter
1072
1003
  def topologies(self) -> pulumi.Output[Sequence['outputs.ExternalVolumeTopology']]:
1073
- """
1074
- `(List of topologies)`
1075
- """
1076
1004
  return pulumi.get(self, "topologies")
1077
1005
 
1078
1006
  @property
@@ -73,14 +73,12 @@ def get_acl_policies(prefix: Optional[str] = None,
73
73
 
74
74
  ## Example Usage
75
75
 
76
- <!--Start PulumiCodeChooser -->
77
76
  ```python
78
77
  import pulumi
79
78
  import pulumi_nomad as nomad
80
79
 
81
80
  example = nomad.get_acl_policies(prefix="prod")
82
81
  ```
83
- <!--End PulumiCodeChooser -->
84
82
 
85
83
 
86
84
  :param str prefix: `(string)` An optional string to filter ACL policies based on name prefix. If not provided, all policies are returned.
@@ -104,14 +102,12 @@ def get_acl_policies_output(prefix: Optional[pulumi.Input[Optional[str]]] = None
104
102
 
105
103
  ## Example Usage
106
104
 
107
- <!--Start PulumiCodeChooser -->
108
105
  ```python
109
106
  import pulumi
110
107
  import pulumi_nomad as nomad
111
108
 
112
109
  example = nomad.get_acl_policies(prefix="prod")
113
110
  ```
114
- <!--End PulumiCodeChooser -->
115
111
 
116
112
 
117
113
  :param str prefix: `(string)` An optional string to filter ACL policies based on name prefix. If not provided, all policies are returned.
@@ -87,14 +87,12 @@ def get_acl_policy(name: Optional[str] = None,
87
87
 
88
88
  ## Example Usage
89
89
 
90
- <!--Start PulumiCodeChooser -->
91
90
  ```python
92
91
  import pulumi
93
92
  import pulumi_nomad as nomad
94
93
 
95
94
  my_policy = nomad.get_acl_policy(name="my-policy")
96
95
  ```
97
- <!--End PulumiCodeChooser -->
98
96
 
99
97
 
100
98
  :param str name: `(string)` - the name of the ACL Policy.
@@ -119,14 +117,12 @@ def get_acl_policy_output(name: Optional[pulumi.Input[str]] = None,
119
117
 
120
118
  ## Example Usage
121
119
 
122
- <!--Start PulumiCodeChooser -->
123
120
  ```python
124
121
  import pulumi
125
122
  import pulumi_nomad as nomad
126
123
 
127
124
  my_policy = nomad.get_acl_policy(name="my-policy")
128
125
  ```
129
- <!--End PulumiCodeChooser -->
130
126
 
131
127
 
132
128
  :param str name: `(string)` - the name of the ACL Policy.
@@ -88,14 +88,12 @@ def get_acl_role(id: Optional[str] = None,
88
88
 
89
89
  ## Example Usage
90
90
 
91
- <!--Start PulumiCodeChooser -->
92
91
  ```python
93
92
  import pulumi
94
93
  import pulumi_nomad as nomad
95
94
 
96
95
  example = nomad.get_acl_role(id="aa534e09-6a07-0a45-2295-a7f77063d429")
97
96
  ```
98
- <!--End PulumiCodeChooser -->
99
97
 
100
98
 
101
99
  :param str id: `(string)` The unique identifier of the ACL Role.
@@ -120,14 +118,12 @@ def get_acl_role_output(id: Optional[pulumi.Input[str]] = None,
120
118
 
121
119
  ## Example Usage
122
120
 
123
- <!--Start PulumiCodeChooser -->
124
121
  ```python
125
122
  import pulumi
126
123
  import pulumi_nomad as nomad
127
124
 
128
125
  example = nomad.get_acl_role(id="aa534e09-6a07-0a45-2295-a7f77063d429")
129
126
  ```
130
- <!--End PulumiCodeChooser -->
131
127
 
132
128
 
133
129
  :param str id: `(string)` The unique identifier of the ACL Role.
@@ -70,14 +70,12 @@ def get_acl_roles(prefix: Optional[str] = None,
70
70
 
71
71
  ## Example Usage
72
72
 
73
- <!--Start PulumiCodeChooser -->
74
73
  ```python
75
74
  import pulumi
76
75
  import pulumi_nomad as nomad
77
76
 
78
77
  example = nomad.get_acl_roles(prefix="a242")
79
78
  ```
80
- <!--End PulumiCodeChooser -->
81
79
 
82
80
 
83
81
  :param str prefix: `(string)` An optional string to filter ACL Roles based on ID
@@ -102,14 +100,12 @@ def get_acl_roles_output(prefix: Optional[pulumi.Input[Optional[str]]] = None,
102
100
 
103
101
  ## Example Usage
104
102
 
105
- <!--Start PulumiCodeChooser -->
106
103
  ```python
107
104
  import pulumi
108
105
  import pulumi_nomad as nomad
109
106
 
110
107
  example = nomad.get_acl_roles(prefix="a242")
111
108
  ```
112
- <!--End PulumiCodeChooser -->
113
109
 
114
110
 
115
111
  :param str prefix: `(string)` An optional string to filter ACL Roles based on ID
@@ -173,14 +173,12 @@ def get_acl_token(accessor_id: Optional[str] = None,
173
173
  """
174
174
  ## Example Usage
175
175
 
176
- <!--Start PulumiCodeChooser -->
177
176
  ```python
178
177
  import pulumi
179
178
  import pulumi_nomad as nomad
180
179
 
181
180
  my_token = nomad.get_acl_token(accessor_id="aa534e09-6a07-0a45-2295-a7f77063d429")
182
181
  ```
183
- <!--End PulumiCodeChooser -->
184
182
 
185
183
 
186
184
  :param str accessor_id: `(string)` Non-sensitive identifier for this token.
@@ -210,14 +208,12 @@ def get_acl_token_output(accessor_id: Optional[pulumi.Input[str]] = None,
210
208
  """
211
209
  ## Example Usage
212
210
 
213
- <!--Start PulumiCodeChooser -->
214
211
  ```python
215
212
  import pulumi
216
213
  import pulumi_nomad as nomad
217
214
 
218
215
  my_token = nomad.get_acl_token(accessor_id="aa534e09-6a07-0a45-2295-a7f77063d429")
219
216
  ```
220
- <!--End PulumiCodeChooser -->
221
217
 
222
218
 
223
219
  :param str accessor_id: `(string)` Non-sensitive identifier for this token.
@@ -73,14 +73,12 @@ def get_acl_tokens(prefix: Optional[str] = None,
73
73
 
74
74
  ## Example Usage
75
75
 
76
- <!--Start PulumiCodeChooser -->
77
76
  ```python
78
77
  import pulumi
79
78
  import pulumi_nomad as nomad
80
79
 
81
80
  tokens = nomad.get_acl_tokens(prefix="a242")
82
81
  ```
83
- <!--End PulumiCodeChooser -->
84
82
 
85
83
 
86
84
  :param str prefix: `(string)` Optional prefix to filter the tokens.
@@ -104,14 +102,12 @@ def get_acl_tokens_output(prefix: Optional[pulumi.Input[Optional[str]]] = None,
104
102
 
105
103
  ## Example Usage
106
104
 
107
- <!--Start PulumiCodeChooser -->
108
105
  ```python
109
106
  import pulumi
110
107
  import pulumi_nomad as nomad
111
108
 
112
109
  tokens = nomad.get_acl_tokens(prefix="a242")
113
110
  ```
114
- <!--End PulumiCodeChooser -->
115
111
 
116
112
 
117
113
  :param str prefix: `(string)` Optional prefix to filter the tokens.
@@ -97,14 +97,12 @@ def get_allocations(filter: Optional[str] = None,
97
97
 
98
98
  ## Example Usage
99
99
 
100
- <!--Start PulumiCodeChooser -->
101
100
  ```python
102
101
  import pulumi
103
102
  import pulumi_nomad as nomad
104
103
 
105
104
  example = nomad.get_allocations(filter="JobID == \\"example\\"")
106
105
  ```
107
- <!--End PulumiCodeChooser -->
108
106
 
109
107
 
110
108
  :param str filter: `(string: <optional>)` - Specifies the
@@ -139,14 +137,12 @@ def get_allocations_output(filter: Optional[pulumi.Input[Optional[str]]] = None,
139
137
 
140
138
  ## Example Usage
141
139
 
142
- <!--Start PulumiCodeChooser -->
143
140
  ```python
144
141
  import pulumi
145
142
  import pulumi_nomad as nomad
146
143
 
147
144
  example = nomad.get_allocations(filter="JobID == \\"example\\"")
148
145
  ```
149
- <!--End PulumiCodeChooser -->
150
146
 
151
147
 
152
148
  :param str filter: `(string: <optional>)` - Specifies the
@@ -82,15 +82,13 @@ def get_datacenters(ignore_down_nodes: Optional[bool] = None,
82
82
 
83
83
  ## Example Usage
84
84
 
85
- <!--Start PulumiCodeChooser -->
86
85
  ```python
87
86
  import pulumi
88
87
  import pulumi_nomad as nomad
89
88
 
90
- datacenters = nomad.get_datacenters(ignore_down_nodes=True,
91
- prefix="prod")
89
+ datacenters = nomad.get_datacenters(prefix="prod",
90
+ ignore_down_nodes=True)
92
91
  ```
93
- <!--End PulumiCodeChooser -->
94
92
 
95
93
 
96
94
  :param bool ignore_down_nodes: `(bool: false)`: An optional flag that, if set to `true` will ignore down nodes when compiling the list of datacenters.
@@ -118,15 +116,13 @@ def get_datacenters_output(ignore_down_nodes: Optional[pulumi.Input[Optional[boo
118
116
 
119
117
  ## Example Usage
120
118
 
121
- <!--Start PulumiCodeChooser -->
122
119
  ```python
123
120
  import pulumi
124
121
  import pulumi_nomad as nomad
125
122
 
126
- datacenters = nomad.get_datacenters(ignore_down_nodes=True,
127
- prefix="prod")
123
+ datacenters = nomad.get_datacenters(prefix="prod",
124
+ ignore_down_nodes=True)
128
125
  ```
129
- <!--End PulumiCodeChooser -->
130
126
 
131
127
 
132
128
  :param bool ignore_down_nodes: `(bool: false)`: An optional flag that, if set to `true` will ignore down nodes when compiling the list of datacenters.
@@ -62,14 +62,12 @@ def get_deployments(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGet
62
62
 
63
63
  ## Example Usage
64
64
 
65
- <!--Start PulumiCodeChooser -->
66
65
  ```python
67
66
  import pulumi
68
67
  import pulumi_nomad as nomad
69
68
 
70
69
  example = nomad.get_deployments()
71
70
  ```
72
- <!--End PulumiCodeChooser -->
73
71
  """
74
72
  __args__ = dict()
75
73
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
@@ -87,13 +85,11 @@ def get_deployments_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulum
87
85
 
88
86
  ## Example Usage
89
87
 
90
- <!--Start PulumiCodeChooser -->
91
88
  ```python
92
89
  import pulumi
93
90
  import pulumi_nomad as nomad
94
91
 
95
92
  example = nomad.get_deployments()
96
93
  ```
97
- <!--End PulumiCodeChooser -->
98
94
  """
99
95
  ...
pulumi_nomad/get_job.py CHANGED
@@ -301,7 +301,6 @@ def get_job(job_id: Optional[str] = None,
301
301
 
302
302
  Get the data about a snapshot:
303
303
 
304
- <!--Start PulumiCodeChooser -->
305
304
  ```python
306
305
  import pulumi
307
306
  import pulumi_nomad as nomad
@@ -309,7 +308,6 @@ def get_job(job_id: Optional[str] = None,
309
308
  example = nomad.get_job(job_id="example",
310
309
  namespace="dev")
311
310
  ```
312
- <!--End PulumiCodeChooser -->
313
311
 
314
312
 
315
313
  :param str job_id: `(string)` ID of the job.
@@ -360,7 +358,6 @@ def get_job_output(job_id: Optional[pulumi.Input[str]] = None,
360
358
 
361
359
  Get the data about a snapshot:
362
360
 
363
- <!--Start PulumiCodeChooser -->
364
361
  ```python
365
362
  import pulumi
366
363
  import pulumi_nomad as nomad
@@ -368,7 +365,6 @@ def get_job_output(job_id: Optional[pulumi.Input[str]] = None,
368
365
  example = nomad.get_job(job_id="example",
369
366
  namespace="dev")
370
367
  ```
371
- <!--End PulumiCodeChooser -->
372
368
 
373
369
 
374
370
  :param str job_id: `(string)` ID of the job.
@@ -86,18 +86,6 @@ def get_job_parser(canonicalize: Optional[bool] = None,
86
86
  """
87
87
  Parse a HCL jobspec and produce the equivalent JSON encoded job.
88
88
 
89
- ## Example Usage
90
-
91
- <!--Start PulumiCodeChooser -->
92
- ```python
93
- import pulumi
94
- import pulumi_nomad as nomad
95
-
96
- my_job = nomad.get_job_parser(hcl=(lambda path: open(path).read())(f"{path['module']}/jobspec.hcl"),
97
- canonicalize=False)
98
- ```
99
- <!--End PulumiCodeChooser -->
100
-
101
89
 
102
90
  :param bool canonicalize: `(boolean: true)` - flag to enable setting any unset fields to their default values.
103
91
  :param str hcl: `(string)` - the HCL definition of the job.
@@ -122,18 +110,6 @@ def get_job_parser_output(canonicalize: Optional[pulumi.Input[Optional[bool]]] =
122
110
  """
123
111
  Parse a HCL jobspec and produce the equivalent JSON encoded job.
124
112
 
125
- ## Example Usage
126
-
127
- <!--Start PulumiCodeChooser -->
128
- ```python
129
- import pulumi
130
- import pulumi_nomad as nomad
131
-
132
- my_job = nomad.get_job_parser(hcl=(lambda path: open(path).read())(f"{path['module']}/jobspec.hcl"),
133
- canonicalize=False)
134
- ```
135
- <!--End PulumiCodeChooser -->
136
-
137
113
 
138
114
  :param bool canonicalize: `(boolean: true)` - flag to enable setting any unset fields to their default values.
139
115
  :param str hcl: `(string)` - the HCL definition of the job.
@@ -118,14 +118,12 @@ def get_namespace(name: Optional[str] = None,
118
118
 
119
119
  ## Example Usage
120
120
 
121
- <!--Start PulumiCodeChooser -->
122
121
  ```python
123
122
  import pulumi
124
123
  import pulumi_nomad as nomad
125
124
 
126
125
  namespaces = nomad.get_namespace(name="default")
127
126
  ```
128
- <!--End PulumiCodeChooser -->
129
127
 
130
128
 
131
129
  :param str name: `(string)` - The name of the namespace.
@@ -153,14 +151,12 @@ def get_namespace_output(name: Optional[pulumi.Input[str]] = None,
153
151
 
154
152
  ## Example Usage
155
153
 
156
- <!--Start PulumiCodeChooser -->
157
154
  ```python
158
155
  import pulumi
159
156
  import pulumi_nomad as nomad
160
157
 
161
158
  namespaces = nomad.get_namespace(name="default")
162
159
  ```
163
- <!--End PulumiCodeChooser -->
164
160
 
165
161
 
166
162
  :param str name: `(string)` - The name of the namespace.