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,285 @@
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
+ 'GetDashboardsResult',
20
+ 'AwaitableGetDashboardsResult',
21
+ 'get_dashboards',
22
+ 'get_dashboards_output',
23
+ ]
24
+
25
+ @pulumi.output_type
26
+ class GetDashboardsResult:
27
+ """
28
+ A collection of values returned by getDashboards.
29
+ """
30
+ def __init__(__self__, created_at=None, dashboard_id=None, data_sources=None, description=None, folder_id=None, id=None, identifier=None, models=None, name=None, resource_identifier=None, tags=None, title=None, type=None, view_count=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 dashboard_id and not isinstance(dashboard_id, str):
35
+ raise TypeError("Expected argument 'dashboard_id' to be a str")
36
+ pulumi.set(__self__, "dashboard_id", dashboard_id)
37
+ if data_sources and not isinstance(data_sources, list):
38
+ raise TypeError("Expected argument 'data_sources' to be a list")
39
+ pulumi.set(__self__, "data_sources", data_sources)
40
+ if description and not isinstance(description, str):
41
+ raise TypeError("Expected argument 'description' to be a str")
42
+ pulumi.set(__self__, "description", description)
43
+ if folder_id and not isinstance(folder_id, str):
44
+ raise TypeError("Expected argument 'folder_id' to be a str")
45
+ pulumi.set(__self__, "folder_id", folder_id)
46
+ if id and not isinstance(id, str):
47
+ raise TypeError("Expected argument 'id' to be a str")
48
+ pulumi.set(__self__, "id", id)
49
+ if identifier and not isinstance(identifier, str):
50
+ raise TypeError("Expected argument 'identifier' to be a str")
51
+ pulumi.set(__self__, "identifier", identifier)
52
+ if models and not isinstance(models, list):
53
+ raise TypeError("Expected argument 'models' to be a list")
54
+ pulumi.set(__self__, "models", models)
55
+ if name and not isinstance(name, str):
56
+ raise TypeError("Expected argument 'name' to be a str")
57
+ pulumi.set(__self__, "name", name)
58
+ if resource_identifier and not isinstance(resource_identifier, str):
59
+ raise TypeError("Expected argument 'resource_identifier' to be a str")
60
+ pulumi.set(__self__, "resource_identifier", resource_identifier)
61
+ if tags and not isinstance(tags, list):
62
+ raise TypeError("Expected argument 'tags' to be a list")
63
+ pulumi.set(__self__, "tags", tags)
64
+ if title and not isinstance(title, str):
65
+ raise TypeError("Expected argument 'title' to be a str")
66
+ pulumi.set(__self__, "title", title)
67
+ if type and not isinstance(type, str):
68
+ raise TypeError("Expected argument 'type' to be a str")
69
+ pulumi.set(__self__, "type", type)
70
+ if view_count and not isinstance(view_count, int):
71
+ raise TypeError("Expected argument 'view_count' to be a int")
72
+ pulumi.set(__self__, "view_count", view_count)
73
+
74
+ @property
75
+ @pulumi.getter(name="createdAt")
76
+ def created_at(self) -> builtins.str:
77
+ """
78
+ Created at timestamp of the Dashboard.
79
+ """
80
+ return pulumi.get(self, "created_at")
81
+
82
+ @property
83
+ @pulumi.getter(name="dashboardId")
84
+ def dashboard_id(self) -> builtins.str:
85
+ """
86
+ Unique identifier of the Dashboard.
87
+ """
88
+ return pulumi.get(self, "dashboard_id")
89
+
90
+ @property
91
+ @pulumi.getter(name="dataSources")
92
+ def data_sources(self) -> Sequence[builtins.str]:
93
+ """
94
+ Data Sources within the Dashboard.
95
+ """
96
+ return pulumi.get(self, "data_sources")
97
+
98
+ @property
99
+ @pulumi.getter
100
+ def description(self) -> builtins.str:
101
+ """
102
+ Description of the Dashboard.
103
+ """
104
+ return pulumi.get(self, "description")
105
+
106
+ @property
107
+ @pulumi.getter(name="folderId")
108
+ def folder_id(self) -> builtins.str:
109
+ """
110
+ Unique identifier of the Folder.
111
+ """
112
+ return pulumi.get(self, "folder_id")
113
+
114
+ @property
115
+ @pulumi.getter
116
+ def id(self) -> builtins.str:
117
+ """
118
+ Identifier of the dashboard.
119
+ """
120
+ return pulumi.get(self, "id")
121
+
122
+ @property
123
+ @pulumi.getter
124
+ def identifier(self) -> Optional[builtins.str]:
125
+ return pulumi.get(self, "identifier")
126
+
127
+ @property
128
+ @pulumi.getter
129
+ def models(self) -> Sequence[builtins.str]:
130
+ """
131
+ Data Models within the Dashboard.
132
+ """
133
+ return pulumi.get(self, "models")
134
+
135
+ @property
136
+ @pulumi.getter
137
+ def name(self) -> Optional[builtins.str]:
138
+ """
139
+ Name of the Dashboard.
140
+ """
141
+ return pulumi.get(self, "name")
142
+
143
+ @property
144
+ @pulumi.getter(name="resourceIdentifier")
145
+ def resource_identifier(self) -> builtins.str:
146
+ """
147
+ Resource identifier of the dashboard.
148
+ """
149
+ return pulumi.get(self, "resource_identifier")
150
+
151
+ @property
152
+ @pulumi.getter
153
+ def tags(self) -> Sequence[builtins.str]:
154
+ return pulumi.get(self, "tags")
155
+
156
+ @property
157
+ @pulumi.getter
158
+ def title(self) -> builtins.str:
159
+ """
160
+ Title of the Dashboard.
161
+ """
162
+ return pulumi.get(self, "title")
163
+
164
+ @property
165
+ @pulumi.getter
166
+ def type(self) -> builtins.str:
167
+ """
168
+ Type of the dashboard.
169
+ """
170
+ return pulumi.get(self, "type")
171
+
172
+ @property
173
+ @pulumi.getter(name="viewCount")
174
+ def view_count(self) -> builtins.int:
175
+ """
176
+ View count of the dashboard.
177
+ """
178
+ return pulumi.get(self, "view_count")
179
+
180
+
181
+ class AwaitableGetDashboardsResult(GetDashboardsResult):
182
+ # pylint: disable=using-constant-test
183
+ def __await__(self):
184
+ if False:
185
+ yield self
186
+ return GetDashboardsResult(
187
+ created_at=self.created_at,
188
+ dashboard_id=self.dashboard_id,
189
+ data_sources=self.data_sources,
190
+ description=self.description,
191
+ folder_id=self.folder_id,
192
+ id=self.id,
193
+ identifier=self.identifier,
194
+ models=self.models,
195
+ name=self.name,
196
+ resource_identifier=self.resource_identifier,
197
+ tags=self.tags,
198
+ title=self.title,
199
+ type=self.type,
200
+ view_count=self.view_count)
201
+
202
+
203
+ def get_dashboards(id: Optional[builtins.str] = None,
204
+ identifier: Optional[builtins.str] = None,
205
+ name: Optional[builtins.str] = None,
206
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDashboardsResult:
207
+ """
208
+ Data source for retrieving a Harness Dashboard.
209
+
210
+ ## Example Usage
211
+
212
+ ```python
213
+ import pulumi
214
+ import pulumi_harness as harness
215
+
216
+ example = harness.platform.get_dashboards(id="48525")
217
+ ```
218
+
219
+
220
+ :param builtins.str id: Identifier of the dashboard.
221
+ :param builtins.str name: Name of the Dashboard.
222
+ """
223
+ __args__ = dict()
224
+ __args__['id'] = id
225
+ __args__['identifier'] = identifier
226
+ __args__['name'] = name
227
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
228
+ __ret__ = pulumi.runtime.invoke('harness:platform/getDashboards:getDashboards', __args__, opts=opts, typ=GetDashboardsResult).value
229
+
230
+ return AwaitableGetDashboardsResult(
231
+ created_at=pulumi.get(__ret__, 'created_at'),
232
+ dashboard_id=pulumi.get(__ret__, 'dashboard_id'),
233
+ data_sources=pulumi.get(__ret__, 'data_sources'),
234
+ description=pulumi.get(__ret__, 'description'),
235
+ folder_id=pulumi.get(__ret__, 'folder_id'),
236
+ id=pulumi.get(__ret__, 'id'),
237
+ identifier=pulumi.get(__ret__, 'identifier'),
238
+ models=pulumi.get(__ret__, 'models'),
239
+ name=pulumi.get(__ret__, 'name'),
240
+ resource_identifier=pulumi.get(__ret__, 'resource_identifier'),
241
+ tags=pulumi.get(__ret__, 'tags'),
242
+ title=pulumi.get(__ret__, 'title'),
243
+ type=pulumi.get(__ret__, 'type'),
244
+ view_count=pulumi.get(__ret__, 'view_count'))
245
+ def get_dashboards_output(id: Optional[pulumi.Input[builtins.str]] = None,
246
+ identifier: Optional[pulumi.Input[Optional[builtins.str]]] = None,
247
+ name: Optional[pulumi.Input[Optional[builtins.str]]] = None,
248
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetDashboardsResult]:
249
+ """
250
+ Data source for retrieving a Harness Dashboard.
251
+
252
+ ## Example Usage
253
+
254
+ ```python
255
+ import pulumi
256
+ import pulumi_harness as harness
257
+
258
+ example = harness.platform.get_dashboards(id="48525")
259
+ ```
260
+
261
+
262
+ :param builtins.str id: Identifier of the dashboard.
263
+ :param builtins.str name: Name of the Dashboard.
264
+ """
265
+ __args__ = dict()
266
+ __args__['id'] = id
267
+ __args__['identifier'] = identifier
268
+ __args__['name'] = name
269
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
270
+ __ret__ = pulumi.runtime.invoke_output('harness:platform/getDashboards:getDashboards', __args__, opts=opts, typ=GetDashboardsResult)
271
+ return __ret__.apply(lambda __response__: GetDashboardsResult(
272
+ created_at=pulumi.get(__response__, 'created_at'),
273
+ dashboard_id=pulumi.get(__response__, 'dashboard_id'),
274
+ data_sources=pulumi.get(__response__, 'data_sources'),
275
+ description=pulumi.get(__response__, 'description'),
276
+ folder_id=pulumi.get(__response__, 'folder_id'),
277
+ id=pulumi.get(__response__, 'id'),
278
+ identifier=pulumi.get(__response__, 'identifier'),
279
+ models=pulumi.get(__response__, 'models'),
280
+ name=pulumi.get(__response__, 'name'),
281
+ resource_identifier=pulumi.get(__response__, 'resource_identifier'),
282
+ tags=pulumi.get(__response__, 'tags'),
283
+ title=pulumi.get(__response__, 'title'),
284
+ type=pulumi.get(__response__, 'type'),
285
+ view_count=pulumi.get(__response__, 'view_count')))
@@ -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) -> Optional[builtins.int]:
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 resource.
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
- Unique identifier of the organization.
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
- Unique identifier of the project.
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) -> Optional[builtins.str]:
136
+ def value(self) -> builtins.str:
115
137
  """
116
- Value of the delegate Token
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 Source for retrieving delegate tokens.
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.int created_at: Time when the delegate token is created.
151
- :param builtins.str name: Name of the resource.
152
- :param builtins.str org_id: Unique identifier of the organization.
153
- :param builtins.str project_id: Unique identifier of the project.
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 Source for retrieving delegate tokens.
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.int created_at: Time when the delegate token is created.
191
- :param builtins.str name: Name of the resource.
192
- :param builtins.str org_id: Unique identifier of the organization.
193
- :param builtins.str project_id: Unique identifier of the project.
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')))
@@ -29,7 +29,10 @@ class GetWorkspaceResult:
29
29
  """
30
30
  A collection of values returned by getWorkspace.
31
31
  """
32
- def __init__(__self__, cost_estimation_enabled=None, default_pipelines=None, description=None, environment_variables=None, id=None, identifier=None, name=None, org_id=None, project_id=None, provider_connector=None, provisioner_type=None, provisioner_version=None, repository=None, repository_branch=None, repository_commit=None, repository_connector=None, repository_path=None, repository_sha=None, terraform_variable_files=None, terraform_variables=None, variable_sets=None):
32
+ def __init__(__self__, connectors=None, cost_estimation_enabled=None, default_pipelines=None, description=None, environment_variables=None, id=None, identifier=None, name=None, org_id=None, project_id=None, provider_connector=None, provisioner_type=None, provisioner_version=None, repository=None, repository_branch=None, repository_commit=None, repository_connector=None, repository_path=None, repository_sha=None, terraform_variable_files=None, terraform_variables=None, variable_sets=None):
33
+ if connectors and not isinstance(connectors, list):
34
+ raise TypeError("Expected argument 'connectors' to be a list")
35
+ pulumi.set(__self__, "connectors", connectors)
33
36
  if cost_estimation_enabled and not isinstance(cost_estimation_enabled, bool):
34
37
  raise TypeError("Expected argument 'cost_estimation_enabled' to be a bool")
35
38
  pulumi.set(__self__, "cost_estimation_enabled", cost_estimation_enabled)
@@ -94,6 +97,14 @@ class GetWorkspaceResult:
94
97
  raise TypeError("Expected argument 'variable_sets' to be a list")
95
98
  pulumi.set(__self__, "variable_sets", variable_sets)
96
99
 
100
+ @property
101
+ @pulumi.getter
102
+ def connectors(self) -> Optional[Sequence['outputs.GetWorkspaceConnectorResult']]:
103
+ """
104
+ Provider connector configured on the workspace
105
+ """
106
+ return pulumi.get(self, "connectors")
107
+
97
108
  @property
98
109
  @pulumi.getter(name="costEstimationEnabled")
99
110
  def cost_estimation_enabled(self) -> builtins.bool:
@@ -263,6 +274,7 @@ class AwaitableGetWorkspaceResult(GetWorkspaceResult):
263
274
  if False:
264
275
  yield self
265
276
  return GetWorkspaceResult(
277
+ connectors=self.connectors,
266
278
  cost_estimation_enabled=self.cost_estimation_enabled,
267
279
  default_pipelines=self.default_pipelines,
268
280
  description=self.description,
@@ -286,7 +298,8 @@ class AwaitableGetWorkspaceResult(GetWorkspaceResult):
286
298
  variable_sets=self.variable_sets)
287
299
 
288
300
 
289
- def get_workspace(description: Optional[builtins.str] = None,
301
+ def get_workspace(connectors: Optional[Sequence[Union['GetWorkspaceConnectorArgs', 'GetWorkspaceConnectorArgsDict']]] = None,
302
+ description: Optional[builtins.str] = None,
290
303
  environment_variables: Optional[Sequence[Union['GetWorkspaceEnvironmentVariableArgs', 'GetWorkspaceEnvironmentVariableArgsDict']]] = None,
291
304
  identifier: Optional[builtins.str] = None,
292
305
  org_id: Optional[builtins.str] = None,
@@ -313,6 +326,7 @@ def get_workspace(description: Optional[builtins.str] = None,
313
326
  ```
314
327
 
315
328
 
329
+ :param Sequence[Union['GetWorkspaceConnectorArgs', 'GetWorkspaceConnectorArgsDict']] connectors: Provider connector configured on the workspace
316
330
  :param builtins.str description: Description of the Workspace
317
331
  :param Sequence[Union['GetWorkspaceEnvironmentVariableArgs', 'GetWorkspaceEnvironmentVariableArgsDict']] environment_variables: Environment variables configured on the workspace
318
332
  :param builtins.str identifier: Identifier of the Workspace
@@ -324,6 +338,7 @@ def get_workspace(description: Optional[builtins.str] = None,
324
338
  :param Sequence[builtins.str] variable_sets: Variable sets to use.
325
339
  """
326
340
  __args__ = dict()
341
+ __args__['connectors'] = connectors
327
342
  __args__['description'] = description
328
343
  __args__['environmentVariables'] = environment_variables
329
344
  __args__['identifier'] = identifier
@@ -339,6 +354,7 @@ def get_workspace(description: Optional[builtins.str] = None,
339
354
  __ret__ = pulumi.runtime.invoke('harness:platform/getWorkspace:getWorkspace', __args__, opts=opts, typ=GetWorkspaceResult).value
340
355
 
341
356
  return AwaitableGetWorkspaceResult(
357
+ connectors=pulumi.get(__ret__, 'connectors'),
342
358
  cost_estimation_enabled=pulumi.get(__ret__, 'cost_estimation_enabled'),
343
359
  default_pipelines=pulumi.get(__ret__, 'default_pipelines'),
344
360
  description=pulumi.get(__ret__, 'description'),
@@ -360,7 +376,8 @@ def get_workspace(description: Optional[builtins.str] = None,
360
376
  terraform_variable_files=pulumi.get(__ret__, 'terraform_variable_files'),
361
377
  terraform_variables=pulumi.get(__ret__, 'terraform_variables'),
362
378
  variable_sets=pulumi.get(__ret__, 'variable_sets'))
363
- def get_workspace_output(description: Optional[pulumi.Input[Optional[builtins.str]]] = None,
379
+ def get_workspace_output(connectors: Optional[pulumi.Input[Optional[Sequence[Union['GetWorkspaceConnectorArgs', 'GetWorkspaceConnectorArgsDict']]]]] = None,
380
+ description: Optional[pulumi.Input[Optional[builtins.str]]] = None,
364
381
  environment_variables: Optional[pulumi.Input[Optional[Sequence[Union['GetWorkspaceEnvironmentVariableArgs', 'GetWorkspaceEnvironmentVariableArgsDict']]]]] = None,
365
382
  identifier: Optional[pulumi.Input[builtins.str]] = None,
366
383
  org_id: Optional[pulumi.Input[builtins.str]] = None,
@@ -387,6 +404,7 @@ def get_workspace_output(description: Optional[pulumi.Input[Optional[builtins.st
387
404
  ```
388
405
 
389
406
 
407
+ :param Sequence[Union['GetWorkspaceConnectorArgs', 'GetWorkspaceConnectorArgsDict']] connectors: Provider connector configured on the workspace
390
408
  :param builtins.str description: Description of the Workspace
391
409
  :param Sequence[Union['GetWorkspaceEnvironmentVariableArgs', 'GetWorkspaceEnvironmentVariableArgsDict']] environment_variables: Environment variables configured on the workspace
392
410
  :param builtins.str identifier: Identifier of the Workspace
@@ -398,6 +416,7 @@ def get_workspace_output(description: Optional[pulumi.Input[Optional[builtins.st
398
416
  :param Sequence[builtins.str] variable_sets: Variable sets to use.
399
417
  """
400
418
  __args__ = dict()
419
+ __args__['connectors'] = connectors
401
420
  __args__['description'] = description
402
421
  __args__['environmentVariables'] = environment_variables
403
422
  __args__['identifier'] = identifier
@@ -412,6 +431,7 @@ def get_workspace_output(description: Optional[pulumi.Input[Optional[builtins.st
412
431
  opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
413
432
  __ret__ = pulumi.runtime.invoke_output('harness:platform/getWorkspace:getWorkspace', __args__, opts=opts, typ=GetWorkspaceResult)
414
433
  return __ret__.apply(lambda __response__: GetWorkspaceResult(
434
+ connectors=pulumi.get(__response__, 'connectors'),
415
435
  cost_estimation_enabled=pulumi.get(__response__, 'cost_estimation_enabled'),
416
436
  default_pipelines=pulumi.get(__response__, 'default_pipelines'),
417
437
  description=pulumi.get(__response__, 'description'),