pulumi-nomad 2.5.0a1744783739__py3-none-any.whl → 2.5.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 (58) hide show
  1. pulumi_nomad/__init__.py +21 -2
  2. pulumi_nomad/_inputs.py +1151 -475
  3. pulumi_nomad/_utilities.py +1 -1
  4. pulumi_nomad/acl_auth_method.py +108 -108
  5. pulumi_nomad/acl_binding_rule.py +88 -88
  6. pulumi_nomad/acl_policy.py +71 -64
  7. pulumi_nomad/acl_role.py +40 -40
  8. pulumi_nomad/acl_token.py +127 -127
  9. pulumi_nomad/config/__init__.py +2 -2
  10. pulumi_nomad/config/__init__.pyi +2 -13
  11. pulumi_nomad/config/outputs.py +10 -11
  12. pulumi_nomad/config/vars.py +15 -30
  13. pulumi_nomad/csi_volume.py +298 -270
  14. pulumi_nomad/csi_volume_registration.py +278 -278
  15. pulumi_nomad/dynamic_host_volume.py +1005 -0
  16. pulumi_nomad/dynamic_host_volume_registration.py +740 -0
  17. pulumi_nomad/external_volume.py +257 -257
  18. pulumi_nomad/get_acl_policies.py +11 -12
  19. pulumi_nomad/get_acl_policy.py +14 -15
  20. pulumi_nomad/get_acl_role.py +13 -14
  21. pulumi_nomad/get_acl_roles.py +11 -12
  22. pulumi_nomad/get_acl_token.py +27 -28
  23. pulumi_nomad/get_acl_tokens.py +11 -12
  24. pulumi_nomad/get_allocations.py +23 -24
  25. pulumi_nomad/get_datacenters.py +18 -19
  26. pulumi_nomad/get_deployments.py +6 -7
  27. pulumi_nomad/get_dynamic_host_volume.py +352 -0
  28. pulumi_nomad/get_job.py +51 -52
  29. pulumi_nomad/get_job_parser.py +18 -19
  30. pulumi_nomad/get_jwks.py +7 -8
  31. pulumi_nomad/get_namespace.py +18 -19
  32. pulumi_nomad/get_namespaces.py +22 -17
  33. pulumi_nomad/get_node_pool.py +15 -16
  34. pulumi_nomad/get_node_pools.py +17 -18
  35. pulumi_nomad/get_plugin.py +37 -38
  36. pulumi_nomad/get_plugins.py +10 -11
  37. pulumi_nomad/get_regions.py +16 -11
  38. pulumi_nomad/get_scaling_policies.py +17 -18
  39. pulumi_nomad/get_scaling_policy.py +20 -21
  40. pulumi_nomad/get_scheduler_policy.py +10 -11
  41. pulumi_nomad/get_variable.py +18 -19
  42. pulumi_nomad/get_volumes.py +30 -31
  43. pulumi_nomad/job.py +247 -357
  44. pulumi_nomad/namespace.py +77 -77
  45. pulumi_nomad/node_pool.py +57 -57
  46. pulumi_nomad/outputs.py +1212 -635
  47. pulumi_nomad/provider.py +141 -180
  48. pulumi_nomad/pulumi-plugin.json +1 -1
  49. pulumi_nomad/quote_specification.py +40 -40
  50. pulumi_nomad/scheduler_config.py +54 -54
  51. pulumi_nomad/sentinel_policy.py +88 -88
  52. pulumi_nomad/variable.py +54 -54
  53. pulumi_nomad/volume.py +274 -274
  54. {pulumi_nomad-2.5.0a1744783739.dist-info → pulumi_nomad-2.5.1.dist-info}/METADATA +3 -3
  55. pulumi_nomad-2.5.1.dist-info/RECORD +58 -0
  56. {pulumi_nomad-2.5.0a1744783739.dist-info → pulumi_nomad-2.5.1.dist-info}/WHEEL +1 -1
  57. pulumi_nomad-2.5.0a1744783739.dist-info/RECORD +0 -55
  58. {pulumi_nomad-2.5.0a1744783739.dist-info → pulumi_nomad-2.5.1.dist-info}/top_level.txt +0 -0
@@ -1,9 +1,8 @@
1
1
  # coding=utf-8
2
- # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
2
+ # *** WARNING: this file was generated by pulumi-language-python. ***
3
3
  # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
 
5
- import builtins
6
- import copy
5
+ import builtins as _builtins
7
6
  import warnings
8
7
  import sys
9
8
  import pulumi
@@ -45,37 +44,37 @@ class GetNodePoolResult:
45
44
  raise TypeError("Expected argument 'scheduler_configs' to be a list")
46
45
  pulumi.set(__self__, "scheduler_configs", scheduler_configs)
47
46
 
48
- @property
47
+ @_builtins.property
49
48
  @pulumi.getter
50
- def description(self) -> builtins.str:
49
+ def description(self) -> _builtins.str:
51
50
  """
52
51
  `(string)` - The description of the node pool.
53
52
  """
54
53
  return pulumi.get(self, "description")
55
54
 
56
- @property
55
+ @_builtins.property
57
56
  @pulumi.getter
58
- def id(self) -> builtins.str:
57
+ def id(self) -> _builtins.str:
59
58
  """
60
59
  The provider-assigned unique ID for this managed resource.
61
60
  """
62
61
  return pulumi.get(self, "id")
63
62
 
64
- @property
63
+ @_builtins.property
65
64
  @pulumi.getter
66
- def meta(self) -> Mapping[str, builtins.str]:
65
+ def meta(self) -> Mapping[str, _builtins.str]:
67
66
  """
68
67
  `(map[string]string)` - Arbitrary KV metadata associated with the
69
68
  node pool.
70
69
  """
71
70
  return pulumi.get(self, "meta")
72
71
 
73
- @property
72
+ @_builtins.property
74
73
  @pulumi.getter
75
- def name(self) -> builtins.str:
74
+ def name(self) -> _builtins.str:
76
75
  return pulumi.get(self, "name")
77
76
 
78
- @property
77
+ @_builtins.property
79
78
  @pulumi.getter(name="schedulerConfigs")
80
79
  def scheduler_configs(self) -> Sequence['outputs.GetNodePoolSchedulerConfigResult']:
81
80
  """
@@ -97,7 +96,7 @@ class AwaitableGetNodePoolResult(GetNodePoolResult):
97
96
  scheduler_configs=self.scheduler_configs)
98
97
 
99
98
 
100
- def get_node_pool(name: Optional[builtins.str] = None,
99
+ def get_node_pool(name: Optional[_builtins.str] = None,
101
100
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetNodePoolResult:
102
101
  """
103
102
  Get information about a node pool in Nomad.
@@ -112,7 +111,7 @@ def get_node_pool(name: Optional[builtins.str] = None,
112
111
  ```
113
112
 
114
113
 
115
- :param builtins.str name: `(string)` - The name of the node pool to fetch.
114
+ :param _builtins.str name: `(string)` - The name of the node pool to fetch.
116
115
  """
117
116
  __args__ = dict()
118
117
  __args__['name'] = name
@@ -125,7 +124,7 @@ def get_node_pool(name: Optional[builtins.str] = None,
125
124
  meta=pulumi.get(__ret__, 'meta'),
126
125
  name=pulumi.get(__ret__, 'name'),
127
126
  scheduler_configs=pulumi.get(__ret__, 'scheduler_configs'))
128
- def get_node_pool_output(name: Optional[pulumi.Input[builtins.str]] = None,
127
+ def get_node_pool_output(name: Optional[pulumi.Input[_builtins.str]] = None,
129
128
  opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetNodePoolResult]:
130
129
  """
131
130
  Get information about a node pool in Nomad.
@@ -140,7 +139,7 @@ def get_node_pool_output(name: Optional[pulumi.Input[builtins.str]] = None,
140
139
  ```
141
140
 
142
141
 
143
- :param builtins.str name: `(string)` - The name of the node pool to fetch.
142
+ :param _builtins.str name: `(string)` - The name of the node pool to fetch.
144
143
  """
145
144
  __args__ = dict()
146
145
  __args__['name'] = name
@@ -1,9 +1,8 @@
1
1
  # coding=utf-8
2
- # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
2
+ # *** WARNING: this file was generated by pulumi-language-python. ***
3
3
  # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
 
5
- import builtins
6
- import copy
5
+ import builtins as _builtins
7
6
  import warnings
8
7
  import sys
9
8
  import pulumi
@@ -42,20 +41,20 @@ class GetNodePoolsResult:
42
41
  raise TypeError("Expected argument 'prefix' to be a str")
43
42
  pulumi.set(__self__, "prefix", prefix)
44
43
 
45
- @property
44
+ @_builtins.property
46
45
  @pulumi.getter
47
- def filter(self) -> Optional[builtins.str]:
46
+ def filter(self) -> Optional[_builtins.str]:
48
47
  return pulumi.get(self, "filter")
49
48
 
50
- @property
49
+ @_builtins.property
51
50
  @pulumi.getter
52
- def id(self) -> builtins.str:
51
+ def id(self) -> _builtins.str:
53
52
  """
54
53
  The provider-assigned unique ID for this managed resource.
55
54
  """
56
55
  return pulumi.get(self, "id")
57
56
 
58
- @property
57
+ @_builtins.property
59
58
  @pulumi.getter(name="nodePools")
60
59
  def node_pools(self) -> Sequence['outputs.GetNodePoolsNodePoolResult']:
61
60
  """
@@ -64,9 +63,9 @@ class GetNodePoolsResult:
64
63
  """
65
64
  return pulumi.get(self, "node_pools")
66
65
 
67
- @property
66
+ @_builtins.property
68
67
  @pulumi.getter
69
- def prefix(self) -> Optional[builtins.str]:
68
+ def prefix(self) -> Optional[_builtins.str]:
70
69
  return pulumi.get(self, "prefix")
71
70
 
72
71
 
@@ -82,8 +81,8 @@ class AwaitableGetNodePoolsResult(GetNodePoolsResult):
82
81
  prefix=self.prefix)
83
82
 
84
83
 
85
- def get_node_pools(filter: Optional[builtins.str] = None,
86
- prefix: Optional[builtins.str] = None,
84
+ def get_node_pools(filter: Optional[_builtins.str] = None,
85
+ prefix: Optional[_builtins.str] = None,
87
86
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetNodePoolsResult:
88
87
  """
89
88
  Retrieve a list of node pools available in Nomad.
@@ -98,9 +97,9 @@ def get_node_pools(filter: Optional[builtins.str] = None,
98
97
  ```
99
98
 
100
99
 
101
- :param builtins.str filter: `(string)` - Specifies the [expression][nomad_api_filter] used to
100
+ :param _builtins.str filter: `(string)` - Specifies the [expression][nomad_api_filter] used to
102
101
  filter the results.
103
- :param builtins.str prefix: `(string)` - Specifies a string to filter node pools based on a name
102
+ :param _builtins.str prefix: `(string)` - Specifies a string to filter node pools based on a name
104
103
  prefix.
105
104
  """
106
105
  __args__ = dict()
@@ -114,8 +113,8 @@ def get_node_pools(filter: Optional[builtins.str] = None,
114
113
  id=pulumi.get(__ret__, 'id'),
115
114
  node_pools=pulumi.get(__ret__, 'node_pools'),
116
115
  prefix=pulumi.get(__ret__, 'prefix'))
117
- def get_node_pools_output(filter: Optional[pulumi.Input[Optional[builtins.str]]] = None,
118
- prefix: Optional[pulumi.Input[Optional[builtins.str]]] = None,
116
+ def get_node_pools_output(filter: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
117
+ prefix: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
119
118
  opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetNodePoolsResult]:
120
119
  """
121
120
  Retrieve a list of node pools available in Nomad.
@@ -130,9 +129,9 @@ def get_node_pools_output(filter: Optional[pulumi.Input[Optional[builtins.str]]]
130
129
  ```
131
130
 
132
131
 
133
- :param builtins.str filter: `(string)` - Specifies the [expression][nomad_api_filter] used to
132
+ :param _builtins.str filter: `(string)` - Specifies the [expression][nomad_api_filter] used to
134
133
  filter the results.
135
- :param builtins.str prefix: `(string)` - Specifies a string to filter node pools based on a name
134
+ :param _builtins.str prefix: `(string)` - Specifies a string to filter node pools based on a name
136
135
  prefix.
137
136
  """
138
137
  __args__ = dict()
@@ -1,9 +1,8 @@
1
1
  # coding=utf-8
2
- # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
2
+ # *** WARNING: this file was generated by pulumi-language-python. ***
3
3
  # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
 
5
- import builtins
6
- import copy
5
+ import builtins as _builtins
7
6
  import warnings
8
7
  import sys
9
8
  import pulumi
@@ -66,91 +65,91 @@ class GetPluginResult:
66
65
  raise TypeError("Expected argument 'wait_for_registration' to be a bool")
67
66
  pulumi.set(__self__, "wait_for_registration", wait_for_registration)
68
67
 
69
- @property
68
+ @_builtins.property
70
69
  @pulumi.getter(name="controllerRequired")
71
- def controller_required(self) -> builtins.bool:
70
+ def controller_required(self) -> _builtins.bool:
72
71
  """
73
72
  `(boolean)` Whether a controller is required.
74
73
  """
75
74
  return pulumi.get(self, "controller_required")
76
75
 
77
- @property
76
+ @_builtins.property
78
77
  @pulumi.getter(name="controllersExpected")
79
- def controllers_expected(self) -> builtins.int:
78
+ def controllers_expected(self) -> _builtins.int:
80
79
  """
81
80
  `(integer)` The number of registered controllers.
82
81
  """
83
82
  return pulumi.get(self, "controllers_expected")
84
83
 
85
- @property
84
+ @_builtins.property
86
85
  @pulumi.getter(name="controllersHealthy")
87
- def controllers_healthy(self) -> builtins.int:
86
+ def controllers_healthy(self) -> _builtins.int:
88
87
  """
89
88
  `(integer)` The number of healthy controllers.
90
89
  """
91
90
  return pulumi.get(self, "controllers_healthy")
92
91
 
93
- @property
92
+ @_builtins.property
94
93
  @pulumi.getter
95
- def id(self) -> builtins.str:
94
+ def id(self) -> _builtins.str:
96
95
  """
97
96
  The provider-assigned unique ID for this managed resource.
98
97
  """
99
98
  return pulumi.get(self, "id")
100
99
 
101
- @property
100
+ @_builtins.property
102
101
  @pulumi.getter
103
102
  def nodes(self) -> Sequence['outputs.GetPluginNodeResult']:
104
103
  return pulumi.get(self, "nodes")
105
104
 
106
- @property
105
+ @_builtins.property
107
106
  @pulumi.getter(name="nodesExpected")
108
- def nodes_expected(self) -> builtins.int:
107
+ def nodes_expected(self) -> _builtins.int:
109
108
  """
110
109
  `(integer)` The number of registered nodes.
111
110
  """
112
111
  return pulumi.get(self, "nodes_expected")
113
112
 
114
- @property
113
+ @_builtins.property
115
114
  @pulumi.getter(name="nodesHealthy")
116
- def nodes_healthy(self) -> builtins.int:
115
+ def nodes_healthy(self) -> _builtins.int:
117
116
  """
118
117
  `(integer)` The number of healthy nodes.
119
118
  """
120
119
  return pulumi.get(self, "nodes_healthy")
121
120
 
122
- @property
121
+ @_builtins.property
123
122
  @pulumi.getter(name="pluginId")
124
- def plugin_id(self) -> builtins.str:
123
+ def plugin_id(self) -> _builtins.str:
125
124
  """
126
125
  `(string)` ID of the plugin
127
126
  """
128
127
  return pulumi.get(self, "plugin_id")
129
128
 
130
- @property
129
+ @_builtins.property
131
130
  @pulumi.getter(name="pluginProvider")
132
- def plugin_provider(self) -> builtins.str:
131
+ def plugin_provider(self) -> _builtins.str:
133
132
  """
134
133
  `(string)` Plugin provider name
135
134
  """
136
135
  return pulumi.get(self, "plugin_provider")
137
136
 
138
- @property
137
+ @_builtins.property
139
138
  @pulumi.getter(name="pluginProviderVersion")
140
- def plugin_provider_version(self) -> builtins.str:
139
+ def plugin_provider_version(self) -> _builtins.str:
141
140
  """
142
141
  `(string)` Plugin provider version
143
142
  """
144
143
  return pulumi.get(self, "plugin_provider_version")
145
144
 
146
- @property
145
+ @_builtins.property
147
146
  @pulumi.getter(name="waitForHealthy")
148
- def wait_for_healthy(self) -> Optional[builtins.bool]:
147
+ def wait_for_healthy(self) -> Optional[_builtins.bool]:
149
148
  return pulumi.get(self, "wait_for_healthy")
150
149
 
151
- @property
150
+ @_builtins.property
152
151
  @pulumi.getter(name="waitForRegistration")
153
- def wait_for_registration(self) -> Optional[builtins.bool]:
152
+ def wait_for_registration(self) -> Optional[_builtins.bool]:
154
153
  return pulumi.get(self, "wait_for_registration")
155
154
 
156
155
 
@@ -174,9 +173,9 @@ class AwaitableGetPluginResult(GetPluginResult):
174
173
  wait_for_registration=self.wait_for_registration)
175
174
 
176
175
 
177
- def get_plugin(plugin_id: Optional[builtins.str] = None,
178
- wait_for_healthy: Optional[builtins.bool] = None,
179
- wait_for_registration: Optional[builtins.bool] = None,
176
+ def get_plugin(plugin_id: Optional[_builtins.str] = None,
177
+ wait_for_healthy: Optional[_builtins.bool] = None,
178
+ wait_for_registration: Optional[_builtins.bool] = None,
180
179
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetPluginResult:
181
180
  """
182
181
  Lookup a plugin by ID. The aim of this datasource is to determine whether
@@ -204,9 +203,9 @@ def get_plugin(plugin_id: Optional[builtins.str] = None,
204
203
  is healthy before returning.
205
204
 
206
205
 
207
- :param builtins.str plugin_id: `(string)` ID of the plugin.
208
- :param builtins.bool wait_for_healthy: `(boolean)` retry until the plugin exists and all controllers are healthy
209
- :param builtins.bool wait_for_registration: `(boolean)` if the plugin doesn't exist, retry until it does
206
+ :param _builtins.str plugin_id: `(string)` ID of the plugin.
207
+ :param _builtins.bool wait_for_healthy: `(boolean)` retry until the plugin exists and all controllers are healthy
208
+ :param _builtins.bool wait_for_registration: `(boolean)` if the plugin doesn't exist, retry until it does
210
209
  """
211
210
  __args__ = dict()
212
211
  __args__['pluginId'] = plugin_id
@@ -228,9 +227,9 @@ def get_plugin(plugin_id: Optional[builtins.str] = None,
228
227
  plugin_provider_version=pulumi.get(__ret__, 'plugin_provider_version'),
229
228
  wait_for_healthy=pulumi.get(__ret__, 'wait_for_healthy'),
230
229
  wait_for_registration=pulumi.get(__ret__, 'wait_for_registration'))
231
- def get_plugin_output(plugin_id: Optional[pulumi.Input[builtins.str]] = None,
232
- wait_for_healthy: Optional[pulumi.Input[Optional[builtins.bool]]] = None,
233
- wait_for_registration: Optional[pulumi.Input[Optional[builtins.bool]]] = None,
230
+ def get_plugin_output(plugin_id: Optional[pulumi.Input[_builtins.str]] = None,
231
+ wait_for_healthy: Optional[pulumi.Input[Optional[_builtins.bool]]] = None,
232
+ wait_for_registration: Optional[pulumi.Input[Optional[_builtins.bool]]] = None,
234
233
  opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetPluginResult]:
235
234
  """
236
235
  Lookup a plugin by ID. The aim of this datasource is to determine whether
@@ -258,9 +257,9 @@ def get_plugin_output(plugin_id: Optional[pulumi.Input[builtins.str]] = None,
258
257
  is healthy before returning.
259
258
 
260
259
 
261
- :param builtins.str plugin_id: `(string)` ID of the plugin.
262
- :param builtins.bool wait_for_healthy: `(boolean)` retry until the plugin exists and all controllers are healthy
263
- :param builtins.bool wait_for_registration: `(boolean)` if the plugin doesn't exist, retry until it does
260
+ :param _builtins.str plugin_id: `(string)` ID of the plugin.
261
+ :param _builtins.bool wait_for_healthy: `(boolean)` retry until the plugin exists and all controllers are healthy
262
+ :param _builtins.bool wait_for_registration: `(boolean)` if the plugin doesn't exist, retry until it does
264
263
  """
265
264
  __args__ = dict()
266
265
  __args__['pluginId'] = plugin_id
@@ -1,9 +1,8 @@
1
1
  # coding=utf-8
2
- # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
2
+ # *** WARNING: this file was generated by pulumi-language-python. ***
3
3
  # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
 
5
- import builtins
6
- import copy
5
+ import builtins as _builtins
7
6
  import warnings
8
7
  import sys
9
8
  import pulumi
@@ -38,25 +37,25 @@ class GetPluginsResult:
38
37
  raise TypeError("Expected argument 'type' to be a str")
39
38
  pulumi.set(__self__, "type", type)
40
39
 
41
- @property
40
+ @_builtins.property
42
41
  @pulumi.getter
43
- def id(self) -> builtins.str:
42
+ def id(self) -> _builtins.str:
44
43
  """
45
44
  The provider-assigned unique ID for this managed resource.
46
45
  """
47
46
  return pulumi.get(self, "id")
48
47
 
49
- @property
48
+ @_builtins.property
50
49
  @pulumi.getter
51
- def plugins(self) -> Sequence[Mapping[str, builtins.str]]:
50
+ def plugins(self) -> Sequence[Mapping[str, _builtins.str]]:
52
51
  """
53
52
  `(list of maps)` a list of dynamic plugins registered in the cluster.
54
53
  """
55
54
  return pulumi.get(self, "plugins")
56
55
 
57
- @property
56
+ @_builtins.property
58
57
  @pulumi.getter
59
- def type(self) -> Optional[builtins.str]:
58
+ def type(self) -> Optional[_builtins.str]:
60
59
  return pulumi.get(self, "type")
61
60
 
62
61
 
@@ -71,7 +70,7 @@ class AwaitableGetPluginsResult(GetPluginsResult):
71
70
  type=self.type)
72
71
 
73
72
 
74
- def get_plugins(type: Optional[builtins.str] = None,
73
+ def get_plugins(type: Optional[_builtins.str] = None,
75
74
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetPluginsResult:
76
75
  """
77
76
  Retrieve a list of dynamic plugins in Nomad.
@@ -94,7 +93,7 @@ def get_plugins(type: Optional[builtins.str] = None,
94
93
  id=pulumi.get(__ret__, 'id'),
95
94
  plugins=pulumi.get(__ret__, 'plugins'),
96
95
  type=pulumi.get(__ret__, 'type'))
97
- def get_plugins_output(type: Optional[pulumi.Input[Optional[builtins.str]]] = None,
96
+ def get_plugins_output(type: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
98
97
  opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetPluginsResult]:
99
98
  """
100
99
  Retrieve a list of dynamic plugins in Nomad.
@@ -1,9 +1,8 @@
1
1
  # coding=utf-8
2
- # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
2
+ # *** WARNING: this file was generated by pulumi-language-python. ***
3
3
  # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
 
5
- import builtins
6
- import copy
5
+ import builtins as _builtins
7
6
  import warnings
8
7
  import sys
9
8
  import pulumi
@@ -35,17 +34,17 @@ class GetRegionsResult:
35
34
  raise TypeError("Expected argument 'regions' to be a list")
36
35
  pulumi.set(__self__, "regions", regions)
37
36
 
38
- @property
37
+ @_builtins.property
39
38
  @pulumi.getter
40
- def id(self) -> builtins.str:
39
+ def id(self) -> _builtins.str:
41
40
  """
42
41
  The provider-assigned unique ID for this managed resource.
43
42
  """
44
43
  return pulumi.get(self, "id")
45
44
 
46
- @property
45
+ @_builtins.property
47
46
  @pulumi.getter
48
- def regions(self) -> Sequence[builtins.str]:
47
+ def regions(self) -> Sequence[_builtins.str]:
49
48
  """
50
49
  `(list of strings)` - a list of regions available in the cluster.
51
50
  """
@@ -79,8 +78,11 @@ def get_regions(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetRegi
79
78
  my_regions = nomad.get_regions()
80
79
  jobs = not_implemented("The template_file data resource is not yet supported.")
81
80
  app = []
82
- for range in [{"value": i} for i in range(0, len(my_regions.regions))]:
83
- app.append(nomad.Job(f"app-{range['value']}", jobspec=jobs[range["value"]]["rendered"]))
81
+ def create_app(range_body):
82
+ for range in [{"value": i} for i in range(0, range_body)]:
83
+ app.append(nomad.Job(f"app-{range['value']}", jobspec=jobs[range["value"]]["rendered"]))
84
+
85
+ (len(my_regions.regions)).apply(create_app)
84
86
  ```
85
87
  """
86
88
  __args__ = dict()
@@ -107,8 +109,11 @@ def get_regions_output(opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeO
107
109
  my_regions = nomad.get_regions()
108
110
  jobs = not_implemented("The template_file data resource is not yet supported.")
109
111
  app = []
110
- for range in [{"value": i} for i in range(0, len(my_regions.regions))]:
111
- app.append(nomad.Job(f"app-{range['value']}", jobspec=jobs[range["value"]]["rendered"]))
112
+ def create_app(range_body):
113
+ for range in [{"value": i} for i in range(0, range_body)]:
114
+ app.append(nomad.Job(f"app-{range['value']}", jobspec=jobs[range["value"]]["rendered"]))
115
+
116
+ (len(my_regions.regions)).apply(create_app)
112
117
  ```
113
118
  """
114
119
  __args__ = dict()
@@ -1,9 +1,8 @@
1
1
  # coding=utf-8
2
- # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
2
+ # *** WARNING: this file was generated by pulumi-language-python. ***
3
3
  # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
 
5
- import builtins
6
- import copy
5
+ import builtins as _builtins
7
6
  import warnings
8
7
  import sys
9
8
  import pulumi
@@ -42,20 +41,20 @@ class GetScalingPoliciesResult:
42
41
  raise TypeError("Expected argument 'type' to be a str")
43
42
  pulumi.set(__self__, "type", type)
44
43
 
45
- @property
44
+ @_builtins.property
46
45
  @pulumi.getter
47
- def id(self) -> builtins.str:
46
+ def id(self) -> _builtins.str:
48
47
  """
49
48
  The provider-assigned unique ID for this managed resource.
50
49
  """
51
50
  return pulumi.get(self, "id")
52
51
 
53
- @property
52
+ @_builtins.property
54
53
  @pulumi.getter(name="jobId")
55
- def job_id(self) -> Optional[builtins.str]:
54
+ def job_id(self) -> Optional[_builtins.str]:
56
55
  return pulumi.get(self, "job_id")
57
56
 
58
- @property
57
+ @_builtins.property
59
58
  @pulumi.getter
60
59
  def policies(self) -> Sequence['outputs.GetScalingPoliciesPolicyResult']:
61
60
  """
@@ -63,9 +62,9 @@ class GetScalingPoliciesResult:
63
62
  """
64
63
  return pulumi.get(self, "policies")
65
64
 
66
- @property
65
+ @_builtins.property
67
66
  @pulumi.getter
68
- def type(self) -> Optional[builtins.str]:
67
+ def type(self) -> Optional[_builtins.str]:
69
68
  """
70
69
  `(string)` - The scaling policy type.
71
70
  """
@@ -84,8 +83,8 @@ class AwaitableGetScalingPoliciesResult(GetScalingPoliciesResult):
84
83
  type=self.type)
85
84
 
86
85
 
87
- def get_scaling_policies(job_id: Optional[builtins.str] = None,
88
- type: Optional[builtins.str] = None,
86
+ def get_scaling_policies(job_id: Optional[_builtins.str] = None,
87
+ type: Optional[_builtins.str] = None,
89
88
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetScalingPoliciesResult:
90
89
  """
91
90
  Retrieve a list of Scaling Policies.
@@ -101,8 +100,8 @@ def get_scaling_policies(job_id: Optional[builtins.str] = None,
101
100
  ```
102
101
 
103
102
 
104
- :param builtins.str job_id: `(string)` - An optional string to filter scaling policies based on the target job. If not provided, policies for all jobs are returned.
105
- :param builtins.str type: `(string)` - An optional string to filter scaling policies based on policy type. If not provided, policies of all types are returned.
103
+ :param _builtins.str job_id: `(string)` - An optional string to filter scaling policies based on the target job. If not provided, policies for all jobs are returned.
104
+ :param _builtins.str type: `(string)` - An optional string to filter scaling policies based on policy type. If not provided, policies of all types are returned.
106
105
  """
107
106
  __args__ = dict()
108
107
  __args__['jobId'] = job_id
@@ -115,8 +114,8 @@ def get_scaling_policies(job_id: Optional[builtins.str] = None,
115
114
  job_id=pulumi.get(__ret__, 'job_id'),
116
115
  policies=pulumi.get(__ret__, 'policies'),
117
116
  type=pulumi.get(__ret__, 'type'))
118
- def get_scaling_policies_output(job_id: Optional[pulumi.Input[Optional[builtins.str]]] = None,
119
- type: Optional[pulumi.Input[Optional[builtins.str]]] = None,
117
+ def get_scaling_policies_output(job_id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
118
+ type: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
120
119
  opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetScalingPoliciesResult]:
121
120
  """
122
121
  Retrieve a list of Scaling Policies.
@@ -132,8 +131,8 @@ def get_scaling_policies_output(job_id: Optional[pulumi.Input[Optional[builtins.
132
131
  ```
133
132
 
134
133
 
135
- :param builtins.str job_id: `(string)` - An optional string to filter scaling policies based on the target job. If not provided, policies for all jobs are returned.
136
- :param builtins.str type: `(string)` - An optional string to filter scaling policies based on policy type. If not provided, policies of all types are returned.
134
+ :param _builtins.str job_id: `(string)` - An optional string to filter scaling policies based on the target job. If not provided, policies for all jobs are returned.
135
+ :param _builtins.str type: `(string)` - An optional string to filter scaling policies based on policy type. If not provided, policies of all types are returned.
137
136
  """
138
137
  __args__ = dict()
139
138
  __args__['jobId'] = job_id