pulumi-pulumiservice 0.28.0a1736807230__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.
- pulumi_pulumiservice/__init__.py +76 -0
- pulumi_pulumiservice/_enums.py +228 -0
- pulumi_pulumiservice/_inputs.py +1143 -0
- pulumi_pulumiservice/_utilities.py +327 -0
- pulumi_pulumiservice/access_token.py +137 -0
- pulumi_pulumiservice/agent_pool.py +235 -0
- pulumi_pulumiservice/config/__init__.py +8 -0
- pulumi_pulumiservice/config/__init__.pyi +18 -0
- pulumi_pulumiservice/config/vars.py +26 -0
- pulumi_pulumiservice/deployment_schedule.py +284 -0
- pulumi_pulumiservice/deployment_settings.py +377 -0
- pulumi_pulumiservice/drift_schedule.py +258 -0
- pulumi_pulumiservice/environment.py +228 -0
- pulumi_pulumiservice/environment_version_tag.py +248 -0
- pulumi_pulumiservice/org_access_token.py +229 -0
- pulumi_pulumiservice/outputs.py +902 -0
- pulumi_pulumiservice/provider.py +95 -0
- pulumi_pulumiservice/pulumi-plugin.json +5 -0
- pulumi_pulumiservice/py.typed +0 -0
- pulumi_pulumiservice/stack.py +214 -0
- pulumi_pulumiservice/stack_tag.py +245 -0
- pulumi_pulumiservice/team.py +300 -0
- pulumi_pulumiservice/team_access_token.py +226 -0
- pulumi_pulumiservice/team_environment_permission.py +213 -0
- pulumi_pulumiservice/team_stack_permission.py +201 -0
- pulumi_pulumiservice/template_source.py +216 -0
- pulumi_pulumiservice/ttl_schedule.py +258 -0
- pulumi_pulumiservice/webhook.py +451 -0
- pulumi_pulumiservice-0.28.0a1736807230.dist-info/METADATA +121 -0
- pulumi_pulumiservice-0.28.0a1736807230.dist-info/RECORD +32 -0
- pulumi_pulumiservice-0.28.0a1736807230.dist-info/WHEEL +5 -0
- pulumi_pulumiservice-0.28.0a1736807230.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,8 @@
|
|
|
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 sys
|
|
6
|
+
from .vars import _ExportableConfig
|
|
7
|
+
|
|
8
|
+
sys.modules[__name__].__class__ = _ExportableConfig
|
|
@@ -0,0 +1,18 @@
|
|
|
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 copy
|
|
6
|
+
import warnings
|
|
7
|
+
import sys
|
|
8
|
+
import pulumi
|
|
9
|
+
import pulumi.runtime
|
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
|
+
from .. import _utilities
|
|
16
|
+
|
|
17
|
+
accessToken: Optional[str]
|
|
18
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
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 copy
|
|
6
|
+
import warnings
|
|
7
|
+
import sys
|
|
8
|
+
import pulumi
|
|
9
|
+
import pulumi.runtime
|
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
|
+
from .. import _utilities
|
|
16
|
+
|
|
17
|
+
import types
|
|
18
|
+
|
|
19
|
+
__config__ = pulumi.Config('pulumiservice')
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class _ExportableConfig(types.ModuleType):
|
|
23
|
+
@property
|
|
24
|
+
def access_token(self) -> Optional[str]:
|
|
25
|
+
return __config__.get('accessToken')
|
|
26
|
+
|
|
@@ -0,0 +1,284 @@
|
|
|
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 copy
|
|
6
|
+
import warnings
|
|
7
|
+
import sys
|
|
8
|
+
import pulumi
|
|
9
|
+
import pulumi.runtime
|
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
|
+
from . import _utilities
|
|
16
|
+
from ._enums import *
|
|
17
|
+
|
|
18
|
+
__all__ = ['DeploymentScheduleArgs', 'DeploymentSchedule']
|
|
19
|
+
|
|
20
|
+
@pulumi.input_type
|
|
21
|
+
class DeploymentScheduleArgs:
|
|
22
|
+
def __init__(__self__, *,
|
|
23
|
+
organization: pulumi.Input[str],
|
|
24
|
+
project: pulumi.Input[str],
|
|
25
|
+
pulumi_operation: pulumi.Input['PulumiOperation'],
|
|
26
|
+
stack: pulumi.Input[str],
|
|
27
|
+
schedule_cron: Optional[pulumi.Input[str]] = None,
|
|
28
|
+
timestamp: Optional[pulumi.Input[str]] = None):
|
|
29
|
+
"""
|
|
30
|
+
The set of arguments for constructing a DeploymentSchedule resource.
|
|
31
|
+
:param pulumi.Input[str] organization: Organization name.
|
|
32
|
+
:param pulumi.Input[str] project: Project name.
|
|
33
|
+
:param pulumi.Input['PulumiOperation'] pulumi_operation: Which command to run.
|
|
34
|
+
:param pulumi.Input[str] stack: Stack name.
|
|
35
|
+
:param pulumi.Input[str] schedule_cron: Cron expression for recurring scheduled runs. If you are supplying this, do not supply timestamp.
|
|
36
|
+
:param pulumi.Input[str] timestamp: The time at which the schedule should run, in ISO 8601 format. Eg: 2020-01-01T00:00:00Z. If you are supplying this, do not supply scheduleCron.
|
|
37
|
+
"""
|
|
38
|
+
pulumi.set(__self__, "organization", organization)
|
|
39
|
+
pulumi.set(__self__, "project", project)
|
|
40
|
+
pulumi.set(__self__, "pulumi_operation", pulumi_operation)
|
|
41
|
+
pulumi.set(__self__, "stack", stack)
|
|
42
|
+
if schedule_cron is not None:
|
|
43
|
+
pulumi.set(__self__, "schedule_cron", schedule_cron)
|
|
44
|
+
if timestamp is not None:
|
|
45
|
+
pulumi.set(__self__, "timestamp", timestamp)
|
|
46
|
+
|
|
47
|
+
@property
|
|
48
|
+
@pulumi.getter
|
|
49
|
+
def organization(self) -> pulumi.Input[str]:
|
|
50
|
+
"""
|
|
51
|
+
Organization name.
|
|
52
|
+
"""
|
|
53
|
+
return pulumi.get(self, "organization")
|
|
54
|
+
|
|
55
|
+
@organization.setter
|
|
56
|
+
def organization(self, value: pulumi.Input[str]):
|
|
57
|
+
pulumi.set(self, "organization", value)
|
|
58
|
+
|
|
59
|
+
@property
|
|
60
|
+
@pulumi.getter
|
|
61
|
+
def project(self) -> pulumi.Input[str]:
|
|
62
|
+
"""
|
|
63
|
+
Project name.
|
|
64
|
+
"""
|
|
65
|
+
return pulumi.get(self, "project")
|
|
66
|
+
|
|
67
|
+
@project.setter
|
|
68
|
+
def project(self, value: pulumi.Input[str]):
|
|
69
|
+
pulumi.set(self, "project", value)
|
|
70
|
+
|
|
71
|
+
@property
|
|
72
|
+
@pulumi.getter(name="pulumiOperation")
|
|
73
|
+
def pulumi_operation(self) -> pulumi.Input['PulumiOperation']:
|
|
74
|
+
"""
|
|
75
|
+
Which command to run.
|
|
76
|
+
"""
|
|
77
|
+
return pulumi.get(self, "pulumi_operation")
|
|
78
|
+
|
|
79
|
+
@pulumi_operation.setter
|
|
80
|
+
def pulumi_operation(self, value: pulumi.Input['PulumiOperation']):
|
|
81
|
+
pulumi.set(self, "pulumi_operation", value)
|
|
82
|
+
|
|
83
|
+
@property
|
|
84
|
+
@pulumi.getter
|
|
85
|
+
def stack(self) -> pulumi.Input[str]:
|
|
86
|
+
"""
|
|
87
|
+
Stack name.
|
|
88
|
+
"""
|
|
89
|
+
return pulumi.get(self, "stack")
|
|
90
|
+
|
|
91
|
+
@stack.setter
|
|
92
|
+
def stack(self, value: pulumi.Input[str]):
|
|
93
|
+
pulumi.set(self, "stack", value)
|
|
94
|
+
|
|
95
|
+
@property
|
|
96
|
+
@pulumi.getter(name="scheduleCron")
|
|
97
|
+
def schedule_cron(self) -> Optional[pulumi.Input[str]]:
|
|
98
|
+
"""
|
|
99
|
+
Cron expression for recurring scheduled runs. If you are supplying this, do not supply timestamp.
|
|
100
|
+
"""
|
|
101
|
+
return pulumi.get(self, "schedule_cron")
|
|
102
|
+
|
|
103
|
+
@schedule_cron.setter
|
|
104
|
+
def schedule_cron(self, value: Optional[pulumi.Input[str]]):
|
|
105
|
+
pulumi.set(self, "schedule_cron", value)
|
|
106
|
+
|
|
107
|
+
@property
|
|
108
|
+
@pulumi.getter
|
|
109
|
+
def timestamp(self) -> Optional[pulumi.Input[str]]:
|
|
110
|
+
"""
|
|
111
|
+
The time at which the schedule should run, in ISO 8601 format. Eg: 2020-01-01T00:00:00Z. If you are supplying this, do not supply scheduleCron.
|
|
112
|
+
"""
|
|
113
|
+
return pulumi.get(self, "timestamp")
|
|
114
|
+
|
|
115
|
+
@timestamp.setter
|
|
116
|
+
def timestamp(self, value: Optional[pulumi.Input[str]]):
|
|
117
|
+
pulumi.set(self, "timestamp", value)
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
class DeploymentSchedule(pulumi.CustomResource):
|
|
121
|
+
@overload
|
|
122
|
+
def __init__(__self__,
|
|
123
|
+
resource_name: str,
|
|
124
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
125
|
+
organization: Optional[pulumi.Input[str]] = None,
|
|
126
|
+
project: Optional[pulumi.Input[str]] = None,
|
|
127
|
+
pulumi_operation: Optional[pulumi.Input['PulumiOperation']] = None,
|
|
128
|
+
schedule_cron: Optional[pulumi.Input[str]] = None,
|
|
129
|
+
stack: Optional[pulumi.Input[str]] = None,
|
|
130
|
+
timestamp: Optional[pulumi.Input[str]] = None,
|
|
131
|
+
__props__=None):
|
|
132
|
+
"""
|
|
133
|
+
A scheduled recurring or single time run of a pulumi command.
|
|
134
|
+
|
|
135
|
+
:param str resource_name: The name of the resource.
|
|
136
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
137
|
+
:param pulumi.Input[str] organization: Organization name.
|
|
138
|
+
:param pulumi.Input[str] project: Project name.
|
|
139
|
+
:param pulumi.Input['PulumiOperation'] pulumi_operation: Which command to run.
|
|
140
|
+
:param pulumi.Input[str] schedule_cron: Cron expression for recurring scheduled runs. If you are supplying this, do not supply timestamp.
|
|
141
|
+
:param pulumi.Input[str] stack: Stack name.
|
|
142
|
+
:param pulumi.Input[str] timestamp: The time at which the schedule should run, in ISO 8601 format. Eg: 2020-01-01T00:00:00Z. If you are supplying this, do not supply scheduleCron.
|
|
143
|
+
"""
|
|
144
|
+
...
|
|
145
|
+
@overload
|
|
146
|
+
def __init__(__self__,
|
|
147
|
+
resource_name: str,
|
|
148
|
+
args: DeploymentScheduleArgs,
|
|
149
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
150
|
+
"""
|
|
151
|
+
A scheduled recurring or single time run of a pulumi command.
|
|
152
|
+
|
|
153
|
+
:param str resource_name: The name of the resource.
|
|
154
|
+
:param DeploymentScheduleArgs args: The arguments to use to populate this resource's properties.
|
|
155
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
156
|
+
"""
|
|
157
|
+
...
|
|
158
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
159
|
+
resource_args, opts = _utilities.get_resource_args_opts(DeploymentScheduleArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
160
|
+
if resource_args is not None:
|
|
161
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
162
|
+
else:
|
|
163
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
164
|
+
|
|
165
|
+
def _internal_init(__self__,
|
|
166
|
+
resource_name: str,
|
|
167
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
168
|
+
organization: Optional[pulumi.Input[str]] = None,
|
|
169
|
+
project: Optional[pulumi.Input[str]] = None,
|
|
170
|
+
pulumi_operation: Optional[pulumi.Input['PulumiOperation']] = None,
|
|
171
|
+
schedule_cron: Optional[pulumi.Input[str]] = None,
|
|
172
|
+
stack: Optional[pulumi.Input[str]] = None,
|
|
173
|
+
timestamp: Optional[pulumi.Input[str]] = None,
|
|
174
|
+
__props__=None):
|
|
175
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
176
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
177
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
178
|
+
if opts.id is None:
|
|
179
|
+
if __props__ is not None:
|
|
180
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
181
|
+
__props__ = DeploymentScheduleArgs.__new__(DeploymentScheduleArgs)
|
|
182
|
+
|
|
183
|
+
if organization is None and not opts.urn:
|
|
184
|
+
raise TypeError("Missing required property 'organization'")
|
|
185
|
+
__props__.__dict__["organization"] = organization
|
|
186
|
+
if project is None and not opts.urn:
|
|
187
|
+
raise TypeError("Missing required property 'project'")
|
|
188
|
+
__props__.__dict__["project"] = project
|
|
189
|
+
if pulumi_operation is None and not opts.urn:
|
|
190
|
+
raise TypeError("Missing required property 'pulumi_operation'")
|
|
191
|
+
__props__.__dict__["pulumi_operation"] = pulumi_operation
|
|
192
|
+
__props__.__dict__["schedule_cron"] = schedule_cron
|
|
193
|
+
if stack is None and not opts.urn:
|
|
194
|
+
raise TypeError("Missing required property 'stack'")
|
|
195
|
+
__props__.__dict__["stack"] = stack
|
|
196
|
+
__props__.__dict__["timestamp"] = timestamp
|
|
197
|
+
__props__.__dict__["schedule_id"] = None
|
|
198
|
+
super(DeploymentSchedule, __self__).__init__(
|
|
199
|
+
'pulumiservice:index:DeploymentSchedule',
|
|
200
|
+
resource_name,
|
|
201
|
+
__props__,
|
|
202
|
+
opts)
|
|
203
|
+
|
|
204
|
+
@staticmethod
|
|
205
|
+
def get(resource_name: str,
|
|
206
|
+
id: pulumi.Input[str],
|
|
207
|
+
opts: Optional[pulumi.ResourceOptions] = None) -> 'DeploymentSchedule':
|
|
208
|
+
"""
|
|
209
|
+
Get an existing DeploymentSchedule resource's state with the given name, id, and optional extra
|
|
210
|
+
properties used to qualify the lookup.
|
|
211
|
+
|
|
212
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
213
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
214
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
215
|
+
"""
|
|
216
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
217
|
+
|
|
218
|
+
__props__ = DeploymentScheduleArgs.__new__(DeploymentScheduleArgs)
|
|
219
|
+
|
|
220
|
+
__props__.__dict__["organization"] = None
|
|
221
|
+
__props__.__dict__["project"] = None
|
|
222
|
+
__props__.__dict__["pulumi_operation"] = None
|
|
223
|
+
__props__.__dict__["schedule_cron"] = None
|
|
224
|
+
__props__.__dict__["schedule_id"] = None
|
|
225
|
+
__props__.__dict__["stack"] = None
|
|
226
|
+
__props__.__dict__["timestamp"] = None
|
|
227
|
+
return DeploymentSchedule(resource_name, opts=opts, __props__=__props__)
|
|
228
|
+
|
|
229
|
+
@property
|
|
230
|
+
@pulumi.getter
|
|
231
|
+
def organization(self) -> pulumi.Output[str]:
|
|
232
|
+
"""
|
|
233
|
+
Organization name.
|
|
234
|
+
"""
|
|
235
|
+
return pulumi.get(self, "organization")
|
|
236
|
+
|
|
237
|
+
@property
|
|
238
|
+
@pulumi.getter
|
|
239
|
+
def project(self) -> pulumi.Output[str]:
|
|
240
|
+
"""
|
|
241
|
+
Project name.
|
|
242
|
+
"""
|
|
243
|
+
return pulumi.get(self, "project")
|
|
244
|
+
|
|
245
|
+
@property
|
|
246
|
+
@pulumi.getter(name="pulumiOperation")
|
|
247
|
+
def pulumi_operation(self) -> pulumi.Output['PulumiOperation']:
|
|
248
|
+
"""
|
|
249
|
+
Which operation to run.
|
|
250
|
+
"""
|
|
251
|
+
return pulumi.get(self, "pulumi_operation")
|
|
252
|
+
|
|
253
|
+
@property
|
|
254
|
+
@pulumi.getter(name="scheduleCron")
|
|
255
|
+
def schedule_cron(self) -> pulumi.Output[Optional[str]]:
|
|
256
|
+
"""
|
|
257
|
+
Cron expression for recurring scheduled runs. If you are supplying this, do not supply timestamp.
|
|
258
|
+
"""
|
|
259
|
+
return pulumi.get(self, "schedule_cron")
|
|
260
|
+
|
|
261
|
+
@property
|
|
262
|
+
@pulumi.getter(name="scheduleId")
|
|
263
|
+
def schedule_id(self) -> pulumi.Output[str]:
|
|
264
|
+
"""
|
|
265
|
+
Schedule ID of the created schedule, assigned by Pulumi Cloud.
|
|
266
|
+
"""
|
|
267
|
+
return pulumi.get(self, "schedule_id")
|
|
268
|
+
|
|
269
|
+
@property
|
|
270
|
+
@pulumi.getter
|
|
271
|
+
def stack(self) -> pulumi.Output[str]:
|
|
272
|
+
"""
|
|
273
|
+
Stack name.
|
|
274
|
+
"""
|
|
275
|
+
return pulumi.get(self, "stack")
|
|
276
|
+
|
|
277
|
+
@property
|
|
278
|
+
@pulumi.getter
|
|
279
|
+
def timestamp(self) -> pulumi.Output[Optional[str]]:
|
|
280
|
+
"""
|
|
281
|
+
The time at which the schedule should run, in ISO 8601 format. Eg: 2020-01-01T00:00:00Z. If you are supplying this, do not supply scheduleCron.
|
|
282
|
+
"""
|
|
283
|
+
return pulumi.get(self, "timestamp")
|
|
284
|
+
|