pulumi-harness 0.8.0a1750226873__py3-none-any.whl → 0.8.0a1750480667__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 +24 -0
- pulumi_harness/platform/__init__.py +5 -0
- pulumi_harness/platform/_inputs.py +122381 -0
- pulumi_harness/platform/dashboard_folders.py +198 -0
- pulumi_harness/platform/dashboards.py +710 -0
- pulumi_harness/platform/get_dashboard_folders.py +170 -0
- pulumi_harness/platform/get_dashboards.py +285 -0
- pulumi_harness/platform/get_workspace.py +23 -3
- pulumi_harness/platform/gitops_applicationset.py +374 -0
- pulumi_harness/platform/kubernetes_cloud_cost_connector.py +11 -31
- pulumi_harness/platform/outputs.py +86774 -0
- pulumi_harness/platform/workspace.py +64 -18
- pulumi_harness/pulumi-plugin.json +1 -1
- {pulumi_harness-0.8.0a1750226873.dist-info → pulumi_harness-0.8.0a1750480667.dist-info}/METADATA +1 -1
- {pulumi_harness-0.8.0a1750226873.dist-info → pulumi_harness-0.8.0a1750480667.dist-info}/RECORD +17 -12
- {pulumi_harness-0.8.0a1750226873.dist-info → pulumi_harness-0.8.0a1750480667.dist-info}/WHEEL +0 -0
- {pulumi_harness-0.8.0a1750226873.dist-info → pulumi_harness-0.8.0a1750480667.dist-info}/top_level.txt +0 -0
|
@@ -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')))
|
|
@@ -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')))
|
|
@@ -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(
|
|
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(
|
|
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'),
|