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