pulumi-harness 0.8.0a1750480667__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.
- pulumi_harness/__init__.py +8 -0
- pulumi_harness/platform/__init__.py +2 -0
- pulumi_harness/platform/_inputs.py +534 -0
- pulumi_harness/platform/central_notification_channel.py +432 -0
- pulumi_harness/platform/delegatetoken.py +148 -89
- pulumi_harness/platform/get_central_notification_channel.py +277 -0
- pulumi_harness/platform/get_delegatetoken.py +87 -31
- pulumi_harness/platform/outputs.py +351 -0
- pulumi_harness/pulumi-plugin.json +1 -1
- {pulumi_harness-0.8.0a1750480667.dist-info → pulumi_harness-0.8.0a1752696115.dist-info}/METADATA +1 -1
- {pulumi_harness-0.8.0a1750480667.dist-info → pulumi_harness-0.8.0a1752696115.dist-info}/RECORD +13 -11
- {pulumi_harness-0.8.0a1750480667.dist-info → pulumi_harness-0.8.0a1752696115.dist-info}/WHEEL +0 -0
- {pulumi_harness-0.8.0a1750480667.dist-info → pulumi_harness-0.8.0a1752696115.dist-info}/top_level.txt +0 -0
|
@@ -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')))
|
|
@@ -27,13 +27,16 @@ class GetDelegatetokenResult:
|
|
|
27
27
|
"""
|
|
28
28
|
A collection of values returned by getDelegatetoken.
|
|
29
29
|
"""
|
|
30
|
-
def __init__(__self__, account_id=None, created_at=None, id=None, name=None, org_id=None, project_id=None, token_status=None, value=None):
|
|
30
|
+
def __init__(__self__, account_id=None, created_at=None, created_by=None, id=None, name=None, org_id=None, project_id=None, revoke_after=None, token_status=None, value=None):
|
|
31
31
|
if account_id and not isinstance(account_id, str):
|
|
32
32
|
raise TypeError("Expected argument 'account_id' to be a str")
|
|
33
33
|
pulumi.set(__self__, "account_id", account_id)
|
|
34
34
|
if created_at and not isinstance(created_at, int):
|
|
35
35
|
raise TypeError("Expected argument 'created_at' to be a int")
|
|
36
36
|
pulumi.set(__self__, "created_at", created_at)
|
|
37
|
+
if created_by and not isinstance(created_by, dict):
|
|
38
|
+
raise TypeError("Expected argument 'created_by' to be a dict")
|
|
39
|
+
pulumi.set(__self__, "created_by", created_by)
|
|
37
40
|
if id and not isinstance(id, str):
|
|
38
41
|
raise TypeError("Expected argument 'id' to be a str")
|
|
39
42
|
pulumi.set(__self__, "id", id)
|
|
@@ -46,6 +49,9 @@ class GetDelegatetokenResult:
|
|
|
46
49
|
if project_id and not isinstance(project_id, str):
|
|
47
50
|
raise TypeError("Expected argument 'project_id' to be a str")
|
|
48
51
|
pulumi.set(__self__, "project_id", project_id)
|
|
52
|
+
if revoke_after and not isinstance(revoke_after, int):
|
|
53
|
+
raise TypeError("Expected argument 'revoke_after' to be a int")
|
|
54
|
+
pulumi.set(__self__, "revoke_after", revoke_after)
|
|
49
55
|
if token_status and not isinstance(token_status, str):
|
|
50
56
|
raise TypeError("Expected argument 'token_status' to be a str")
|
|
51
57
|
pulumi.set(__self__, "token_status", token_status)
|
|
@@ -63,12 +69,20 @@ class GetDelegatetokenResult:
|
|
|
63
69
|
|
|
64
70
|
@property
|
|
65
71
|
@pulumi.getter(name="createdAt")
|
|
66
|
-
def created_at(self) ->
|
|
72
|
+
def created_at(self) -> builtins.int:
|
|
67
73
|
"""
|
|
68
|
-
Time when the delegate token is created.
|
|
74
|
+
Time when the delegate token is created. This is an epoch timestamp.
|
|
69
75
|
"""
|
|
70
76
|
return pulumi.get(self, "created_at")
|
|
71
77
|
|
|
78
|
+
@property
|
|
79
|
+
@pulumi.getter(name="createdBy")
|
|
80
|
+
def created_by(self) -> Mapping[str, builtins.str]:
|
|
81
|
+
"""
|
|
82
|
+
created by details
|
|
83
|
+
"""
|
|
84
|
+
return pulumi.get(self, "created_by")
|
|
85
|
+
|
|
72
86
|
@property
|
|
73
87
|
@pulumi.getter
|
|
74
88
|
def id(self) -> builtins.str:
|
|
@@ -81,7 +95,7 @@ class GetDelegatetokenResult:
|
|
|
81
95
|
@pulumi.getter
|
|
82
96
|
def name(self) -> builtins.str:
|
|
83
97
|
"""
|
|
84
|
-
Name of the
|
|
98
|
+
Name of the delegate token
|
|
85
99
|
"""
|
|
86
100
|
return pulumi.get(self, "name")
|
|
87
101
|
|
|
@@ -89,7 +103,7 @@ class GetDelegatetokenResult:
|
|
|
89
103
|
@pulumi.getter(name="orgId")
|
|
90
104
|
def org_id(self) -> Optional[builtins.str]:
|
|
91
105
|
"""
|
|
92
|
-
|
|
106
|
+
Org Identifier for the Entity
|
|
93
107
|
"""
|
|
94
108
|
return pulumi.get(self, "org_id")
|
|
95
109
|
|
|
@@ -97,23 +111,31 @@ class GetDelegatetokenResult:
|
|
|
97
111
|
@pulumi.getter(name="projectId")
|
|
98
112
|
def project_id(self) -> Optional[builtins.str]:
|
|
99
113
|
"""
|
|
100
|
-
|
|
114
|
+
Project Identifier for the Entity
|
|
101
115
|
"""
|
|
102
116
|
return pulumi.get(self, "project_id")
|
|
103
117
|
|
|
118
|
+
@property
|
|
119
|
+
@pulumi.getter(name="revokeAfter")
|
|
120
|
+
def revoke_after(self) -> builtins.int:
|
|
121
|
+
"""
|
|
122
|
+
Epoch time in milliseconds after which the token will be marked as revoked. There can be a delay of up to one hour from the epoch value provided and actual revoking of the token.
|
|
123
|
+
"""
|
|
124
|
+
return pulumi.get(self, "revoke_after")
|
|
125
|
+
|
|
104
126
|
@property
|
|
105
127
|
@pulumi.getter(name="tokenStatus")
|
|
106
128
|
def token_status(self) -> Optional[builtins.str]:
|
|
107
129
|
"""
|
|
108
|
-
Status of Delegate Token (ACTIVE or REVOKED). If left empty both active and revoked tokens will be assumed
|
|
130
|
+
Status of Delegate Token (ACTIVE or REVOKED). If left empty both active and revoked tokens will be assumed
|
|
109
131
|
"""
|
|
110
132
|
return pulumi.get(self, "token_status")
|
|
111
133
|
|
|
112
134
|
@property
|
|
113
135
|
@pulumi.getter
|
|
114
|
-
def value(self) ->
|
|
136
|
+
def value(self) -> builtins.str:
|
|
115
137
|
"""
|
|
116
|
-
Value of the delegate
|
|
138
|
+
Value of the delegate token. Encoded in base64.
|
|
117
139
|
"""
|
|
118
140
|
return pulumi.get(self, "value")
|
|
119
141
|
|
|
@@ -126,90 +148,124 @@ class AwaitableGetDelegatetokenResult(GetDelegatetokenResult):
|
|
|
126
148
|
return GetDelegatetokenResult(
|
|
127
149
|
account_id=self.account_id,
|
|
128
150
|
created_at=self.created_at,
|
|
151
|
+
created_by=self.created_by,
|
|
129
152
|
id=self.id,
|
|
130
153
|
name=self.name,
|
|
131
154
|
org_id=self.org_id,
|
|
132
155
|
project_id=self.project_id,
|
|
156
|
+
revoke_after=self.revoke_after,
|
|
133
157
|
token_status=self.token_status,
|
|
134
158
|
value=self.value)
|
|
135
159
|
|
|
136
160
|
|
|
137
161
|
def get_delegatetoken(account_id: Optional[builtins.str] = None,
|
|
138
|
-
created_at: Optional[builtins.int] = None,
|
|
139
162
|
name: Optional[builtins.str] = None,
|
|
140
163
|
org_id: Optional[builtins.str] = None,
|
|
141
164
|
project_id: Optional[builtins.str] = None,
|
|
142
165
|
token_status: Optional[builtins.str] = None,
|
|
143
|
-
value: Optional[builtins.str] = None,
|
|
144
166
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDelegatetokenResult:
|
|
145
167
|
"""
|
|
146
|
-
Data
|
|
168
|
+
Data source for retrieving a Harness delegate Token.
|
|
169
|
+
|
|
170
|
+
## Example Usage
|
|
171
|
+
|
|
172
|
+
```python
|
|
173
|
+
import pulumi
|
|
174
|
+
import pulumi_harness as harness
|
|
175
|
+
|
|
176
|
+
# Look up a delegate token at account level by name
|
|
177
|
+
account_level = harness.platform.get_delegatetoken(name="account-delegate-token",
|
|
178
|
+
account_id="account_id")
|
|
179
|
+
# Look up a delegate token at organization level
|
|
180
|
+
org_level = harness.platform.get_delegatetoken(name="org-delegate-token",
|
|
181
|
+
account_id="account_id",
|
|
182
|
+
org_id="org_id")
|
|
183
|
+
# Look up a delegate token at project level
|
|
184
|
+
project_level = harness.platform.get_delegatetoken(name="project-delegate-token",
|
|
185
|
+
account_id="account_id",
|
|
186
|
+
org_id="org_id",
|
|
187
|
+
project_id="project_id")
|
|
188
|
+
```
|
|
147
189
|
|
|
148
190
|
|
|
149
191
|
:param builtins.str account_id: Account Identifier for the Entity
|
|
150
|
-
:param builtins.
|
|
151
|
-
:param builtins.str
|
|
152
|
-
:param builtins.str
|
|
153
|
-
:param builtins.str
|
|
154
|
-
:param builtins.str token_status: Status of Delegate Token (ACTIVE or REVOKED). If left empty both active and revoked tokens will be assumed.
|
|
155
|
-
:param builtins.str value: Value of the delegate Token
|
|
192
|
+
:param builtins.str name: Name of the delegate token
|
|
193
|
+
:param builtins.str org_id: Org Identifier for the Entity
|
|
194
|
+
:param builtins.str project_id: Project Identifier for the Entity
|
|
195
|
+
:param builtins.str token_status: Status of Delegate Token (ACTIVE or REVOKED). If left empty both active and revoked tokens will be assumed
|
|
156
196
|
"""
|
|
157
197
|
__args__ = dict()
|
|
158
198
|
__args__['accountId'] = account_id
|
|
159
|
-
__args__['createdAt'] = created_at
|
|
160
199
|
__args__['name'] = name
|
|
161
200
|
__args__['orgId'] = org_id
|
|
162
201
|
__args__['projectId'] = project_id
|
|
163
202
|
__args__['tokenStatus'] = token_status
|
|
164
|
-
__args__['value'] = value
|
|
165
203
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
166
204
|
__ret__ = pulumi.runtime.invoke('harness:platform/getDelegatetoken:getDelegatetoken', __args__, opts=opts, typ=GetDelegatetokenResult).value
|
|
167
205
|
|
|
168
206
|
return AwaitableGetDelegatetokenResult(
|
|
169
207
|
account_id=pulumi.get(__ret__, 'account_id'),
|
|
170
208
|
created_at=pulumi.get(__ret__, 'created_at'),
|
|
209
|
+
created_by=pulumi.get(__ret__, 'created_by'),
|
|
171
210
|
id=pulumi.get(__ret__, 'id'),
|
|
172
211
|
name=pulumi.get(__ret__, 'name'),
|
|
173
212
|
org_id=pulumi.get(__ret__, 'org_id'),
|
|
174
213
|
project_id=pulumi.get(__ret__, 'project_id'),
|
|
214
|
+
revoke_after=pulumi.get(__ret__, 'revoke_after'),
|
|
175
215
|
token_status=pulumi.get(__ret__, 'token_status'),
|
|
176
216
|
value=pulumi.get(__ret__, 'value'))
|
|
177
217
|
def get_delegatetoken_output(account_id: Optional[pulumi.Input[builtins.str]] = None,
|
|
178
|
-
created_at: Optional[pulumi.Input[Optional[builtins.int]]] = None,
|
|
179
218
|
name: Optional[pulumi.Input[builtins.str]] = None,
|
|
180
219
|
org_id: Optional[pulumi.Input[Optional[builtins.str]]] = None,
|
|
181
220
|
project_id: Optional[pulumi.Input[Optional[builtins.str]]] = None,
|
|
182
221
|
token_status: Optional[pulumi.Input[Optional[builtins.str]]] = None,
|
|
183
|
-
value: Optional[pulumi.Input[Optional[builtins.str]]] = None,
|
|
184
222
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetDelegatetokenResult]:
|
|
185
223
|
"""
|
|
186
|
-
Data
|
|
224
|
+
Data source for retrieving a Harness delegate Token.
|
|
225
|
+
|
|
226
|
+
## Example Usage
|
|
227
|
+
|
|
228
|
+
```python
|
|
229
|
+
import pulumi
|
|
230
|
+
import pulumi_harness as harness
|
|
231
|
+
|
|
232
|
+
# Look up a delegate token at account level by name
|
|
233
|
+
account_level = harness.platform.get_delegatetoken(name="account-delegate-token",
|
|
234
|
+
account_id="account_id")
|
|
235
|
+
# Look up a delegate token at organization level
|
|
236
|
+
org_level = harness.platform.get_delegatetoken(name="org-delegate-token",
|
|
237
|
+
account_id="account_id",
|
|
238
|
+
org_id="org_id")
|
|
239
|
+
# Look up a delegate token at project level
|
|
240
|
+
project_level = harness.platform.get_delegatetoken(name="project-delegate-token",
|
|
241
|
+
account_id="account_id",
|
|
242
|
+
org_id="org_id",
|
|
243
|
+
project_id="project_id")
|
|
244
|
+
```
|
|
187
245
|
|
|
188
246
|
|
|
189
247
|
:param builtins.str account_id: Account Identifier for the Entity
|
|
190
|
-
:param builtins.
|
|
191
|
-
:param builtins.str
|
|
192
|
-
:param builtins.str
|
|
193
|
-
:param builtins.str
|
|
194
|
-
:param builtins.str token_status: Status of Delegate Token (ACTIVE or REVOKED). If left empty both active and revoked tokens will be assumed.
|
|
195
|
-
:param builtins.str value: Value of the delegate Token
|
|
248
|
+
:param builtins.str name: Name of the delegate token
|
|
249
|
+
:param builtins.str org_id: Org Identifier for the Entity
|
|
250
|
+
:param builtins.str project_id: Project Identifier for the Entity
|
|
251
|
+
:param builtins.str token_status: Status of Delegate Token (ACTIVE or REVOKED). If left empty both active and revoked tokens will be assumed
|
|
196
252
|
"""
|
|
197
253
|
__args__ = dict()
|
|
198
254
|
__args__['accountId'] = account_id
|
|
199
|
-
__args__['createdAt'] = created_at
|
|
200
255
|
__args__['name'] = name
|
|
201
256
|
__args__['orgId'] = org_id
|
|
202
257
|
__args__['projectId'] = project_id
|
|
203
258
|
__args__['tokenStatus'] = token_status
|
|
204
|
-
__args__['value'] = value
|
|
205
259
|
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
206
260
|
__ret__ = pulumi.runtime.invoke_output('harness:platform/getDelegatetoken:getDelegatetoken', __args__, opts=opts, typ=GetDelegatetokenResult)
|
|
207
261
|
return __ret__.apply(lambda __response__: GetDelegatetokenResult(
|
|
208
262
|
account_id=pulumi.get(__response__, 'account_id'),
|
|
209
263
|
created_at=pulumi.get(__response__, 'created_at'),
|
|
264
|
+
created_by=pulumi.get(__response__, 'created_by'),
|
|
210
265
|
id=pulumi.get(__response__, 'id'),
|
|
211
266
|
name=pulumi.get(__response__, 'name'),
|
|
212
267
|
org_id=pulumi.get(__response__, 'org_id'),
|
|
213
268
|
project_id=pulumi.get(__response__, 'project_id'),
|
|
269
|
+
revoke_after=pulumi.get(__response__, 'revoke_after'),
|
|
214
270
|
token_status=pulumi.get(__response__, 'token_status'),
|
|
215
271
|
value=pulumi.get(__response__, 'value')))
|