pulumi-harness 0.9.0a1760594654__py3-none-any.whl → 0.9.0a1761104282__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/cluster/get_orchestrator_config.py +21 -1
- pulumi_harness/cluster/orchestrator_config.py +49 -0
- pulumi_harness/platform/__init__.py +3 -0
- pulumi_harness/platform/_inputs.py +4862 -369
- pulumi_harness/platform/db_instance.py +49 -49
- pulumi_harness/platform/get_db_instance.py +21 -21
- pulumi_harness/platform/get_infra_module.py +188 -6
- pulumi_harness/platform/get_infra_module_testing.py +521 -0
- pulumi_harness/platform/get_infra_modules.py +103 -0
- pulumi_harness/platform/get_pipeline_central_notification_rule.py +0 -28
- pulumi_harness/platform/git_ops_applications.py +0 -4
- pulumi_harness/platform/gitops_applicationset.py +308 -6
- pulumi_harness/platform/infra_module_testing.py +1100 -0
- pulumi_harness/platform/outputs.py +3462 -247
- pulumi_harness/platform/pipeline_central_notification_rule.py +13 -0
- pulumi_harness/pulumi-plugin.json +1 -1
- {pulumi_harness-0.9.0a1760594654.dist-info → pulumi_harness-0.9.0a1761104282.dist-info}/METADATA +1 -1
- {pulumi_harness-0.9.0a1760594654.dist-info → pulumi_harness-0.9.0a1761104282.dist-info}/RECORD +21 -18
- {pulumi_harness-0.9.0a1760594654.dist-info → pulumi_harness-0.9.0a1761104282.dist-info}/WHEEL +0 -0
- {pulumi_harness-0.9.0a1760594654.dist-info → pulumi_harness-0.9.0a1761104282.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,521 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import builtins as _builtins
|
|
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
|
+
'GetInfraModuleTestingResult',
|
|
21
|
+
'AwaitableGetInfraModuleTestingResult',
|
|
22
|
+
'get_infra_module_testing',
|
|
23
|
+
'get_infra_module_testing_output',
|
|
24
|
+
]
|
|
25
|
+
|
|
26
|
+
@pulumi.output_type
|
|
27
|
+
class GetInfraModuleTestingResult:
|
|
28
|
+
"""
|
|
29
|
+
A collection of values returned by getInfraModuleTesting.
|
|
30
|
+
"""
|
|
31
|
+
def __init__(__self__, account=None, created=None, description=None, git_tag_style=None, id=None, module_error=None, module_id=None, name=None, org=None, pipelines=None, project=None, provider_connector=None, provisioner_type=None, provisioner_version=None, release_pipeline=None, repository=None, repository_branch=None, repository_commit=None, repository_connector=None, repository_path=None, repository_url=None, synced=None, system=None, tags=None, testing_enabled=None, testing_metadata=None, updated=None, versions=None):
|
|
32
|
+
if account and not isinstance(account, str):
|
|
33
|
+
raise TypeError("Expected argument 'account' to be a str")
|
|
34
|
+
pulumi.set(__self__, "account", account)
|
|
35
|
+
if created and not isinstance(created, int):
|
|
36
|
+
raise TypeError("Expected argument 'created' to be a int")
|
|
37
|
+
pulumi.set(__self__, "created", created)
|
|
38
|
+
if description and not isinstance(description, str):
|
|
39
|
+
raise TypeError("Expected argument 'description' to be a str")
|
|
40
|
+
pulumi.set(__self__, "description", description)
|
|
41
|
+
if git_tag_style and not isinstance(git_tag_style, str):
|
|
42
|
+
raise TypeError("Expected argument 'git_tag_style' to be a str")
|
|
43
|
+
pulumi.set(__self__, "git_tag_style", git_tag_style)
|
|
44
|
+
if id and not isinstance(id, str):
|
|
45
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
46
|
+
pulumi.set(__self__, "id", id)
|
|
47
|
+
if module_error and not isinstance(module_error, str):
|
|
48
|
+
raise TypeError("Expected argument 'module_error' to be a str")
|
|
49
|
+
pulumi.set(__self__, "module_error", module_error)
|
|
50
|
+
if module_id and not isinstance(module_id, str):
|
|
51
|
+
raise TypeError("Expected argument 'module_id' to be a str")
|
|
52
|
+
pulumi.set(__self__, "module_id", module_id)
|
|
53
|
+
if name and not isinstance(name, str):
|
|
54
|
+
raise TypeError("Expected argument 'name' to be a str")
|
|
55
|
+
pulumi.set(__self__, "name", name)
|
|
56
|
+
if org and not isinstance(org, str):
|
|
57
|
+
raise TypeError("Expected argument 'org' to be a str")
|
|
58
|
+
pulumi.set(__self__, "org", org)
|
|
59
|
+
if pipelines and not isinstance(pipelines, list):
|
|
60
|
+
raise TypeError("Expected argument 'pipelines' to be a list")
|
|
61
|
+
pulumi.set(__self__, "pipelines", pipelines)
|
|
62
|
+
if project and not isinstance(project, str):
|
|
63
|
+
raise TypeError("Expected argument 'project' to be a str")
|
|
64
|
+
pulumi.set(__self__, "project", project)
|
|
65
|
+
if provider_connector and not isinstance(provider_connector, str):
|
|
66
|
+
raise TypeError("Expected argument 'provider_connector' to be a str")
|
|
67
|
+
pulumi.set(__self__, "provider_connector", provider_connector)
|
|
68
|
+
if provisioner_type and not isinstance(provisioner_type, str):
|
|
69
|
+
raise TypeError("Expected argument 'provisioner_type' to be a str")
|
|
70
|
+
pulumi.set(__self__, "provisioner_type", provisioner_type)
|
|
71
|
+
if provisioner_version and not isinstance(provisioner_version, str):
|
|
72
|
+
raise TypeError("Expected argument 'provisioner_version' to be a str")
|
|
73
|
+
pulumi.set(__self__, "provisioner_version", provisioner_version)
|
|
74
|
+
if release_pipeline and not isinstance(release_pipeline, str):
|
|
75
|
+
raise TypeError("Expected argument 'release_pipeline' to be a str")
|
|
76
|
+
pulumi.set(__self__, "release_pipeline", release_pipeline)
|
|
77
|
+
if repository and not isinstance(repository, str):
|
|
78
|
+
raise TypeError("Expected argument 'repository' to be a str")
|
|
79
|
+
pulumi.set(__self__, "repository", repository)
|
|
80
|
+
if repository_branch and not isinstance(repository_branch, str):
|
|
81
|
+
raise TypeError("Expected argument 'repository_branch' to be a str")
|
|
82
|
+
pulumi.set(__self__, "repository_branch", repository_branch)
|
|
83
|
+
if repository_commit and not isinstance(repository_commit, str):
|
|
84
|
+
raise TypeError("Expected argument 'repository_commit' to be a str")
|
|
85
|
+
pulumi.set(__self__, "repository_commit", repository_commit)
|
|
86
|
+
if repository_connector and not isinstance(repository_connector, str):
|
|
87
|
+
raise TypeError("Expected argument 'repository_connector' to be a str")
|
|
88
|
+
pulumi.set(__self__, "repository_connector", repository_connector)
|
|
89
|
+
if repository_path and not isinstance(repository_path, str):
|
|
90
|
+
raise TypeError("Expected argument 'repository_path' to be a str")
|
|
91
|
+
pulumi.set(__self__, "repository_path", repository_path)
|
|
92
|
+
if repository_url and not isinstance(repository_url, str):
|
|
93
|
+
raise TypeError("Expected argument 'repository_url' to be a str")
|
|
94
|
+
pulumi.set(__self__, "repository_url", repository_url)
|
|
95
|
+
if synced and not isinstance(synced, int):
|
|
96
|
+
raise TypeError("Expected argument 'synced' to be a int")
|
|
97
|
+
pulumi.set(__self__, "synced", synced)
|
|
98
|
+
if system and not isinstance(system, str):
|
|
99
|
+
raise TypeError("Expected argument 'system' to be a str")
|
|
100
|
+
pulumi.set(__self__, "system", system)
|
|
101
|
+
if tags and not isinstance(tags, str):
|
|
102
|
+
raise TypeError("Expected argument 'tags' to be a str")
|
|
103
|
+
pulumi.set(__self__, "tags", tags)
|
|
104
|
+
if testing_enabled and not isinstance(testing_enabled, bool):
|
|
105
|
+
raise TypeError("Expected argument 'testing_enabled' to be a bool")
|
|
106
|
+
pulumi.set(__self__, "testing_enabled", testing_enabled)
|
|
107
|
+
if testing_metadata and not isinstance(testing_metadata, dict):
|
|
108
|
+
raise TypeError("Expected argument 'testing_metadata' to be a dict")
|
|
109
|
+
pulumi.set(__self__, "testing_metadata", testing_metadata)
|
|
110
|
+
if updated and not isinstance(updated, int):
|
|
111
|
+
raise TypeError("Expected argument 'updated' to be a int")
|
|
112
|
+
pulumi.set(__self__, "updated", updated)
|
|
113
|
+
if versions and not isinstance(versions, list):
|
|
114
|
+
raise TypeError("Expected argument 'versions' to be a list")
|
|
115
|
+
pulumi.set(__self__, "versions", versions)
|
|
116
|
+
|
|
117
|
+
@_builtins.property
|
|
118
|
+
@pulumi.getter
|
|
119
|
+
def account(self) -> _builtins.str:
|
|
120
|
+
"""
|
|
121
|
+
Account that owns the module
|
|
122
|
+
"""
|
|
123
|
+
return pulumi.get(self, "account")
|
|
124
|
+
|
|
125
|
+
@_builtins.property
|
|
126
|
+
@pulumi.getter
|
|
127
|
+
def created(self) -> _builtins.int:
|
|
128
|
+
"""
|
|
129
|
+
Timestamp when the module was created
|
|
130
|
+
"""
|
|
131
|
+
return pulumi.get(self, "created")
|
|
132
|
+
|
|
133
|
+
@_builtins.property
|
|
134
|
+
@pulumi.getter
|
|
135
|
+
def description(self) -> _builtins.str:
|
|
136
|
+
"""
|
|
137
|
+
Description of the module
|
|
138
|
+
"""
|
|
139
|
+
return pulumi.get(self, "description")
|
|
140
|
+
|
|
141
|
+
@_builtins.property
|
|
142
|
+
@pulumi.getter(name="gitTagStyle")
|
|
143
|
+
def git_tag_style(self) -> _builtins.str:
|
|
144
|
+
"""
|
|
145
|
+
Git Tag Style
|
|
146
|
+
"""
|
|
147
|
+
return pulumi.get(self, "git_tag_style")
|
|
148
|
+
|
|
149
|
+
@_builtins.property
|
|
150
|
+
@pulumi.getter
|
|
151
|
+
def id(self) -> _builtins.str:
|
|
152
|
+
"""
|
|
153
|
+
The provider-assigned unique ID for this managed resource.
|
|
154
|
+
"""
|
|
155
|
+
return pulumi.get(self, "id")
|
|
156
|
+
|
|
157
|
+
@_builtins.property
|
|
158
|
+
@pulumi.getter(name="moduleError")
|
|
159
|
+
def module_error(self) -> _builtins.str:
|
|
160
|
+
"""
|
|
161
|
+
Error while retrieving the module
|
|
162
|
+
"""
|
|
163
|
+
return pulumi.get(self, "module_error")
|
|
164
|
+
|
|
165
|
+
@_builtins.property
|
|
166
|
+
@pulumi.getter(name="moduleId")
|
|
167
|
+
def module_id(self) -> _builtins.str:
|
|
168
|
+
"""
|
|
169
|
+
Identifier of the module to enable testing for
|
|
170
|
+
"""
|
|
171
|
+
return pulumi.get(self, "module_id")
|
|
172
|
+
|
|
173
|
+
@_builtins.property
|
|
174
|
+
@pulumi.getter
|
|
175
|
+
def name(self) -> _builtins.str:
|
|
176
|
+
"""
|
|
177
|
+
Name of the module
|
|
178
|
+
"""
|
|
179
|
+
return pulumi.get(self, "name")
|
|
180
|
+
|
|
181
|
+
@_builtins.property
|
|
182
|
+
@pulumi.getter
|
|
183
|
+
def org(self) -> _builtins.str:
|
|
184
|
+
"""
|
|
185
|
+
Organization identifier
|
|
186
|
+
"""
|
|
187
|
+
return pulumi.get(self, "org")
|
|
188
|
+
|
|
189
|
+
@_builtins.property
|
|
190
|
+
@pulumi.getter
|
|
191
|
+
def pipelines(self) -> Sequence[_builtins.str]:
|
|
192
|
+
"""
|
|
193
|
+
List of pipeline IDs to create webhooks for triggering test executions
|
|
194
|
+
"""
|
|
195
|
+
return pulumi.get(self, "pipelines")
|
|
196
|
+
|
|
197
|
+
@_builtins.property
|
|
198
|
+
@pulumi.getter
|
|
199
|
+
def project(self) -> _builtins.str:
|
|
200
|
+
"""
|
|
201
|
+
Project identifier
|
|
202
|
+
"""
|
|
203
|
+
return pulumi.get(self, "project")
|
|
204
|
+
|
|
205
|
+
@_builtins.property
|
|
206
|
+
@pulumi.getter(name="providerConnector")
|
|
207
|
+
def provider_connector(self) -> _builtins.str:
|
|
208
|
+
"""
|
|
209
|
+
Provider connector for testing purposes
|
|
210
|
+
"""
|
|
211
|
+
return pulumi.get(self, "provider_connector")
|
|
212
|
+
|
|
213
|
+
@_builtins.property
|
|
214
|
+
@pulumi.getter(name="provisionerType")
|
|
215
|
+
def provisioner_type(self) -> _builtins.str:
|
|
216
|
+
return pulumi.get(self, "provisioner_type")
|
|
217
|
+
|
|
218
|
+
@_builtins.property
|
|
219
|
+
@pulumi.getter(name="provisionerVersion")
|
|
220
|
+
def provisioner_version(self) -> _builtins.str:
|
|
221
|
+
"""
|
|
222
|
+
Provisioner version for testing purposes
|
|
223
|
+
"""
|
|
224
|
+
return pulumi.get(self, "provisioner_version")
|
|
225
|
+
|
|
226
|
+
@_builtins.property
|
|
227
|
+
@pulumi.getter(name="releasePipeline")
|
|
228
|
+
def release_pipeline(self) -> Optional[_builtins.str]:
|
|
229
|
+
"""
|
|
230
|
+
Pipeline ID to create webhooks for releases
|
|
231
|
+
"""
|
|
232
|
+
return pulumi.get(self, "release_pipeline")
|
|
233
|
+
|
|
234
|
+
@_builtins.property
|
|
235
|
+
@pulumi.getter
|
|
236
|
+
def repository(self) -> _builtins.str:
|
|
237
|
+
"""
|
|
238
|
+
For account connectors, the repository where the module is stored
|
|
239
|
+
"""
|
|
240
|
+
return pulumi.get(self, "repository")
|
|
241
|
+
|
|
242
|
+
@_builtins.property
|
|
243
|
+
@pulumi.getter(name="repositoryBranch")
|
|
244
|
+
def repository_branch(self) -> _builtins.str:
|
|
245
|
+
"""
|
|
246
|
+
Repository Branch in which the module should be accessed
|
|
247
|
+
"""
|
|
248
|
+
return pulumi.get(self, "repository_branch")
|
|
249
|
+
|
|
250
|
+
@_builtins.property
|
|
251
|
+
@pulumi.getter(name="repositoryCommit")
|
|
252
|
+
def repository_commit(self) -> _builtins.str:
|
|
253
|
+
"""
|
|
254
|
+
Repository Commit in which the module should be accessed
|
|
255
|
+
"""
|
|
256
|
+
return pulumi.get(self, "repository_commit")
|
|
257
|
+
|
|
258
|
+
@_builtins.property
|
|
259
|
+
@pulumi.getter(name="repositoryConnector")
|
|
260
|
+
def repository_connector(self) -> _builtins.str:
|
|
261
|
+
"""
|
|
262
|
+
Repository Connector is the reference to the connector for the repository
|
|
263
|
+
"""
|
|
264
|
+
return pulumi.get(self, "repository_connector")
|
|
265
|
+
|
|
266
|
+
@_builtins.property
|
|
267
|
+
@pulumi.getter(name="repositoryPath")
|
|
268
|
+
def repository_path(self) -> _builtins.str:
|
|
269
|
+
"""
|
|
270
|
+
Repository Path is the path in which the module resides
|
|
271
|
+
"""
|
|
272
|
+
return pulumi.get(self, "repository_path")
|
|
273
|
+
|
|
274
|
+
@_builtins.property
|
|
275
|
+
@pulumi.getter(name="repositoryUrl")
|
|
276
|
+
def repository_url(self) -> _builtins.str:
|
|
277
|
+
"""
|
|
278
|
+
URL where the module is stored
|
|
279
|
+
"""
|
|
280
|
+
return pulumi.get(self, "repository_url")
|
|
281
|
+
|
|
282
|
+
@_builtins.property
|
|
283
|
+
@pulumi.getter
|
|
284
|
+
def synced(self) -> _builtins.int:
|
|
285
|
+
"""
|
|
286
|
+
Timestamp when the module was last synced
|
|
287
|
+
"""
|
|
288
|
+
return pulumi.get(self, "synced")
|
|
289
|
+
|
|
290
|
+
@_builtins.property
|
|
291
|
+
@pulumi.getter
|
|
292
|
+
def system(self) -> _builtins.str:
|
|
293
|
+
"""
|
|
294
|
+
Provider of the module
|
|
295
|
+
"""
|
|
296
|
+
return pulumi.get(self, "system")
|
|
297
|
+
|
|
298
|
+
@_builtins.property
|
|
299
|
+
@pulumi.getter
|
|
300
|
+
def tags(self) -> _builtins.str:
|
|
301
|
+
"""
|
|
302
|
+
Tags associated with the module
|
|
303
|
+
"""
|
|
304
|
+
return pulumi.get(self, "tags")
|
|
305
|
+
|
|
306
|
+
@_builtins.property
|
|
307
|
+
@pulumi.getter(name="testingEnabled")
|
|
308
|
+
def testing_enabled(self) -> _builtins.bool:
|
|
309
|
+
"""
|
|
310
|
+
Whether testing is enabled for the module
|
|
311
|
+
"""
|
|
312
|
+
return pulumi.get(self, "testing_enabled")
|
|
313
|
+
|
|
314
|
+
@_builtins.property
|
|
315
|
+
@pulumi.getter(name="testingMetadata")
|
|
316
|
+
def testing_metadata(self) -> 'outputs.GetInfraModuleTestingTestingMetadataResult':
|
|
317
|
+
"""
|
|
318
|
+
Testing metadata for the module
|
|
319
|
+
"""
|
|
320
|
+
return pulumi.get(self, "testing_metadata")
|
|
321
|
+
|
|
322
|
+
@_builtins.property
|
|
323
|
+
@pulumi.getter
|
|
324
|
+
def updated(self) -> _builtins.int:
|
|
325
|
+
"""
|
|
326
|
+
Timestamp when the module was last modified
|
|
327
|
+
"""
|
|
328
|
+
return pulumi.get(self, "updated")
|
|
329
|
+
|
|
330
|
+
@_builtins.property
|
|
331
|
+
@pulumi.getter
|
|
332
|
+
def versions(self) -> Sequence[_builtins.str]:
|
|
333
|
+
"""
|
|
334
|
+
Versions of the module
|
|
335
|
+
"""
|
|
336
|
+
return pulumi.get(self, "versions")
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
class AwaitableGetInfraModuleTestingResult(GetInfraModuleTestingResult):
|
|
340
|
+
# pylint: disable=using-constant-test
|
|
341
|
+
def __await__(self):
|
|
342
|
+
if False:
|
|
343
|
+
yield self
|
|
344
|
+
return GetInfraModuleTestingResult(
|
|
345
|
+
account=self.account,
|
|
346
|
+
created=self.created,
|
|
347
|
+
description=self.description,
|
|
348
|
+
git_tag_style=self.git_tag_style,
|
|
349
|
+
id=self.id,
|
|
350
|
+
module_error=self.module_error,
|
|
351
|
+
module_id=self.module_id,
|
|
352
|
+
name=self.name,
|
|
353
|
+
org=self.org,
|
|
354
|
+
pipelines=self.pipelines,
|
|
355
|
+
project=self.project,
|
|
356
|
+
provider_connector=self.provider_connector,
|
|
357
|
+
provisioner_type=self.provisioner_type,
|
|
358
|
+
provisioner_version=self.provisioner_version,
|
|
359
|
+
release_pipeline=self.release_pipeline,
|
|
360
|
+
repository=self.repository,
|
|
361
|
+
repository_branch=self.repository_branch,
|
|
362
|
+
repository_commit=self.repository_commit,
|
|
363
|
+
repository_connector=self.repository_connector,
|
|
364
|
+
repository_path=self.repository_path,
|
|
365
|
+
repository_url=self.repository_url,
|
|
366
|
+
synced=self.synced,
|
|
367
|
+
system=self.system,
|
|
368
|
+
tags=self.tags,
|
|
369
|
+
testing_enabled=self.testing_enabled,
|
|
370
|
+
testing_metadata=self.testing_metadata,
|
|
371
|
+
updated=self.updated,
|
|
372
|
+
versions=self.versions)
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
def get_infra_module_testing(module_id: Optional[_builtins.str] = None,
|
|
376
|
+
org: Optional[_builtins.str] = None,
|
|
377
|
+
pipelines: Optional[Sequence[_builtins.str]] = None,
|
|
378
|
+
project: Optional[_builtins.str] = None,
|
|
379
|
+
provider_connector: Optional[_builtins.str] = None,
|
|
380
|
+
provisioner_type: Optional[_builtins.str] = None,
|
|
381
|
+
provisioner_version: Optional[_builtins.str] = None,
|
|
382
|
+
release_pipeline: Optional[_builtins.str] = None,
|
|
383
|
+
testing_enabled: Optional[_builtins.bool] = None,
|
|
384
|
+
testing_metadata: Optional[Union['GetInfraModuleTestingTestingMetadataArgs', 'GetInfraModuleTestingTestingMetadataArgsDict']] = None,
|
|
385
|
+
updated: Optional[_builtins.int] = None,
|
|
386
|
+
versions: Optional[Sequence[_builtins.str]] = None,
|
|
387
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetInfraModuleTestingResult:
|
|
388
|
+
"""
|
|
389
|
+
Data source for retrieving modules testing metadata from the module registry.
|
|
390
|
+
|
|
391
|
+
|
|
392
|
+
:param _builtins.str module_id: Identifier of the module to enable testing for
|
|
393
|
+
:param _builtins.str org: Organization identifier
|
|
394
|
+
:param Sequence[_builtins.str] pipelines: List of pipeline IDs to create webhooks for triggering test executions
|
|
395
|
+
:param _builtins.str project: Project identifier
|
|
396
|
+
:param _builtins.str provider_connector: Provider connector for testing purposes
|
|
397
|
+
:param _builtins.str provisioner_version: Provisioner version for testing purposes
|
|
398
|
+
:param _builtins.str release_pipeline: Pipeline ID to create webhooks for releases
|
|
399
|
+
:param _builtins.bool testing_enabled: Whether testing is enabled for the module
|
|
400
|
+
:param Union['GetInfraModuleTestingTestingMetadataArgs', 'GetInfraModuleTestingTestingMetadataArgsDict'] testing_metadata: Testing metadata for the module
|
|
401
|
+
:param _builtins.int updated: Timestamp when the module was last modified
|
|
402
|
+
:param Sequence[_builtins.str] versions: Versions of the module
|
|
403
|
+
"""
|
|
404
|
+
__args__ = dict()
|
|
405
|
+
__args__['moduleId'] = module_id
|
|
406
|
+
__args__['org'] = org
|
|
407
|
+
__args__['pipelines'] = pipelines
|
|
408
|
+
__args__['project'] = project
|
|
409
|
+
__args__['providerConnector'] = provider_connector
|
|
410
|
+
__args__['provisionerType'] = provisioner_type
|
|
411
|
+
__args__['provisionerVersion'] = provisioner_version
|
|
412
|
+
__args__['releasePipeline'] = release_pipeline
|
|
413
|
+
__args__['testingEnabled'] = testing_enabled
|
|
414
|
+
__args__['testingMetadata'] = testing_metadata
|
|
415
|
+
__args__['updated'] = updated
|
|
416
|
+
__args__['versions'] = versions
|
|
417
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
418
|
+
__ret__ = pulumi.runtime.invoke('harness:platform/getInfraModuleTesting:getInfraModuleTesting', __args__, opts=opts, typ=GetInfraModuleTestingResult).value
|
|
419
|
+
|
|
420
|
+
return AwaitableGetInfraModuleTestingResult(
|
|
421
|
+
account=pulumi.get(__ret__, 'account'),
|
|
422
|
+
created=pulumi.get(__ret__, 'created'),
|
|
423
|
+
description=pulumi.get(__ret__, 'description'),
|
|
424
|
+
git_tag_style=pulumi.get(__ret__, 'git_tag_style'),
|
|
425
|
+
id=pulumi.get(__ret__, 'id'),
|
|
426
|
+
module_error=pulumi.get(__ret__, 'module_error'),
|
|
427
|
+
module_id=pulumi.get(__ret__, 'module_id'),
|
|
428
|
+
name=pulumi.get(__ret__, 'name'),
|
|
429
|
+
org=pulumi.get(__ret__, 'org'),
|
|
430
|
+
pipelines=pulumi.get(__ret__, 'pipelines'),
|
|
431
|
+
project=pulumi.get(__ret__, 'project'),
|
|
432
|
+
provider_connector=pulumi.get(__ret__, 'provider_connector'),
|
|
433
|
+
provisioner_type=pulumi.get(__ret__, 'provisioner_type'),
|
|
434
|
+
provisioner_version=pulumi.get(__ret__, 'provisioner_version'),
|
|
435
|
+
release_pipeline=pulumi.get(__ret__, 'release_pipeline'),
|
|
436
|
+
repository=pulumi.get(__ret__, 'repository'),
|
|
437
|
+
repository_branch=pulumi.get(__ret__, 'repository_branch'),
|
|
438
|
+
repository_commit=pulumi.get(__ret__, 'repository_commit'),
|
|
439
|
+
repository_connector=pulumi.get(__ret__, 'repository_connector'),
|
|
440
|
+
repository_path=pulumi.get(__ret__, 'repository_path'),
|
|
441
|
+
repository_url=pulumi.get(__ret__, 'repository_url'),
|
|
442
|
+
synced=pulumi.get(__ret__, 'synced'),
|
|
443
|
+
system=pulumi.get(__ret__, 'system'),
|
|
444
|
+
tags=pulumi.get(__ret__, 'tags'),
|
|
445
|
+
testing_enabled=pulumi.get(__ret__, 'testing_enabled'),
|
|
446
|
+
testing_metadata=pulumi.get(__ret__, 'testing_metadata'),
|
|
447
|
+
updated=pulumi.get(__ret__, 'updated'),
|
|
448
|
+
versions=pulumi.get(__ret__, 'versions'))
|
|
449
|
+
def get_infra_module_testing_output(module_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
450
|
+
org: Optional[pulumi.Input[_builtins.str]] = None,
|
|
451
|
+
pipelines: Optional[pulumi.Input[Sequence[_builtins.str]]] = None,
|
|
452
|
+
project: Optional[pulumi.Input[_builtins.str]] = None,
|
|
453
|
+
provider_connector: Optional[pulumi.Input[_builtins.str]] = None,
|
|
454
|
+
provisioner_type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
455
|
+
provisioner_version: Optional[pulumi.Input[_builtins.str]] = None,
|
|
456
|
+
release_pipeline: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
457
|
+
testing_enabled: Optional[pulumi.Input[Optional[_builtins.bool]]] = None,
|
|
458
|
+
testing_metadata: Optional[pulumi.Input[Optional[Union['GetInfraModuleTestingTestingMetadataArgs', 'GetInfraModuleTestingTestingMetadataArgsDict']]]] = None,
|
|
459
|
+
updated: Optional[pulumi.Input[Optional[_builtins.int]]] = None,
|
|
460
|
+
versions: Optional[pulumi.Input[Optional[Sequence[_builtins.str]]]] = None,
|
|
461
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetInfraModuleTestingResult]:
|
|
462
|
+
"""
|
|
463
|
+
Data source for retrieving modules testing metadata from the module registry.
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
:param _builtins.str module_id: Identifier of the module to enable testing for
|
|
467
|
+
:param _builtins.str org: Organization identifier
|
|
468
|
+
:param Sequence[_builtins.str] pipelines: List of pipeline IDs to create webhooks for triggering test executions
|
|
469
|
+
:param _builtins.str project: Project identifier
|
|
470
|
+
:param _builtins.str provider_connector: Provider connector for testing purposes
|
|
471
|
+
:param _builtins.str provisioner_version: Provisioner version for testing purposes
|
|
472
|
+
:param _builtins.str release_pipeline: Pipeline ID to create webhooks for releases
|
|
473
|
+
:param _builtins.bool testing_enabled: Whether testing is enabled for the module
|
|
474
|
+
:param Union['GetInfraModuleTestingTestingMetadataArgs', 'GetInfraModuleTestingTestingMetadataArgsDict'] testing_metadata: Testing metadata for the module
|
|
475
|
+
:param _builtins.int updated: Timestamp when the module was last modified
|
|
476
|
+
:param Sequence[_builtins.str] versions: Versions of the module
|
|
477
|
+
"""
|
|
478
|
+
__args__ = dict()
|
|
479
|
+
__args__['moduleId'] = module_id
|
|
480
|
+
__args__['org'] = org
|
|
481
|
+
__args__['pipelines'] = pipelines
|
|
482
|
+
__args__['project'] = project
|
|
483
|
+
__args__['providerConnector'] = provider_connector
|
|
484
|
+
__args__['provisionerType'] = provisioner_type
|
|
485
|
+
__args__['provisionerVersion'] = provisioner_version
|
|
486
|
+
__args__['releasePipeline'] = release_pipeline
|
|
487
|
+
__args__['testingEnabled'] = testing_enabled
|
|
488
|
+
__args__['testingMetadata'] = testing_metadata
|
|
489
|
+
__args__['updated'] = updated
|
|
490
|
+
__args__['versions'] = versions
|
|
491
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
492
|
+
__ret__ = pulumi.runtime.invoke_output('harness:platform/getInfraModuleTesting:getInfraModuleTesting', __args__, opts=opts, typ=GetInfraModuleTestingResult)
|
|
493
|
+
return __ret__.apply(lambda __response__: GetInfraModuleTestingResult(
|
|
494
|
+
account=pulumi.get(__response__, 'account'),
|
|
495
|
+
created=pulumi.get(__response__, 'created'),
|
|
496
|
+
description=pulumi.get(__response__, 'description'),
|
|
497
|
+
git_tag_style=pulumi.get(__response__, 'git_tag_style'),
|
|
498
|
+
id=pulumi.get(__response__, 'id'),
|
|
499
|
+
module_error=pulumi.get(__response__, 'module_error'),
|
|
500
|
+
module_id=pulumi.get(__response__, 'module_id'),
|
|
501
|
+
name=pulumi.get(__response__, 'name'),
|
|
502
|
+
org=pulumi.get(__response__, 'org'),
|
|
503
|
+
pipelines=pulumi.get(__response__, 'pipelines'),
|
|
504
|
+
project=pulumi.get(__response__, 'project'),
|
|
505
|
+
provider_connector=pulumi.get(__response__, 'provider_connector'),
|
|
506
|
+
provisioner_type=pulumi.get(__response__, 'provisioner_type'),
|
|
507
|
+
provisioner_version=pulumi.get(__response__, 'provisioner_version'),
|
|
508
|
+
release_pipeline=pulumi.get(__response__, 'release_pipeline'),
|
|
509
|
+
repository=pulumi.get(__response__, 'repository'),
|
|
510
|
+
repository_branch=pulumi.get(__response__, 'repository_branch'),
|
|
511
|
+
repository_commit=pulumi.get(__response__, 'repository_commit'),
|
|
512
|
+
repository_connector=pulumi.get(__response__, 'repository_connector'),
|
|
513
|
+
repository_path=pulumi.get(__response__, 'repository_path'),
|
|
514
|
+
repository_url=pulumi.get(__response__, 'repository_url'),
|
|
515
|
+
synced=pulumi.get(__response__, 'synced'),
|
|
516
|
+
system=pulumi.get(__response__, 'system'),
|
|
517
|
+
tags=pulumi.get(__response__, 'tags'),
|
|
518
|
+
testing_enabled=pulumi.get(__response__, 'testing_enabled'),
|
|
519
|
+
testing_metadata=pulumi.get(__response__, 'testing_metadata'),
|
|
520
|
+
updated=pulumi.get(__response__, 'updated'),
|
|
521
|
+
versions=pulumi.get(__response__, 'versions')))
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import builtins as _builtins
|
|
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
|
+
|
|
18
|
+
__all__ = [
|
|
19
|
+
'GetInfraModulesResult',
|
|
20
|
+
'AwaitableGetInfraModulesResult',
|
|
21
|
+
'get_infra_modules',
|
|
22
|
+
'get_infra_modules_output',
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
@pulumi.output_type
|
|
26
|
+
class GetInfraModulesResult:
|
|
27
|
+
"""
|
|
28
|
+
A collection of values returned by getInfraModules.
|
|
29
|
+
"""
|
|
30
|
+
def __init__(__self__, id=None, modules=None):
|
|
31
|
+
if id and not isinstance(id, str):
|
|
32
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
33
|
+
pulumi.set(__self__, "id", id)
|
|
34
|
+
if modules and not isinstance(modules, list):
|
|
35
|
+
raise TypeError("Expected argument 'modules' to be a list")
|
|
36
|
+
pulumi.set(__self__, "modules", modules)
|
|
37
|
+
|
|
38
|
+
@_builtins.property
|
|
39
|
+
@pulumi.getter
|
|
40
|
+
def id(self) -> _builtins.str:
|
|
41
|
+
"""
|
|
42
|
+
The provider-assigned unique ID for this managed resource.
|
|
43
|
+
"""
|
|
44
|
+
return pulumi.get(self, "id")
|
|
45
|
+
|
|
46
|
+
@_builtins.property
|
|
47
|
+
@pulumi.getter
|
|
48
|
+
def modules(self) -> Sequence['outputs.GetInfraModulesModuleResult']:
|
|
49
|
+
"""
|
|
50
|
+
List of modules
|
|
51
|
+
"""
|
|
52
|
+
return pulumi.get(self, "modules")
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
class AwaitableGetInfraModulesResult(GetInfraModulesResult):
|
|
56
|
+
# pylint: disable=using-constant-test
|
|
57
|
+
def __await__(self):
|
|
58
|
+
if False:
|
|
59
|
+
yield self
|
|
60
|
+
return GetInfraModulesResult(
|
|
61
|
+
id=self.id,
|
|
62
|
+
modules=self.modules)
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
def get_infra_modules(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetInfraModulesResult:
|
|
66
|
+
"""
|
|
67
|
+
Data source for retrieving a list of modules from the module registry.
|
|
68
|
+
|
|
69
|
+
## Example Usage
|
|
70
|
+
|
|
71
|
+
```python
|
|
72
|
+
import pulumi
|
|
73
|
+
import pulumi_harness as harness
|
|
74
|
+
|
|
75
|
+
all = harness.platform.get_infra_modules()
|
|
76
|
+
```
|
|
77
|
+
"""
|
|
78
|
+
__args__ = dict()
|
|
79
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
80
|
+
__ret__ = pulumi.runtime.invoke('harness:platform/getInfraModules:getInfraModules', __args__, opts=opts, typ=GetInfraModulesResult).value
|
|
81
|
+
|
|
82
|
+
return AwaitableGetInfraModulesResult(
|
|
83
|
+
id=pulumi.get(__ret__, 'id'),
|
|
84
|
+
modules=pulumi.get(__ret__, 'modules'))
|
|
85
|
+
def get_infra_modules_output(opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetInfraModulesResult]:
|
|
86
|
+
"""
|
|
87
|
+
Data source for retrieving a list of modules from the module registry.
|
|
88
|
+
|
|
89
|
+
## Example Usage
|
|
90
|
+
|
|
91
|
+
```python
|
|
92
|
+
import pulumi
|
|
93
|
+
import pulumi_harness as harness
|
|
94
|
+
|
|
95
|
+
all = harness.platform.get_infra_modules()
|
|
96
|
+
```
|
|
97
|
+
"""
|
|
98
|
+
__args__ = dict()
|
|
99
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
100
|
+
__ret__ = pulumi.runtime.invoke_output('harness:platform/getInfraModules:getInfraModules', __args__, opts=opts, typ=GetInfraModulesResult)
|
|
101
|
+
return __ret__.apply(lambda __response__: GetInfraModulesResult(
|
|
102
|
+
id=pulumi.get(__response__, 'id'),
|
|
103
|
+
modules=pulumi.get(__response__, 'modules')))
|