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,331 @@
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
+
6
+ import asyncio
7
+ import functools
8
+ import importlib.metadata
9
+ import importlib.util
10
+ import inspect
11
+ import json
12
+ import os
13
+ import sys
14
+ import typing
15
+ import warnings
16
+ import base64
17
+
18
+ import pulumi
19
+ import pulumi.runtime
20
+ from pulumi.runtime.sync_await import _sync_await
21
+ from pulumi.runtime.proto import resource_pb2
22
+
23
+ from semver import VersionInfo as SemverVersion
24
+ from parver import Version as PEP440Version
25
+
26
+ C = typing.TypeVar("C", bound=typing.Callable)
27
+
28
+
29
+ def get_env(*args):
30
+ for v in args:
31
+ value = os.getenv(v)
32
+ if value is not None:
33
+ return value
34
+ return None
35
+
36
+
37
+ def get_env_bool(*args):
38
+ str = get_env(*args)
39
+ if str is not None:
40
+ # NOTE: these values are taken from https://golang.org/src/strconv/atob.go?s=351:391#L1, which is what
41
+ # Terraform uses internally when parsing boolean values.
42
+ if str in ["1", "t", "T", "true", "TRUE", "True"]:
43
+ return True
44
+ if str in ["0", "f", "F", "false", "FALSE", "False"]:
45
+ return False
46
+ return None
47
+
48
+
49
+ def get_env_int(*args):
50
+ str = get_env(*args)
51
+ if str is not None:
52
+ try:
53
+ return int(str)
54
+ except:
55
+ return None
56
+ return None
57
+
58
+
59
+ def get_env_float(*args):
60
+ str = get_env(*args)
61
+ if str is not None:
62
+ try:
63
+ return float(str)
64
+ except:
65
+ return None
66
+ return None
67
+
68
+
69
+ def _get_semver_version():
70
+ # __name__ is set to the fully-qualified name of the current module, In our case, it will be
71
+ # <some module>._utilities. <some module> is the module we want to query the version for.
72
+ root_package, *rest = __name__.split('.')
73
+
74
+ # pkg_resources uses setuptools to inspect the set of installed packages. We use it here to ask
75
+ # for the currently installed version of the root package (i.e. us) and get its version.
76
+
77
+ # Unfortunately, PEP440 and semver differ slightly in incompatible ways. The Pulumi engine expects
78
+ # to receive a valid semver string when receiving requests from the language host, so it's our
79
+ # responsibility as the library to convert our own PEP440 version into a valid semver string.
80
+
81
+ pep440_version_string = importlib.metadata.version(root_package)
82
+ pep440_version = PEP440Version.parse(pep440_version_string)
83
+ (major, minor, patch) = pep440_version.release
84
+ prerelease = None
85
+ if pep440_version.pre_tag == 'a':
86
+ prerelease = f"alpha.{pep440_version.pre}"
87
+ elif pep440_version.pre_tag == 'b':
88
+ prerelease = f"beta.{pep440_version.pre}"
89
+ elif pep440_version.pre_tag == 'rc':
90
+ prerelease = f"rc.{pep440_version.pre}"
91
+ elif pep440_version.dev is not None:
92
+ # PEP440 has explicit support for dev builds, while semver encodes them as "prerelease" versions. To bridge
93
+ # between the two, we convert our dev build version into a prerelease tag. This matches what all of our other
94
+ # packages do when constructing their own semver string.
95
+ prerelease = f"dev.{pep440_version.dev}"
96
+ elif pep440_version.local is not None:
97
+ # PEP440 only allows a small set of prerelease tags, so when converting an arbitrary prerelease,
98
+ # PypiVersion in /pkg/codegen/python/utilities.go converts it to a local version. Therefore, we need to
99
+ # do the reverse conversion here and set the local version as the prerelease tag.
100
+ prerelease = pep440_version.local
101
+
102
+ return SemverVersion(major=major, minor=minor, patch=patch, prerelease=prerelease)
103
+
104
+
105
+ # Determine the version once and cache the value, which measurably improves program performance.
106
+ _version = _get_semver_version()
107
+ _version_str = str(_version)
108
+
109
+ def get_resource_opts_defaults() -> pulumi.ResourceOptions:
110
+ return pulumi.ResourceOptions(
111
+ version=get_version(),
112
+ plugin_download_url=get_plugin_download_url(),
113
+ )
114
+
115
+ def get_invoke_opts_defaults() -> pulumi.InvokeOptions:
116
+ return pulumi.InvokeOptions(
117
+ version=get_version(),
118
+ plugin_download_url=get_plugin_download_url(),
119
+ )
120
+
121
+ def get_resource_args_opts(resource_args_type, resource_options_type, *args, **kwargs):
122
+ """
123
+ Return the resource args and options given the *args and **kwargs of a resource's
124
+ __init__ method.
125
+ """
126
+
127
+ resource_args, opts = None, None
128
+
129
+ # If the first item is the resource args type, save it and remove it from the args list.
130
+ if args and isinstance(args[0], resource_args_type):
131
+ resource_args, args = args[0], args[1:]
132
+
133
+ # Now look at the first item in the args list again.
134
+ # If the first item is the resource options class, save it.
135
+ if args and isinstance(args[0], resource_options_type):
136
+ opts = args[0]
137
+
138
+ # If resource_args is None, see if "args" is in kwargs, and, if so, if it's typed as the
139
+ # the resource args type.
140
+ if resource_args is None:
141
+ a = kwargs.get("args")
142
+ if isinstance(a, resource_args_type):
143
+ resource_args = a
144
+
145
+ # If opts is None, look it up in kwargs.
146
+ if opts is None:
147
+ opts = kwargs.get("opts")
148
+
149
+ return resource_args, opts
150
+
151
+
152
+ # Temporary: just use pulumi._utils.lazy_import once everyone upgrades.
153
+ def lazy_import(fullname):
154
+
155
+ import pulumi._utils as u
156
+ f = getattr(u, 'lazy_import', None)
157
+ if f is None:
158
+ f = _lazy_import_temp
159
+
160
+ return f(fullname)
161
+
162
+
163
+ # Copied from pulumi._utils.lazy_import, see comments there.
164
+ def _lazy_import_temp(fullname):
165
+ m = sys.modules.get(fullname, None)
166
+ if m is not None:
167
+ return m
168
+
169
+ spec = importlib.util.find_spec(fullname)
170
+
171
+ m = sys.modules.get(fullname, None)
172
+ if m is not None:
173
+ return m
174
+
175
+ loader = importlib.util.LazyLoader(spec.loader)
176
+ spec.loader = loader
177
+ module = importlib.util.module_from_spec(spec)
178
+
179
+ m = sys.modules.get(fullname, None)
180
+ if m is not None:
181
+ return m
182
+
183
+ sys.modules[fullname] = module
184
+ loader.exec_module(module)
185
+ return module
186
+
187
+
188
+ class Package(pulumi.runtime.ResourcePackage):
189
+ def __init__(self, pkg_info):
190
+ super().__init__()
191
+ self.pkg_info = pkg_info
192
+
193
+ def version(self):
194
+ return _version
195
+
196
+ def construct_provider(self, name: str, typ: str, urn: str) -> pulumi.ProviderResource:
197
+ if typ != self.pkg_info['token']:
198
+ raise Exception(f"unknown provider type {typ}")
199
+ Provider = getattr(lazy_import(self.pkg_info['fqn']), self.pkg_info['class'])
200
+ return Provider(name, pulumi.ResourceOptions(urn=urn))
201
+
202
+
203
+ class Module(pulumi.runtime.ResourceModule):
204
+ def __init__(self, mod_info):
205
+ super().__init__()
206
+ self.mod_info = mod_info
207
+
208
+ def version(self):
209
+ return _version
210
+
211
+ def construct(self, name: str, typ: str, urn: str) -> pulumi.Resource:
212
+ class_name = self.mod_info['classes'].get(typ, None)
213
+
214
+ if class_name is None:
215
+ raise Exception(f"unknown resource type {typ}")
216
+
217
+ TheClass = getattr(lazy_import(self.mod_info['fqn']), class_name)
218
+ return TheClass(name, pulumi.ResourceOptions(urn=urn))
219
+
220
+
221
+ def register(resource_modules, resource_packages):
222
+ resource_modules = json.loads(resource_modules)
223
+ resource_packages = json.loads(resource_packages)
224
+
225
+ for pkg_info in resource_packages:
226
+ pulumi.runtime.register_resource_package(pkg_info['pkg'], Package(pkg_info))
227
+
228
+ for mod_info in resource_modules:
229
+ pulumi.runtime.register_resource_module(
230
+ mod_info['pkg'],
231
+ mod_info['mod'],
232
+ Module(mod_info))
233
+
234
+
235
+ _F = typing.TypeVar('_F', bound=typing.Callable[..., typing.Any])
236
+
237
+
238
+ def lift_output_func(func: typing.Any) -> typing.Callable[[_F], _F]:
239
+ """Decorator internally used on {fn}_output lifted function versions
240
+ to implement them automatically from the un-lifted function."""
241
+
242
+ func_sig = inspect.signature(func)
243
+
244
+ def lifted_func(*args, opts=None, **kwargs):
245
+ bound_args = func_sig.bind(*args, **kwargs)
246
+ # Convert tuple to list, see pulumi/pulumi#8172
247
+ args_list = list(bound_args.args)
248
+ return pulumi.Output.from_input({
249
+ 'args': args_list,
250
+ 'kwargs': bound_args.kwargs
251
+ }).apply(lambda resolved_args: func(*resolved_args['args'],
252
+ opts=opts,
253
+ **resolved_args['kwargs']))
254
+
255
+ return (lambda _: lifted_func)
256
+
257
+
258
+ def call_plain(
259
+ tok: str,
260
+ props: pulumi.Inputs,
261
+ res: typing.Optional[pulumi.Resource] = None,
262
+ typ: typing.Optional[type] = None,
263
+ ) -> typing.Any:
264
+ """
265
+ Wraps pulumi.runtime.plain to force the output and return it plainly.
266
+ """
267
+
268
+ output = pulumi.runtime.call(tok, props, res, typ)
269
+
270
+ # Ingoring deps silently. They are typically non-empty, r.f() calls include r as a dependency.
271
+ result, known, secret, _ = _sync_await(asyncio.create_task(_await_output(output)))
272
+
273
+ problem = None
274
+ if not known:
275
+ problem = ' an unknown value'
276
+ elif secret:
277
+ problem = ' a secret value'
278
+
279
+ if problem:
280
+ raise AssertionError(
281
+ f"Plain resource method '{tok}' incorrectly returned {problem}. "
282
+ + "This is an error in the provider, please report this to the provider developer."
283
+ )
284
+
285
+ return result
286
+
287
+
288
+ async def _await_output(o: pulumi.Output[typing.Any]) -> typing.Tuple[object, bool, bool, set]:
289
+ return (
290
+ await o._future,
291
+ await o._is_known,
292
+ await o._is_secret,
293
+ await o._resources,
294
+ )
295
+
296
+
297
+ # This is included to provide an upgrade path for users who are using a version
298
+ # of the Pulumi SDK (<3.121.0) that does not include the `deprecated` decorator.
299
+ def deprecated(message: str) -> typing.Callable[[C], C]:
300
+ """
301
+ Decorator to indicate a function is deprecated.
302
+
303
+ As well as inserting appropriate statements to indicate that the function is
304
+ deprecated, this decorator also tags the function with a special attribute
305
+ so that Pulumi code can detect that it is deprecated and react appropriately
306
+ in certain situations.
307
+
308
+ message is the deprecation message that should be printed if the function is called.
309
+ """
310
+
311
+ def decorator(fn: C) -> C:
312
+ if not callable(fn):
313
+ raise TypeError("Expected fn to be callable")
314
+
315
+ @functools.wraps(fn)
316
+ def deprecated_fn(*args, **kwargs):
317
+ warnings.warn(message)
318
+ pulumi.warn(f"{fn.__name__} is deprecated: {message}")
319
+
320
+ return fn(*args, **kwargs)
321
+
322
+ deprecated_fn.__dict__["_pulumi_deprecated_callable"] = fn
323
+ return typing.cast(C, deprecated_fn)
324
+
325
+ return decorator
326
+
327
+ def get_plugin_download_url():
328
+ return "github://api.github.com/pulumiverse"
329
+
330
+ def get_version():
331
+ return _version_str
@@ -0,0 +1,330 @@
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__ = ['AgentArgs', 'Agent']
19
+
20
+ @pulumi.input_type
21
+ class AgentArgs:
22
+ def __init__(__self__, *,
23
+ description: Optional[pulumi.Input[builtins.str]] = None,
24
+ name: Optional[pulumi.Input[builtins.str]] = None,
25
+ tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]] = None):
26
+ """
27
+ The set of arguments for constructing a Agent resource.
28
+ :param pulumi.Input[builtins.str] description: Description of the Agent.
29
+ :param pulumi.Input[builtins.str] name: Name of the Agent.
30
+ :param pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]] tags: Key-value map of resource tags.
31
+ """
32
+ if description is not None:
33
+ pulumi.set(__self__, "description", description)
34
+ if name is not None:
35
+ pulumi.set(__self__, "name", name)
36
+ if tags is not None:
37
+ pulumi.set(__self__, "tags", tags)
38
+
39
+ @property
40
+ @pulumi.getter
41
+ def description(self) -> Optional[pulumi.Input[builtins.str]]:
42
+ """
43
+ Description of the Agent.
44
+ """
45
+ return pulumi.get(self, "description")
46
+
47
+ @description.setter
48
+ def description(self, value: Optional[pulumi.Input[builtins.str]]):
49
+ pulumi.set(self, "description", value)
50
+
51
+ @property
52
+ @pulumi.getter
53
+ def name(self) -> Optional[pulumi.Input[builtins.str]]:
54
+ """
55
+ Name of the Agent.
56
+ """
57
+ return pulumi.get(self, "name")
58
+
59
+ @name.setter
60
+ def name(self, value: Optional[pulumi.Input[builtins.str]]):
61
+ pulumi.set(self, "name", value)
62
+
63
+ @property
64
+ @pulumi.getter
65
+ def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]]:
66
+ """
67
+ Key-value map of resource tags.
68
+ """
69
+ return pulumi.get(self, "tags")
70
+
71
+ @tags.setter
72
+ def tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]]):
73
+ pulumi.set(self, "tags", value)
74
+
75
+
76
+ @pulumi.input_type
77
+ class _AgentState:
78
+ def __init__(__self__, *,
79
+ cpln_id: Optional[pulumi.Input[builtins.str]] = None,
80
+ description: Optional[pulumi.Input[builtins.str]] = None,
81
+ name: Optional[pulumi.Input[builtins.str]] = None,
82
+ self_link: Optional[pulumi.Input[builtins.str]] = None,
83
+ tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]] = None,
84
+ user_data: Optional[pulumi.Input[builtins.str]] = None):
85
+ """
86
+ Input properties used for looking up and filtering Agent resources.
87
+ :param pulumi.Input[builtins.str] cpln_id: The ID, in GUID format, of the Agent.
88
+ :param pulumi.Input[builtins.str] description: Description of the Agent.
89
+ :param pulumi.Input[builtins.str] name: Name of the Agent.
90
+ :param pulumi.Input[builtins.str] self_link: Full link to this resource. Can be referenced by other resources.
91
+ :param pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]] tags: Key-value map of resource tags.
92
+ :param pulumi.Input[builtins.str] user_data: The JSON output needed when creating an agent.
93
+ """
94
+ if cpln_id is not None:
95
+ pulumi.set(__self__, "cpln_id", cpln_id)
96
+ if description is not None:
97
+ pulumi.set(__self__, "description", description)
98
+ if name is not None:
99
+ pulumi.set(__self__, "name", name)
100
+ if self_link is not None:
101
+ pulumi.set(__self__, "self_link", self_link)
102
+ if tags is not None:
103
+ pulumi.set(__self__, "tags", tags)
104
+ if user_data is not None:
105
+ pulumi.set(__self__, "user_data", user_data)
106
+
107
+ @property
108
+ @pulumi.getter(name="cplnId")
109
+ def cpln_id(self) -> Optional[pulumi.Input[builtins.str]]:
110
+ """
111
+ The ID, in GUID format, of the Agent.
112
+ """
113
+ return pulumi.get(self, "cpln_id")
114
+
115
+ @cpln_id.setter
116
+ def cpln_id(self, value: Optional[pulumi.Input[builtins.str]]):
117
+ pulumi.set(self, "cpln_id", value)
118
+
119
+ @property
120
+ @pulumi.getter
121
+ def description(self) -> Optional[pulumi.Input[builtins.str]]:
122
+ """
123
+ Description of the Agent.
124
+ """
125
+ return pulumi.get(self, "description")
126
+
127
+ @description.setter
128
+ def description(self, value: Optional[pulumi.Input[builtins.str]]):
129
+ pulumi.set(self, "description", value)
130
+
131
+ @property
132
+ @pulumi.getter
133
+ def name(self) -> Optional[pulumi.Input[builtins.str]]:
134
+ """
135
+ Name of the Agent.
136
+ """
137
+ return pulumi.get(self, "name")
138
+
139
+ @name.setter
140
+ def name(self, value: Optional[pulumi.Input[builtins.str]]):
141
+ pulumi.set(self, "name", value)
142
+
143
+ @property
144
+ @pulumi.getter(name="selfLink")
145
+ def self_link(self) -> Optional[pulumi.Input[builtins.str]]:
146
+ """
147
+ Full link to this resource. Can be referenced by other resources.
148
+ """
149
+ return pulumi.get(self, "self_link")
150
+
151
+ @self_link.setter
152
+ def self_link(self, value: Optional[pulumi.Input[builtins.str]]):
153
+ pulumi.set(self, "self_link", value)
154
+
155
+ @property
156
+ @pulumi.getter
157
+ def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]]:
158
+ """
159
+ Key-value map of resource tags.
160
+ """
161
+ return pulumi.get(self, "tags")
162
+
163
+ @tags.setter
164
+ def tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]]):
165
+ pulumi.set(self, "tags", value)
166
+
167
+ @property
168
+ @pulumi.getter(name="userData")
169
+ def user_data(self) -> Optional[pulumi.Input[builtins.str]]:
170
+ """
171
+ The JSON output needed when creating an agent.
172
+ """
173
+ return pulumi.get(self, "user_data")
174
+
175
+ @user_data.setter
176
+ def user_data(self, value: Optional[pulumi.Input[builtins.str]]):
177
+ pulumi.set(self, "user_data", value)
178
+
179
+
180
+ @pulumi.type_token("cpln:index/agent:Agent")
181
+ class Agent(pulumi.CustomResource):
182
+ @overload
183
+ def __init__(__self__,
184
+ resource_name: str,
185
+ opts: Optional[pulumi.ResourceOptions] = None,
186
+ description: Optional[pulumi.Input[builtins.str]] = None,
187
+ name: Optional[pulumi.Input[builtins.str]] = None,
188
+ tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]] = None,
189
+ __props__=None):
190
+ """
191
+ Create a Agent resource with the given unique name, props, and options.
192
+ :param str resource_name: The name of the resource.
193
+ :param pulumi.ResourceOptions opts: Options for the resource.
194
+ :param pulumi.Input[builtins.str] description: Description of the Agent.
195
+ :param pulumi.Input[builtins.str] name: Name of the Agent.
196
+ :param pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]] tags: Key-value map of resource tags.
197
+ """
198
+ ...
199
+ @overload
200
+ def __init__(__self__,
201
+ resource_name: str,
202
+ args: Optional[AgentArgs] = None,
203
+ opts: Optional[pulumi.ResourceOptions] = None):
204
+ """
205
+ Create a Agent resource with the given unique name, props, and options.
206
+ :param str resource_name: The name of the resource.
207
+ :param AgentArgs args: The arguments to use to populate this resource's properties.
208
+ :param pulumi.ResourceOptions opts: Options for the resource.
209
+ """
210
+ ...
211
+ def __init__(__self__, resource_name: str, *args, **kwargs):
212
+ resource_args, opts = _utilities.get_resource_args_opts(AgentArgs, pulumi.ResourceOptions, *args, **kwargs)
213
+ if resource_args is not None:
214
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
215
+ else:
216
+ __self__._internal_init(resource_name, *args, **kwargs)
217
+
218
+ def _internal_init(__self__,
219
+ resource_name: str,
220
+ opts: Optional[pulumi.ResourceOptions] = None,
221
+ description: Optional[pulumi.Input[builtins.str]] = None,
222
+ name: Optional[pulumi.Input[builtins.str]] = None,
223
+ tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]] = None,
224
+ __props__=None):
225
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
226
+ if not isinstance(opts, pulumi.ResourceOptions):
227
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
228
+ if opts.id is None:
229
+ if __props__ is not None:
230
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
231
+ __props__ = AgentArgs.__new__(AgentArgs)
232
+
233
+ __props__.__dict__["description"] = description
234
+ __props__.__dict__["name"] = name
235
+ __props__.__dict__["tags"] = tags
236
+ __props__.__dict__["cpln_id"] = None
237
+ __props__.__dict__["self_link"] = None
238
+ __props__.__dict__["user_data"] = None
239
+ secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["userData"])
240
+ opts = pulumi.ResourceOptions.merge(opts, secret_opts)
241
+ super(Agent, __self__).__init__(
242
+ 'cpln:index/agent:Agent',
243
+ resource_name,
244
+ __props__,
245
+ opts)
246
+
247
+ @staticmethod
248
+ def get(resource_name: str,
249
+ id: pulumi.Input[str],
250
+ opts: Optional[pulumi.ResourceOptions] = None,
251
+ cpln_id: Optional[pulumi.Input[builtins.str]] = None,
252
+ description: Optional[pulumi.Input[builtins.str]] = None,
253
+ name: Optional[pulumi.Input[builtins.str]] = None,
254
+ self_link: Optional[pulumi.Input[builtins.str]] = None,
255
+ tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]] = None,
256
+ user_data: Optional[pulumi.Input[builtins.str]] = None) -> 'Agent':
257
+ """
258
+ Get an existing Agent resource's state with the given name, id, and optional extra
259
+ properties used to qualify the lookup.
260
+
261
+ :param str resource_name: The unique name of the resulting resource.
262
+ :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
263
+ :param pulumi.ResourceOptions opts: Options for the resource.
264
+ :param pulumi.Input[builtins.str] cpln_id: The ID, in GUID format, of the Agent.
265
+ :param pulumi.Input[builtins.str] description: Description of the Agent.
266
+ :param pulumi.Input[builtins.str] name: Name of the Agent.
267
+ :param pulumi.Input[builtins.str] self_link: Full link to this resource. Can be referenced by other resources.
268
+ :param pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]] tags: Key-value map of resource tags.
269
+ :param pulumi.Input[builtins.str] user_data: The JSON output needed when creating an agent.
270
+ """
271
+ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
272
+
273
+ __props__ = _AgentState.__new__(_AgentState)
274
+
275
+ __props__.__dict__["cpln_id"] = cpln_id
276
+ __props__.__dict__["description"] = description
277
+ __props__.__dict__["name"] = name
278
+ __props__.__dict__["self_link"] = self_link
279
+ __props__.__dict__["tags"] = tags
280
+ __props__.__dict__["user_data"] = user_data
281
+ return Agent(resource_name, opts=opts, __props__=__props__)
282
+
283
+ @property
284
+ @pulumi.getter(name="cplnId")
285
+ def cpln_id(self) -> pulumi.Output[builtins.str]:
286
+ """
287
+ The ID, in GUID format, of the Agent.
288
+ """
289
+ return pulumi.get(self, "cpln_id")
290
+
291
+ @property
292
+ @pulumi.getter
293
+ def description(self) -> pulumi.Output[builtins.str]:
294
+ """
295
+ Description of the Agent.
296
+ """
297
+ return pulumi.get(self, "description")
298
+
299
+ @property
300
+ @pulumi.getter
301
+ def name(self) -> pulumi.Output[builtins.str]:
302
+ """
303
+ Name of the Agent.
304
+ """
305
+ return pulumi.get(self, "name")
306
+
307
+ @property
308
+ @pulumi.getter(name="selfLink")
309
+ def self_link(self) -> pulumi.Output[builtins.str]:
310
+ """
311
+ Full link to this resource. Can be referenced by other resources.
312
+ """
313
+ return pulumi.get(self, "self_link")
314
+
315
+ @property
316
+ @pulumi.getter
317
+ def tags(self) -> pulumi.Output[Mapping[str, builtins.str]]:
318
+ """
319
+ Key-value map of resource tags.
320
+ """
321
+ return pulumi.get(self, "tags")
322
+
323
+ @property
324
+ @pulumi.getter(name="userData")
325
+ def user_data(self) -> pulumi.Output[builtins.str]:
326
+ """
327
+ The JSON output needed when creating an agent.
328
+ """
329
+ return pulumi.get(self, "user_data")
330
+