pulumiverse-cpln 0.0.0__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 (44) hide show
  1. pulumiverse_cpln/__init__.py +241 -0
  2. pulumiverse_cpln/_inputs.py +18692 -0
  3. pulumiverse_cpln/_utilities.py +331 -0
  4. pulumiverse_cpln/agent.py +330 -0
  5. pulumiverse_cpln/audit_context.py +300 -0
  6. pulumiverse_cpln/cloud_account.py +546 -0
  7. pulumiverse_cpln/config/__init__.py +9 -0
  8. pulumiverse_cpln/config/__init__.pyi +48 -0
  9. pulumiverse_cpln/config/vars.py +64 -0
  10. pulumiverse_cpln/custom_location.py +424 -0
  11. pulumiverse_cpln/domain.py +377 -0
  12. pulumiverse_cpln/domain_route.py +645 -0
  13. pulumiverse_cpln/get_cloud_account.py +107 -0
  14. pulumiverse_cpln/get_gvc.py +423 -0
  15. pulumiverse_cpln/get_image.py +284 -0
  16. pulumiverse_cpln/get_images.py +261 -0
  17. pulumiverse_cpln/get_location.py +273 -0
  18. pulumiverse_cpln/get_locations.py +171 -0
  19. pulumiverse_cpln/get_org.py +250 -0
  20. pulumiverse_cpln/get_secret.py +555 -0
  21. pulumiverse_cpln/group.py +539 -0
  22. pulumiverse_cpln/gvc.py +771 -0
  23. pulumiverse_cpln/identity.py +688 -0
  24. pulumiverse_cpln/ip_set.py +521 -0
  25. pulumiverse_cpln/location.py +435 -0
  26. pulumiverse_cpln/mk8s.py +848 -0
  27. pulumiverse_cpln/mk8s_kubeconfig.py +362 -0
  28. pulumiverse_cpln/org.py +594 -0
  29. pulumiverse_cpln/org_logging.py +616 -0
  30. pulumiverse_cpln/org_tracing.py +347 -0
  31. pulumiverse_cpln/outputs.py +14498 -0
  32. pulumiverse_cpln/policy.py +620 -0
  33. pulumiverse_cpln/provider.py +271 -0
  34. pulumiverse_cpln/pulumi-plugin.json +5 -0
  35. pulumiverse_cpln/py.typed +0 -0
  36. pulumiverse_cpln/secret.py +915 -0
  37. pulumiverse_cpln/service_account.py +328 -0
  38. pulumiverse_cpln/service_account_key.py +285 -0
  39. pulumiverse_cpln/volume_set.py +765 -0
  40. pulumiverse_cpln/workload.py +1033 -0
  41. pulumiverse_cpln-0.0.0.dist-info/METADATA +83 -0
  42. pulumiverse_cpln-0.0.0.dist-info/RECORD +44 -0
  43. pulumiverse_cpln-0.0.0.dist-info/WHEEL +5 -0
  44. pulumiverse_cpln-0.0.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,362 @@
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__ = ['Mk8sKubeconfigArgs', 'Mk8sKubeconfig']
19
+
20
+ @pulumi.input_type
21
+ class Mk8sKubeconfigArgs:
22
+ def __init__(__self__, *,
23
+ name: Optional[pulumi.Input[builtins.str]] = None,
24
+ profile: Optional[pulumi.Input[builtins.str]] = None,
25
+ service_account: Optional[pulumi.Input[builtins.str]] = None):
26
+ """
27
+ The set of arguments for constructing a Mk8sKubeconfig resource.
28
+ :param pulumi.Input[builtins.str] name: Name of the MK8s to create the Kubeconfig for.
29
+ :param pulumi.Input[builtins.str] profile: Profile name to extract the token from.
30
+ :param pulumi.Input[builtins.str] service_account: A service account to add a key to.
31
+ """
32
+ if name is not None:
33
+ pulumi.set(__self__, "name", name)
34
+ if profile is not None:
35
+ pulumi.set(__self__, "profile", profile)
36
+ if service_account is not None:
37
+ pulumi.set(__self__, "service_account", service_account)
38
+
39
+ @property
40
+ @pulumi.getter
41
+ def name(self) -> Optional[pulumi.Input[builtins.str]]:
42
+ """
43
+ Name of the MK8s to create the Kubeconfig for.
44
+ """
45
+ return pulumi.get(self, "name")
46
+
47
+ @name.setter
48
+ def name(self, value: Optional[pulumi.Input[builtins.str]]):
49
+ pulumi.set(self, "name", value)
50
+
51
+ @property
52
+ @pulumi.getter
53
+ def profile(self) -> Optional[pulumi.Input[builtins.str]]:
54
+ """
55
+ Profile name to extract the token from.
56
+ """
57
+ return pulumi.get(self, "profile")
58
+
59
+ @profile.setter
60
+ def profile(self, value: Optional[pulumi.Input[builtins.str]]):
61
+ pulumi.set(self, "profile", value)
62
+
63
+ @property
64
+ @pulumi.getter(name="serviceAccount")
65
+ def service_account(self) -> Optional[pulumi.Input[builtins.str]]:
66
+ """
67
+ A service account to add a key to.
68
+ """
69
+ return pulumi.get(self, "service_account")
70
+
71
+ @service_account.setter
72
+ def service_account(self, value: Optional[pulumi.Input[builtins.str]]):
73
+ pulumi.set(self, "service_account", value)
74
+
75
+
76
+ @pulumi.input_type
77
+ class _Mk8sKubeconfigState:
78
+ def __init__(__self__, *,
79
+ kubeconfig: Optional[pulumi.Input[builtins.str]] = None,
80
+ name: Optional[pulumi.Input[builtins.str]] = None,
81
+ profile: Optional[pulumi.Input[builtins.str]] = None,
82
+ service_account: Optional[pulumi.Input[builtins.str]] = None):
83
+ """
84
+ Input properties used for looking up and filtering Mk8sKubeconfig resources.
85
+ :param pulumi.Input[builtins.str] kubeconfig: The Kubeconfig of your MK8s cluster in YAML format.
86
+ :param pulumi.Input[builtins.str] name: Name of the MK8s to create the Kubeconfig for.
87
+ :param pulumi.Input[builtins.str] profile: Profile name to extract the token from.
88
+ :param pulumi.Input[builtins.str] service_account: A service account to add a key to.
89
+ """
90
+ if kubeconfig is not None:
91
+ pulumi.set(__self__, "kubeconfig", kubeconfig)
92
+ if name is not None:
93
+ pulumi.set(__self__, "name", name)
94
+ if profile is not None:
95
+ pulumi.set(__self__, "profile", profile)
96
+ if service_account is not None:
97
+ pulumi.set(__self__, "service_account", service_account)
98
+
99
+ @property
100
+ @pulumi.getter
101
+ def kubeconfig(self) -> Optional[pulumi.Input[builtins.str]]:
102
+ """
103
+ The Kubeconfig of your MK8s cluster in YAML format.
104
+ """
105
+ return pulumi.get(self, "kubeconfig")
106
+
107
+ @kubeconfig.setter
108
+ def kubeconfig(self, value: Optional[pulumi.Input[builtins.str]]):
109
+ pulumi.set(self, "kubeconfig", value)
110
+
111
+ @property
112
+ @pulumi.getter
113
+ def name(self) -> Optional[pulumi.Input[builtins.str]]:
114
+ """
115
+ Name of the MK8s to create the Kubeconfig for.
116
+ """
117
+ return pulumi.get(self, "name")
118
+
119
+ @name.setter
120
+ def name(self, value: Optional[pulumi.Input[builtins.str]]):
121
+ pulumi.set(self, "name", value)
122
+
123
+ @property
124
+ @pulumi.getter
125
+ def profile(self) -> Optional[pulumi.Input[builtins.str]]:
126
+ """
127
+ Profile name to extract the token from.
128
+ """
129
+ return pulumi.get(self, "profile")
130
+
131
+ @profile.setter
132
+ def profile(self, value: Optional[pulumi.Input[builtins.str]]):
133
+ pulumi.set(self, "profile", value)
134
+
135
+ @property
136
+ @pulumi.getter(name="serviceAccount")
137
+ def service_account(self) -> Optional[pulumi.Input[builtins.str]]:
138
+ """
139
+ A service account to add a key to.
140
+ """
141
+ return pulumi.get(self, "service_account")
142
+
143
+ @service_account.setter
144
+ def service_account(self, value: Optional[pulumi.Input[builtins.str]]):
145
+ pulumi.set(self, "service_account", value)
146
+
147
+
148
+ @pulumi.type_token("cpln:index/mk8sKubeconfig:Mk8sKubeconfig")
149
+ class Mk8sKubeconfig(pulumi.CustomResource):
150
+ @overload
151
+ def __init__(__self__,
152
+ resource_name: str,
153
+ opts: Optional[pulumi.ResourceOptions] = None,
154
+ name: Optional[pulumi.Input[builtins.str]] = None,
155
+ profile: Optional[pulumi.Input[builtins.str]] = None,
156
+ service_account: Optional[pulumi.Input[builtins.str]] = None,
157
+ __props__=None):
158
+ """
159
+ Obtain the Cluster’s Kubeconfig.
160
+
161
+ ## Declaration
162
+
163
+ ### Required
164
+
165
+ - **name** (String) Name of the Mk8s.
166
+
167
+ > **Note** Only one of the below can be included in the resource.
168
+
169
+ - **profile** (String) The name of the cpln profile used to generate the kubeconfig file for authenticating with your Kubernetes cluster.
170
+ - **service_account** (String) The name of an existing service account for which a key will be generated, enabling kubeconfig-based authentication with your Kubernetes cluster.
171
+
172
+ ## Outputs
173
+
174
+ The following attributes are exported:
175
+
176
+ - **kubeconfig** (String) The Kubeconfig in YAML format.
177
+
178
+ ## Example Usage
179
+
180
+ ### Profile
181
+
182
+ ```python
183
+ import pulumi
184
+ import pulumiverse_cpln as cpln
185
+
186
+ new = cpln.Mk8sKubeconfig("new",
187
+ name="generic-cluster",
188
+ profile="default")
189
+ pulumi.export("generic-cluster-kubeconfig", new.kubeconfig)
190
+ ```
191
+
192
+ ### Service Account
193
+
194
+ ```python
195
+ import pulumi
196
+ import pulumiverse_cpln as cpln
197
+
198
+ new = cpln.Mk8sKubeconfig("new",
199
+ name="generic-cluster",
200
+ service_account="devops-sa")
201
+ pulumi.export("generic-cluster-kubeconfig", new.kubeconfig)
202
+ ```
203
+
204
+ :param str resource_name: The name of the resource.
205
+ :param pulumi.ResourceOptions opts: Options for the resource.
206
+ :param pulumi.Input[builtins.str] name: Name of the MK8s to create the Kubeconfig for.
207
+ :param pulumi.Input[builtins.str] profile: Profile name to extract the token from.
208
+ :param pulumi.Input[builtins.str] service_account: A service account to add a key to.
209
+ """
210
+ ...
211
+ @overload
212
+ def __init__(__self__,
213
+ resource_name: str,
214
+ args: Optional[Mk8sKubeconfigArgs] = None,
215
+ opts: Optional[pulumi.ResourceOptions] = None):
216
+ """
217
+ Obtain the Cluster’s Kubeconfig.
218
+
219
+ ## Declaration
220
+
221
+ ### Required
222
+
223
+ - **name** (String) Name of the Mk8s.
224
+
225
+ > **Note** Only one of the below can be included in the resource.
226
+
227
+ - **profile** (String) The name of the cpln profile used to generate the kubeconfig file for authenticating with your Kubernetes cluster.
228
+ - **service_account** (String) The name of an existing service account for which a key will be generated, enabling kubeconfig-based authentication with your Kubernetes cluster.
229
+
230
+ ## Outputs
231
+
232
+ The following attributes are exported:
233
+
234
+ - **kubeconfig** (String) The Kubeconfig in YAML format.
235
+
236
+ ## Example Usage
237
+
238
+ ### Profile
239
+
240
+ ```python
241
+ import pulumi
242
+ import pulumiverse_cpln as cpln
243
+
244
+ new = cpln.Mk8sKubeconfig("new",
245
+ name="generic-cluster",
246
+ profile="default")
247
+ pulumi.export("generic-cluster-kubeconfig", new.kubeconfig)
248
+ ```
249
+
250
+ ### Service Account
251
+
252
+ ```python
253
+ import pulumi
254
+ import pulumiverse_cpln as cpln
255
+
256
+ new = cpln.Mk8sKubeconfig("new",
257
+ name="generic-cluster",
258
+ service_account="devops-sa")
259
+ pulumi.export("generic-cluster-kubeconfig", new.kubeconfig)
260
+ ```
261
+
262
+ :param str resource_name: The name of the resource.
263
+ :param Mk8sKubeconfigArgs args: The arguments to use to populate this resource's properties.
264
+ :param pulumi.ResourceOptions opts: Options for the resource.
265
+ """
266
+ ...
267
+ def __init__(__self__, resource_name: str, *args, **kwargs):
268
+ resource_args, opts = _utilities.get_resource_args_opts(Mk8sKubeconfigArgs, pulumi.ResourceOptions, *args, **kwargs)
269
+ if resource_args is not None:
270
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
271
+ else:
272
+ __self__._internal_init(resource_name, *args, **kwargs)
273
+
274
+ def _internal_init(__self__,
275
+ resource_name: str,
276
+ opts: Optional[pulumi.ResourceOptions] = None,
277
+ name: Optional[pulumi.Input[builtins.str]] = None,
278
+ profile: Optional[pulumi.Input[builtins.str]] = None,
279
+ service_account: Optional[pulumi.Input[builtins.str]] = None,
280
+ __props__=None):
281
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
282
+ if not isinstance(opts, pulumi.ResourceOptions):
283
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
284
+ if opts.id is None:
285
+ if __props__ is not None:
286
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
287
+ __props__ = Mk8sKubeconfigArgs.__new__(Mk8sKubeconfigArgs)
288
+
289
+ __props__.__dict__["name"] = name
290
+ __props__.__dict__["profile"] = profile
291
+ __props__.__dict__["service_account"] = service_account
292
+ __props__.__dict__["kubeconfig"] = None
293
+ secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["kubeconfig"])
294
+ opts = pulumi.ResourceOptions.merge(opts, secret_opts)
295
+ super(Mk8sKubeconfig, __self__).__init__(
296
+ 'cpln:index/mk8sKubeconfig:Mk8sKubeconfig',
297
+ resource_name,
298
+ __props__,
299
+ opts)
300
+
301
+ @staticmethod
302
+ def get(resource_name: str,
303
+ id: pulumi.Input[str],
304
+ opts: Optional[pulumi.ResourceOptions] = None,
305
+ kubeconfig: Optional[pulumi.Input[builtins.str]] = None,
306
+ name: Optional[pulumi.Input[builtins.str]] = None,
307
+ profile: Optional[pulumi.Input[builtins.str]] = None,
308
+ service_account: Optional[pulumi.Input[builtins.str]] = None) -> 'Mk8sKubeconfig':
309
+ """
310
+ Get an existing Mk8sKubeconfig resource's state with the given name, id, and optional extra
311
+ properties used to qualify the lookup.
312
+
313
+ :param str resource_name: The unique name of the resulting resource.
314
+ :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
315
+ :param pulumi.ResourceOptions opts: Options for the resource.
316
+ :param pulumi.Input[builtins.str] kubeconfig: The Kubeconfig of your MK8s cluster in YAML format.
317
+ :param pulumi.Input[builtins.str] name: Name of the MK8s to create the Kubeconfig for.
318
+ :param pulumi.Input[builtins.str] profile: Profile name to extract the token from.
319
+ :param pulumi.Input[builtins.str] service_account: A service account to add a key to.
320
+ """
321
+ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
322
+
323
+ __props__ = _Mk8sKubeconfigState.__new__(_Mk8sKubeconfigState)
324
+
325
+ __props__.__dict__["kubeconfig"] = kubeconfig
326
+ __props__.__dict__["name"] = name
327
+ __props__.__dict__["profile"] = profile
328
+ __props__.__dict__["service_account"] = service_account
329
+ return Mk8sKubeconfig(resource_name, opts=opts, __props__=__props__)
330
+
331
+ @property
332
+ @pulumi.getter
333
+ def kubeconfig(self) -> pulumi.Output[builtins.str]:
334
+ """
335
+ The Kubeconfig of your MK8s cluster in YAML format.
336
+ """
337
+ return pulumi.get(self, "kubeconfig")
338
+
339
+ @property
340
+ @pulumi.getter
341
+ def name(self) -> pulumi.Output[builtins.str]:
342
+ """
343
+ Name of the MK8s to create the Kubeconfig for.
344
+ """
345
+ return pulumi.get(self, "name")
346
+
347
+ @property
348
+ @pulumi.getter
349
+ def profile(self) -> pulumi.Output[Optional[builtins.str]]:
350
+ """
351
+ Profile name to extract the token from.
352
+ """
353
+ return pulumi.get(self, "profile")
354
+
355
+ @property
356
+ @pulumi.getter(name="serviceAccount")
357
+ def service_account(self) -> pulumi.Output[Optional[builtins.str]]:
358
+ """
359
+ A service account to add a key to.
360
+ """
361
+ return pulumi.get(self, "service_account")
362
+