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.
- pulumiverse_cpln/__init__.py +241 -0
- pulumiverse_cpln/_inputs.py +18692 -0
- pulumiverse_cpln/_utilities.py +331 -0
- pulumiverse_cpln/agent.py +330 -0
- pulumiverse_cpln/audit_context.py +300 -0
- pulumiverse_cpln/cloud_account.py +546 -0
- pulumiverse_cpln/config/__init__.py +9 -0
- pulumiverse_cpln/config/__init__.pyi +48 -0
- pulumiverse_cpln/config/vars.py +64 -0
- pulumiverse_cpln/custom_location.py +424 -0
- pulumiverse_cpln/domain.py +377 -0
- pulumiverse_cpln/domain_route.py +645 -0
- pulumiverse_cpln/get_cloud_account.py +107 -0
- pulumiverse_cpln/get_gvc.py +423 -0
- pulumiverse_cpln/get_image.py +284 -0
- pulumiverse_cpln/get_images.py +261 -0
- pulumiverse_cpln/get_location.py +273 -0
- pulumiverse_cpln/get_locations.py +171 -0
- pulumiverse_cpln/get_org.py +250 -0
- pulumiverse_cpln/get_secret.py +555 -0
- pulumiverse_cpln/group.py +539 -0
- pulumiverse_cpln/gvc.py +771 -0
- pulumiverse_cpln/identity.py +688 -0
- pulumiverse_cpln/ip_set.py +521 -0
- pulumiverse_cpln/location.py +435 -0
- pulumiverse_cpln/mk8s.py +848 -0
- pulumiverse_cpln/mk8s_kubeconfig.py +362 -0
- pulumiverse_cpln/org.py +594 -0
- pulumiverse_cpln/org_logging.py +616 -0
- pulumiverse_cpln/org_tracing.py +347 -0
- pulumiverse_cpln/outputs.py +14498 -0
- pulumiverse_cpln/policy.py +620 -0
- pulumiverse_cpln/provider.py +271 -0
- pulumiverse_cpln/pulumi-plugin.json +5 -0
- pulumiverse_cpln/py.typed +0 -0
- pulumiverse_cpln/secret.py +915 -0
- pulumiverse_cpln/service_account.py +328 -0
- pulumiverse_cpln/service_account_key.py +285 -0
- pulumiverse_cpln/volume_set.py +765 -0
- pulumiverse_cpln/workload.py +1033 -0
- pulumiverse_cpln-0.0.0.dist-info/METADATA +83 -0
- pulumiverse_cpln-0.0.0.dist-info/RECORD +44 -0
- pulumiverse_cpln-0.0.0.dist-info/WHEEL +5 -0
- pulumiverse_cpln-0.0.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,273 @@
|
|
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
|
+
from . import outputs
|
18
|
+
|
19
|
+
__all__ = [
|
20
|
+
'GetLocationResult',
|
21
|
+
'AwaitableGetLocationResult',
|
22
|
+
'get_location',
|
23
|
+
'get_location_output',
|
24
|
+
]
|
25
|
+
|
26
|
+
@pulumi.output_type
|
27
|
+
class GetLocationResult:
|
28
|
+
"""
|
29
|
+
A collection of values returned by getLocation.
|
30
|
+
"""
|
31
|
+
def __init__(__self__, cloud_provider=None, cpln_id=None, description=None, enabled=None, geos=None, id=None, ip_ranges=None, name=None, region=None, self_link=None, tags=None):
|
32
|
+
if cloud_provider and not isinstance(cloud_provider, str):
|
33
|
+
raise TypeError("Expected argument 'cloud_provider' to be a str")
|
34
|
+
pulumi.set(__self__, "cloud_provider", cloud_provider)
|
35
|
+
if cpln_id and not isinstance(cpln_id, str):
|
36
|
+
raise TypeError("Expected argument 'cpln_id' to be a str")
|
37
|
+
pulumi.set(__self__, "cpln_id", cpln_id)
|
38
|
+
if description and not isinstance(description, str):
|
39
|
+
raise TypeError("Expected argument 'description' to be a str")
|
40
|
+
pulumi.set(__self__, "description", description)
|
41
|
+
if enabled and not isinstance(enabled, bool):
|
42
|
+
raise TypeError("Expected argument 'enabled' to be a bool")
|
43
|
+
pulumi.set(__self__, "enabled", enabled)
|
44
|
+
if geos and not isinstance(geos, list):
|
45
|
+
raise TypeError("Expected argument 'geos' to be a list")
|
46
|
+
pulumi.set(__self__, "geos", geos)
|
47
|
+
if id and not isinstance(id, str):
|
48
|
+
raise TypeError("Expected argument 'id' to be a str")
|
49
|
+
pulumi.set(__self__, "id", id)
|
50
|
+
if ip_ranges and not isinstance(ip_ranges, list):
|
51
|
+
raise TypeError("Expected argument 'ip_ranges' to be a list")
|
52
|
+
pulumi.set(__self__, "ip_ranges", ip_ranges)
|
53
|
+
if name and not isinstance(name, str):
|
54
|
+
raise TypeError("Expected argument 'name' to be a str")
|
55
|
+
pulumi.set(__self__, "name", name)
|
56
|
+
if region and not isinstance(region, str):
|
57
|
+
raise TypeError("Expected argument 'region' to be a str")
|
58
|
+
pulumi.set(__self__, "region", region)
|
59
|
+
if self_link and not isinstance(self_link, str):
|
60
|
+
raise TypeError("Expected argument 'self_link' to be a str")
|
61
|
+
pulumi.set(__self__, "self_link", self_link)
|
62
|
+
if tags and not isinstance(tags, dict):
|
63
|
+
raise TypeError("Expected argument 'tags' to be a dict")
|
64
|
+
pulumi.set(__self__, "tags", tags)
|
65
|
+
|
66
|
+
@property
|
67
|
+
@pulumi.getter(name="cloudProvider")
|
68
|
+
def cloud_provider(self) -> builtins.str:
|
69
|
+
return pulumi.get(self, "cloud_provider")
|
70
|
+
|
71
|
+
@property
|
72
|
+
@pulumi.getter(name="cplnId")
|
73
|
+
def cpln_id(self) -> builtins.str:
|
74
|
+
return pulumi.get(self, "cpln_id")
|
75
|
+
|
76
|
+
@property
|
77
|
+
@pulumi.getter
|
78
|
+
def description(self) -> builtins.str:
|
79
|
+
return pulumi.get(self, "description")
|
80
|
+
|
81
|
+
@property
|
82
|
+
@pulumi.getter
|
83
|
+
def enabled(self) -> builtins.bool:
|
84
|
+
return pulumi.get(self, "enabled")
|
85
|
+
|
86
|
+
@property
|
87
|
+
@pulumi.getter
|
88
|
+
def geos(self) -> Sequence['outputs.GetLocationGeoResult']:
|
89
|
+
return pulumi.get(self, "geos")
|
90
|
+
|
91
|
+
@property
|
92
|
+
@pulumi.getter
|
93
|
+
def id(self) -> builtins.str:
|
94
|
+
return pulumi.get(self, "id")
|
95
|
+
|
96
|
+
@property
|
97
|
+
@pulumi.getter(name="ipRanges")
|
98
|
+
def ip_ranges(self) -> Sequence[builtins.str]:
|
99
|
+
return pulumi.get(self, "ip_ranges")
|
100
|
+
|
101
|
+
@property
|
102
|
+
@pulumi.getter
|
103
|
+
def name(self) -> builtins.str:
|
104
|
+
return pulumi.get(self, "name")
|
105
|
+
|
106
|
+
@property
|
107
|
+
@pulumi.getter
|
108
|
+
def region(self) -> builtins.str:
|
109
|
+
return pulumi.get(self, "region")
|
110
|
+
|
111
|
+
@property
|
112
|
+
@pulumi.getter(name="selfLink")
|
113
|
+
def self_link(self) -> builtins.str:
|
114
|
+
return pulumi.get(self, "self_link")
|
115
|
+
|
116
|
+
@property
|
117
|
+
@pulumi.getter
|
118
|
+
def tags(self) -> Mapping[str, builtins.str]:
|
119
|
+
return pulumi.get(self, "tags")
|
120
|
+
|
121
|
+
|
122
|
+
class AwaitableGetLocationResult(GetLocationResult):
|
123
|
+
# pylint: disable=using-constant-test
|
124
|
+
def __await__(self):
|
125
|
+
if False:
|
126
|
+
yield self
|
127
|
+
return GetLocationResult(
|
128
|
+
cloud_provider=self.cloud_provider,
|
129
|
+
cpln_id=self.cpln_id,
|
130
|
+
description=self.description,
|
131
|
+
enabled=self.enabled,
|
132
|
+
geos=self.geos,
|
133
|
+
id=self.id,
|
134
|
+
ip_ranges=self.ip_ranges,
|
135
|
+
name=self.name,
|
136
|
+
region=self.region,
|
137
|
+
self_link=self.self_link,
|
138
|
+
tags=self.tags)
|
139
|
+
|
140
|
+
|
141
|
+
def get_location(name: Optional[builtins.str] = None,
|
142
|
+
tags: Optional[Mapping[str, builtins.str]] = None,
|
143
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetLocationResult:
|
144
|
+
"""
|
145
|
+
Use this data source to access information about a [Location](https://docs.controlplane.com/reference/location) within Control Plane.
|
146
|
+
|
147
|
+
## Required
|
148
|
+
|
149
|
+
- **name** (String) Name of the location (i.e. `aws-us-west-2`).
|
150
|
+
|
151
|
+
## Outputs
|
152
|
+
|
153
|
+
The following attributes are exported:
|
154
|
+
|
155
|
+
- **cpln_id** (String) The ID, in GUID format, of the location.
|
156
|
+
- **name** (String) Name of the location.
|
157
|
+
- **description** (String) Description of the location.
|
158
|
+
- **tags** (Map of String) Key-value map of resource tags.
|
159
|
+
- **cloud_provider** (String) Cloud Provider of the location.
|
160
|
+
- **region** (String) Region of the location.
|
161
|
+
- **enabled** (Boolean) Indication if location is enabled.
|
162
|
+
- **geo** (Block List, Max: 1) (see below)
|
163
|
+
- **ip_ranges** (List of String) A list of IP ranges of the location.
|
164
|
+
- **self_link** (String) Full link to this resource. Can be referenced by other resources.
|
165
|
+
|
166
|
+
<a id="nestedblock--geo"></a>
|
167
|
+
|
168
|
+
### `geo`
|
169
|
+
|
170
|
+
Location geographical details
|
171
|
+
|
172
|
+
- **lat** (Number) Latitude.
|
173
|
+
- **lon** (Number) Longitude.
|
174
|
+
- **country** (String) Country.
|
175
|
+
- **state** (String) State.
|
176
|
+
- **city** (String) City.
|
177
|
+
- **continent** (String) Continent.
|
178
|
+
|
179
|
+
## Example Usage
|
180
|
+
|
181
|
+
```python
|
182
|
+
import pulumi
|
183
|
+
import pulumi_cpln as cpln
|
184
|
+
|
185
|
+
location = cpln.get_location(name="aws-us-west-2")
|
186
|
+
pulumi.export("location", location)
|
187
|
+
pulumi.export("locationEnabled", location.enabled)
|
188
|
+
```
|
189
|
+
"""
|
190
|
+
__args__ = dict()
|
191
|
+
__args__['name'] = name
|
192
|
+
__args__['tags'] = tags
|
193
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
194
|
+
__ret__ = pulumi.runtime.invoke('cpln:index/getLocation:getLocation', __args__, opts=opts, typ=GetLocationResult).value
|
195
|
+
|
196
|
+
return AwaitableGetLocationResult(
|
197
|
+
cloud_provider=pulumi.get(__ret__, 'cloud_provider'),
|
198
|
+
cpln_id=pulumi.get(__ret__, 'cpln_id'),
|
199
|
+
description=pulumi.get(__ret__, 'description'),
|
200
|
+
enabled=pulumi.get(__ret__, 'enabled'),
|
201
|
+
geos=pulumi.get(__ret__, 'geos'),
|
202
|
+
id=pulumi.get(__ret__, 'id'),
|
203
|
+
ip_ranges=pulumi.get(__ret__, 'ip_ranges'),
|
204
|
+
name=pulumi.get(__ret__, 'name'),
|
205
|
+
region=pulumi.get(__ret__, 'region'),
|
206
|
+
self_link=pulumi.get(__ret__, 'self_link'),
|
207
|
+
tags=pulumi.get(__ret__, 'tags'))
|
208
|
+
def get_location_output(name: Optional[pulumi.Input[builtins.str]] = None,
|
209
|
+
tags: Optional[pulumi.Input[Optional[Mapping[str, builtins.str]]]] = None,
|
210
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetLocationResult]:
|
211
|
+
"""
|
212
|
+
Use this data source to access information about a [Location](https://docs.controlplane.com/reference/location) within Control Plane.
|
213
|
+
|
214
|
+
## Required
|
215
|
+
|
216
|
+
- **name** (String) Name of the location (i.e. `aws-us-west-2`).
|
217
|
+
|
218
|
+
## Outputs
|
219
|
+
|
220
|
+
The following attributes are exported:
|
221
|
+
|
222
|
+
- **cpln_id** (String) The ID, in GUID format, of the location.
|
223
|
+
- **name** (String) Name of the location.
|
224
|
+
- **description** (String) Description of the location.
|
225
|
+
- **tags** (Map of String) Key-value map of resource tags.
|
226
|
+
- **cloud_provider** (String) Cloud Provider of the location.
|
227
|
+
- **region** (String) Region of the location.
|
228
|
+
- **enabled** (Boolean) Indication if location is enabled.
|
229
|
+
- **geo** (Block List, Max: 1) (see below)
|
230
|
+
- **ip_ranges** (List of String) A list of IP ranges of the location.
|
231
|
+
- **self_link** (String) Full link to this resource. Can be referenced by other resources.
|
232
|
+
|
233
|
+
<a id="nestedblock--geo"></a>
|
234
|
+
|
235
|
+
### `geo`
|
236
|
+
|
237
|
+
Location geographical details
|
238
|
+
|
239
|
+
- **lat** (Number) Latitude.
|
240
|
+
- **lon** (Number) Longitude.
|
241
|
+
- **country** (String) Country.
|
242
|
+
- **state** (String) State.
|
243
|
+
- **city** (String) City.
|
244
|
+
- **continent** (String) Continent.
|
245
|
+
|
246
|
+
## Example Usage
|
247
|
+
|
248
|
+
```python
|
249
|
+
import pulumi
|
250
|
+
import pulumi_cpln as cpln
|
251
|
+
|
252
|
+
location = cpln.get_location(name="aws-us-west-2")
|
253
|
+
pulumi.export("location", location)
|
254
|
+
pulumi.export("locationEnabled", location.enabled)
|
255
|
+
```
|
256
|
+
"""
|
257
|
+
__args__ = dict()
|
258
|
+
__args__['name'] = name
|
259
|
+
__args__['tags'] = tags
|
260
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
261
|
+
__ret__ = pulumi.runtime.invoke_output('cpln:index/getLocation:getLocation', __args__, opts=opts, typ=GetLocationResult)
|
262
|
+
return __ret__.apply(lambda __response__: GetLocationResult(
|
263
|
+
cloud_provider=pulumi.get(__response__, 'cloud_provider'),
|
264
|
+
cpln_id=pulumi.get(__response__, 'cpln_id'),
|
265
|
+
description=pulumi.get(__response__, 'description'),
|
266
|
+
enabled=pulumi.get(__response__, 'enabled'),
|
267
|
+
geos=pulumi.get(__response__, 'geos'),
|
268
|
+
id=pulumi.get(__response__, 'id'),
|
269
|
+
ip_ranges=pulumi.get(__response__, 'ip_ranges'),
|
270
|
+
name=pulumi.get(__response__, 'name'),
|
271
|
+
region=pulumi.get(__response__, 'region'),
|
272
|
+
self_link=pulumi.get(__response__, 'self_link'),
|
273
|
+
tags=pulumi.get(__response__, 'tags')))
|
@@ -0,0 +1,171 @@
|
|
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
|
+
from . import outputs
|
18
|
+
|
19
|
+
__all__ = [
|
20
|
+
'GetLocationsResult',
|
21
|
+
'AwaitableGetLocationsResult',
|
22
|
+
'get_locations',
|
23
|
+
'get_locations_output',
|
24
|
+
]
|
25
|
+
|
26
|
+
@pulumi.output_type
|
27
|
+
class GetLocationsResult:
|
28
|
+
"""
|
29
|
+
A collection of values returned by getLocations.
|
30
|
+
"""
|
31
|
+
def __init__(__self__, id=None, locations=None):
|
32
|
+
if id and not isinstance(id, str):
|
33
|
+
raise TypeError("Expected argument 'id' to be a str")
|
34
|
+
pulumi.set(__self__, "id", id)
|
35
|
+
if locations and not isinstance(locations, list):
|
36
|
+
raise TypeError("Expected argument 'locations' to be a list")
|
37
|
+
pulumi.set(__self__, "locations", locations)
|
38
|
+
|
39
|
+
@property
|
40
|
+
@pulumi.getter
|
41
|
+
def id(self) -> builtins.str:
|
42
|
+
"""
|
43
|
+
The provider-assigned unique ID for this managed resource.
|
44
|
+
"""
|
45
|
+
return pulumi.get(self, "id")
|
46
|
+
|
47
|
+
@property
|
48
|
+
@pulumi.getter
|
49
|
+
def locations(self) -> Sequence['outputs.GetLocationsLocationResult']:
|
50
|
+
return pulumi.get(self, "locations")
|
51
|
+
|
52
|
+
|
53
|
+
class AwaitableGetLocationsResult(GetLocationsResult):
|
54
|
+
# pylint: disable=using-constant-test
|
55
|
+
def __await__(self):
|
56
|
+
if False:
|
57
|
+
yield self
|
58
|
+
return GetLocationsResult(
|
59
|
+
id=self.id,
|
60
|
+
locations=self.locations)
|
61
|
+
|
62
|
+
|
63
|
+
def get_locations(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetLocationsResult:
|
64
|
+
"""
|
65
|
+
Use this data source to access information about all [Locations](https://docs.controlplane.com/reference/location) within Control Plane.
|
66
|
+
|
67
|
+
## Outputs
|
68
|
+
|
69
|
+
The following attributes are exported:
|
70
|
+
|
71
|
+
- **locations** (Block List) (see below).
|
72
|
+
|
73
|
+
<a id="nestedblock--locations"></a>
|
74
|
+
|
75
|
+
### `locations`
|
76
|
+
|
77
|
+
- **cpln_id** (String) The ID, in GUID format, of the location.
|
78
|
+
- **name** (String) Name of the location.
|
79
|
+
- **description** (String) Description of the location.
|
80
|
+
- **tags** (Map of String) Key-value map of resource tags.
|
81
|
+
- **cloud_provider** (String) Cloud Provider of the location.
|
82
|
+
- **region** (String) Region of the location.
|
83
|
+
- **enabled** (Boolean) Indication if location is enabled.
|
84
|
+
- **geo** (Block List, Max: 1) (see below)
|
85
|
+
- **ip_ranges** (List of String) A list of IP ranges of the location.
|
86
|
+
- **self_link** (String) Full link to this resource. Can be referenced by other resources.
|
87
|
+
|
88
|
+
<a id="nestedblock--geo"></a>
|
89
|
+
|
90
|
+
### `geo`
|
91
|
+
|
92
|
+
Location geographical details
|
93
|
+
|
94
|
+
- **lat** (Number) Latitude.
|
95
|
+
- **lon** (Number) Longitude.
|
96
|
+
- **country** (String) Country.
|
97
|
+
- **state** (String) State.
|
98
|
+
- **city** (String) City.
|
99
|
+
- **continent** (String) Continent.
|
100
|
+
|
101
|
+
## Example Usage
|
102
|
+
|
103
|
+
```python
|
104
|
+
import pulumi
|
105
|
+
import pulumi_cpln as cpln
|
106
|
+
|
107
|
+
locations = cpln.get_locations()
|
108
|
+
pulumi.export("locations", locations.locations)
|
109
|
+
```
|
110
|
+
"""
|
111
|
+
__args__ = dict()
|
112
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
113
|
+
__ret__ = pulumi.runtime.invoke('cpln:index/getLocations:getLocations', __args__, opts=opts, typ=GetLocationsResult).value
|
114
|
+
|
115
|
+
return AwaitableGetLocationsResult(
|
116
|
+
id=pulumi.get(__ret__, 'id'),
|
117
|
+
locations=pulumi.get(__ret__, 'locations'))
|
118
|
+
def get_locations_output(opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetLocationsResult]:
|
119
|
+
"""
|
120
|
+
Use this data source to access information about all [Locations](https://docs.controlplane.com/reference/location) within Control Plane.
|
121
|
+
|
122
|
+
## Outputs
|
123
|
+
|
124
|
+
The following attributes are exported:
|
125
|
+
|
126
|
+
- **locations** (Block List) (see below).
|
127
|
+
|
128
|
+
<a id="nestedblock--locations"></a>
|
129
|
+
|
130
|
+
### `locations`
|
131
|
+
|
132
|
+
- **cpln_id** (String) The ID, in GUID format, of the location.
|
133
|
+
- **name** (String) Name of the location.
|
134
|
+
- **description** (String) Description of the location.
|
135
|
+
- **tags** (Map of String) Key-value map of resource tags.
|
136
|
+
- **cloud_provider** (String) Cloud Provider of the location.
|
137
|
+
- **region** (String) Region of the location.
|
138
|
+
- **enabled** (Boolean) Indication if location is enabled.
|
139
|
+
- **geo** (Block List, Max: 1) (see below)
|
140
|
+
- **ip_ranges** (List of String) A list of IP ranges of the location.
|
141
|
+
- **self_link** (String) Full link to this resource. Can be referenced by other resources.
|
142
|
+
|
143
|
+
<a id="nestedblock--geo"></a>
|
144
|
+
|
145
|
+
### `geo`
|
146
|
+
|
147
|
+
Location geographical details
|
148
|
+
|
149
|
+
- **lat** (Number) Latitude.
|
150
|
+
- **lon** (Number) Longitude.
|
151
|
+
- **country** (String) Country.
|
152
|
+
- **state** (String) State.
|
153
|
+
- **city** (String) City.
|
154
|
+
- **continent** (String) Continent.
|
155
|
+
|
156
|
+
## Example Usage
|
157
|
+
|
158
|
+
```python
|
159
|
+
import pulumi
|
160
|
+
import pulumi_cpln as cpln
|
161
|
+
|
162
|
+
locations = cpln.get_locations()
|
163
|
+
pulumi.export("locations", locations.locations)
|
164
|
+
```
|
165
|
+
"""
|
166
|
+
__args__ = dict()
|
167
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
168
|
+
__ret__ = pulumi.runtime.invoke_output('cpln:index/getLocations:getLocations', __args__, opts=opts, typ=GetLocationsResult)
|
169
|
+
return __ret__.apply(lambda __response__: GetLocationsResult(
|
170
|
+
id=pulumi.get(__response__, 'id'),
|
171
|
+
locations=pulumi.get(__response__, 'locations')))
|
@@ -0,0 +1,250 @@
|
|
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
|
+
from . import outputs
|
18
|
+
from ._inputs import *
|
19
|
+
|
20
|
+
__all__ = [
|
21
|
+
'GetOrgResult',
|
22
|
+
'AwaitableGetOrgResult',
|
23
|
+
'get_org',
|
24
|
+
'get_org_output',
|
25
|
+
]
|
26
|
+
|
27
|
+
@pulumi.output_type
|
28
|
+
class GetOrgResult:
|
29
|
+
"""
|
30
|
+
A collection of values returned by getOrg.
|
31
|
+
"""
|
32
|
+
def __init__(__self__, account_id=None, auth_config=None, cpln_id=None, description=None, id=None, invitees=None, name=None, observability=None, security=None, self_link=None, session_timeout_seconds=None, statuses=None, tags=None):
|
33
|
+
if account_id and not isinstance(account_id, str):
|
34
|
+
raise TypeError("Expected argument 'account_id' to be a str")
|
35
|
+
pulumi.set(__self__, "account_id", account_id)
|
36
|
+
if auth_config and not isinstance(auth_config, dict):
|
37
|
+
raise TypeError("Expected argument 'auth_config' to be a dict")
|
38
|
+
pulumi.set(__self__, "auth_config", auth_config)
|
39
|
+
if cpln_id and not isinstance(cpln_id, str):
|
40
|
+
raise TypeError("Expected argument 'cpln_id' to be a str")
|
41
|
+
pulumi.set(__self__, "cpln_id", cpln_id)
|
42
|
+
if description and not isinstance(description, str):
|
43
|
+
raise TypeError("Expected argument 'description' to be a str")
|
44
|
+
pulumi.set(__self__, "description", description)
|
45
|
+
if id and not isinstance(id, str):
|
46
|
+
raise TypeError("Expected argument 'id' to be a str")
|
47
|
+
pulumi.set(__self__, "id", id)
|
48
|
+
if invitees and not isinstance(invitees, list):
|
49
|
+
raise TypeError("Expected argument 'invitees' to be a list")
|
50
|
+
pulumi.set(__self__, "invitees", invitees)
|
51
|
+
if name and not isinstance(name, str):
|
52
|
+
raise TypeError("Expected argument 'name' to be a str")
|
53
|
+
pulumi.set(__self__, "name", name)
|
54
|
+
if observability and not isinstance(observability, dict):
|
55
|
+
raise TypeError("Expected argument 'observability' to be a dict")
|
56
|
+
pulumi.set(__self__, "observability", observability)
|
57
|
+
if security and not isinstance(security, dict):
|
58
|
+
raise TypeError("Expected argument 'security' to be a dict")
|
59
|
+
pulumi.set(__self__, "security", security)
|
60
|
+
if self_link and not isinstance(self_link, str):
|
61
|
+
raise TypeError("Expected argument 'self_link' to be a str")
|
62
|
+
pulumi.set(__self__, "self_link", self_link)
|
63
|
+
if session_timeout_seconds and not isinstance(session_timeout_seconds, int):
|
64
|
+
raise TypeError("Expected argument 'session_timeout_seconds' to be a int")
|
65
|
+
pulumi.set(__self__, "session_timeout_seconds", session_timeout_seconds)
|
66
|
+
if statuses and not isinstance(statuses, list):
|
67
|
+
raise TypeError("Expected argument 'statuses' to be a list")
|
68
|
+
pulumi.set(__self__, "statuses", statuses)
|
69
|
+
if tags and not isinstance(tags, dict):
|
70
|
+
raise TypeError("Expected argument 'tags' to be a dict")
|
71
|
+
pulumi.set(__self__, "tags", tags)
|
72
|
+
|
73
|
+
@property
|
74
|
+
@pulumi.getter(name="accountId")
|
75
|
+
def account_id(self) -> builtins.str:
|
76
|
+
return pulumi.get(self, "account_id")
|
77
|
+
|
78
|
+
@property
|
79
|
+
@pulumi.getter(name="authConfig")
|
80
|
+
def auth_config(self) -> Optional['outputs.GetOrgAuthConfigResult']:
|
81
|
+
return pulumi.get(self, "auth_config")
|
82
|
+
|
83
|
+
@property
|
84
|
+
@pulumi.getter(name="cplnId")
|
85
|
+
def cpln_id(self) -> builtins.str:
|
86
|
+
return pulumi.get(self, "cpln_id")
|
87
|
+
|
88
|
+
@property
|
89
|
+
@pulumi.getter
|
90
|
+
def description(self) -> builtins.str:
|
91
|
+
return pulumi.get(self, "description")
|
92
|
+
|
93
|
+
@property
|
94
|
+
@pulumi.getter
|
95
|
+
def id(self) -> builtins.str:
|
96
|
+
return pulumi.get(self, "id")
|
97
|
+
|
98
|
+
@property
|
99
|
+
@pulumi.getter
|
100
|
+
def invitees(self) -> Sequence[builtins.str]:
|
101
|
+
return pulumi.get(self, "invitees")
|
102
|
+
|
103
|
+
@property
|
104
|
+
@pulumi.getter
|
105
|
+
def name(self) -> builtins.str:
|
106
|
+
return pulumi.get(self, "name")
|
107
|
+
|
108
|
+
@property
|
109
|
+
@pulumi.getter
|
110
|
+
def observability(self) -> Optional['outputs.GetOrgObservabilityResult']:
|
111
|
+
return pulumi.get(self, "observability")
|
112
|
+
|
113
|
+
@property
|
114
|
+
@pulumi.getter
|
115
|
+
def security(self) -> Optional['outputs.GetOrgSecurityResult']:
|
116
|
+
return pulumi.get(self, "security")
|
117
|
+
|
118
|
+
@property
|
119
|
+
@pulumi.getter(name="selfLink")
|
120
|
+
def self_link(self) -> builtins.str:
|
121
|
+
return pulumi.get(self, "self_link")
|
122
|
+
|
123
|
+
@property
|
124
|
+
@pulumi.getter(name="sessionTimeoutSeconds")
|
125
|
+
def session_timeout_seconds(self) -> builtins.int:
|
126
|
+
return pulumi.get(self, "session_timeout_seconds")
|
127
|
+
|
128
|
+
@property
|
129
|
+
@pulumi.getter
|
130
|
+
def statuses(self) -> Sequence['outputs.GetOrgStatusResult']:
|
131
|
+
return pulumi.get(self, "statuses")
|
132
|
+
|
133
|
+
@property
|
134
|
+
@pulumi.getter
|
135
|
+
def tags(self) -> Mapping[str, builtins.str]:
|
136
|
+
return pulumi.get(self, "tags")
|
137
|
+
|
138
|
+
|
139
|
+
class AwaitableGetOrgResult(GetOrgResult):
|
140
|
+
# pylint: disable=using-constant-test
|
141
|
+
def __await__(self):
|
142
|
+
if False:
|
143
|
+
yield self
|
144
|
+
return GetOrgResult(
|
145
|
+
account_id=self.account_id,
|
146
|
+
auth_config=self.auth_config,
|
147
|
+
cpln_id=self.cpln_id,
|
148
|
+
description=self.description,
|
149
|
+
id=self.id,
|
150
|
+
invitees=self.invitees,
|
151
|
+
name=self.name,
|
152
|
+
observability=self.observability,
|
153
|
+
security=self.security,
|
154
|
+
self_link=self.self_link,
|
155
|
+
session_timeout_seconds=self.session_timeout_seconds,
|
156
|
+
statuses=self.statuses,
|
157
|
+
tags=self.tags)
|
158
|
+
|
159
|
+
|
160
|
+
def get_org(auth_config: Optional[Union['GetOrgAuthConfigArgs', 'GetOrgAuthConfigArgsDict']] = None,
|
161
|
+
observability: Optional[Union['GetOrgObservabilityArgs', 'GetOrgObservabilityArgsDict']] = None,
|
162
|
+
security: Optional[Union['GetOrgSecurityArgs', 'GetOrgSecurityArgsDict']] = None,
|
163
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetOrgResult:
|
164
|
+
"""
|
165
|
+
Output the ID and name of the current [org](https://docs.controlplane.com/reference/org).
|
166
|
+
|
167
|
+
## Outputs
|
168
|
+
|
169
|
+
The following attributes are exported:
|
170
|
+
|
171
|
+
- **cpln_id** (String) The ID, in GUID format, of the org.
|
172
|
+
- **name** (String) The name of org.
|
173
|
+
|
174
|
+
## Example Usage
|
175
|
+
|
176
|
+
```python
|
177
|
+
import pulumi
|
178
|
+
import pulumi_cpln as cpln
|
179
|
+
|
180
|
+
org = cpln.get_org()
|
181
|
+
pulumi.export("orgId", org.id)
|
182
|
+
pulumi.export("orgName", org.name)
|
183
|
+
```
|
184
|
+
"""
|
185
|
+
__args__ = dict()
|
186
|
+
__args__['authConfig'] = auth_config
|
187
|
+
__args__['observability'] = observability
|
188
|
+
__args__['security'] = security
|
189
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
190
|
+
__ret__ = pulumi.runtime.invoke('cpln:index/getOrg:getOrg', __args__, opts=opts, typ=GetOrgResult).value
|
191
|
+
|
192
|
+
return AwaitableGetOrgResult(
|
193
|
+
account_id=pulumi.get(__ret__, 'account_id'),
|
194
|
+
auth_config=pulumi.get(__ret__, 'auth_config'),
|
195
|
+
cpln_id=pulumi.get(__ret__, 'cpln_id'),
|
196
|
+
description=pulumi.get(__ret__, 'description'),
|
197
|
+
id=pulumi.get(__ret__, 'id'),
|
198
|
+
invitees=pulumi.get(__ret__, 'invitees'),
|
199
|
+
name=pulumi.get(__ret__, 'name'),
|
200
|
+
observability=pulumi.get(__ret__, 'observability'),
|
201
|
+
security=pulumi.get(__ret__, 'security'),
|
202
|
+
self_link=pulumi.get(__ret__, 'self_link'),
|
203
|
+
session_timeout_seconds=pulumi.get(__ret__, 'session_timeout_seconds'),
|
204
|
+
statuses=pulumi.get(__ret__, 'statuses'),
|
205
|
+
tags=pulumi.get(__ret__, 'tags'))
|
206
|
+
def get_org_output(auth_config: Optional[pulumi.Input[Optional[Union['GetOrgAuthConfigArgs', 'GetOrgAuthConfigArgsDict']]]] = None,
|
207
|
+
observability: Optional[pulumi.Input[Optional[Union['GetOrgObservabilityArgs', 'GetOrgObservabilityArgsDict']]]] = None,
|
208
|
+
security: Optional[pulumi.Input[Optional[Union['GetOrgSecurityArgs', 'GetOrgSecurityArgsDict']]]] = None,
|
209
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetOrgResult]:
|
210
|
+
"""
|
211
|
+
Output the ID and name of the current [org](https://docs.controlplane.com/reference/org).
|
212
|
+
|
213
|
+
## Outputs
|
214
|
+
|
215
|
+
The following attributes are exported:
|
216
|
+
|
217
|
+
- **cpln_id** (String) The ID, in GUID format, of the org.
|
218
|
+
- **name** (String) The name of org.
|
219
|
+
|
220
|
+
## Example Usage
|
221
|
+
|
222
|
+
```python
|
223
|
+
import pulumi
|
224
|
+
import pulumi_cpln as cpln
|
225
|
+
|
226
|
+
org = cpln.get_org()
|
227
|
+
pulumi.export("orgId", org.id)
|
228
|
+
pulumi.export("orgName", org.name)
|
229
|
+
```
|
230
|
+
"""
|
231
|
+
__args__ = dict()
|
232
|
+
__args__['authConfig'] = auth_config
|
233
|
+
__args__['observability'] = observability
|
234
|
+
__args__['security'] = security
|
235
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
236
|
+
__ret__ = pulumi.runtime.invoke_output('cpln:index/getOrg:getOrg', __args__, opts=opts, typ=GetOrgResult)
|
237
|
+
return __ret__.apply(lambda __response__: GetOrgResult(
|
238
|
+
account_id=pulumi.get(__response__, 'account_id'),
|
239
|
+
auth_config=pulumi.get(__response__, 'auth_config'),
|
240
|
+
cpln_id=pulumi.get(__response__, 'cpln_id'),
|
241
|
+
description=pulumi.get(__response__, 'description'),
|
242
|
+
id=pulumi.get(__response__, 'id'),
|
243
|
+
invitees=pulumi.get(__response__, 'invitees'),
|
244
|
+
name=pulumi.get(__response__, 'name'),
|
245
|
+
observability=pulumi.get(__response__, 'observability'),
|
246
|
+
security=pulumi.get(__response__, 'security'),
|
247
|
+
self_link=pulumi.get(__response__, 'self_link'),
|
248
|
+
session_timeout_seconds=pulumi.get(__response__, 'session_timeout_seconds'),
|
249
|
+
statuses=pulumi.get(__response__, 'statuses'),
|
250
|
+
tags=pulumi.get(__response__, 'tags')))
|