pulumi-harness 0.6.0a1739684779__py3-none-any.whl → 0.6.0a1739857599__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.
Potentially problematic release.
This version of pulumi-harness might be problematic. Click here for more details.
- pulumi_harness/__init__.py +8 -0
- pulumi_harness/platform/__init__.py +2 -0
- pulumi_harness/platform/_inputs.py +859 -40
- pulumi_harness/platform/connector_jdbc.py +0 -38
- pulumi_harness/platform/get_gitlab_connector.py +3 -0
- pulumi_harness/platform/get_infra_variable_set.py +273 -0
- pulumi_harness/platform/get_workspace.py +24 -4
- pulumi_harness/platform/infra_variable_set.py +702 -0
- pulumi_harness/platform/outputs.py +694 -4
- pulumi_harness/platform/workspace.py +54 -5
- pulumi_harness/pulumi-plugin.json +1 -1
- {pulumi_harness-0.6.0a1739684779.dist-info → pulumi_harness-0.6.0a1739857599.dist-info}/METADATA +1 -1
- {pulumi_harness-0.6.0a1739684779.dist-info → pulumi_harness-0.6.0a1739857599.dist-info}/RECORD +15 -13
- {pulumi_harness-0.6.0a1739684779.dist-info → pulumi_harness-0.6.0a1739857599.dist-info}/WHEEL +0 -0
- {pulumi_harness-0.6.0a1739684779.dist-info → pulumi_harness-0.6.0a1739857599.dist-info}/top_level.txt +0 -0
|
@@ -337,25 +337,6 @@ class ConnectorJdbc(pulumi.CustomResource):
|
|
|
337
337
|
"""
|
|
338
338
|
Resource for creating a JDBC connector.
|
|
339
339
|
|
|
340
|
-
## Example Usage
|
|
341
|
-
|
|
342
|
-
```python
|
|
343
|
-
import pulumi
|
|
344
|
-
import pulumi_harness as harness
|
|
345
|
-
|
|
346
|
-
test = harness.platform.ConnectorJdbc("test",
|
|
347
|
-
identifier="identifer",
|
|
348
|
-
name="name",
|
|
349
|
-
description="test",
|
|
350
|
-
tags=["foo:bar"],
|
|
351
|
-
url="jdbc:sqlserver://1.2.3;trustServerCertificate=true",
|
|
352
|
-
delegate_selectors=["harness-delegate"],
|
|
353
|
-
credentials={
|
|
354
|
-
"username": "admin",
|
|
355
|
-
"password_ref": "account.secret_id",
|
|
356
|
-
})
|
|
357
|
-
```
|
|
358
|
-
|
|
359
340
|
## Import
|
|
360
341
|
|
|
361
342
|
Import account level jdbc connector
|
|
@@ -397,25 +378,6 @@ class ConnectorJdbc(pulumi.CustomResource):
|
|
|
397
378
|
"""
|
|
398
379
|
Resource for creating a JDBC connector.
|
|
399
380
|
|
|
400
|
-
## Example Usage
|
|
401
|
-
|
|
402
|
-
```python
|
|
403
|
-
import pulumi
|
|
404
|
-
import pulumi_harness as harness
|
|
405
|
-
|
|
406
|
-
test = harness.platform.ConnectorJdbc("test",
|
|
407
|
-
identifier="identifer",
|
|
408
|
-
name="name",
|
|
409
|
-
description="test",
|
|
410
|
-
tags=["foo:bar"],
|
|
411
|
-
url="jdbc:sqlserver://1.2.3;trustServerCertificate=true",
|
|
412
|
-
delegate_selectors=["harness-delegate"],
|
|
413
|
-
credentials={
|
|
414
|
-
"username": "admin",
|
|
415
|
-
"password_ref": "account.secret_id",
|
|
416
|
-
})
|
|
417
|
-
```
|
|
418
|
-
|
|
419
381
|
## Import
|
|
420
382
|
|
|
421
383
|
Import account level jdbc connector
|
|
@@ -114,6 +114,9 @@ class GetGitlabConnectorResult:
|
|
|
114
114
|
@property
|
|
115
115
|
@pulumi.getter(name="executeOnDelegate")
|
|
116
116
|
def execute_on_delegate(self) -> bool:
|
|
117
|
+
"""
|
|
118
|
+
Execute on delegate or not.
|
|
119
|
+
"""
|
|
117
120
|
return pulumi.get(self, "execute_on_delegate")
|
|
118
121
|
|
|
119
122
|
@property
|
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import copy
|
|
6
|
+
import warnings
|
|
7
|
+
import sys
|
|
8
|
+
import pulumi
|
|
9
|
+
import pulumi.runtime
|
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
|
+
from .. import _utilities
|
|
16
|
+
from . import outputs
|
|
17
|
+
from ._inputs import *
|
|
18
|
+
|
|
19
|
+
__all__ = [
|
|
20
|
+
'GetInfraVariableSetResult',
|
|
21
|
+
'AwaitableGetInfraVariableSetResult',
|
|
22
|
+
'get_infra_variable_set',
|
|
23
|
+
'get_infra_variable_set_output',
|
|
24
|
+
]
|
|
25
|
+
|
|
26
|
+
@pulumi.output_type
|
|
27
|
+
class GetInfraVariableSetResult:
|
|
28
|
+
"""
|
|
29
|
+
A collection of values returned by getInfraVariableSet.
|
|
30
|
+
"""
|
|
31
|
+
def __init__(__self__, connectors=None, description=None, environment_variables=None, id=None, identifier=None, name=None, org_id=None, project_id=None, tags=None, terraform_variable_files=None, terraform_variables=None):
|
|
32
|
+
if connectors and not isinstance(connectors, list):
|
|
33
|
+
raise TypeError("Expected argument 'connectors' to be a list")
|
|
34
|
+
pulumi.set(__self__, "connectors", connectors)
|
|
35
|
+
if description and not isinstance(description, str):
|
|
36
|
+
raise TypeError("Expected argument 'description' to be a str")
|
|
37
|
+
pulumi.set(__self__, "description", description)
|
|
38
|
+
if environment_variables and not isinstance(environment_variables, list):
|
|
39
|
+
raise TypeError("Expected argument 'environment_variables' to be a list")
|
|
40
|
+
pulumi.set(__self__, "environment_variables", environment_variables)
|
|
41
|
+
if id and not isinstance(id, str):
|
|
42
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
43
|
+
pulumi.set(__self__, "id", id)
|
|
44
|
+
if identifier and not isinstance(identifier, str):
|
|
45
|
+
raise TypeError("Expected argument 'identifier' to be a str")
|
|
46
|
+
pulumi.set(__self__, "identifier", identifier)
|
|
47
|
+
if name and not isinstance(name, str):
|
|
48
|
+
raise TypeError("Expected argument 'name' to be a str")
|
|
49
|
+
pulumi.set(__self__, "name", name)
|
|
50
|
+
if org_id and not isinstance(org_id, str):
|
|
51
|
+
raise TypeError("Expected argument 'org_id' to be a str")
|
|
52
|
+
pulumi.set(__self__, "org_id", org_id)
|
|
53
|
+
if project_id and not isinstance(project_id, str):
|
|
54
|
+
raise TypeError("Expected argument 'project_id' to be a str")
|
|
55
|
+
pulumi.set(__self__, "project_id", project_id)
|
|
56
|
+
if tags and not isinstance(tags, list):
|
|
57
|
+
raise TypeError("Expected argument 'tags' to be a list")
|
|
58
|
+
pulumi.set(__self__, "tags", tags)
|
|
59
|
+
if terraform_variable_files and not isinstance(terraform_variable_files, list):
|
|
60
|
+
raise TypeError("Expected argument 'terraform_variable_files' to be a list")
|
|
61
|
+
pulumi.set(__self__, "terraform_variable_files", terraform_variable_files)
|
|
62
|
+
if terraform_variables and not isinstance(terraform_variables, list):
|
|
63
|
+
raise TypeError("Expected argument 'terraform_variables' to be a list")
|
|
64
|
+
pulumi.set(__self__, "terraform_variables", terraform_variables)
|
|
65
|
+
|
|
66
|
+
@property
|
|
67
|
+
@pulumi.getter
|
|
68
|
+
def connectors(self) -> Sequence['outputs.GetInfraVariableSetConnectorResult']:
|
|
69
|
+
"""
|
|
70
|
+
Provider connector configured on the variable set
|
|
71
|
+
"""
|
|
72
|
+
return pulumi.get(self, "connectors")
|
|
73
|
+
|
|
74
|
+
@property
|
|
75
|
+
@pulumi.getter
|
|
76
|
+
def description(self) -> str:
|
|
77
|
+
"""
|
|
78
|
+
Description of the Variable Set
|
|
79
|
+
"""
|
|
80
|
+
return pulumi.get(self, "description")
|
|
81
|
+
|
|
82
|
+
@property
|
|
83
|
+
@pulumi.getter(name="environmentVariables")
|
|
84
|
+
def environment_variables(self) -> Sequence['outputs.GetInfraVariableSetEnvironmentVariableResult']:
|
|
85
|
+
"""
|
|
86
|
+
Environment variables configured on the variable set
|
|
87
|
+
"""
|
|
88
|
+
return pulumi.get(self, "environment_variables")
|
|
89
|
+
|
|
90
|
+
@property
|
|
91
|
+
@pulumi.getter
|
|
92
|
+
def id(self) -> str:
|
|
93
|
+
"""
|
|
94
|
+
The provider-assigned unique ID for this managed resource.
|
|
95
|
+
"""
|
|
96
|
+
return pulumi.get(self, "id")
|
|
97
|
+
|
|
98
|
+
@property
|
|
99
|
+
@pulumi.getter
|
|
100
|
+
def identifier(self) -> str:
|
|
101
|
+
"""
|
|
102
|
+
Identifier of the Variable Set
|
|
103
|
+
"""
|
|
104
|
+
return pulumi.get(self, "identifier")
|
|
105
|
+
|
|
106
|
+
@property
|
|
107
|
+
@pulumi.getter
|
|
108
|
+
def name(self) -> Optional[str]:
|
|
109
|
+
"""
|
|
110
|
+
Name of the Variable Set
|
|
111
|
+
"""
|
|
112
|
+
return pulumi.get(self, "name")
|
|
113
|
+
|
|
114
|
+
@property
|
|
115
|
+
@pulumi.getter(name="orgId")
|
|
116
|
+
def org_id(self) -> Optional[str]:
|
|
117
|
+
"""
|
|
118
|
+
Organization Identifier
|
|
119
|
+
"""
|
|
120
|
+
return pulumi.get(self, "org_id")
|
|
121
|
+
|
|
122
|
+
@property
|
|
123
|
+
@pulumi.getter(name="projectId")
|
|
124
|
+
def project_id(self) -> Optional[str]:
|
|
125
|
+
"""
|
|
126
|
+
Project Identifier
|
|
127
|
+
"""
|
|
128
|
+
return pulumi.get(self, "project_id")
|
|
129
|
+
|
|
130
|
+
@property
|
|
131
|
+
@pulumi.getter
|
|
132
|
+
def tags(self) -> Sequence[str]:
|
|
133
|
+
return pulumi.get(self, "tags")
|
|
134
|
+
|
|
135
|
+
@property
|
|
136
|
+
@pulumi.getter(name="terraformVariableFiles")
|
|
137
|
+
def terraform_variable_files(self) -> Sequence['outputs.GetInfraVariableSetTerraformVariableFileResult']:
|
|
138
|
+
return pulumi.get(self, "terraform_variable_files")
|
|
139
|
+
|
|
140
|
+
@property
|
|
141
|
+
@pulumi.getter(name="terraformVariables")
|
|
142
|
+
def terraform_variables(self) -> Sequence['outputs.GetInfraVariableSetTerraformVariableResult']:
|
|
143
|
+
return pulumi.get(self, "terraform_variables")
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
class AwaitableGetInfraVariableSetResult(GetInfraVariableSetResult):
|
|
147
|
+
# pylint: disable=using-constant-test
|
|
148
|
+
def __await__(self):
|
|
149
|
+
if False:
|
|
150
|
+
yield self
|
|
151
|
+
return GetInfraVariableSetResult(
|
|
152
|
+
connectors=self.connectors,
|
|
153
|
+
description=self.description,
|
|
154
|
+
environment_variables=self.environment_variables,
|
|
155
|
+
id=self.id,
|
|
156
|
+
identifier=self.identifier,
|
|
157
|
+
name=self.name,
|
|
158
|
+
org_id=self.org_id,
|
|
159
|
+
project_id=self.project_id,
|
|
160
|
+
tags=self.tags,
|
|
161
|
+
terraform_variable_files=self.terraform_variable_files,
|
|
162
|
+
terraform_variables=self.terraform_variables)
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
def get_infra_variable_set(connectors: Optional[Sequence[Union['GetInfraVariableSetConnectorArgs', 'GetInfraVariableSetConnectorArgsDict']]] = None,
|
|
166
|
+
environment_variables: Optional[Sequence[Union['GetInfraVariableSetEnvironmentVariableArgs', 'GetInfraVariableSetEnvironmentVariableArgsDict']]] = None,
|
|
167
|
+
identifier: Optional[str] = None,
|
|
168
|
+
name: Optional[str] = None,
|
|
169
|
+
org_id: Optional[str] = None,
|
|
170
|
+
project_id: Optional[str] = None,
|
|
171
|
+
terraform_variable_files: Optional[Sequence[Union['GetInfraVariableSetTerraformVariableFileArgs', 'GetInfraVariableSetTerraformVariableFileArgsDict']]] = None,
|
|
172
|
+
terraform_variables: Optional[Sequence[Union['GetInfraVariableSetTerraformVariableArgs', 'GetInfraVariableSetTerraformVariableArgsDict']]] = None,
|
|
173
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetInfraVariableSetResult:
|
|
174
|
+
"""
|
|
175
|
+
Data source for retrieving Variable Sets.
|
|
176
|
+
|
|
177
|
+
## Example Usage
|
|
178
|
+
|
|
179
|
+
```python
|
|
180
|
+
import pulumi
|
|
181
|
+
import pulumi_harness as harness
|
|
182
|
+
|
|
183
|
+
test = harness.platform.get_infra_variable_set(identifier="identifier",
|
|
184
|
+
org_id="org_id",
|
|
185
|
+
project_id="project_id")
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
:param Sequence[Union['GetInfraVariableSetConnectorArgs', 'GetInfraVariableSetConnectorArgsDict']] connectors: Provider connector configured on the variable set
|
|
190
|
+
:param Sequence[Union['GetInfraVariableSetEnvironmentVariableArgs', 'GetInfraVariableSetEnvironmentVariableArgsDict']] environment_variables: Environment variables configured on the variable set
|
|
191
|
+
:param str identifier: Identifier of the Variable Set
|
|
192
|
+
:param str name: Name of the Variable Set
|
|
193
|
+
:param str org_id: Organization Identifier
|
|
194
|
+
:param str project_id: Project Identifier
|
|
195
|
+
"""
|
|
196
|
+
__args__ = dict()
|
|
197
|
+
__args__['connectors'] = connectors
|
|
198
|
+
__args__['environmentVariables'] = environment_variables
|
|
199
|
+
__args__['identifier'] = identifier
|
|
200
|
+
__args__['name'] = name
|
|
201
|
+
__args__['orgId'] = org_id
|
|
202
|
+
__args__['projectId'] = project_id
|
|
203
|
+
__args__['terraformVariableFiles'] = terraform_variable_files
|
|
204
|
+
__args__['terraformVariables'] = terraform_variables
|
|
205
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
206
|
+
__ret__ = pulumi.runtime.invoke('harness:platform/getInfraVariableSet:getInfraVariableSet', __args__, opts=opts, typ=GetInfraVariableSetResult).value
|
|
207
|
+
|
|
208
|
+
return AwaitableGetInfraVariableSetResult(
|
|
209
|
+
connectors=pulumi.get(__ret__, 'connectors'),
|
|
210
|
+
description=pulumi.get(__ret__, 'description'),
|
|
211
|
+
environment_variables=pulumi.get(__ret__, 'environment_variables'),
|
|
212
|
+
id=pulumi.get(__ret__, 'id'),
|
|
213
|
+
identifier=pulumi.get(__ret__, 'identifier'),
|
|
214
|
+
name=pulumi.get(__ret__, 'name'),
|
|
215
|
+
org_id=pulumi.get(__ret__, 'org_id'),
|
|
216
|
+
project_id=pulumi.get(__ret__, 'project_id'),
|
|
217
|
+
tags=pulumi.get(__ret__, 'tags'),
|
|
218
|
+
terraform_variable_files=pulumi.get(__ret__, 'terraform_variable_files'),
|
|
219
|
+
terraform_variables=pulumi.get(__ret__, 'terraform_variables'))
|
|
220
|
+
def get_infra_variable_set_output(connectors: Optional[pulumi.Input[Optional[Sequence[Union['GetInfraVariableSetConnectorArgs', 'GetInfraVariableSetConnectorArgsDict']]]]] = None,
|
|
221
|
+
environment_variables: Optional[pulumi.Input[Optional[Sequence[Union['GetInfraVariableSetEnvironmentVariableArgs', 'GetInfraVariableSetEnvironmentVariableArgsDict']]]]] = None,
|
|
222
|
+
identifier: Optional[pulumi.Input[str]] = None,
|
|
223
|
+
name: Optional[pulumi.Input[Optional[str]]] = None,
|
|
224
|
+
org_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
225
|
+
project_id: Optional[pulumi.Input[Optional[str]]] = None,
|
|
226
|
+
terraform_variable_files: Optional[pulumi.Input[Optional[Sequence[Union['GetInfraVariableSetTerraformVariableFileArgs', 'GetInfraVariableSetTerraformVariableFileArgsDict']]]]] = None,
|
|
227
|
+
terraform_variables: Optional[pulumi.Input[Optional[Sequence[Union['GetInfraVariableSetTerraformVariableArgs', 'GetInfraVariableSetTerraformVariableArgsDict']]]]] = None,
|
|
228
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetInfraVariableSetResult]:
|
|
229
|
+
"""
|
|
230
|
+
Data source for retrieving Variable Sets.
|
|
231
|
+
|
|
232
|
+
## Example Usage
|
|
233
|
+
|
|
234
|
+
```python
|
|
235
|
+
import pulumi
|
|
236
|
+
import pulumi_harness as harness
|
|
237
|
+
|
|
238
|
+
test = harness.platform.get_infra_variable_set(identifier="identifier",
|
|
239
|
+
org_id="org_id",
|
|
240
|
+
project_id="project_id")
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
:param Sequence[Union['GetInfraVariableSetConnectorArgs', 'GetInfraVariableSetConnectorArgsDict']] connectors: Provider connector configured on the variable set
|
|
245
|
+
:param Sequence[Union['GetInfraVariableSetEnvironmentVariableArgs', 'GetInfraVariableSetEnvironmentVariableArgsDict']] environment_variables: Environment variables configured on the variable set
|
|
246
|
+
:param str identifier: Identifier of the Variable Set
|
|
247
|
+
:param str name: Name of the Variable Set
|
|
248
|
+
:param str org_id: Organization Identifier
|
|
249
|
+
:param str project_id: Project Identifier
|
|
250
|
+
"""
|
|
251
|
+
__args__ = dict()
|
|
252
|
+
__args__['connectors'] = connectors
|
|
253
|
+
__args__['environmentVariables'] = environment_variables
|
|
254
|
+
__args__['identifier'] = identifier
|
|
255
|
+
__args__['name'] = name
|
|
256
|
+
__args__['orgId'] = org_id
|
|
257
|
+
__args__['projectId'] = project_id
|
|
258
|
+
__args__['terraformVariableFiles'] = terraform_variable_files
|
|
259
|
+
__args__['terraformVariables'] = terraform_variables
|
|
260
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
261
|
+
__ret__ = pulumi.runtime.invoke_output('harness:platform/getInfraVariableSet:getInfraVariableSet', __args__, opts=opts, typ=GetInfraVariableSetResult)
|
|
262
|
+
return __ret__.apply(lambda __response__: GetInfraVariableSetResult(
|
|
263
|
+
connectors=pulumi.get(__response__, 'connectors'),
|
|
264
|
+
description=pulumi.get(__response__, 'description'),
|
|
265
|
+
environment_variables=pulumi.get(__response__, 'environment_variables'),
|
|
266
|
+
id=pulumi.get(__response__, 'id'),
|
|
267
|
+
identifier=pulumi.get(__response__, 'identifier'),
|
|
268
|
+
name=pulumi.get(__response__, 'name'),
|
|
269
|
+
org_id=pulumi.get(__response__, 'org_id'),
|
|
270
|
+
project_id=pulumi.get(__response__, 'project_id'),
|
|
271
|
+
tags=pulumi.get(__response__, 'tags'),
|
|
272
|
+
terraform_variable_files=pulumi.get(__response__, 'terraform_variable_files'),
|
|
273
|
+
terraform_variables=pulumi.get(__response__, 'terraform_variables')))
|
|
@@ -28,7 +28,7 @@ class GetWorkspaceResult:
|
|
|
28
28
|
"""
|
|
29
29
|
A collection of values returned by getWorkspace.
|
|
30
30
|
"""
|
|
31
|
-
def __init__(__self__, cost_estimation_enabled=None, default_pipelines=None, description=None, environment_variables=None, id=None, identifier=None, name=None, org_id=None, project_id=None, provider_connector=None, provisioner_type=None, provisioner_version=None, repository=None, repository_branch=None, repository_commit=None, repository_connector=None, repository_path=None, repository_sha=None, terraform_variable_files=None, terraform_variables=None):
|
|
31
|
+
def __init__(__self__, cost_estimation_enabled=None, default_pipelines=None, description=None, environment_variables=None, id=None, identifier=None, name=None, org_id=None, project_id=None, provider_connector=None, provisioner_type=None, provisioner_version=None, repository=None, repository_branch=None, repository_commit=None, repository_connector=None, repository_path=None, repository_sha=None, terraform_variable_files=None, terraform_variables=None, variable_sets=None):
|
|
32
32
|
if cost_estimation_enabled and not isinstance(cost_estimation_enabled, bool):
|
|
33
33
|
raise TypeError("Expected argument 'cost_estimation_enabled' to be a bool")
|
|
34
34
|
pulumi.set(__self__, "cost_estimation_enabled", cost_estimation_enabled)
|
|
@@ -89,6 +89,9 @@ class GetWorkspaceResult:
|
|
|
89
89
|
if terraform_variables and not isinstance(terraform_variables, list):
|
|
90
90
|
raise TypeError("Expected argument 'terraform_variables' to be a list")
|
|
91
91
|
pulumi.set(__self__, "terraform_variables", terraform_variables)
|
|
92
|
+
if variable_sets and not isinstance(variable_sets, list):
|
|
93
|
+
raise TypeError("Expected argument 'variable_sets' to be a list")
|
|
94
|
+
pulumi.set(__self__, "variable_sets", variable_sets)
|
|
92
95
|
|
|
93
96
|
@property
|
|
94
97
|
@pulumi.getter(name="costEstimationEnabled")
|
|
@@ -241,6 +244,14 @@ class GetWorkspaceResult:
|
|
|
241
244
|
def terraform_variables(self) -> Sequence['outputs.GetWorkspaceTerraformVariableResult']:
|
|
242
245
|
return pulumi.get(self, "terraform_variables")
|
|
243
246
|
|
|
247
|
+
@property
|
|
248
|
+
@pulumi.getter(name="variableSets")
|
|
249
|
+
def variable_sets(self) -> Sequence[str]:
|
|
250
|
+
"""
|
|
251
|
+
Variable set identifiers. Currently support only one variable set.
|
|
252
|
+
"""
|
|
253
|
+
return pulumi.get(self, "variable_sets")
|
|
254
|
+
|
|
244
255
|
|
|
245
256
|
class AwaitableGetWorkspaceResult(GetWorkspaceResult):
|
|
246
257
|
# pylint: disable=using-constant-test
|
|
@@ -267,7 +278,8 @@ class AwaitableGetWorkspaceResult(GetWorkspaceResult):
|
|
|
267
278
|
repository_path=self.repository_path,
|
|
268
279
|
repository_sha=self.repository_sha,
|
|
269
280
|
terraform_variable_files=self.terraform_variable_files,
|
|
270
|
-
terraform_variables=self.terraform_variables
|
|
281
|
+
terraform_variables=self.terraform_variables,
|
|
282
|
+
variable_sets=self.variable_sets)
|
|
271
283
|
|
|
272
284
|
|
|
273
285
|
def get_workspace(description: Optional[str] = None,
|
|
@@ -280,6 +292,7 @@ def get_workspace(description: Optional[str] = None,
|
|
|
280
292
|
repository_sha: Optional[str] = None,
|
|
281
293
|
terraform_variable_files: Optional[Sequence[Union['GetWorkspaceTerraformVariableFileArgs', 'GetWorkspaceTerraformVariableFileArgsDict']]] = None,
|
|
282
294
|
terraform_variables: Optional[Sequence[Union['GetWorkspaceTerraformVariableArgs', 'GetWorkspaceTerraformVariableArgsDict']]] = None,
|
|
295
|
+
variable_sets: Optional[Sequence[str]] = None,
|
|
283
296
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetWorkspaceResult:
|
|
284
297
|
"""
|
|
285
298
|
Data source for retrieving workspaces.
|
|
@@ -304,6 +317,7 @@ def get_workspace(description: Optional[str] = None,
|
|
|
304
317
|
:param str repository_branch: Repository Branch in which the code should be accessed
|
|
305
318
|
:param str repository_commit: Repository Tag in which the code should be accessed
|
|
306
319
|
:param str repository_sha: Repository SHA in which the code should be accessed
|
|
320
|
+
:param Sequence[str] variable_sets: Variable set identifiers. Currently support only one variable set.
|
|
307
321
|
"""
|
|
308
322
|
__args__ = dict()
|
|
309
323
|
__args__['description'] = description
|
|
@@ -316,6 +330,7 @@ def get_workspace(description: Optional[str] = None,
|
|
|
316
330
|
__args__['repositorySha'] = repository_sha
|
|
317
331
|
__args__['terraformVariableFiles'] = terraform_variable_files
|
|
318
332
|
__args__['terraformVariables'] = terraform_variables
|
|
333
|
+
__args__['variableSets'] = variable_sets
|
|
319
334
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
320
335
|
__ret__ = pulumi.runtime.invoke('harness:platform/getWorkspace:getWorkspace', __args__, opts=opts, typ=GetWorkspaceResult).value
|
|
321
336
|
|
|
@@ -339,7 +354,8 @@ def get_workspace(description: Optional[str] = None,
|
|
|
339
354
|
repository_path=pulumi.get(__ret__, 'repository_path'),
|
|
340
355
|
repository_sha=pulumi.get(__ret__, 'repository_sha'),
|
|
341
356
|
terraform_variable_files=pulumi.get(__ret__, 'terraform_variable_files'),
|
|
342
|
-
terraform_variables=pulumi.get(__ret__, 'terraform_variables')
|
|
357
|
+
terraform_variables=pulumi.get(__ret__, 'terraform_variables'),
|
|
358
|
+
variable_sets=pulumi.get(__ret__, 'variable_sets'))
|
|
343
359
|
def get_workspace_output(description: Optional[pulumi.Input[Optional[str]]] = None,
|
|
344
360
|
environment_variables: Optional[pulumi.Input[Optional[Sequence[Union['GetWorkspaceEnvironmentVariableArgs', 'GetWorkspaceEnvironmentVariableArgsDict']]]]] = None,
|
|
345
361
|
identifier: Optional[pulumi.Input[str]] = None,
|
|
@@ -350,6 +366,7 @@ def get_workspace_output(description: Optional[pulumi.Input[Optional[str]]] = No
|
|
|
350
366
|
repository_sha: Optional[pulumi.Input[Optional[str]]] = None,
|
|
351
367
|
terraform_variable_files: Optional[pulumi.Input[Optional[Sequence[Union['GetWorkspaceTerraformVariableFileArgs', 'GetWorkspaceTerraformVariableFileArgsDict']]]]] = None,
|
|
352
368
|
terraform_variables: Optional[pulumi.Input[Optional[Sequence[Union['GetWorkspaceTerraformVariableArgs', 'GetWorkspaceTerraformVariableArgsDict']]]]] = None,
|
|
369
|
+
variable_sets: Optional[pulumi.Input[Optional[Sequence[str]]]] = None,
|
|
353
370
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetWorkspaceResult]:
|
|
354
371
|
"""
|
|
355
372
|
Data source for retrieving workspaces.
|
|
@@ -374,6 +391,7 @@ def get_workspace_output(description: Optional[pulumi.Input[Optional[str]]] = No
|
|
|
374
391
|
:param str repository_branch: Repository Branch in which the code should be accessed
|
|
375
392
|
:param str repository_commit: Repository Tag in which the code should be accessed
|
|
376
393
|
:param str repository_sha: Repository SHA in which the code should be accessed
|
|
394
|
+
:param Sequence[str] variable_sets: Variable set identifiers. Currently support only one variable set.
|
|
377
395
|
"""
|
|
378
396
|
__args__ = dict()
|
|
379
397
|
__args__['description'] = description
|
|
@@ -386,6 +404,7 @@ def get_workspace_output(description: Optional[pulumi.Input[Optional[str]]] = No
|
|
|
386
404
|
__args__['repositorySha'] = repository_sha
|
|
387
405
|
__args__['terraformVariableFiles'] = terraform_variable_files
|
|
388
406
|
__args__['terraformVariables'] = terraform_variables
|
|
407
|
+
__args__['variableSets'] = variable_sets
|
|
389
408
|
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
390
409
|
__ret__ = pulumi.runtime.invoke_output('harness:platform/getWorkspace:getWorkspace', __args__, opts=opts, typ=GetWorkspaceResult)
|
|
391
410
|
return __ret__.apply(lambda __response__: GetWorkspaceResult(
|
|
@@ -408,4 +427,5 @@ def get_workspace_output(description: Optional[pulumi.Input[Optional[str]]] = No
|
|
|
408
427
|
repository_path=pulumi.get(__response__, 'repository_path'),
|
|
409
428
|
repository_sha=pulumi.get(__response__, 'repository_sha'),
|
|
410
429
|
terraform_variable_files=pulumi.get(__response__, 'terraform_variable_files'),
|
|
411
|
-
terraform_variables=pulumi.get(__response__, 'terraform_variables')
|
|
430
|
+
terraform_variables=pulumi.get(__response__, 'terraform_variables'),
|
|
431
|
+
variable_sets=pulumi.get(__response__, 'variable_sets')))
|