pulumi-harness 0.9.0a1760076204__py3-none-any.whl → 0.10.0a1764049859__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. pulumi_harness/__init__.py +24 -0
  2. pulumi_harness/autostopping/__init__.py +2 -0
  3. pulumi_harness/autostopping/_inputs.py +1698 -622
  4. pulumi_harness/autostopping/get_aws_alb.py +4 -0
  5. pulumi_harness/autostopping/get_aws_proxy.py +4 -0
  6. pulumi_harness/autostopping/get_azure_gateway.py +4 -0
  7. pulumi_harness/autostopping/get_azure_proxy.py +4 -0
  8. pulumi_harness/autostopping/get_gcp_proxy.py +4 -0
  9. pulumi_harness/autostopping/get_rule_ecs.py +4 -0
  10. pulumi_harness/autostopping/get_rule_rds.py +4 -0
  11. pulumi_harness/autostopping/get_rule_scale_group.py +254 -0
  12. pulumi_harness/autostopping/get_rule_vm.py +4 -0
  13. pulumi_harness/autostopping/outputs.py +727 -0
  14. pulumi_harness/autostopping/rule_ecs.py +58 -0
  15. pulumi_harness/autostopping/rule_scale_group.py +592 -0
  16. pulumi_harness/cluster/get_orchestrator.py +4 -0
  17. pulumi_harness/cluster/get_orchestrator_config.py +21 -1
  18. pulumi_harness/cluster/orchestrator.py +2 -28
  19. pulumi_harness/cluster/orchestrator_config.py +49 -0
  20. pulumi_harness/platform/__init__.py +5 -0
  21. pulumi_harness/platform/_inputs.py +5804 -371
  22. pulumi_harness/platform/connector_rancher.py +36 -0
  23. pulumi_harness/platform/db_instance.py +49 -49
  24. pulumi_harness/platform/db_schema.py +243 -0
  25. pulumi_harness/platform/environment.py +166 -0
  26. pulumi_harness/platform/environment_group.py +10 -10
  27. pulumi_harness/platform/gcp_secret_manager_connector.py +94 -0
  28. pulumi_harness/platform/get_db_instance.py +21 -21
  29. pulumi_harness/platform/get_db_schema.py +21 -1
  30. pulumi_harness/platform/get_default_notification_template_set.py +31 -1
  31. pulumi_harness/platform/get_gitops_agent_operator_yaml.py +4 -0
  32. pulumi_harness/platform/get_gitops_app_project_mapping.py +4 -0
  33. pulumi_harness/platform/get_gitops_applications.py +4 -0
  34. pulumi_harness/platform/get_gitops_repo_cert.py +4 -0
  35. pulumi_harness/platform/get_infra_module.py +192 -6
  36. pulumi_harness/platform/get_infra_module_testing.py +521 -0
  37. pulumi_harness/platform/get_infra_modules.py +103 -0
  38. pulumi_harness/platform/get_manual_freeze.py +4 -0
  39. pulumi_harness/platform/get_pipeline_central_notification_rule.py +2 -26
  40. pulumi_harness/platform/get_secret_winrm.py +263 -0
  41. pulumi_harness/platform/git_ops_applications.py +0 -4
  42. pulumi_harness/platform/gitops_applicationset.py +308 -6
  43. pulumi_harness/platform/infra_module_testing.py +1134 -0
  44. pulumi_harness/platform/infrastructure.py +82 -0
  45. pulumi_harness/platform/outputs.py +4467 -251
  46. pulumi_harness/platform/pipeline.py +2 -2
  47. pulumi_harness/platform/pipeline_central_notification_rule.py +187 -0
  48. pulumi_harness/platform/secret_winrm.py +1082 -0
  49. pulumi_harness/platform/service.py +150 -0
  50. pulumi_harness/platform/triggers.py +6 -4
  51. pulumi_harness/pulumi-plugin.json +1 -1
  52. {pulumi_harness-0.9.0a1760076204.dist-info → pulumi_harness-0.10.0a1764049859.dist-info}/METADATA +1 -1
  53. {pulumi_harness-0.9.0a1760076204.dist-info → pulumi_harness-0.10.0a1764049859.dist-info}/RECORD +55 -48
  54. {pulumi_harness-0.9.0a1760076204.dist-info → pulumi_harness-0.10.0a1764049859.dist-info}/WHEEL +0 -0
  55. {pulumi_harness-0.9.0a1760076204.dist-info → pulumi_harness-0.10.0a1764049859.dist-info}/top_level.txt +0 -0
@@ -69,17 +69,11 @@ class GetPipelineCentralNotificationRuleResult:
69
69
  @_builtins.property
70
70
  @pulumi.getter
71
71
  def account(self) -> _builtins.str:
72
- """
73
- Account identifier associated with this notification channel.
74
- """
75
72
  return pulumi.get(self, "account")
76
73
 
77
74
  @_builtins.property
78
75
  @pulumi.getter
79
76
  def created(self) -> _builtins.int:
80
- """
81
- Timestamp when the notification rule was created.
82
- """
83
77
  return pulumi.get(self, "created")
84
78
 
85
79
  @_builtins.property
@@ -98,17 +92,11 @@ class GetPipelineCentralNotificationRuleResult:
98
92
  @_builtins.property
99
93
  @pulumi.getter
100
94
  def identifier(self) -> _builtins.str:
101
- """
102
- Identifier of the Notification Rule.
103
- """
104
95
  return pulumi.get(self, "identifier")
105
96
 
106
97
  @_builtins.property
107
98
  @pulumi.getter(name="lastModified")
108
99
  def last_modified(self) -> _builtins.int:
109
- """
110
- Timestamp when the notification rule was last modified.
111
- """
112
100
  return pulumi.get(self, "last_modified")
113
101
 
114
102
  @_builtins.property
@@ -129,17 +117,11 @@ class GetPipelineCentralNotificationRuleResult:
129
117
  @_builtins.property
130
118
  @pulumi.getter
131
119
  def org(self) -> Optional[_builtins.str]:
132
- """
133
- Identifier of the organization in which the Notification Rule is configured.
134
- """
135
120
  return pulumi.get(self, "org")
136
121
 
137
122
  @_builtins.property
138
123
  @pulumi.getter
139
124
  def project(self) -> Optional[_builtins.str]:
140
- """
141
- Identifier of the project in which the Notification Rule is configured.
142
- """
143
125
  return pulumi.get(self, "project")
144
126
 
145
127
  @_builtins.property
@@ -180,10 +162,7 @@ def get_pipeline_central_notification_rule(custom_notification_template_ref: Opt
180
162
  """
181
163
  Data source for retrieving a Notification Rule.
182
164
 
183
-
184
- :param _builtins.str identifier: Identifier of the Notification Rule.
185
- :param _builtins.str org: Identifier of the organization in which the Notification Rule is configured.
186
- :param _builtins.str project: Identifier of the project in which the Notification Rule is configured.
165
+ ## Example Usage
187
166
  """
188
167
  __args__ = dict()
189
168
  __args__['customNotificationTemplateRef'] = custom_notification_template_ref
@@ -222,10 +201,7 @@ def get_pipeline_central_notification_rule_output(custom_notification_template_r
222
201
  """
223
202
  Data source for retrieving a Notification Rule.
224
203
 
225
-
226
- :param _builtins.str identifier: Identifier of the Notification Rule.
227
- :param _builtins.str org: Identifier of the organization in which the Notification Rule is configured.
228
- :param _builtins.str project: Identifier of the project in which the Notification Rule is configured.
204
+ ## Example Usage
229
205
  """
230
206
  __args__ = dict()
231
207
  __args__['customNotificationTemplateRef'] = custom_notification_template_ref
@@ -0,0 +1,263 @@
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
+ 'GetSecretWinrmResult',
20
+ 'AwaitableGetSecretWinrmResult',
21
+ 'get_secret_winrm',
22
+ 'get_secret_winrm_output',
23
+ ]
24
+
25
+ @pulumi.output_type
26
+ class GetSecretWinrmResult:
27
+ """
28
+ A collection of values returned by getSecretWinrm.
29
+ """
30
+ def __init__(__self__, description=None, id=None, identifier=None, kerberos=None, name=None, ntlms=None, org_id=None, port=None, project_id=None, tags=None):
31
+ if description and not isinstance(description, str):
32
+ raise TypeError("Expected argument 'description' to be a str")
33
+ pulumi.set(__self__, "description", description)
34
+ if id and not isinstance(id, str):
35
+ raise TypeError("Expected argument 'id' to be a str")
36
+ pulumi.set(__self__, "id", id)
37
+ if identifier and not isinstance(identifier, str):
38
+ raise TypeError("Expected argument 'identifier' to be a str")
39
+ pulumi.set(__self__, "identifier", identifier)
40
+ if kerberos and not isinstance(kerberos, list):
41
+ raise TypeError("Expected argument 'kerberos' to be a list")
42
+ pulumi.set(__self__, "kerberos", kerberos)
43
+ if name and not isinstance(name, str):
44
+ raise TypeError("Expected argument 'name' to be a str")
45
+ pulumi.set(__self__, "name", name)
46
+ if ntlms and not isinstance(ntlms, list):
47
+ raise TypeError("Expected argument 'ntlms' to be a list")
48
+ pulumi.set(__self__, "ntlms", ntlms)
49
+ if org_id and not isinstance(org_id, str):
50
+ raise TypeError("Expected argument 'org_id' to be a str")
51
+ pulumi.set(__self__, "org_id", org_id)
52
+ if port and not isinstance(port, int):
53
+ raise TypeError("Expected argument 'port' to be a int")
54
+ pulumi.set(__self__, "port", port)
55
+ if project_id and not isinstance(project_id, str):
56
+ raise TypeError("Expected argument 'project_id' to be a str")
57
+ pulumi.set(__self__, "project_id", project_id)
58
+ if tags and not isinstance(tags, list):
59
+ raise TypeError("Expected argument 'tags' to be a list")
60
+ pulumi.set(__self__, "tags", tags)
61
+
62
+ @_builtins.property
63
+ @pulumi.getter
64
+ def description(self) -> _builtins.str:
65
+ """
66
+ Description of the resource.
67
+ """
68
+ return pulumi.get(self, "description")
69
+
70
+ @_builtins.property
71
+ @pulumi.getter
72
+ def id(self) -> _builtins.str:
73
+ """
74
+ The provider-assigned unique ID for this managed resource.
75
+ """
76
+ return pulumi.get(self, "id")
77
+
78
+ @_builtins.property
79
+ @pulumi.getter
80
+ def identifier(self) -> _builtins.str:
81
+ """
82
+ Unique identifier of the resource.
83
+ """
84
+ return pulumi.get(self, "identifier")
85
+
86
+ @_builtins.property
87
+ @pulumi.getter
88
+ def kerberos(self) -> Sequence['outputs.GetSecretWinrmKerberoResult']:
89
+ """
90
+ Kerberos authentication scheme
91
+ """
92
+ return pulumi.get(self, "kerberos")
93
+
94
+ @_builtins.property
95
+ @pulumi.getter
96
+ def name(self) -> Optional[_builtins.str]:
97
+ """
98
+ Name of the resource.
99
+ """
100
+ return pulumi.get(self, "name")
101
+
102
+ @_builtins.property
103
+ @pulumi.getter
104
+ def ntlms(self) -> Sequence['outputs.GetSecretWinrmNtlmResult']:
105
+ """
106
+ NTLM authentication scheme
107
+ """
108
+ return pulumi.get(self, "ntlms")
109
+
110
+ @_builtins.property
111
+ @pulumi.getter(name="orgId")
112
+ def org_id(self) -> Optional[_builtins.str]:
113
+ """
114
+ Unique identifier of the organization.
115
+ """
116
+ return pulumi.get(self, "org_id")
117
+
118
+ @_builtins.property
119
+ @pulumi.getter
120
+ def port(self) -> _builtins.int:
121
+ """
122
+ WinRM port. Default is 5986 for HTTPS, 5985 for HTTP.
123
+ """
124
+ return pulumi.get(self, "port")
125
+
126
+ @_builtins.property
127
+ @pulumi.getter(name="projectId")
128
+ def project_id(self) -> Optional[_builtins.str]:
129
+ """
130
+ Unique identifier of the project.
131
+ """
132
+ return pulumi.get(self, "project_id")
133
+
134
+ @_builtins.property
135
+ @pulumi.getter
136
+ def tags(self) -> Sequence[_builtins.str]:
137
+ """
138
+ Tags to associate with the resource.
139
+ """
140
+ return pulumi.get(self, "tags")
141
+
142
+
143
+ class AwaitableGetSecretWinrmResult(GetSecretWinrmResult):
144
+ # pylint: disable=using-constant-test
145
+ def __await__(self):
146
+ if False:
147
+ yield self
148
+ return GetSecretWinrmResult(
149
+ description=self.description,
150
+ id=self.id,
151
+ identifier=self.identifier,
152
+ kerberos=self.kerberos,
153
+ name=self.name,
154
+ ntlms=self.ntlms,
155
+ org_id=self.org_id,
156
+ port=self.port,
157
+ project_id=self.project_id,
158
+ tags=self.tags)
159
+
160
+
161
+ def get_secret_winrm(identifier: Optional[_builtins.str] = None,
162
+ name: Optional[_builtins.str] = None,
163
+ org_id: Optional[_builtins.str] = None,
164
+ project_id: Optional[_builtins.str] = None,
165
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetSecretWinrmResult:
166
+ """
167
+ Data source for looking up a WinRM credential secret.
168
+
169
+ ## Example Usage
170
+
171
+ ```python
172
+ import pulumi
173
+ import pulumi_harness as harness
174
+
175
+ # Data source to retrieve account level WinRM credential by identifier
176
+ example = harness.platform.get_secret_winrm(identifier="winrm_credential_id")
177
+ # Data source to retrieve organization level WinRM credential
178
+ org_example = harness.platform.get_secret_winrm(identifier="winrm_credential_id",
179
+ org_id="org_identifier")
180
+ # Data source to retrieve project level WinRM credential
181
+ project_example = harness.platform.get_secret_winrm(identifier="winrm_credential_id",
182
+ org_id="org_identifier",
183
+ project_id="project_identifier")
184
+ pulumi.export("winrmPort", example.port)
185
+ pulumi.export("winrmAuthType", len(example.ntlms).apply(lambda length: "NTLM" if length > 0 else "Kerberos"))
186
+ ```
187
+
188
+
189
+ :param _builtins.str identifier: Unique identifier of the resource.
190
+ :param _builtins.str name: Name of the resource.
191
+ :param _builtins.str org_id: Unique identifier of the organization.
192
+ :param _builtins.str project_id: Unique identifier of the project.
193
+ """
194
+ __args__ = dict()
195
+ __args__['identifier'] = identifier
196
+ __args__['name'] = name
197
+ __args__['orgId'] = org_id
198
+ __args__['projectId'] = project_id
199
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
200
+ __ret__ = pulumi.runtime.invoke('harness:platform/getSecretWinrm:getSecretWinrm', __args__, opts=opts, typ=GetSecretWinrmResult).value
201
+
202
+ return AwaitableGetSecretWinrmResult(
203
+ description=pulumi.get(__ret__, 'description'),
204
+ id=pulumi.get(__ret__, 'id'),
205
+ identifier=pulumi.get(__ret__, 'identifier'),
206
+ kerberos=pulumi.get(__ret__, 'kerberos'),
207
+ name=pulumi.get(__ret__, 'name'),
208
+ ntlms=pulumi.get(__ret__, 'ntlms'),
209
+ org_id=pulumi.get(__ret__, 'org_id'),
210
+ port=pulumi.get(__ret__, 'port'),
211
+ project_id=pulumi.get(__ret__, 'project_id'),
212
+ tags=pulumi.get(__ret__, 'tags'))
213
+ def get_secret_winrm_output(identifier: Optional[pulumi.Input[_builtins.str]] = None,
214
+ name: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
215
+ org_id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
216
+ project_id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
217
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetSecretWinrmResult]:
218
+ """
219
+ Data source for looking up a WinRM credential secret.
220
+
221
+ ## Example Usage
222
+
223
+ ```python
224
+ import pulumi
225
+ import pulumi_harness as harness
226
+
227
+ # Data source to retrieve account level WinRM credential by identifier
228
+ example = harness.platform.get_secret_winrm(identifier="winrm_credential_id")
229
+ # Data source to retrieve organization level WinRM credential
230
+ org_example = harness.platform.get_secret_winrm(identifier="winrm_credential_id",
231
+ org_id="org_identifier")
232
+ # Data source to retrieve project level WinRM credential
233
+ project_example = harness.platform.get_secret_winrm(identifier="winrm_credential_id",
234
+ org_id="org_identifier",
235
+ project_id="project_identifier")
236
+ pulumi.export("winrmPort", example.port)
237
+ pulumi.export("winrmAuthType", len(example.ntlms).apply(lambda length: "NTLM" if length > 0 else "Kerberos"))
238
+ ```
239
+
240
+
241
+ :param _builtins.str identifier: Unique identifier of the resource.
242
+ :param _builtins.str name: Name of the resource.
243
+ :param _builtins.str org_id: Unique identifier of the organization.
244
+ :param _builtins.str project_id: Unique identifier of the project.
245
+ """
246
+ __args__ = dict()
247
+ __args__['identifier'] = identifier
248
+ __args__['name'] = name
249
+ __args__['orgId'] = org_id
250
+ __args__['projectId'] = project_id
251
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
252
+ __ret__ = pulumi.runtime.invoke_output('harness:platform/getSecretWinrm:getSecretWinrm', __args__, opts=opts, typ=GetSecretWinrmResult)
253
+ return __ret__.apply(lambda __response__: GetSecretWinrmResult(
254
+ description=pulumi.get(__response__, 'description'),
255
+ id=pulumi.get(__response__, 'id'),
256
+ identifier=pulumi.get(__response__, 'identifier'),
257
+ kerberos=pulumi.get(__response__, 'kerberos'),
258
+ name=pulumi.get(__response__, 'name'),
259
+ ntlms=pulumi.get(__response__, 'ntlms'),
260
+ org_id=pulumi.get(__response__, 'org_id'),
261
+ port=pulumi.get(__response__, 'port'),
262
+ project_id=pulumi.get(__response__, 'project_id'),
263
+ tags=pulumi.get(__response__, 'tags')))
@@ -701,8 +701,6 @@ class GitOpsApplications(pulumi.CustomResource):
701
701
 
702
702
  ## Import
703
703
 
704
- The `pulumi import` command can be used, for example:
705
-
706
704
  Import a Project level Gitops Application
707
705
 
708
706
  ```sh
@@ -791,8 +789,6 @@ class GitOpsApplications(pulumi.CustomResource):
791
789
 
792
790
  ## Import
793
791
 
794
- The `pulumi import` command can be used, for example:
795
-
796
792
  Import a Project level Gitops Application
797
793
 
798
794
  ```sh