pulumi-harness 0.8.0a1744436953__py3-none-any.whl → 0.8.0a1744782628__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,182 @@
1
+ # coding=utf-8
2
+ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
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
+ 'GetGitopsFiltersResult',
20
+ 'AwaitableGetGitopsFiltersResult',
21
+ 'get_gitops_filters',
22
+ 'get_gitops_filters_output',
23
+ ]
24
+
25
+ @pulumi.output_type
26
+ class GetGitopsFiltersResult:
27
+ """
28
+ A collection of values returned by getGitopsFilters.
29
+ """
30
+ def __init__(__self__, filter_properties=None, filter_visibility=None, id=None, identifier=None, name=None, org_id=None, project_id=None, type=None):
31
+ if filter_properties and not isinstance(filter_properties, str):
32
+ raise TypeError("Expected argument 'filter_properties' to be a str")
33
+ pulumi.set(__self__, "filter_properties", filter_properties)
34
+ if filter_visibility and not isinstance(filter_visibility, str):
35
+ raise TypeError("Expected argument 'filter_visibility' to be a str")
36
+ pulumi.set(__self__, "filter_visibility", filter_visibility)
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 org_id and not isinstance(org_id, str):
47
+ raise TypeError("Expected argument 'org_id' to be a str")
48
+ pulumi.set(__self__, "org_id", org_id)
49
+ if project_id and not isinstance(project_id, str):
50
+ raise TypeError("Expected argument 'project_id' to be a str")
51
+ pulumi.set(__self__, "project_id", project_id)
52
+ if type and not isinstance(type, str):
53
+ raise TypeError("Expected argument 'type' to be a str")
54
+ pulumi.set(__self__, "type", type)
55
+
56
+ @property
57
+ @pulumi.getter(name="filterProperties")
58
+ def filter_properties(self) -> builtins.str:
59
+ """
60
+ Properties of the filter entity defined in Harness as a JSON string. This contains filter criteria such as health status, sync status, agent identifiers, clusters, namespaces, and repositories.
61
+ """
62
+ return pulumi.get(self, "filter_properties")
63
+
64
+ @property
65
+ @pulumi.getter(name="filterVisibility")
66
+ def filter_visibility(self) -> builtins.str:
67
+ return pulumi.get(self, "filter_visibility")
68
+
69
+ @property
70
+ @pulumi.getter
71
+ def id(self) -> builtins.str:
72
+ """
73
+ The provider-assigned unique ID for this managed resource.
74
+ """
75
+ return pulumi.get(self, "id")
76
+
77
+ @property
78
+ @pulumi.getter
79
+ def identifier(self) -> builtins.str:
80
+ return pulumi.get(self, "identifier")
81
+
82
+ @property
83
+ @pulumi.getter
84
+ def name(self) -> builtins.str:
85
+ """
86
+ Name of the GitOps filter.
87
+ """
88
+ return pulumi.get(self, "name")
89
+
90
+ @property
91
+ @pulumi.getter(name="orgId")
92
+ def org_id(self) -> builtins.str:
93
+ return pulumi.get(self, "org_id")
94
+
95
+ @property
96
+ @pulumi.getter(name="projectId")
97
+ def project_id(self) -> builtins.str:
98
+ return pulumi.get(self, "project_id")
99
+
100
+ @property
101
+ @pulumi.getter
102
+ def type(self) -> builtins.str:
103
+ return pulumi.get(self, "type")
104
+
105
+
106
+ class AwaitableGetGitopsFiltersResult(GetGitopsFiltersResult):
107
+ # pylint: disable=using-constant-test
108
+ def __await__(self):
109
+ if False:
110
+ yield self
111
+ return GetGitopsFiltersResult(
112
+ filter_properties=self.filter_properties,
113
+ filter_visibility=self.filter_visibility,
114
+ id=self.id,
115
+ identifier=self.identifier,
116
+ name=self.name,
117
+ org_id=self.org_id,
118
+ project_id=self.project_id,
119
+ type=self.type)
120
+
121
+
122
+ def get_gitops_filters(identifier: Optional[builtins.str] = None,
123
+ org_id: Optional[builtins.str] = None,
124
+ project_id: Optional[builtins.str] = None,
125
+ type: Optional[builtins.str] = None,
126
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetGitopsFiltersResult:
127
+ """
128
+ Data source for retrieving a Harness GitOps Filter.
129
+
130
+
131
+ :param builtins.str identifier: Unique identifier of the GitOps filter to retrieve.
132
+ :param builtins.str org_id: Organization identifier for the GitOps filter.
133
+ :param builtins.str project_id: Project identifier for the GitOps filter.
134
+ :param builtins.str type: Type of GitOps filter. Currently, only "APPLICATION" is supported.
135
+ """
136
+ __args__ = dict()
137
+ __args__['identifier'] = identifier
138
+ __args__['orgId'] = org_id
139
+ __args__['projectId'] = project_id
140
+ __args__['type'] = type
141
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
142
+ __ret__ = pulumi.runtime.invoke('harness:platform/getGitopsFilters:getGitopsFilters', __args__, opts=opts, typ=GetGitopsFiltersResult).value
143
+
144
+ return AwaitableGetGitopsFiltersResult(
145
+ filter_properties=pulumi.get(__ret__, 'filter_properties'),
146
+ filter_visibility=pulumi.get(__ret__, 'filter_visibility'),
147
+ id=pulumi.get(__ret__, 'id'),
148
+ identifier=pulumi.get(__ret__, 'identifier'),
149
+ name=pulumi.get(__ret__, 'name'),
150
+ org_id=pulumi.get(__ret__, 'org_id'),
151
+ project_id=pulumi.get(__ret__, 'project_id'),
152
+ type=pulumi.get(__ret__, 'type'))
153
+ def get_gitops_filters_output(identifier: Optional[pulumi.Input[builtins.str]] = None,
154
+ org_id: Optional[pulumi.Input[builtins.str]] = None,
155
+ project_id: Optional[pulumi.Input[builtins.str]] = None,
156
+ type: Optional[pulumi.Input[builtins.str]] = None,
157
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetGitopsFiltersResult]:
158
+ """
159
+ Data source for retrieving a Harness GitOps Filter.
160
+
161
+
162
+ :param builtins.str identifier: Unique identifier of the GitOps filter to retrieve.
163
+ :param builtins.str org_id: Organization identifier for the GitOps filter.
164
+ :param builtins.str project_id: Project identifier for the GitOps filter.
165
+ :param builtins.str type: Type of GitOps filter. Currently, only "APPLICATION" is supported.
166
+ """
167
+ __args__ = dict()
168
+ __args__['identifier'] = identifier
169
+ __args__['orgId'] = org_id
170
+ __args__['projectId'] = project_id
171
+ __args__['type'] = type
172
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
173
+ __ret__ = pulumi.runtime.invoke_output('harness:platform/getGitopsFilters:getGitopsFilters', __args__, opts=opts, typ=GetGitopsFiltersResult)
174
+ return __ret__.apply(lambda __response__: GetGitopsFiltersResult(
175
+ filter_properties=pulumi.get(__response__, 'filter_properties'),
176
+ filter_visibility=pulumi.get(__response__, 'filter_visibility'),
177
+ id=pulumi.get(__response__, 'id'),
178
+ identifier=pulumi.get(__response__, 'identifier'),
179
+ name=pulumi.get(__response__, 'name'),
180
+ org_id=pulumi.get(__response__, 'org_id'),
181
+ project_id=pulumi.get(__response__, 'project_id'),
182
+ type=pulumi.get(__response__, 'type')))
@@ -105,6 +105,9 @@ class GetWorkspaceResult:
105
105
  @property
106
106
  @pulumi.getter(name="defaultPipelines")
107
107
  def default_pipelines(self) -> Mapping[str, builtins.str]:
108
+ """
109
+ Default pipelines associated with this workspace
110
+ """
108
111
  return pulumi.get(self, "default_pipelines")
109
112
 
110
113
  @property
@@ -231,7 +234,7 @@ class GetWorkspaceResult:
231
234
  @pulumi.getter(name="repositorySha")
232
235
  def repository_sha(self) -> builtins.str:
233
236
  """
234
- Repository SHA in which the code should be accessed
237
+ Repository Commit SHA in which the code should be accessed
235
238
  """
236
239
  return pulumi.get(self, "repository_sha")
237
240
 
@@ -249,7 +252,7 @@ class GetWorkspaceResult:
249
252
  @pulumi.getter(name="variableSets")
250
253
  def variable_sets(self) -> Sequence[builtins.str]:
251
254
  """
252
- Variable set identifiers. Currently support only one variable set.
255
+ Variable sets to use.
253
256
  """
254
257
  return pulumi.get(self, "variable_sets")
255
258
 
@@ -317,8 +320,8 @@ def get_workspace(description: Optional[builtins.str] = None,
317
320
  :param builtins.str project_id: Project Identifier
318
321
  :param builtins.str repository_branch: Repository Branch in which the code should be accessed
319
322
  :param builtins.str repository_commit: Repository Tag in which the code should be accessed
320
- :param builtins.str repository_sha: Repository SHA in which the code should be accessed
321
- :param Sequence[builtins.str] variable_sets: Variable set identifiers. Currently support only one variable set.
323
+ :param builtins.str repository_sha: Repository Commit SHA in which the code should be accessed
324
+ :param Sequence[builtins.str] variable_sets: Variable sets to use.
322
325
  """
323
326
  __args__ = dict()
324
327
  __args__['description'] = description
@@ -391,8 +394,8 @@ def get_workspace_output(description: Optional[pulumi.Input[Optional[builtins.st
391
394
  :param builtins.str project_id: Project Identifier
392
395
  :param builtins.str repository_branch: Repository Branch in which the code should be accessed
393
396
  :param builtins.str repository_commit: Repository Tag in which the code should be accessed
394
- :param builtins.str repository_sha: Repository SHA in which the code should be accessed
395
- :param Sequence[builtins.str] variable_sets: Variable set identifiers. Currently support only one variable set.
397
+ :param builtins.str repository_sha: Repository Commit SHA in which the code should be accessed
398
+ :param Sequence[builtins.str] variable_sets: Variable sets to use.
396
399
  """
397
400
  __args__ = dict()
398
401
  __args__['description'] = description
@@ -41,7 +41,7 @@ class GithubConnectorArgs:
41
41
  :param pulumi.Input[builtins.str] connection_type: Whether the connection we're making is to a github repository or a github account. Valid values are Account, Repo.
42
42
  :param pulumi.Input['GithubConnectorCredentialsArgs'] credentials: Credentials to use for the connection.
43
43
  :param pulumi.Input[builtins.str] identifier: Unique identifier of the resource.
44
- :param pulumi.Input[builtins.str] url: URL of the Githubhub repository or account.
44
+ :param pulumi.Input[builtins.str] url: URL of the Github repository or account.
45
45
  :param pulumi.Input['GithubConnectorApiAuthenticationArgs'] api_authentication: Configuration for using the github api. API Access is required for using “Git Experience”, for creation of Git based triggers, Webhooks management and updating Git statuses.
46
46
  :param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] delegate_selectors: Tags to filter delegates for connection.
47
47
  :param pulumi.Input[builtins.str] description: Description of the resource.
@@ -118,7 +118,7 @@ class GithubConnectorArgs:
118
118
  @pulumi.getter
119
119
  def url(self) -> pulumi.Input[builtins.str]:
120
120
  """
121
- URL of the Githubhub repository or account.
121
+ URL of the Github repository or account.
122
122
  """
123
123
  return pulumi.get(self, "url")
124
124
 
@@ -278,7 +278,7 @@ class _GithubConnectorState:
278
278
  :param pulumi.Input[builtins.str] org_id: Unique identifier of the organization.
279
279
  :param pulumi.Input[builtins.str] project_id: Unique identifier of the project.
280
280
  :param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] tags: Tags to associate with the resource.
281
- :param pulumi.Input[builtins.str] url: URL of the Githubhub repository or account.
281
+ :param pulumi.Input[builtins.str] url: URL of the Github repository or account.
282
282
  :param pulumi.Input[builtins.str] validation_repo: Repository to test the connection with. This is only used when `connection_type` is `Account`.
283
283
  """
284
284
  if api_authentication is not None:
@@ -458,7 +458,7 @@ class _GithubConnectorState:
458
458
  @pulumi.getter
459
459
  def url(self) -> Optional[pulumi.Input[builtins.str]]:
460
460
  """
461
- URL of the Githubhub repository or account.
461
+ URL of the Github repository or account.
462
462
  """
463
463
  return pulumi.get(self, "url")
464
464
 
@@ -536,7 +536,7 @@ class GithubConnector(pulumi.CustomResource):
536
536
  :param pulumi.Input[builtins.str] org_id: Unique identifier of the organization.
537
537
  :param pulumi.Input[builtins.str] project_id: Unique identifier of the project.
538
538
  :param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] tags: Tags to associate with the resource.
539
- :param pulumi.Input[builtins.str] url: URL of the Githubhub repository or account.
539
+ :param pulumi.Input[builtins.str] url: URL of the Github repository or account.
540
540
  :param pulumi.Input[builtins.str] validation_repo: Repository to test the connection with. This is only used when `connection_type` is `Account`.
541
541
  """
542
542
  ...
@@ -671,7 +671,7 @@ class GithubConnector(pulumi.CustomResource):
671
671
  :param pulumi.Input[builtins.str] org_id: Unique identifier of the organization.
672
672
  :param pulumi.Input[builtins.str] project_id: Unique identifier of the project.
673
673
  :param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] tags: Tags to associate with the resource.
674
- :param pulumi.Input[builtins.str] url: URL of the Githubhub repository or account.
674
+ :param pulumi.Input[builtins.str] url: URL of the Github repository or account.
675
675
  :param pulumi.Input[builtins.str] validation_repo: Repository to test the connection with. This is only used when `connection_type` is `Account`.
676
676
  """
677
677
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
@@ -794,7 +794,7 @@ class GithubConnector(pulumi.CustomResource):
794
794
  @pulumi.getter
795
795
  def url(self) -> pulumi.Output[builtins.str]:
796
796
  """
797
- URL of the Githubhub repository or account.
797
+ URL of the Github repository or account.
798
798
  """
799
799
  return pulumi.get(self, "url")
800
800