pulumi-nomad 2.6.0a1753337858__py3-none-any.whl → 2.6.0a1753510487__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/__init__.py +1 -1
- pulumi_nomad/_inputs.py +608 -609
- pulumi_nomad/acl_auth_method.py +106 -107
- pulumi_nomad/acl_binding_rule.py +86 -87
- pulumi_nomad/acl_policy.py +55 -56
- pulumi_nomad/acl_role.py +38 -39
- pulumi_nomad/acl_token.py +125 -126
- pulumi_nomad/config/__init__.py +1 -1
- pulumi_nomad/config/__init__.pyi +1 -2
- pulumi_nomad/config/outputs.py +9 -10
- pulumi_nomad/config/vars.py +14 -15
- pulumi_nomad/csi_volume.py +277 -278
- pulumi_nomad/csi_volume_registration.py +276 -277
- pulumi_nomad/dynamic_host_volume.py +191 -192
- pulumi_nomad/dynamic_host_volume_registration.py +156 -157
- pulumi_nomad/external_volume.py +255 -256
- pulumi_nomad/get_acl_policies.py +10 -11
- pulumi_nomad/get_acl_policy.py +13 -14
- pulumi_nomad/get_acl_role.py +12 -13
- pulumi_nomad/get_acl_roles.py +10 -11
- pulumi_nomad/get_acl_token.py +26 -27
- pulumi_nomad/get_acl_tokens.py +10 -11
- pulumi_nomad/get_allocations.py +22 -23
- pulumi_nomad/get_datacenters.py +17 -18
- pulumi_nomad/get_deployments.py +5 -6
- pulumi_nomad/get_dynamic_host_volume.py +41 -42
- pulumi_nomad/get_job.py +50 -51
- pulumi_nomad/get_job_parser.py +17 -18
- pulumi_nomad/get_jwks.py +6 -7
- pulumi_nomad/get_namespace.py +17 -18
- pulumi_nomad/get_namespaces.py +5 -6
- pulumi_nomad/get_node_pool.py +14 -15
- pulumi_nomad/get_node_pools.py +16 -17
- pulumi_nomad/get_plugin.py +36 -37
- pulumi_nomad/get_plugins.py +9 -10
- pulumi_nomad/get_regions.py +5 -6
- pulumi_nomad/get_scaling_policies.py +16 -17
- pulumi_nomad/get_scaling_policy.py +19 -20
- pulumi_nomad/get_scheduler_policy.py +9 -10
- pulumi_nomad/get_variable.py +17 -18
- pulumi_nomad/get_volumes.py +29 -30
- pulumi_nomad/job.py +245 -246
- pulumi_nomad/namespace.py +75 -76
- pulumi_nomad/node_pool.py +55 -56
- pulumi_nomad/outputs.py +743 -744
- pulumi_nomad/provider.py +119 -120
- pulumi_nomad/pulumi-plugin.json +1 -1
- pulumi_nomad/quote_specification.py +38 -39
- pulumi_nomad/scheduler_config.py +52 -53
- pulumi_nomad/sentinel_policy.py +86 -87
- pulumi_nomad/variable.py +52 -53
- pulumi_nomad/volume.py +272 -273
- {pulumi_nomad-2.6.0a1753337858.dist-info → pulumi_nomad-2.6.0a1753510487.dist-info}/METADATA +1 -1
- pulumi_nomad-2.6.0a1753510487.dist-info/RECORD +58 -0
- pulumi_nomad-2.6.0a1753337858.dist-info/RECORD +0 -58
- {pulumi_nomad-2.6.0a1753337858.dist-info → pulumi_nomad-2.6.0a1753510487.dist-info}/WHEEL +0 -0
- {pulumi_nomad-2.6.0a1753337858.dist-info → pulumi_nomad-2.6.0a1753510487.dist-info}/top_level.txt +0 -0
pulumi_nomad/get_plugins.py
CHANGED
@@ -2,8 +2,7 @@
|
|
2
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) ->
|
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,
|
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[
|
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[
|
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[
|
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.
|
pulumi_nomad/get_regions.py
CHANGED
@@ -2,8 +2,7 @@
|
|
2
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) ->
|
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[
|
47
|
+
def regions(self) -> Sequence[_builtins.str]:
|
49
48
|
"""
|
50
49
|
`(list of strings)` - a list of regions available in the cluster.
|
51
50
|
"""
|
@@ -2,8 +2,7 @@
|
|
2
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) ->
|
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[
|
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[
|
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[
|
88
|
-
type: Optional[
|
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
|
105
|
-
:param
|
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[
|
119
|
-
type: Optional[pulumi.Input[Optional[
|
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
|
136
|
-
:param
|
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
|
@@ -2,8 +2,7 @@
|
|
2
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
|
@@ -50,54 +49,54 @@ class GetScalingPolicyResult:
|
|
50
49
|
raise TypeError("Expected argument 'type' to be a str")
|
51
50
|
pulumi.set(__self__, "type", type)
|
52
51
|
|
53
|
-
@property
|
52
|
+
@_builtins.property
|
54
53
|
@pulumi.getter
|
55
|
-
def enabled(self) ->
|
54
|
+
def enabled(self) -> _builtins.bool:
|
56
55
|
"""
|
57
56
|
`(boolean)` - Whether or not the scaling policy is enabled.
|
58
57
|
"""
|
59
58
|
return pulumi.get(self, "enabled")
|
60
59
|
|
61
|
-
@property
|
60
|
+
@_builtins.property
|
62
61
|
@pulumi.getter
|
63
|
-
def id(self) ->
|
62
|
+
def id(self) -> _builtins.str:
|
64
63
|
return pulumi.get(self, "id")
|
65
64
|
|
66
|
-
@property
|
65
|
+
@_builtins.property
|
67
66
|
@pulumi.getter
|
68
|
-
def max(self) ->
|
67
|
+
def max(self) -> _builtins.int:
|
69
68
|
"""
|
70
69
|
`(integer)` - The maximum value set in the scaling policy.
|
71
70
|
"""
|
72
71
|
return pulumi.get(self, "max")
|
73
72
|
|
74
|
-
@property
|
73
|
+
@_builtins.property
|
75
74
|
@pulumi.getter
|
76
|
-
def min(self) ->
|
75
|
+
def min(self) -> _builtins.int:
|
77
76
|
"""
|
78
77
|
`(integer)` - The minimum value set in the scaling policy.
|
79
78
|
"""
|
80
79
|
return pulumi.get(self, "min")
|
81
80
|
|
82
|
-
@property
|
81
|
+
@_builtins.property
|
83
82
|
@pulumi.getter
|
84
|
-
def policy(self) ->
|
83
|
+
def policy(self) -> _builtins.str:
|
85
84
|
"""
|
86
85
|
`(string)` - The policy inside the scaling policy.
|
87
86
|
"""
|
88
87
|
return pulumi.get(self, "policy")
|
89
88
|
|
90
|
-
@property
|
89
|
+
@_builtins.property
|
91
90
|
@pulumi.getter
|
92
|
-
def target(self) -> Mapping[str,
|
91
|
+
def target(self) -> Mapping[str, _builtins.str]:
|
93
92
|
"""
|
94
93
|
`(map[string]string)` - The scaling policy target.
|
95
94
|
"""
|
96
95
|
return pulumi.get(self, "target")
|
97
96
|
|
98
|
-
@property
|
97
|
+
@_builtins.property
|
99
98
|
@pulumi.getter
|
100
|
-
def type(self) ->
|
99
|
+
def type(self) -> _builtins.str:
|
101
100
|
"""
|
102
101
|
`(string)` - The scaling policy type.
|
103
102
|
"""
|
@@ -119,7 +118,7 @@ class AwaitableGetScalingPolicyResult(GetScalingPolicyResult):
|
|
119
118
|
type=self.type)
|
120
119
|
|
121
120
|
|
122
|
-
def get_scaling_policy(id: Optional[
|
121
|
+
def get_scaling_policy(id: Optional[_builtins.str] = None,
|
123
122
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetScalingPolicyResult:
|
124
123
|
"""
|
125
124
|
Retrieve a Scaling Policy.
|
@@ -134,7 +133,7 @@ def get_scaling_policy(id: Optional[builtins.str] = None,
|
|
134
133
|
```
|
135
134
|
|
136
135
|
|
137
|
-
:param
|
136
|
+
:param _builtins.str id: `(string: <required>)` - The ID of the scaling policy.
|
138
137
|
"""
|
139
138
|
__args__ = dict()
|
140
139
|
__args__['id'] = id
|
@@ -149,7 +148,7 @@ def get_scaling_policy(id: Optional[builtins.str] = None,
|
|
149
148
|
policy=pulumi.get(__ret__, 'policy'),
|
150
149
|
target=pulumi.get(__ret__, 'target'),
|
151
150
|
type=pulumi.get(__ret__, 'type'))
|
152
|
-
def get_scaling_policy_output(id: Optional[pulumi.Input[
|
151
|
+
def get_scaling_policy_output(id: Optional[pulumi.Input[_builtins.str]] = None,
|
153
152
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetScalingPolicyResult]:
|
154
153
|
"""
|
155
154
|
Retrieve a Scaling Policy.
|
@@ -164,7 +163,7 @@ def get_scaling_policy_output(id: Optional[pulumi.Input[builtins.str]] = None,
|
|
164
163
|
```
|
165
164
|
|
166
165
|
|
167
|
-
:param
|
166
|
+
:param _builtins.str id: `(string: <required>)` - The ID of the scaling policy.
|
168
167
|
"""
|
169
168
|
__args__ = dict()
|
170
169
|
__args__['id'] = id
|
@@ -2,8 +2,7 @@
|
|
2
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
|
@@ -41,33 +40,33 @@ class GetSchedulerPolicyResult:
|
|
41
40
|
raise TypeError("Expected argument 'scheduler_algorithm' to be a str")
|
42
41
|
pulumi.set(__self__, "scheduler_algorithm", scheduler_algorithm)
|
43
42
|
|
44
|
-
@property
|
43
|
+
@_builtins.property
|
45
44
|
@pulumi.getter
|
46
|
-
def id(self) ->
|
45
|
+
def id(self) -> _builtins.str:
|
47
46
|
"""
|
48
47
|
The provider-assigned unique ID for this managed resource.
|
49
48
|
"""
|
50
49
|
return pulumi.get(self, "id")
|
51
50
|
|
52
|
-
@property
|
51
|
+
@_builtins.property
|
53
52
|
@pulumi.getter(name="memoryOversubscriptionEnabled")
|
54
|
-
def memory_oversubscription_enabled(self) ->
|
53
|
+
def memory_oversubscription_enabled(self) -> _builtins.bool:
|
55
54
|
"""
|
56
55
|
`(bool: false)` - When `true`, tasks may exceed their reserved memory limit.
|
57
56
|
"""
|
58
57
|
return pulumi.get(self, "memory_oversubscription_enabled")
|
59
58
|
|
60
|
-
@property
|
59
|
+
@_builtins.property
|
61
60
|
@pulumi.getter(name="preemptionConfig")
|
62
|
-
def preemption_config(self) -> Mapping[str,
|
61
|
+
def preemption_config(self) -> Mapping[str, _builtins.bool]:
|
63
62
|
"""
|
64
63
|
`(map[string]bool)` - Options to enable preemption for various schedulers.
|
65
64
|
"""
|
66
65
|
return pulumi.get(self, "preemption_config")
|
67
66
|
|
68
|
-
@property
|
67
|
+
@_builtins.property
|
69
68
|
@pulumi.getter(name="schedulerAlgorithm")
|
70
|
-
def scheduler_algorithm(self) ->
|
69
|
+
def scheduler_algorithm(self) -> _builtins.str:
|
71
70
|
"""
|
72
71
|
`(string)` - Specifies whether scheduler binpacks or spreads allocations on available nodes.
|
73
72
|
"""
|
pulumi_nomad/get_variable.py
CHANGED
@@ -2,8 +2,7 @@
|
|
2
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
|
@@ -41,33 +40,33 @@ class GetVariableResult:
|
|
41
40
|
raise TypeError("Expected argument 'path' to be a str")
|
42
41
|
pulumi.set(__self__, "path", path)
|
43
42
|
|
44
|
-
@property
|
43
|
+
@_builtins.property
|
45
44
|
@pulumi.getter
|
46
|
-
def id(self) ->
|
45
|
+
def id(self) -> _builtins.str:
|
47
46
|
"""
|
48
47
|
The provider-assigned unique ID for this managed resource.
|
49
48
|
"""
|
50
49
|
return pulumi.get(self, "id")
|
51
50
|
|
52
|
-
@property
|
51
|
+
@_builtins.property
|
53
52
|
@pulumi.getter
|
54
|
-
def items(self) -> Mapping[str,
|
53
|
+
def items(self) -> Mapping[str, _builtins.str]:
|
55
54
|
"""
|
56
55
|
`(map[string]string)` - Map of items in the variable.
|
57
56
|
"""
|
58
57
|
return pulumi.get(self, "items")
|
59
58
|
|
60
|
-
@property
|
59
|
+
@_builtins.property
|
61
60
|
@pulumi.getter
|
62
|
-
def namespace(self) -> Optional[
|
61
|
+
def namespace(self) -> Optional[_builtins.str]:
|
63
62
|
"""
|
64
63
|
`(string)` - The namespace in which the variable exists.
|
65
64
|
"""
|
66
65
|
return pulumi.get(self, "namespace")
|
67
66
|
|
68
|
-
@property
|
67
|
+
@_builtins.property
|
69
68
|
@pulumi.getter
|
70
|
-
def path(self) ->
|
69
|
+
def path(self) -> _builtins.str:
|
71
70
|
"""
|
72
71
|
`(string)` - The path at which the variable exists.
|
73
72
|
"""
|
@@ -86,8 +85,8 @@ class AwaitableGetVariableResult(GetVariableResult):
|
|
86
85
|
path=self.path)
|
87
86
|
|
88
87
|
|
89
|
-
def get_variable(namespace: Optional[
|
90
|
-
path: Optional[
|
88
|
+
def get_variable(namespace: Optional[_builtins.str] = None,
|
89
|
+
path: Optional[_builtins.str] = None,
|
91
90
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetVariableResult:
|
92
91
|
"""
|
93
92
|
## Example Usage
|
@@ -100,8 +99,8 @@ def get_variable(namespace: Optional[builtins.str] = None,
|
|
100
99
|
```
|
101
100
|
|
102
101
|
|
103
|
-
:param
|
104
|
-
:param
|
102
|
+
:param _builtins.str namespace: `(string: "default")` - The namepsace in which the variable exists.
|
103
|
+
:param _builtins.str path: `(string)` - Path to the existing variable.
|
105
104
|
"""
|
106
105
|
__args__ = dict()
|
107
106
|
__args__['namespace'] = namespace
|
@@ -114,8 +113,8 @@ def get_variable(namespace: Optional[builtins.str] = None,
|
|
114
113
|
items=pulumi.get(__ret__, 'items'),
|
115
114
|
namespace=pulumi.get(__ret__, 'namespace'),
|
116
115
|
path=pulumi.get(__ret__, 'path'))
|
117
|
-
def get_variable_output(namespace: Optional[pulumi.Input[Optional[
|
118
|
-
path: Optional[pulumi.Input[
|
116
|
+
def get_variable_output(namespace: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
117
|
+
path: Optional[pulumi.Input[_builtins.str]] = None,
|
119
118
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetVariableResult]:
|
120
119
|
"""
|
121
120
|
## Example Usage
|
@@ -128,8 +127,8 @@ def get_variable_output(namespace: Optional[pulumi.Input[Optional[builtins.str]]
|
|
128
127
|
```
|
129
128
|
|
130
129
|
|
131
|
-
:param
|
132
|
-
:param
|
130
|
+
:param _builtins.str namespace: `(string: "default")` - The namepsace in which the variable exists.
|
131
|
+
:param _builtins.str path: `(string)` - Path to the existing variable.
|
133
132
|
"""
|
134
133
|
__args__ = dict()
|
135
134
|
__args__['namespace'] = namespace
|
pulumi_nomad/get_volumes.py
CHANGED
@@ -2,8 +2,7 @@
|
|
2
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
|
@@ -47,40 +46,40 @@ class GetVolumesResult:
|
|
47
46
|
raise TypeError("Expected argument 'volumes' to be a list")
|
48
47
|
pulumi.set(__self__, "volumes", volumes)
|
49
48
|
|
50
|
-
@property
|
49
|
+
@_builtins.property
|
51
50
|
@pulumi.getter
|
52
|
-
def id(self) ->
|
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
|
60
|
-
def namespace(self) -> Optional[
|
59
|
+
def namespace(self) -> Optional[_builtins.str]:
|
61
60
|
"""
|
62
61
|
`string` Volume namespace.
|
63
62
|
"""
|
64
63
|
return pulumi.get(self, "namespace")
|
65
64
|
|
66
|
-
@property
|
65
|
+
@_builtins.property
|
67
66
|
@pulumi.getter(name="nodeId")
|
68
|
-
def node_id(self) -> Optional[
|
67
|
+
def node_id(self) -> Optional[_builtins.str]:
|
69
68
|
return pulumi.get(self, "node_id")
|
70
69
|
|
71
|
-
@property
|
70
|
+
@_builtins.property
|
72
71
|
@pulumi.getter(name="pluginId")
|
73
|
-
def plugin_id(self) -> Optional[
|
72
|
+
def plugin_id(self) -> Optional[_builtins.str]:
|
74
73
|
return pulumi.get(self, "plugin_id")
|
75
74
|
|
76
|
-
@property
|
75
|
+
@_builtins.property
|
77
76
|
@pulumi.getter
|
78
|
-
def type(self) -> Optional[
|
77
|
+
def type(self) -> Optional[_builtins.str]:
|
79
78
|
return pulumi.get(self, "type")
|
80
79
|
|
81
|
-
@property
|
80
|
+
@_builtins.property
|
82
81
|
@pulumi.getter
|
83
|
-
def volumes(self) -> Sequence[Mapping[str,
|
82
|
+
def volumes(self) -> Sequence[Mapping[str, _builtins.str]]:
|
84
83
|
"""
|
85
84
|
`list of maps` a list of volumes in the cluster.
|
86
85
|
"""
|
@@ -101,10 +100,10 @@ class AwaitableGetVolumesResult(GetVolumesResult):
|
|
101
100
|
volumes=self.volumes)
|
102
101
|
|
103
102
|
|
104
|
-
def get_volumes(namespace: Optional[
|
105
|
-
node_id: Optional[
|
106
|
-
plugin_id: Optional[
|
107
|
-
type: Optional[
|
103
|
+
def get_volumes(namespace: Optional[_builtins.str] = None,
|
104
|
+
node_id: Optional[_builtins.str] = None,
|
105
|
+
plugin_id: Optional[_builtins.str] = None,
|
106
|
+
type: Optional[_builtins.str] = None,
|
108
107
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetVolumesResult:
|
109
108
|
"""
|
110
109
|
Retrieve a list of volumes in Nomad.
|
@@ -119,10 +118,10 @@ def get_volumes(namespace: Optional[builtins.str] = None,
|
|
119
118
|
```
|
120
119
|
|
121
120
|
|
122
|
-
:param
|
123
|
-
:param
|
124
|
-
:param
|
125
|
-
:param
|
121
|
+
:param _builtins.str namespace: `(string: "default")` Nomad namespace.
|
122
|
+
:param _builtins.str node_id: `(string: optional)` Volume node filter.
|
123
|
+
:param _builtins.str plugin_id: `(string: optional)` Plugin ID filter.
|
124
|
+
:param _builtins.str type: `(string: "csi")` Volume type (one of `csi` or `host`)
|
126
125
|
"""
|
127
126
|
__args__ = dict()
|
128
127
|
__args__['namespace'] = namespace
|
@@ -139,10 +138,10 @@ def get_volumes(namespace: Optional[builtins.str] = None,
|
|
139
138
|
plugin_id=pulumi.get(__ret__, 'plugin_id'),
|
140
139
|
type=pulumi.get(__ret__, 'type'),
|
141
140
|
volumes=pulumi.get(__ret__, 'volumes'))
|
142
|
-
def get_volumes_output(namespace: Optional[pulumi.Input[Optional[
|
143
|
-
node_id: Optional[pulumi.Input[Optional[
|
144
|
-
plugin_id: Optional[pulumi.Input[Optional[
|
145
|
-
type: Optional[pulumi.Input[Optional[
|
141
|
+
def get_volumes_output(namespace: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
142
|
+
node_id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
143
|
+
plugin_id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
144
|
+
type: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
146
145
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetVolumesResult]:
|
147
146
|
"""
|
148
147
|
Retrieve a list of volumes in Nomad.
|
@@ -157,10 +156,10 @@ def get_volumes_output(namespace: Optional[pulumi.Input[Optional[builtins.str]]]
|
|
157
156
|
```
|
158
157
|
|
159
158
|
|
160
|
-
:param
|
161
|
-
:param
|
162
|
-
:param
|
163
|
-
:param
|
159
|
+
:param _builtins.str namespace: `(string: "default")` Nomad namespace.
|
160
|
+
:param _builtins.str node_id: `(string: optional)` Volume node filter.
|
161
|
+
:param _builtins.str plugin_id: `(string: optional)` Plugin ID filter.
|
162
|
+
:param _builtins.str type: `(string: "csi")` Volume type (one of `csi` or `host`)
|
164
163
|
"""
|
165
164
|
__args__ = dict()
|
166
165
|
__args__['namespace'] = namespace
|