pulumi-nomad 2.3.0a1713561631__py3-none-any.whl → 2.3.0a1713899842__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pulumi_nomad/_inputs.py +32 -126
- pulumi_nomad/acl_auth_method.py +0 -4
- pulumi_nomad/acl_token.py +0 -16
- pulumi_nomad/csi_volume.py +0 -72
- pulumi_nomad/csi_volume_registration.py +0 -72
- pulumi_nomad/external_volume.py +0 -76
- pulumi_nomad/get_acl_policies.py +0 -4
- pulumi_nomad/get_acl_policy.py +0 -4
- pulumi_nomad/get_acl_role.py +0 -4
- pulumi_nomad/get_acl_roles.py +0 -4
- pulumi_nomad/get_acl_token.py +0 -4
- pulumi_nomad/get_acl_tokens.py +0 -4
- pulumi_nomad/get_allocations.py +0 -4
- pulumi_nomad/get_datacenters.py +0 -4
- pulumi_nomad/get_deployments.py +0 -4
- pulumi_nomad/get_job.py +0 -4
- pulumi_nomad/get_namespace.py +0 -4
- pulumi_nomad/get_namespaces.py +0 -4
- pulumi_nomad/get_node_pool.py +0 -4
- pulumi_nomad/get_node_pools.py +0 -4
- pulumi_nomad/get_plugin.py +0 -4
- pulumi_nomad/get_plugins.py +0 -4
- pulumi_nomad/get_regions.py +0 -4
- pulumi_nomad/get_scaling_policies.py +0 -4
- pulumi_nomad/get_scaling_policy.py +0 -4
- pulumi_nomad/get_scheduler_policy.py +0 -4
- pulumi_nomad/get_variable.py +0 -4
- pulumi_nomad/get_volumes.py +0 -4
- pulumi_nomad/namespace.py +0 -8
- pulumi_nomad/node_pool.py +0 -4
- pulumi_nomad/outputs.py +32 -126
- pulumi_nomad/quote_specification.py +0 -4
- pulumi_nomad/scheduler_config.py +0 -4
- pulumi_nomad/sentinel_policy.py +0 -4
- pulumi_nomad/variable.py +0 -8
- pulumi_nomad/volume.py +0 -76
- {pulumi_nomad-2.3.0a1713561631.dist-info → pulumi_nomad-2.3.0a1713899842.dist-info}/METADATA +1 -1
- pulumi_nomad-2.3.0a1713899842.dist-info/RECORD +54 -0
- pulumi_nomad-2.3.0a1713561631.dist-info/RECORD +0 -54
- {pulumi_nomad-2.3.0a1713561631.dist-info → pulumi_nomad-2.3.0a1713899842.dist-info}/WHEEL +0 -0
- {pulumi_nomad-2.3.0a1713561631.dist-info → pulumi_nomad-2.3.0a1713899842.dist-info}/top_level.txt +0 -0
pulumi_nomad/get_acl_policies.py
CHANGED
@@ -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.
|
pulumi_nomad/get_acl_policy.py
CHANGED
@@ -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.
|
pulumi_nomad/get_acl_role.py
CHANGED
@@ -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.
|
pulumi_nomad/get_acl_roles.py
CHANGED
@@ -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
|
pulumi_nomad/get_acl_token.py
CHANGED
@@ -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.
|
pulumi_nomad/get_acl_tokens.py
CHANGED
@@ -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.
|
pulumi_nomad/get_allocations.py
CHANGED
@@ -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
|
pulumi_nomad/get_datacenters.py
CHANGED
@@ -82,7 +82,6 @@ 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
|
@@ -90,7 +89,6 @@ def get_datacenters(ignore_down_nodes: Optional[bool] = None,
|
|
90
89
|
datacenters = nomad.get_datacenters(prefix="prod",
|
91
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,7 +116,6 @@ 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
|
@@ -126,7 +123,6 @@ def get_datacenters_output(ignore_down_nodes: Optional[pulumi.Input[Optional[boo
|
|
126
123
|
datacenters = nomad.get_datacenters(prefix="prod",
|
127
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.
|
pulumi_nomad/get_deployments.py
CHANGED
@@ -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.
|
pulumi_nomad/get_namespace.py
CHANGED
@@ -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.
|
pulumi_nomad/get_namespaces.py
CHANGED
@@ -62,7 +62,6 @@ def get_namespaces(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetN
|
|
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
|
@@ -78,7 +77,6 @@ def get_namespaces(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetN
|
|
78
77
|
}}
|
79
78
|
\"\"\"))
|
80
79
|
```
|
81
|
-
<!--End PulumiCodeChooser -->
|
82
80
|
"""
|
83
81
|
__args__ = dict()
|
84
82
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
@@ -96,7 +94,6 @@ def get_namespaces_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi
|
|
96
94
|
|
97
95
|
## Example Usage
|
98
96
|
|
99
|
-
<!--Start PulumiCodeChooser -->
|
100
97
|
```python
|
101
98
|
import pulumi
|
102
99
|
import pulumi_nomad as nomad
|
@@ -112,6 +109,5 @@ def get_namespaces_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi
|
|
112
109
|
}}
|
113
110
|
\"\"\"))
|
114
111
|
```
|
115
|
-
<!--End PulumiCodeChooser -->
|
116
112
|
"""
|
117
113
|
...
|
pulumi_nomad/get_node_pool.py
CHANGED
@@ -98,14 +98,12 @@ def get_node_pool(name: Optional[str] = None,
|
|
98
98
|
|
99
99
|
## Example Usage
|
100
100
|
|
101
|
-
<!--Start PulumiCodeChooser -->
|
102
101
|
```python
|
103
102
|
import pulumi
|
104
103
|
import pulumi_nomad as nomad
|
105
104
|
|
106
105
|
dev = nomad.get_node_pool(name="dev")
|
107
106
|
```
|
108
|
-
<!--End PulumiCodeChooser -->
|
109
107
|
|
110
108
|
|
111
109
|
:param str name: `(string)` - The name of the node pool to fetch.
|
@@ -131,14 +129,12 @@ def get_node_pool_output(name: Optional[pulumi.Input[str]] = None,
|
|
131
129
|
|
132
130
|
## Example Usage
|
133
131
|
|
134
|
-
<!--Start PulumiCodeChooser -->
|
135
132
|
```python
|
136
133
|
import pulumi
|
137
134
|
import pulumi_nomad as nomad
|
138
135
|
|
139
136
|
dev = nomad.get_node_pool(name="dev")
|
140
137
|
```
|
141
|
-
<!--End PulumiCodeChooser -->
|
142
138
|
|
143
139
|
|
144
140
|
:param str name: `(string)` - The name of the node pool to fetch.
|
pulumi_nomad/get_node_pools.py
CHANGED
@@ -84,14 +84,12 @@ def get_node_pools(filter: Optional[str] = None,
|
|
84
84
|
|
85
85
|
## Example Usage
|
86
86
|
|
87
|
-
<!--Start PulumiCodeChooser -->
|
88
87
|
```python
|
89
88
|
import pulumi
|
90
89
|
import pulumi_nomad as nomad
|
91
90
|
|
92
91
|
prod = nomad.get_node_pools(filter="Meta.env == \\"prod\\"")
|
93
92
|
```
|
94
|
-
<!--End PulumiCodeChooser -->
|
95
93
|
|
96
94
|
|
97
95
|
:param str filter: `(string)` - Specifies the [expression][nomad_api_filter] used to
|
@@ -121,14 +119,12 @@ def get_node_pools_output(filter: Optional[pulumi.Input[Optional[str]]] = None,
|
|
121
119
|
|
122
120
|
## Example Usage
|
123
121
|
|
124
|
-
<!--Start PulumiCodeChooser -->
|
125
122
|
```python
|
126
123
|
import pulumi
|
127
124
|
import pulumi_nomad as nomad
|
128
125
|
|
129
126
|
prod = nomad.get_node_pools(filter="Meta.env == \\"prod\\"")
|
130
127
|
```
|
131
|
-
<!--End PulumiCodeChooser -->
|
132
128
|
|
133
129
|
|
134
130
|
:param str filter: `(string)` - Specifies the [expression][nomad_api_filter] used to
|
pulumi_nomad/get_plugin.py
CHANGED
@@ -186,7 +186,6 @@ def get_plugin(plugin_id: Optional[str] = None,
|
|
186
186
|
|
187
187
|
Check for the existence of a plugin:
|
188
188
|
|
189
|
-
<!--Start PulumiCodeChooser -->
|
190
189
|
```python
|
191
190
|
import pulumi
|
192
191
|
import pulumi_nomad as nomad
|
@@ -194,7 +193,6 @@ def get_plugin(plugin_id: Optional[str] = None,
|
|
194
193
|
ebs = nomad.get_plugin(plugin_id="aws-ebs0",
|
195
194
|
wait_for_healthy=True)
|
196
195
|
```
|
197
|
-
<!--End PulumiCodeChooser -->
|
198
196
|
|
199
197
|
This will check for a plugin with the ID `aws-ebs0`, waiting until the plugin
|
200
198
|
is healthy before returning.
|
@@ -245,7 +243,6 @@ def get_plugin_output(plugin_id: Optional[pulumi.Input[str]] = None,
|
|
245
243
|
|
246
244
|
Check for the existence of a plugin:
|
247
245
|
|
248
|
-
<!--Start PulumiCodeChooser -->
|
249
246
|
```python
|
250
247
|
import pulumi
|
251
248
|
import pulumi_nomad as nomad
|
@@ -253,7 +250,6 @@ def get_plugin_output(plugin_id: Optional[pulumi.Input[str]] = None,
|
|
253
250
|
ebs = nomad.get_plugin(plugin_id="aws-ebs0",
|
254
251
|
wait_for_healthy=True)
|
255
252
|
```
|
256
|
-
<!--End PulumiCodeChooser -->
|
257
253
|
|
258
254
|
This will check for a plugin with the ID `aws-ebs0`, waiting until the plugin
|
259
255
|
is healthy before returning.
|
pulumi_nomad/get_plugins.py
CHANGED
@@ -72,14 +72,12 @@ def get_plugins(type: Optional[str] = None,
|
|
72
72
|
|
73
73
|
## Example Usage
|
74
74
|
|
75
|
-
<!--Start PulumiCodeChooser -->
|
76
75
|
```python
|
77
76
|
import pulumi
|
78
77
|
import pulumi_nomad as nomad
|
79
78
|
|
80
79
|
example = nomad.get_plugins()
|
81
80
|
```
|
82
|
-
<!--End PulumiCodeChooser -->
|
83
81
|
"""
|
84
82
|
__args__ = dict()
|
85
83
|
__args__['type'] = type
|
@@ -100,13 +98,11 @@ def get_plugins_output(type: Optional[pulumi.Input[Optional[str]]] = None,
|
|
100
98
|
|
101
99
|
## Example Usage
|
102
100
|
|
103
|
-
<!--Start PulumiCodeChooser -->
|
104
101
|
```python
|
105
102
|
import pulumi
|
106
103
|
import pulumi_nomad as nomad
|
107
104
|
|
108
105
|
example = nomad.get_plugins()
|
109
106
|
```
|
110
|
-
<!--End PulumiCodeChooser -->
|
111
107
|
"""
|
112
108
|
...
|
pulumi_nomad/get_regions.py
CHANGED
@@ -62,7 +62,6 @@ def get_regions(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetRegi
|
|
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
|
@@ -77,7 +76,6 @@ def get_regions(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetRegi
|
|
77
76
|
for range in [{"value": i} for i in range(0, len(my_regions.regions))]:
|
78
77
|
app.append(nomad.Job(f"app-{range['value']}", jobspec=jobs[range["value"]]["rendered"]))
|
79
78
|
```
|
80
|
-
<!--End PulumiCodeChooser -->
|
81
79
|
"""
|
82
80
|
__args__ = dict()
|
83
81
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
@@ -95,7 +93,6 @@ def get_regions_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Ou
|
|
95
93
|
|
96
94
|
## Example Usage
|
97
95
|
|
98
|
-
<!--Start PulumiCodeChooser -->
|
99
96
|
```python
|
100
97
|
import pulumi
|
101
98
|
import pulumi_nomad as nomad
|
@@ -110,6 +107,5 @@ def get_regions_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Ou
|
|
110
107
|
for range in [{"value": i} for i in range(0, len(my_regions.regions))]:
|
111
108
|
app.append(nomad.Job(f"app-{range['value']}", jobspec=jobs[range["value"]]["rendered"]))
|
112
109
|
```
|
113
|
-
<!--End PulumiCodeChooser -->
|
114
110
|
"""
|
115
111
|
...
|
@@ -86,7 +86,6 @@ def get_scaling_policies(job_id: Optional[str] = None,
|
|
86
86
|
|
87
87
|
## Example Usage
|
88
88
|
|
89
|
-
<!--Start PulumiCodeChooser -->
|
90
89
|
```python
|
91
90
|
import pulumi
|
92
91
|
import pulumi_nomad as nomad
|
@@ -94,7 +93,6 @@ def get_scaling_policies(job_id: Optional[str] = None,
|
|
94
93
|
example = nomad.get_scaling_policies(job_id="webapp",
|
95
94
|
type="horizontal")
|
96
95
|
```
|
97
|
-
<!--End PulumiCodeChooser -->
|
98
96
|
|
99
97
|
|
100
98
|
:param 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.
|
@@ -122,7 +120,6 @@ def get_scaling_policies_output(job_id: Optional[pulumi.Input[Optional[str]]] =
|
|
122
120
|
|
123
121
|
## Example Usage
|
124
122
|
|
125
|
-
<!--Start PulumiCodeChooser -->
|
126
123
|
```python
|
127
124
|
import pulumi
|
128
125
|
import pulumi_nomad as nomad
|
@@ -130,7 +127,6 @@ def get_scaling_policies_output(job_id: Optional[pulumi.Input[Optional[str]]] =
|
|
130
127
|
example = nomad.get_scaling_policies(job_id="webapp",
|
131
128
|
type="horizontal")
|
132
129
|
```
|
133
|
-
<!--End PulumiCodeChooser -->
|
134
130
|
|
135
131
|
|
136
132
|
:param 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.
|
@@ -120,14 +120,12 @@ def get_scaling_policy(id: Optional[str] = None,
|
|
120
120
|
|
121
121
|
## Example Usage
|
122
122
|
|
123
|
-
<!--Start PulumiCodeChooser -->
|
124
123
|
```python
|
125
124
|
import pulumi
|
126
125
|
import pulumi_nomad as nomad
|
127
126
|
|
128
127
|
example = nomad.get_scaling_policy(id="ad19848d-1921-179c-affa-244a3543be88")
|
129
128
|
```
|
130
|
-
<!--End PulumiCodeChooser -->
|
131
129
|
|
132
130
|
|
133
131
|
:param str id: `(string: <required>)` - The ID of the scaling policy.
|
@@ -155,14 +153,12 @@ def get_scaling_policy_output(id: Optional[pulumi.Input[str]] = None,
|
|
155
153
|
|
156
154
|
## Example Usage
|
157
155
|
|
158
|
-
<!--Start PulumiCodeChooser -->
|
159
156
|
```python
|
160
157
|
import pulumi
|
161
158
|
import pulumi_nomad as nomad
|
162
159
|
|
163
160
|
example = nomad.get_scaling_policy(id="ad19848d-1921-179c-affa-244a3543be88")
|
164
161
|
```
|
165
|
-
<!--End PulumiCodeChooser -->
|
166
162
|
|
167
163
|
|
168
164
|
:param str id: `(string: <required>)` - The ID of the scaling policy.
|
@@ -86,14 +86,12 @@ def get_scheduler_policy(opts: Optional[pulumi.InvokeOptions] = None) -> Awaitab
|
|
86
86
|
|
87
87
|
## Example Usage
|
88
88
|
|
89
|
-
<!--Start PulumiCodeChooser -->
|
90
89
|
```python
|
91
90
|
import pulumi
|
92
91
|
import pulumi_nomad as nomad
|
93
92
|
|
94
93
|
global_ = nomad.get_scheduler_policy()
|
95
94
|
```
|
96
|
-
<!--End PulumiCodeChooser -->
|
97
95
|
"""
|
98
96
|
__args__ = dict()
|
99
97
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
@@ -113,13 +111,11 @@ def get_scheduler_policy_output(opts: Optional[pulumi.InvokeOptions] = None) ->
|
|
113
111
|
|
114
112
|
## Example Usage
|
115
113
|
|
116
|
-
<!--Start PulumiCodeChooser -->
|
117
114
|
```python
|
118
115
|
import pulumi
|
119
116
|
import pulumi_nomad as nomad
|
120
117
|
|
121
118
|
global_ = nomad.get_scheduler_policy()
|
122
119
|
```
|
123
|
-
<!--End PulumiCodeChooser -->
|
124
120
|
"""
|
125
121
|
...
|
pulumi_nomad/get_variable.py
CHANGED
@@ -86,14 +86,12 @@ def get_variable(namespace: Optional[str] = None,
|
|
86
86
|
"""
|
87
87
|
## Example Usage
|
88
88
|
|
89
|
-
<!--Start PulumiCodeChooser -->
|
90
89
|
```python
|
91
90
|
import pulumi
|
92
91
|
import pulumi_nomad as nomad
|
93
92
|
|
94
93
|
example = nomad.Variable("example", path="path/of/existing/variable")
|
95
94
|
```
|
96
|
-
<!--End PulumiCodeChooser -->
|
97
95
|
|
98
96
|
|
99
97
|
:param str namespace: `(string: "default")` - The namepsace in which the variable exists.
|
@@ -119,14 +117,12 @@ def get_variable_output(namespace: Optional[pulumi.Input[Optional[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
|
example = nomad.Variable("example", path="path/of/existing/variable")
|
128
125
|
```
|
129
|
-
<!--End PulumiCodeChooser -->
|
130
126
|
|
131
127
|
|
132
128
|
:param str namespace: `(string: "default")` - The namepsace in which the variable exists.
|
pulumi_nomad/get_volumes.py
CHANGED
@@ -105,14 +105,12 @@ def get_volumes(namespace: Optional[str] = None,
|
|
105
105
|
|
106
106
|
## Example Usage
|
107
107
|
|
108
|
-
<!--Start PulumiCodeChooser -->
|
109
108
|
```python
|
110
109
|
import pulumi
|
111
110
|
import pulumi_nomad as nomad
|
112
111
|
|
113
112
|
example = nomad.get_volumes()
|
114
113
|
```
|
115
|
-
<!--End PulumiCodeChooser -->
|
116
114
|
|
117
115
|
|
118
116
|
:param str namespace: `(string: "default")` Nomad namespace.
|
@@ -148,14 +146,12 @@ def get_volumes_output(namespace: Optional[pulumi.Input[Optional[str]]] = None,
|
|
148
146
|
|
149
147
|
## Example Usage
|
150
148
|
|
151
|
-
<!--Start PulumiCodeChooser -->
|
152
149
|
```python
|
153
150
|
import pulumi
|
154
151
|
import pulumi_nomad as nomad
|
155
152
|
|
156
153
|
example = nomad.get_volumes()
|
157
154
|
```
|
158
|
-
<!--End PulumiCodeChooser -->
|
159
155
|
|
160
156
|
|
161
157
|
:param str namespace: `(string: "default")` Nomad namespace.
|