pulumi-harness 0.8.0a1750226873__py3-none-any.whl → 0.8.0a1752696115__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.

@@ -0,0 +1,277 @@
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
6
+ import copy
7
+ import warnings
8
+ import sys
9
+ import pulumi
10
+ import pulumi.runtime
11
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
12
+ if sys.version_info >= (3, 11):
13
+ from typing import NotRequired, TypedDict, TypeAlias
14
+ else:
15
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
16
+ from .. import _utilities
17
+ from . import outputs
18
+ from ._inputs import *
19
+
20
+ __all__ = [
21
+ 'GetCentralNotificationChannelResult',
22
+ 'AwaitableGetCentralNotificationChannelResult',
23
+ 'get_central_notification_channel',
24
+ 'get_central_notification_channel_output',
25
+ ]
26
+
27
+ @pulumi.output_type
28
+ class GetCentralNotificationChannelResult:
29
+ """
30
+ A collection of values returned by getCentralNotificationChannel.
31
+ """
32
+ def __init__(__self__, account=None, channels=None, created=None, id=None, identifier=None, last_modified=None, name=None, notification_channel_type=None, org=None, project=None, status=None):
33
+ if account and not isinstance(account, str):
34
+ raise TypeError("Expected argument 'account' to be a str")
35
+ pulumi.set(__self__, "account", account)
36
+ if channels and not isinstance(channels, list):
37
+ raise TypeError("Expected argument 'channels' to be a list")
38
+ pulumi.set(__self__, "channels", channels)
39
+ if created and not isinstance(created, int):
40
+ raise TypeError("Expected argument 'created' to be a int")
41
+ pulumi.set(__self__, "created", created)
42
+ if id and not isinstance(id, str):
43
+ raise TypeError("Expected argument 'id' to be a str")
44
+ pulumi.set(__self__, "id", id)
45
+ if identifier and not isinstance(identifier, str):
46
+ raise TypeError("Expected argument 'identifier' to be a str")
47
+ pulumi.set(__self__, "identifier", identifier)
48
+ if last_modified and not isinstance(last_modified, int):
49
+ raise TypeError("Expected argument 'last_modified' to be a int")
50
+ pulumi.set(__self__, "last_modified", last_modified)
51
+ if name and not isinstance(name, str):
52
+ raise TypeError("Expected argument 'name' to be a str")
53
+ pulumi.set(__self__, "name", name)
54
+ if notification_channel_type and not isinstance(notification_channel_type, str):
55
+ raise TypeError("Expected argument 'notification_channel_type' to be a str")
56
+ pulumi.set(__self__, "notification_channel_type", notification_channel_type)
57
+ if org and not isinstance(org, str):
58
+ raise TypeError("Expected argument 'org' to be a str")
59
+ pulumi.set(__self__, "org", org)
60
+ if project and not isinstance(project, str):
61
+ raise TypeError("Expected argument 'project' to be a str")
62
+ pulumi.set(__self__, "project", project)
63
+ if status and not isinstance(status, str):
64
+ raise TypeError("Expected argument 'status' to be a str")
65
+ pulumi.set(__self__, "status", status)
66
+
67
+ @property
68
+ @pulumi.getter
69
+ def account(self) -> Optional[builtins.str]:
70
+ """
71
+ Account identifier associated with this notification channel.
72
+ """
73
+ return pulumi.get(self, "account")
74
+
75
+ @property
76
+ @pulumi.getter
77
+ def channels(self) -> Optional[Sequence['outputs.GetCentralNotificationChannelChannelResult']]:
78
+ """
79
+ Configuration details of the notification channel.
80
+ """
81
+ return pulumi.get(self, "channels")
82
+
83
+ @property
84
+ @pulumi.getter
85
+ def created(self) -> Optional[builtins.int]:
86
+ """
87
+ Timestamp when the notification channel was created.
88
+ """
89
+ return pulumi.get(self, "created")
90
+
91
+ @property
92
+ @pulumi.getter
93
+ def id(self) -> builtins.str:
94
+ """
95
+ The provider-assigned unique ID for this managed resource.
96
+ """
97
+ return pulumi.get(self, "id")
98
+
99
+ @property
100
+ @pulumi.getter
101
+ def identifier(self) -> builtins.str:
102
+ """
103
+ Unique identifier of the notification channel.
104
+ """
105
+ return pulumi.get(self, "identifier")
106
+
107
+ @property
108
+ @pulumi.getter(name="lastModified")
109
+ def last_modified(self) -> Optional[builtins.int]:
110
+ """
111
+ Timestamp when the notification channel was last modified.
112
+ """
113
+ return pulumi.get(self, "last_modified")
114
+
115
+ @property
116
+ @pulumi.getter
117
+ def name(self) -> Optional[builtins.str]:
118
+ """
119
+ Name of the notification channel.
120
+ """
121
+ return pulumi.get(self, "name")
122
+
123
+ @property
124
+ @pulumi.getter(name="notificationChannelType")
125
+ def notification_channel_type(self) -> Optional[builtins.str]:
126
+ """
127
+ Type of notification channel. One of: EMAIL, SLACK, PAGERDUTY, MSTeams, WEBHOOK, DATADOG.
128
+ """
129
+ return pulumi.get(self, "notification_channel_type")
130
+
131
+ @property
132
+ @pulumi.getter
133
+ def org(self) -> Optional[builtins.str]:
134
+ """
135
+ Identifier of the organization the notification channel is scoped to.
136
+ """
137
+ return pulumi.get(self, "org")
138
+
139
+ @property
140
+ @pulumi.getter
141
+ def project(self) -> Optional[builtins.str]:
142
+ """
143
+ Identifier of the project the notification channel is scoped to.
144
+ """
145
+ return pulumi.get(self, "project")
146
+
147
+ @property
148
+ @pulumi.getter
149
+ def status(self) -> Optional[builtins.str]:
150
+ """
151
+ Status of the notification channel. Possible values are ENABLED or DISABLED.
152
+ """
153
+ return pulumi.get(self, "status")
154
+
155
+
156
+ class AwaitableGetCentralNotificationChannelResult(GetCentralNotificationChannelResult):
157
+ # pylint: disable=using-constant-test
158
+ def __await__(self):
159
+ if False:
160
+ yield self
161
+ return GetCentralNotificationChannelResult(
162
+ account=self.account,
163
+ channels=self.channels,
164
+ created=self.created,
165
+ id=self.id,
166
+ identifier=self.identifier,
167
+ last_modified=self.last_modified,
168
+ name=self.name,
169
+ notification_channel_type=self.notification_channel_type,
170
+ org=self.org,
171
+ project=self.project,
172
+ status=self.status)
173
+
174
+
175
+ def get_central_notification_channel(account: Optional[builtins.str] = None,
176
+ channels: Optional[Sequence[Union['GetCentralNotificationChannelChannelArgs', 'GetCentralNotificationChannelChannelArgsDict']]] = None,
177
+ created: Optional[builtins.int] = None,
178
+ identifier: Optional[builtins.str] = None,
179
+ last_modified: Optional[builtins.int] = None,
180
+ name: Optional[builtins.str] = None,
181
+ notification_channel_type: Optional[builtins.str] = None,
182
+ org: Optional[builtins.str] = None,
183
+ project: Optional[builtins.str] = None,
184
+ status: Optional[builtins.str] = None,
185
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetCentralNotificationChannelResult:
186
+ """
187
+ Data source for retrieving a central notification channel in Harness.
188
+
189
+
190
+ :param builtins.str account: Account identifier associated with this notification channel.
191
+ :param Sequence[Union['GetCentralNotificationChannelChannelArgs', 'GetCentralNotificationChannelChannelArgsDict']] channels: Configuration details of the notification channel.
192
+ :param builtins.int created: Timestamp when the notification channel was created.
193
+ :param builtins.str identifier: Unique identifier of the notification channel.
194
+ :param builtins.int last_modified: Timestamp when the notification channel was last modified.
195
+ :param builtins.str name: Name of the notification channel.
196
+ :param builtins.str notification_channel_type: Type of notification channel. One of: EMAIL, SLACK, PAGERDUTY, MSTeams, WEBHOOK, DATADOG.
197
+ :param builtins.str org: Identifier of the organization the notification channel is scoped to.
198
+ :param builtins.str project: Identifier of the project the notification channel is scoped to.
199
+ :param builtins.str status: Status of the notification channel. Possible values are ENABLED or DISABLED.
200
+ """
201
+ __args__ = dict()
202
+ __args__['account'] = account
203
+ __args__['channels'] = channels
204
+ __args__['created'] = created
205
+ __args__['identifier'] = identifier
206
+ __args__['lastModified'] = last_modified
207
+ __args__['name'] = name
208
+ __args__['notificationChannelType'] = notification_channel_type
209
+ __args__['org'] = org
210
+ __args__['project'] = project
211
+ __args__['status'] = status
212
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
213
+ __ret__ = pulumi.runtime.invoke('harness:platform/getCentralNotificationChannel:getCentralNotificationChannel', __args__, opts=opts, typ=GetCentralNotificationChannelResult).value
214
+
215
+ return AwaitableGetCentralNotificationChannelResult(
216
+ account=pulumi.get(__ret__, 'account'),
217
+ channels=pulumi.get(__ret__, 'channels'),
218
+ created=pulumi.get(__ret__, 'created'),
219
+ id=pulumi.get(__ret__, 'id'),
220
+ identifier=pulumi.get(__ret__, 'identifier'),
221
+ last_modified=pulumi.get(__ret__, 'last_modified'),
222
+ name=pulumi.get(__ret__, 'name'),
223
+ notification_channel_type=pulumi.get(__ret__, 'notification_channel_type'),
224
+ org=pulumi.get(__ret__, 'org'),
225
+ project=pulumi.get(__ret__, 'project'),
226
+ status=pulumi.get(__ret__, 'status'))
227
+ def get_central_notification_channel_output(account: Optional[pulumi.Input[Optional[builtins.str]]] = None,
228
+ channels: Optional[pulumi.Input[Optional[Sequence[Union['GetCentralNotificationChannelChannelArgs', 'GetCentralNotificationChannelChannelArgsDict']]]]] = None,
229
+ created: Optional[pulumi.Input[Optional[builtins.int]]] = None,
230
+ identifier: Optional[pulumi.Input[builtins.str]] = None,
231
+ last_modified: Optional[pulumi.Input[Optional[builtins.int]]] = None,
232
+ name: Optional[pulumi.Input[Optional[builtins.str]]] = None,
233
+ notification_channel_type: Optional[pulumi.Input[Optional[builtins.str]]] = None,
234
+ org: Optional[pulumi.Input[Optional[builtins.str]]] = None,
235
+ project: Optional[pulumi.Input[Optional[builtins.str]]] = None,
236
+ status: Optional[pulumi.Input[Optional[builtins.str]]] = None,
237
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetCentralNotificationChannelResult]:
238
+ """
239
+ Data source for retrieving a central notification channel in Harness.
240
+
241
+
242
+ :param builtins.str account: Account identifier associated with this notification channel.
243
+ :param Sequence[Union['GetCentralNotificationChannelChannelArgs', 'GetCentralNotificationChannelChannelArgsDict']] channels: Configuration details of the notification channel.
244
+ :param builtins.int created: Timestamp when the notification channel was created.
245
+ :param builtins.str identifier: Unique identifier of the notification channel.
246
+ :param builtins.int last_modified: Timestamp when the notification channel was last modified.
247
+ :param builtins.str name: Name of the notification channel.
248
+ :param builtins.str notification_channel_type: Type of notification channel. One of: EMAIL, SLACK, PAGERDUTY, MSTeams, WEBHOOK, DATADOG.
249
+ :param builtins.str org: Identifier of the organization the notification channel is scoped to.
250
+ :param builtins.str project: Identifier of the project the notification channel is scoped to.
251
+ :param builtins.str status: Status of the notification channel. Possible values are ENABLED or DISABLED.
252
+ """
253
+ __args__ = dict()
254
+ __args__['account'] = account
255
+ __args__['channels'] = channels
256
+ __args__['created'] = created
257
+ __args__['identifier'] = identifier
258
+ __args__['lastModified'] = last_modified
259
+ __args__['name'] = name
260
+ __args__['notificationChannelType'] = notification_channel_type
261
+ __args__['org'] = org
262
+ __args__['project'] = project
263
+ __args__['status'] = status
264
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
265
+ __ret__ = pulumi.runtime.invoke_output('harness:platform/getCentralNotificationChannel:getCentralNotificationChannel', __args__, opts=opts, typ=GetCentralNotificationChannelResult)
266
+ return __ret__.apply(lambda __response__: GetCentralNotificationChannelResult(
267
+ account=pulumi.get(__response__, 'account'),
268
+ channels=pulumi.get(__response__, 'channels'),
269
+ created=pulumi.get(__response__, 'created'),
270
+ id=pulumi.get(__response__, 'id'),
271
+ identifier=pulumi.get(__response__, 'identifier'),
272
+ last_modified=pulumi.get(__response__, 'last_modified'),
273
+ name=pulumi.get(__response__, 'name'),
274
+ notification_channel_type=pulumi.get(__response__, 'notification_channel_type'),
275
+ org=pulumi.get(__response__, 'org'),
276
+ project=pulumi.get(__response__, 'project'),
277
+ status=pulumi.get(__response__, 'status')))
@@ -0,0 +1,170 @@
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
6
+ import copy
7
+ import warnings
8
+ import sys
9
+ import pulumi
10
+ import pulumi.runtime
11
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
12
+ if sys.version_info >= (3, 11):
13
+ from typing import NotRequired, TypedDict, TypeAlias
14
+ else:
15
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
16
+ from .. import _utilities
17
+
18
+ __all__ = [
19
+ 'GetDashboardFoldersResult',
20
+ 'AwaitableGetDashboardFoldersResult',
21
+ 'get_dashboard_folders',
22
+ 'get_dashboard_folders_output',
23
+ ]
24
+
25
+ @pulumi.output_type
26
+ class GetDashboardFoldersResult:
27
+ """
28
+ A collection of values returned by getDashboardFolders.
29
+ """
30
+ def __init__(__self__, created_at=None, description=None, id=None, identifier=None, name=None, tags=None):
31
+ if created_at and not isinstance(created_at, str):
32
+ raise TypeError("Expected argument 'created_at' to be a str")
33
+ pulumi.set(__self__, "created_at", created_at)
34
+ if description and not isinstance(description, str):
35
+ raise TypeError("Expected argument 'description' to be a str")
36
+ pulumi.set(__self__, "description", description)
37
+ if id and not isinstance(id, str):
38
+ raise TypeError("Expected argument 'id' to be a str")
39
+ pulumi.set(__self__, "id", id)
40
+ if identifier and not isinstance(identifier, str):
41
+ raise TypeError("Expected argument 'identifier' to be a str")
42
+ pulumi.set(__self__, "identifier", identifier)
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 tags and not isinstance(tags, list):
47
+ raise TypeError("Expected argument 'tags' to be a list")
48
+ pulumi.set(__self__, "tags", tags)
49
+
50
+ @property
51
+ @pulumi.getter(name="createdAt")
52
+ def created_at(self) -> builtins.str:
53
+ """
54
+ Created DateTime of the folder.
55
+ """
56
+ return pulumi.get(self, "created_at")
57
+
58
+ @property
59
+ @pulumi.getter
60
+ def description(self) -> builtins.str:
61
+ return pulumi.get(self, "description")
62
+
63
+ @property
64
+ @pulumi.getter
65
+ def id(self) -> builtins.str:
66
+ """
67
+ Identifier of the folder.
68
+ """
69
+ return pulumi.get(self, "id")
70
+
71
+ @property
72
+ @pulumi.getter
73
+ def identifier(self) -> Optional[builtins.str]:
74
+ return pulumi.get(self, "identifier")
75
+
76
+ @property
77
+ @pulumi.getter
78
+ def name(self) -> Optional[builtins.str]:
79
+ """
80
+ Name of the folder.
81
+ """
82
+ return pulumi.get(self, "name")
83
+
84
+ @property
85
+ @pulumi.getter
86
+ def tags(self) -> Sequence[builtins.str]:
87
+ return pulumi.get(self, "tags")
88
+
89
+
90
+ class AwaitableGetDashboardFoldersResult(GetDashboardFoldersResult):
91
+ # pylint: disable=using-constant-test
92
+ def __await__(self):
93
+ if False:
94
+ yield self
95
+ return GetDashboardFoldersResult(
96
+ created_at=self.created_at,
97
+ description=self.description,
98
+ id=self.id,
99
+ identifier=self.identifier,
100
+ name=self.name,
101
+ tags=self.tags)
102
+
103
+
104
+ def get_dashboard_folders(id: Optional[builtins.str] = None,
105
+ identifier: Optional[builtins.str] = None,
106
+ name: Optional[builtins.str] = None,
107
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDashboardFoldersResult:
108
+ """
109
+ Data source for retrieving a Harness Dashboard Folder.
110
+
111
+ ## Example Usage
112
+
113
+ ```python
114
+ import pulumi
115
+ import pulumi_harness as harness
116
+
117
+ example = harness.platform.get_dashboard_folders(id="your_folder_id")
118
+ ```
119
+
120
+
121
+ :param builtins.str id: Identifier of the folder.
122
+ :param builtins.str name: Name of the folder.
123
+ """
124
+ __args__ = dict()
125
+ __args__['id'] = id
126
+ __args__['identifier'] = identifier
127
+ __args__['name'] = name
128
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
129
+ __ret__ = pulumi.runtime.invoke('harness:platform/getDashboardFolders:getDashboardFolders', __args__, opts=opts, typ=GetDashboardFoldersResult).value
130
+
131
+ return AwaitableGetDashboardFoldersResult(
132
+ created_at=pulumi.get(__ret__, 'created_at'),
133
+ description=pulumi.get(__ret__, 'description'),
134
+ id=pulumi.get(__ret__, 'id'),
135
+ identifier=pulumi.get(__ret__, 'identifier'),
136
+ name=pulumi.get(__ret__, 'name'),
137
+ tags=pulumi.get(__ret__, 'tags'))
138
+ def get_dashboard_folders_output(id: Optional[pulumi.Input[builtins.str]] = None,
139
+ identifier: Optional[pulumi.Input[Optional[builtins.str]]] = None,
140
+ name: Optional[pulumi.Input[Optional[builtins.str]]] = None,
141
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetDashboardFoldersResult]:
142
+ """
143
+ Data source for retrieving a Harness Dashboard Folder.
144
+
145
+ ## Example Usage
146
+
147
+ ```python
148
+ import pulumi
149
+ import pulumi_harness as harness
150
+
151
+ example = harness.platform.get_dashboard_folders(id="your_folder_id")
152
+ ```
153
+
154
+
155
+ :param builtins.str id: Identifier of the folder.
156
+ :param builtins.str name: Name of the folder.
157
+ """
158
+ __args__ = dict()
159
+ __args__['id'] = id
160
+ __args__['identifier'] = identifier
161
+ __args__['name'] = name
162
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
163
+ __ret__ = pulumi.runtime.invoke_output('harness:platform/getDashboardFolders:getDashboardFolders', __args__, opts=opts, typ=GetDashboardFoldersResult)
164
+ return __ret__.apply(lambda __response__: GetDashboardFoldersResult(
165
+ created_at=pulumi.get(__response__, 'created_at'),
166
+ description=pulumi.get(__response__, 'description'),
167
+ id=pulumi.get(__response__, 'id'),
168
+ identifier=pulumi.get(__response__, 'identifier'),
169
+ name=pulumi.get(__response__, 'name'),
170
+ tags=pulumi.get(__response__, 'tags')))