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,271 @@
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__ = ['ProviderArgs', 'Provider']
19
+
20
+ @pulumi.input_type
21
+ class ProviderArgs:
22
+ def __init__(__self__, *,
23
+ endpoint: Optional[pulumi.Input[builtins.str]] = None,
24
+ org: Optional[pulumi.Input[builtins.str]] = None,
25
+ profile: Optional[pulumi.Input[builtins.str]] = None,
26
+ refresh_token: Optional[pulumi.Input[builtins.str]] = None,
27
+ token: Optional[pulumi.Input[builtins.str]] = None):
28
+ """
29
+ The set of arguments for constructing a Provider resource.
30
+ :param pulumi.Input[builtins.str] endpoint: The Control Plane Data Service API endpoint. Default is: https://api.cpln.io. Can be specified with the CPLN_ENDPOINT
31
+ environment variable.
32
+ :param pulumi.Input[builtins.str] org: The Control Plane org that this provider will perform actions against. Can be specified with the CPLN_ORG environment
33
+ variable.
34
+ :param pulumi.Input[builtins.str] profile: The user/service account profile that this provider will use to authenticate to the data service. Can be specified with
35
+ the CPLN_PROFILE environment variable.
36
+ :param pulumi.Input[builtins.str] refresh_token: A generated token that can be used to authenticate to the data service API. Can be specified with the CPLN_REFRESH_TOKEN
37
+ environment variable. Used when the provider is required to create an org or update the auth_config property. Refer to
38
+ the section above on how to obtain the refresh token.
39
+ :param pulumi.Input[builtins.str] token: A generated token that can be used to authenticate to the data service API. Can be specified with the CPLN_TOKEN
40
+ environment variable.
41
+ """
42
+ if endpoint is not None:
43
+ pulumi.set(__self__, "endpoint", endpoint)
44
+ if org is not None:
45
+ pulumi.set(__self__, "org", org)
46
+ if profile is not None:
47
+ pulumi.set(__self__, "profile", profile)
48
+ if refresh_token is not None:
49
+ pulumi.set(__self__, "refresh_token", refresh_token)
50
+ if token is not None:
51
+ pulumi.set(__self__, "token", token)
52
+
53
+ @property
54
+ @pulumi.getter
55
+ def endpoint(self) -> Optional[pulumi.Input[builtins.str]]:
56
+ """
57
+ The Control Plane Data Service API endpoint. Default is: https://api.cpln.io. Can be specified with the CPLN_ENDPOINT
58
+ environment variable.
59
+ """
60
+ return pulumi.get(self, "endpoint")
61
+
62
+ @endpoint.setter
63
+ def endpoint(self, value: Optional[pulumi.Input[builtins.str]]):
64
+ pulumi.set(self, "endpoint", value)
65
+
66
+ @property
67
+ @pulumi.getter
68
+ def org(self) -> Optional[pulumi.Input[builtins.str]]:
69
+ """
70
+ The Control Plane org that this provider will perform actions against. Can be specified with the CPLN_ORG environment
71
+ variable.
72
+ """
73
+ return pulumi.get(self, "org")
74
+
75
+ @org.setter
76
+ def org(self, value: Optional[pulumi.Input[builtins.str]]):
77
+ pulumi.set(self, "org", value)
78
+
79
+ @property
80
+ @pulumi.getter
81
+ def profile(self) -> Optional[pulumi.Input[builtins.str]]:
82
+ """
83
+ The user/service account profile that this provider will use to authenticate to the data service. Can be specified with
84
+ the CPLN_PROFILE environment variable.
85
+ """
86
+ return pulumi.get(self, "profile")
87
+
88
+ @profile.setter
89
+ def profile(self, value: Optional[pulumi.Input[builtins.str]]):
90
+ pulumi.set(self, "profile", value)
91
+
92
+ @property
93
+ @pulumi.getter(name="refreshToken")
94
+ def refresh_token(self) -> Optional[pulumi.Input[builtins.str]]:
95
+ """
96
+ A generated token that can be used to authenticate to the data service API. Can be specified with the CPLN_REFRESH_TOKEN
97
+ environment variable. Used when the provider is required to create an org or update the auth_config property. Refer to
98
+ the section above on how to obtain the refresh token.
99
+ """
100
+ return pulumi.get(self, "refresh_token")
101
+
102
+ @refresh_token.setter
103
+ def refresh_token(self, value: Optional[pulumi.Input[builtins.str]]):
104
+ pulumi.set(self, "refresh_token", value)
105
+
106
+ @property
107
+ @pulumi.getter
108
+ def token(self) -> Optional[pulumi.Input[builtins.str]]:
109
+ """
110
+ A generated token that can be used to authenticate to the data service API. Can be specified with the CPLN_TOKEN
111
+ environment variable.
112
+ """
113
+ return pulumi.get(self, "token")
114
+
115
+ @token.setter
116
+ def token(self, value: Optional[pulumi.Input[builtins.str]]):
117
+ pulumi.set(self, "token", value)
118
+
119
+
120
+ @pulumi.type_token("pulumi:providers:cpln")
121
+ class Provider(pulumi.ProviderResource):
122
+ @overload
123
+ def __init__(__self__,
124
+ resource_name: str,
125
+ opts: Optional[pulumi.ResourceOptions] = None,
126
+ endpoint: Optional[pulumi.Input[builtins.str]] = None,
127
+ org: Optional[pulumi.Input[builtins.str]] = None,
128
+ profile: Optional[pulumi.Input[builtins.str]] = None,
129
+ refresh_token: Optional[pulumi.Input[builtins.str]] = None,
130
+ token: Optional[pulumi.Input[builtins.str]] = None,
131
+ __props__=None):
132
+ """
133
+ The provider type for the cpln package. By default, resources use package-wide configuration
134
+ settings, however an explicit `Provider` instance may be created and passed during resource
135
+ construction to achieve fine-grained programmatic control over provider settings. See the
136
+ [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
137
+
138
+ :param str resource_name: The name of the resource.
139
+ :param pulumi.ResourceOptions opts: Options for the resource.
140
+ :param pulumi.Input[builtins.str] endpoint: The Control Plane Data Service API endpoint. Default is: https://api.cpln.io. Can be specified with the CPLN_ENDPOINT
141
+ environment variable.
142
+ :param pulumi.Input[builtins.str] org: The Control Plane org that this provider will perform actions against. Can be specified with the CPLN_ORG environment
143
+ variable.
144
+ :param pulumi.Input[builtins.str] profile: The user/service account profile that this provider will use to authenticate to the data service. Can be specified with
145
+ the CPLN_PROFILE environment variable.
146
+ :param pulumi.Input[builtins.str] refresh_token: A generated token that can be used to authenticate to the data service API. Can be specified with the CPLN_REFRESH_TOKEN
147
+ environment variable. Used when the provider is required to create an org or update the auth_config property. Refer to
148
+ the section above on how to obtain the refresh token.
149
+ :param pulumi.Input[builtins.str] token: A generated token that can be used to authenticate to the data service API. Can be specified with the CPLN_TOKEN
150
+ environment variable.
151
+ """
152
+ ...
153
+ @overload
154
+ def __init__(__self__,
155
+ resource_name: str,
156
+ args: Optional[ProviderArgs] = None,
157
+ opts: Optional[pulumi.ResourceOptions] = None):
158
+ """
159
+ The provider type for the cpln package. By default, resources use package-wide configuration
160
+ settings, however an explicit `Provider` instance may be created and passed during resource
161
+ construction to achieve fine-grained programmatic control over provider settings. See the
162
+ [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
163
+
164
+ :param str resource_name: The name of the resource.
165
+ :param ProviderArgs args: The arguments to use to populate this resource's properties.
166
+ :param pulumi.ResourceOptions opts: Options for the resource.
167
+ """
168
+ ...
169
+ def __init__(__self__, resource_name: str, *args, **kwargs):
170
+ resource_args, opts = _utilities.get_resource_args_opts(ProviderArgs, pulumi.ResourceOptions, *args, **kwargs)
171
+ if resource_args is not None:
172
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
173
+ else:
174
+ __self__._internal_init(resource_name, *args, **kwargs)
175
+
176
+ def _internal_init(__self__,
177
+ resource_name: str,
178
+ opts: Optional[pulumi.ResourceOptions] = None,
179
+ endpoint: Optional[pulumi.Input[builtins.str]] = None,
180
+ org: Optional[pulumi.Input[builtins.str]] = None,
181
+ profile: Optional[pulumi.Input[builtins.str]] = None,
182
+ refresh_token: Optional[pulumi.Input[builtins.str]] = None,
183
+ token: Optional[pulumi.Input[builtins.str]] = None,
184
+ __props__=None):
185
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
186
+ if not isinstance(opts, pulumi.ResourceOptions):
187
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
188
+ if opts.id is None:
189
+ if __props__ is not None:
190
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
191
+ __props__ = ProviderArgs.__new__(ProviderArgs)
192
+
193
+ __props__.__dict__["endpoint"] = endpoint
194
+ __props__.__dict__["org"] = org
195
+ __props__.__dict__["profile"] = profile
196
+ __props__.__dict__["refresh_token"] = None if refresh_token is None else pulumi.Output.secret(refresh_token)
197
+ __props__.__dict__["token"] = None if token is None else pulumi.Output.secret(token)
198
+ secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["refreshToken", "token"])
199
+ opts = pulumi.ResourceOptions.merge(opts, secret_opts)
200
+ super(Provider, __self__).__init__(
201
+ 'cpln',
202
+ resource_name,
203
+ __props__,
204
+ opts)
205
+
206
+ @property
207
+ @pulumi.getter
208
+ def endpoint(self) -> pulumi.Output[Optional[builtins.str]]:
209
+ """
210
+ The Control Plane Data Service API endpoint. Default is: https://api.cpln.io. Can be specified with the CPLN_ENDPOINT
211
+ environment variable.
212
+ """
213
+ return pulumi.get(self, "endpoint")
214
+
215
+ @property
216
+ @pulumi.getter
217
+ def org(self) -> pulumi.Output[Optional[builtins.str]]:
218
+ """
219
+ The Control Plane org that this provider will perform actions against. Can be specified with the CPLN_ORG environment
220
+ variable.
221
+ """
222
+ return pulumi.get(self, "org")
223
+
224
+ @property
225
+ @pulumi.getter
226
+ def profile(self) -> pulumi.Output[Optional[builtins.str]]:
227
+ """
228
+ The user/service account profile that this provider will use to authenticate to the data service. Can be specified with
229
+ the CPLN_PROFILE environment variable.
230
+ """
231
+ return pulumi.get(self, "profile")
232
+
233
+ @property
234
+ @pulumi.getter(name="refreshToken")
235
+ def refresh_token(self) -> pulumi.Output[Optional[builtins.str]]:
236
+ """
237
+ A generated token that can be used to authenticate to the data service API. Can be specified with the CPLN_REFRESH_TOKEN
238
+ environment variable. Used when the provider is required to create an org or update the auth_config property. Refer to
239
+ the section above on how to obtain the refresh token.
240
+ """
241
+ return pulumi.get(self, "refresh_token")
242
+
243
+ @property
244
+ @pulumi.getter
245
+ def token(self) -> pulumi.Output[Optional[builtins.str]]:
246
+ """
247
+ A generated token that can be used to authenticate to the data service API. Can be specified with the CPLN_TOKEN
248
+ environment variable.
249
+ """
250
+ return pulumi.get(self, "token")
251
+
252
+ @pulumi.output_type
253
+ class TerraformConfigResult:
254
+ def __init__(__self__, result=None):
255
+ if result and not isinstance(result, dict):
256
+ raise TypeError("Expected argument 'result' to be a dict")
257
+ pulumi.set(__self__, "result", result)
258
+
259
+ @property
260
+ @pulumi.getter
261
+ def result(self) -> Mapping[str, Any]:
262
+ return pulumi.get(self, "result")
263
+
264
+ def terraform_config(__self__) -> pulumi.Output['Provider.TerraformConfigResult']:
265
+ """
266
+ This function returns a Terraform config object with terraform-namecased keys,to be used with the Terraform Module Provider.
267
+ """
268
+ __args__ = dict()
269
+ __args__['__self__'] = __self__
270
+ return pulumi.runtime.call('pulumi:providers:cpln/terraformConfig', __args__, res=__self__, typ=Provider.TerraformConfigResult)
271
+
@@ -0,0 +1,5 @@
1
+ {
2
+ "resource": true,
3
+ "name": "cpln",
4
+ "server": "github://api.github.com/pulumiverse"
5
+ }
File without changes