pulumiverse-scaleway 1.28.0a1747384911__py3-none-any.whl → 1.29.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 (49) hide show
  1. pulumiverse_scaleway/__init__.py +0 -1
  2. pulumiverse_scaleway/_inputs.py +106 -0
  3. pulumiverse_scaleway/account/__init__.py +2 -0
  4. pulumiverse_scaleway/account/get_projects.py +235 -0
  5. pulumiverse_scaleway/account/outputs.py +95 -0
  6. pulumiverse_scaleway/baremetal_server.py +20 -1
  7. pulumiverse_scaleway/block/__init__.py +2 -0
  8. pulumiverse_scaleway/block/_inputs.py +73 -0
  9. pulumiverse_scaleway/block/get_snapshot.py +13 -1
  10. pulumiverse_scaleway/block/outputs.py +79 -0
  11. pulumiverse_scaleway/block/snapshot.py +62 -14
  12. pulumiverse_scaleway/block_snapshot.py +62 -14
  13. pulumiverse_scaleway/container.py +2 -2
  14. pulumiverse_scaleway/containers/container.py +2 -2
  15. pulumiverse_scaleway/database_instance.py +20 -1
  16. pulumiverse_scaleway/databases/instance.py +20 -1
  17. pulumiverse_scaleway/domain/get_zone.py +7 -1
  18. pulumiverse_scaleway/elasticmetal/__init__.py +1 -1
  19. pulumiverse_scaleway/elasticmetal/get_partition_schema.py +215 -0
  20. pulumiverse_scaleway/elasticmetal/server.py +20 -1
  21. pulumiverse_scaleway/get_block_snapshot.py +13 -1
  22. pulumiverse_scaleway/get_domain_zone.py +7 -1
  23. pulumiverse_scaleway/get_mongo_db_instance.py +12 -1
  24. pulumiverse_scaleway/iam/user.py +468 -14
  25. pulumiverse_scaleway/iam_user.py +468 -14
  26. pulumiverse_scaleway/instance/private_nic.py +20 -1
  27. pulumiverse_scaleway/instance/server.py +20 -1
  28. pulumiverse_scaleway/instance/snapshot.py +28 -7
  29. pulumiverse_scaleway/instance/volume.py +28 -7
  30. pulumiverse_scaleway/instance_private_nic.py +20 -1
  31. pulumiverse_scaleway/instance_server.py +20 -1
  32. pulumiverse_scaleway/instance_snapshot.py +28 -7
  33. pulumiverse_scaleway/instance_volume.py +28 -7
  34. pulumiverse_scaleway/mongo_db_instance.py +107 -7
  35. pulumiverse_scaleway/mongodb/_inputs.py +54 -0
  36. pulumiverse_scaleway/mongodb/get_instance.py +12 -1
  37. pulumiverse_scaleway/mongodb/instance.py +107 -7
  38. pulumiverse_scaleway/mongodb/outputs.py +62 -0
  39. pulumiverse_scaleway/network/gateway_network.py +20 -1
  40. pulumiverse_scaleway/observability/__init__.py +0 -1
  41. pulumiverse_scaleway/outputs.py +122 -0
  42. pulumiverse_scaleway/pulumi-plugin.json +1 -1
  43. pulumiverse_scaleway/redis/cluster.py +20 -1
  44. pulumiverse_scaleway/redis_cluster.py +20 -1
  45. pulumiverse_scaleway/vpc_gateway_network.py +20 -1
  46. {pulumiverse_scaleway-1.28.0a1747384911.dist-info → pulumiverse_scaleway-1.29.0.dist-info}/METADATA +1 -1
  47. {pulumiverse_scaleway-1.28.0a1747384911.dist-info → pulumiverse_scaleway-1.29.0.dist-info}/RECORD +49 -44
  48. {pulumiverse_scaleway-1.28.0a1747384911.dist-info → pulumiverse_scaleway-1.29.0.dist-info}/WHEEL +1 -1
  49. {pulumiverse_scaleway-1.28.0a1747384911.dist-info → pulumiverse_scaleway-1.29.0.dist-info}/top_level.txt +0 -0
@@ -13,6 +13,7 @@ if sys.version_info >= (3, 11):
13
13
  else:
14
14
  from typing_extensions import NotRequired, TypedDict, TypeAlias
15
15
  from .. import _utilities
16
+ from . import outputs
16
17
 
17
18
  __all__ = [
18
19
  'GetSnapshotResult',
@@ -26,10 +27,13 @@ class GetSnapshotResult:
26
27
  """
27
28
  A collection of values returned by getSnapshot.
28
29
  """
29
- def __init__(__self__, id=None, name=None, project_id=None, snapshot_id=None, tags=None, volume_id=None, zone=None):
30
+ def __init__(__self__, id=None, imports=None, name=None, project_id=None, snapshot_id=None, tags=None, volume_id=None, zone=None):
30
31
  if id and not isinstance(id, str):
31
32
  raise TypeError("Expected argument 'id' to be a str")
32
33
  pulumi.set(__self__, "id", id)
34
+ if imports and not isinstance(imports, list):
35
+ raise TypeError("Expected argument 'imports' to be a list")
36
+ pulumi.set(__self__, "imports", imports)
33
37
  if name and not isinstance(name, str):
34
38
  raise TypeError("Expected argument 'name' to be a str")
35
39
  pulumi.set(__self__, "name", name)
@@ -57,6 +61,11 @@ class GetSnapshotResult:
57
61
  """
58
62
  return pulumi.get(self, "id")
59
63
 
64
+ @property
65
+ @pulumi.getter
66
+ def imports(self) -> Sequence['outputs.GetSnapshotImportResult']:
67
+ return pulumi.get(self, "imports")
68
+
60
69
  @property
61
70
  @pulumi.getter
62
71
  def name(self) -> Optional[str]:
@@ -95,6 +104,7 @@ class AwaitableGetSnapshotResult(GetSnapshotResult):
95
104
  yield self
96
105
  return GetSnapshotResult(
97
106
  id=self.id,
107
+ imports=self.imports,
98
108
  name=self.name,
99
109
  project_id=self.project_id,
100
110
  snapshot_id=self.snapshot_id,
@@ -132,6 +142,7 @@ def get_snapshot(name: Optional[str] = None,
132
142
 
133
143
  return AwaitableGetSnapshotResult(
134
144
  id=pulumi.get(__ret__, 'id'),
145
+ imports=pulumi.get(__ret__, 'imports'),
135
146
  name=pulumi.get(__ret__, 'name'),
136
147
  project_id=pulumi.get(__ret__, 'project_id'),
137
148
  snapshot_id=pulumi.get(__ret__, 'snapshot_id'),
@@ -166,6 +177,7 @@ def get_snapshot_output(name: Optional[pulumi.Input[Optional[str]]] = None,
166
177
  __ret__ = pulumi.runtime.invoke_output('scaleway:block/getSnapshot:getSnapshot', __args__, opts=opts, typ=GetSnapshotResult)
167
178
  return __ret__.apply(lambda __response__: GetSnapshotResult(
168
179
  id=pulumi.get(__response__, 'id'),
180
+ imports=pulumi.get(__response__, 'imports'),
169
181
  name=pulumi.get(__response__, 'name'),
170
182
  project_id=pulumi.get(__response__, 'project_id'),
171
183
  snapshot_id=pulumi.get(__response__, 'snapshot_id'),
@@ -0,0 +1,79 @@
1
+ # coding=utf-8
2
+ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
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__ = [
18
+ 'SnapshotImport',
19
+ 'GetSnapshotImportResult',
20
+ ]
21
+
22
+ @pulumi.output_type
23
+ class SnapshotImport(dict):
24
+ def __init__(__self__, *,
25
+ bucket: str,
26
+ key: str):
27
+ """
28
+ :param str bucket: Bucket containing qcow
29
+ :param str key: Key of the qcow file in the specified bucket
30
+ """
31
+ pulumi.set(__self__, "bucket", bucket)
32
+ pulumi.set(__self__, "key", key)
33
+
34
+ @property
35
+ @pulumi.getter
36
+ def bucket(self) -> str:
37
+ """
38
+ Bucket containing qcow
39
+ """
40
+ return pulumi.get(self, "bucket")
41
+
42
+ @property
43
+ @pulumi.getter
44
+ def key(self) -> str:
45
+ """
46
+ Key of the qcow file in the specified bucket
47
+ """
48
+ return pulumi.get(self, "key")
49
+
50
+
51
+ @pulumi.output_type
52
+ class GetSnapshotImportResult(dict):
53
+ def __init__(__self__, *,
54
+ bucket: str,
55
+ key: str):
56
+ """
57
+ :param str bucket: Bucket containing qcow
58
+ :param str key: Key of the qcow file in the specified bucket
59
+ """
60
+ pulumi.set(__self__, "bucket", bucket)
61
+ pulumi.set(__self__, "key", key)
62
+
63
+ @property
64
+ @pulumi.getter
65
+ def bucket(self) -> str:
66
+ """
67
+ Bucket containing qcow
68
+ """
69
+ return pulumi.get(self, "bucket")
70
+
71
+ @property
72
+ @pulumi.getter
73
+ def key(self) -> str:
74
+ """
75
+ Key of the qcow file in the specified bucket
76
+ """
77
+ return pulumi.get(self, "key")
78
+
79
+
@@ -13,46 +13,53 @@ if sys.version_info >= (3, 11):
13
13
  else:
14
14
  from typing_extensions import NotRequired, TypedDict, TypeAlias
15
15
  from .. import _utilities
16
+ from . import outputs
17
+ from ._inputs import *
16
18
 
17
19
  __all__ = ['SnapshotArgs', 'Snapshot']
18
20
 
19
21
  @pulumi.input_type
20
22
  class SnapshotArgs:
21
23
  def __init__(__self__, *,
22
- volume_id: pulumi.Input[str],
24
+ import_: Optional[pulumi.Input['SnapshotImportArgs']] = None,
23
25
  name: Optional[pulumi.Input[str]] = None,
24
26
  project_id: Optional[pulumi.Input[str]] = None,
25
27
  tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
28
+ volume_id: Optional[pulumi.Input[str]] = None,
26
29
  zone: Optional[pulumi.Input[str]] = None):
27
30
  """
28
31
  The set of arguments for constructing a Snapshot resource.
29
- :param pulumi.Input[str] volume_id: The ID of the volume to take a snapshot from.
32
+ :param pulumi.Input['SnapshotImportArgs'] import_: Import snapshot from a qcow
30
33
  :param pulumi.Input[str] name: The name of the snapshot. If not provided, a name will be randomly generated.
31
34
  :param pulumi.Input[str] project_id: ). The ID of the Scaleway Project the snapshot is associated with.
32
35
  :param pulumi.Input[Sequence[pulumi.Input[str]]] tags: A list of tags to apply to the snapshot.
36
+ :param pulumi.Input[str] volume_id: The ID of the volume to take a snapshot from.
33
37
  :param pulumi.Input[str] zone: ). The zone in which the snapshot should be created.
34
38
  """
35
- pulumi.set(__self__, "volume_id", volume_id)
39
+ if import_ is not None:
40
+ pulumi.set(__self__, "import_", import_)
36
41
  if name is not None:
37
42
  pulumi.set(__self__, "name", name)
38
43
  if project_id is not None:
39
44
  pulumi.set(__self__, "project_id", project_id)
40
45
  if tags is not None:
41
46
  pulumi.set(__self__, "tags", tags)
47
+ if volume_id is not None:
48
+ pulumi.set(__self__, "volume_id", volume_id)
42
49
  if zone is not None:
43
50
  pulumi.set(__self__, "zone", zone)
44
51
 
45
52
  @property
46
- @pulumi.getter(name="volumeId")
47
- def volume_id(self) -> pulumi.Input[str]:
53
+ @pulumi.getter(name="import")
54
+ def import_(self) -> Optional[pulumi.Input['SnapshotImportArgs']]:
48
55
  """
49
- The ID of the volume to take a snapshot from.
56
+ Import snapshot from a qcow
50
57
  """
51
- return pulumi.get(self, "volume_id")
58
+ return pulumi.get(self, "import_")
52
59
 
53
- @volume_id.setter
54
- def volume_id(self, value: pulumi.Input[str]):
55
- pulumi.set(self, "volume_id", value)
60
+ @import_.setter
61
+ def import_(self, value: Optional[pulumi.Input['SnapshotImportArgs']]):
62
+ pulumi.set(self, "import_", value)
56
63
 
57
64
  @property
58
65
  @pulumi.getter
@@ -90,6 +97,18 @@ class SnapshotArgs:
90
97
  def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
91
98
  pulumi.set(self, "tags", value)
92
99
 
100
+ @property
101
+ @pulumi.getter(name="volumeId")
102
+ def volume_id(self) -> Optional[pulumi.Input[str]]:
103
+ """
104
+ The ID of the volume to take a snapshot from.
105
+ """
106
+ return pulumi.get(self, "volume_id")
107
+
108
+ @volume_id.setter
109
+ def volume_id(self, value: Optional[pulumi.Input[str]]):
110
+ pulumi.set(self, "volume_id", value)
111
+
93
112
  @property
94
113
  @pulumi.getter
95
114
  def zone(self) -> Optional[pulumi.Input[str]]:
@@ -106,6 +125,7 @@ class SnapshotArgs:
106
125
  @pulumi.input_type
107
126
  class _SnapshotState:
108
127
  def __init__(__self__, *,
128
+ import_: Optional[pulumi.Input['SnapshotImportArgs']] = None,
109
129
  name: Optional[pulumi.Input[str]] = None,
110
130
  project_id: Optional[pulumi.Input[str]] = None,
111
131
  tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
@@ -113,12 +133,15 @@ class _SnapshotState:
113
133
  zone: Optional[pulumi.Input[str]] = None):
114
134
  """
115
135
  Input properties used for looking up and filtering Snapshot resources.
136
+ :param pulumi.Input['SnapshotImportArgs'] import_: Import snapshot from a qcow
116
137
  :param pulumi.Input[str] name: The name of the snapshot. If not provided, a name will be randomly generated.
117
138
  :param pulumi.Input[str] project_id: ). The ID of the Scaleway Project the snapshot is associated with.
118
139
  :param pulumi.Input[Sequence[pulumi.Input[str]]] tags: A list of tags to apply to the snapshot.
119
140
  :param pulumi.Input[str] volume_id: The ID of the volume to take a snapshot from.
120
141
  :param pulumi.Input[str] zone: ). The zone in which the snapshot should be created.
121
142
  """
143
+ if import_ is not None:
144
+ pulumi.set(__self__, "import_", import_)
122
145
  if name is not None:
123
146
  pulumi.set(__self__, "name", name)
124
147
  if project_id is not None:
@@ -130,6 +153,18 @@ class _SnapshotState:
130
153
  if zone is not None:
131
154
  pulumi.set(__self__, "zone", zone)
132
155
 
156
+ @property
157
+ @pulumi.getter(name="import")
158
+ def import_(self) -> Optional[pulumi.Input['SnapshotImportArgs']]:
159
+ """
160
+ Import snapshot from a qcow
161
+ """
162
+ return pulumi.get(self, "import_")
163
+
164
+ @import_.setter
165
+ def import_(self, value: Optional[pulumi.Input['SnapshotImportArgs']]):
166
+ pulumi.set(self, "import_", value)
167
+
133
168
  @property
134
169
  @pulumi.getter
135
170
  def name(self) -> Optional[pulumi.Input[str]]:
@@ -196,6 +231,7 @@ class Snapshot(pulumi.CustomResource):
196
231
  def __init__(__self__,
197
232
  resource_name: str,
198
233
  opts: Optional[pulumi.ResourceOptions] = None,
234
+ import_: Optional[pulumi.Input[Union['SnapshotImportArgs', 'SnapshotImportArgsDict']]] = None,
199
235
  name: Optional[pulumi.Input[str]] = None,
200
236
  project_id: Optional[pulumi.Input[str]] = None,
201
237
  tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
@@ -238,6 +274,7 @@ class Snapshot(pulumi.CustomResource):
238
274
 
239
275
  :param str resource_name: The name of the resource.
240
276
  :param pulumi.ResourceOptions opts: Options for the resource.
277
+ :param pulumi.Input[Union['SnapshotImportArgs', 'SnapshotImportArgsDict']] import_: Import snapshot from a qcow
241
278
  :param pulumi.Input[str] name: The name of the snapshot. If not provided, a name will be randomly generated.
242
279
  :param pulumi.Input[str] project_id: ). The ID of the Scaleway Project the snapshot is associated with.
243
280
  :param pulumi.Input[Sequence[pulumi.Input[str]]] tags: A list of tags to apply to the snapshot.
@@ -248,7 +285,7 @@ class Snapshot(pulumi.CustomResource):
248
285
  @overload
249
286
  def __init__(__self__,
250
287
  resource_name: str,
251
- args: SnapshotArgs,
288
+ args: Optional[SnapshotArgs] = None,
252
289
  opts: Optional[pulumi.ResourceOptions] = None):
253
290
  """
254
291
  The `block.Snapshot` resource is used to create and manage snapshots of Block Storage volumes.
@@ -299,6 +336,7 @@ class Snapshot(pulumi.CustomResource):
299
336
  def _internal_init(__self__,
300
337
  resource_name: str,
301
338
  opts: Optional[pulumi.ResourceOptions] = None,
339
+ import_: Optional[pulumi.Input[Union['SnapshotImportArgs', 'SnapshotImportArgsDict']]] = None,
302
340
  name: Optional[pulumi.Input[str]] = None,
303
341
  project_id: Optional[pulumi.Input[str]] = None,
304
342
  tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
@@ -313,11 +351,10 @@ class Snapshot(pulumi.CustomResource):
313
351
  raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
314
352
  __props__ = SnapshotArgs.__new__(SnapshotArgs)
315
353
 
354
+ __props__.__dict__["import_"] = import_
316
355
  __props__.__dict__["name"] = name
317
356
  __props__.__dict__["project_id"] = project_id
318
357
  __props__.__dict__["tags"] = tags
319
- if volume_id is None and not opts.urn:
320
- raise TypeError("Missing required property 'volume_id'")
321
358
  __props__.__dict__["volume_id"] = volume_id
322
359
  __props__.__dict__["zone"] = zone
323
360
  alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="scaleway:index/blockSnapshot:BlockSnapshot")])
@@ -332,6 +369,7 @@ class Snapshot(pulumi.CustomResource):
332
369
  def get(resource_name: str,
333
370
  id: pulumi.Input[str],
334
371
  opts: Optional[pulumi.ResourceOptions] = None,
372
+ import_: Optional[pulumi.Input[Union['SnapshotImportArgs', 'SnapshotImportArgsDict']]] = None,
335
373
  name: Optional[pulumi.Input[str]] = None,
336
374
  project_id: Optional[pulumi.Input[str]] = None,
337
375
  tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
@@ -344,6 +382,7 @@ class Snapshot(pulumi.CustomResource):
344
382
  :param str resource_name: The unique name of the resulting resource.
345
383
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
346
384
  :param pulumi.ResourceOptions opts: Options for the resource.
385
+ :param pulumi.Input[Union['SnapshotImportArgs', 'SnapshotImportArgsDict']] import_: Import snapshot from a qcow
347
386
  :param pulumi.Input[str] name: The name of the snapshot. If not provided, a name will be randomly generated.
348
387
  :param pulumi.Input[str] project_id: ). The ID of the Scaleway Project the snapshot is associated with.
349
388
  :param pulumi.Input[Sequence[pulumi.Input[str]]] tags: A list of tags to apply to the snapshot.
@@ -354,6 +393,7 @@ class Snapshot(pulumi.CustomResource):
354
393
 
355
394
  __props__ = _SnapshotState.__new__(_SnapshotState)
356
395
 
396
+ __props__.__dict__["import_"] = import_
357
397
  __props__.__dict__["name"] = name
358
398
  __props__.__dict__["project_id"] = project_id
359
399
  __props__.__dict__["tags"] = tags
@@ -361,6 +401,14 @@ class Snapshot(pulumi.CustomResource):
361
401
  __props__.__dict__["zone"] = zone
362
402
  return Snapshot(resource_name, opts=opts, __props__=__props__)
363
403
 
404
+ @property
405
+ @pulumi.getter(name="import")
406
+ def import_(self) -> pulumi.Output[Optional['outputs.SnapshotImport']]:
407
+ """
408
+ Import snapshot from a qcow
409
+ """
410
+ return pulumi.get(self, "import_")
411
+
364
412
  @property
365
413
  @pulumi.getter
366
414
  def name(self) -> pulumi.Output[str]:
@@ -387,7 +435,7 @@ class Snapshot(pulumi.CustomResource):
387
435
 
388
436
  @property
389
437
  @pulumi.getter(name="volumeId")
390
- def volume_id(self) -> pulumi.Output[str]:
438
+ def volume_id(self) -> pulumi.Output[Optional[str]]:
391
439
  """
392
440
  The ID of the volume to take a snapshot from.
393
441
  """
@@ -13,46 +13,53 @@ if sys.version_info >= (3, 11):
13
13
  else:
14
14
  from typing_extensions import NotRequired, TypedDict, TypeAlias
15
15
  from . import _utilities
16
+ from . import outputs
17
+ from ._inputs import *
16
18
 
17
19
  __all__ = ['BlockSnapshotArgs', 'BlockSnapshot']
18
20
 
19
21
  @pulumi.input_type
20
22
  class BlockSnapshotArgs:
21
23
  def __init__(__self__, *,
22
- volume_id: pulumi.Input[str],
24
+ import_: Optional[pulumi.Input['BlockSnapshotImportArgs']] = None,
23
25
  name: Optional[pulumi.Input[str]] = None,
24
26
  project_id: Optional[pulumi.Input[str]] = None,
25
27
  tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
28
+ volume_id: Optional[pulumi.Input[str]] = None,
26
29
  zone: Optional[pulumi.Input[str]] = None):
27
30
  """
28
31
  The set of arguments for constructing a BlockSnapshot resource.
29
- :param pulumi.Input[str] volume_id: The ID of the volume to take a snapshot from.
32
+ :param pulumi.Input['BlockSnapshotImportArgs'] import_: Import snapshot from a qcow
30
33
  :param pulumi.Input[str] name: The name of the snapshot. If not provided, a name will be randomly generated.
31
34
  :param pulumi.Input[str] project_id: ). The ID of the Scaleway Project the snapshot is associated with.
32
35
  :param pulumi.Input[Sequence[pulumi.Input[str]]] tags: A list of tags to apply to the snapshot.
36
+ :param pulumi.Input[str] volume_id: The ID of the volume to take a snapshot from.
33
37
  :param pulumi.Input[str] zone: ). The zone in which the snapshot should be created.
34
38
  """
35
- pulumi.set(__self__, "volume_id", volume_id)
39
+ if import_ is not None:
40
+ pulumi.set(__self__, "import_", import_)
36
41
  if name is not None:
37
42
  pulumi.set(__self__, "name", name)
38
43
  if project_id is not None:
39
44
  pulumi.set(__self__, "project_id", project_id)
40
45
  if tags is not None:
41
46
  pulumi.set(__self__, "tags", tags)
47
+ if volume_id is not None:
48
+ pulumi.set(__self__, "volume_id", volume_id)
42
49
  if zone is not None:
43
50
  pulumi.set(__self__, "zone", zone)
44
51
 
45
52
  @property
46
- @pulumi.getter(name="volumeId")
47
- def volume_id(self) -> pulumi.Input[str]:
53
+ @pulumi.getter(name="import")
54
+ def import_(self) -> Optional[pulumi.Input['BlockSnapshotImportArgs']]:
48
55
  """
49
- The ID of the volume to take a snapshot from.
56
+ Import snapshot from a qcow
50
57
  """
51
- return pulumi.get(self, "volume_id")
58
+ return pulumi.get(self, "import_")
52
59
 
53
- @volume_id.setter
54
- def volume_id(self, value: pulumi.Input[str]):
55
- pulumi.set(self, "volume_id", value)
60
+ @import_.setter
61
+ def import_(self, value: Optional[pulumi.Input['BlockSnapshotImportArgs']]):
62
+ pulumi.set(self, "import_", value)
56
63
 
57
64
  @property
58
65
  @pulumi.getter
@@ -90,6 +97,18 @@ class BlockSnapshotArgs:
90
97
  def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
91
98
  pulumi.set(self, "tags", value)
92
99
 
100
+ @property
101
+ @pulumi.getter(name="volumeId")
102
+ def volume_id(self) -> Optional[pulumi.Input[str]]:
103
+ """
104
+ The ID of the volume to take a snapshot from.
105
+ """
106
+ return pulumi.get(self, "volume_id")
107
+
108
+ @volume_id.setter
109
+ def volume_id(self, value: Optional[pulumi.Input[str]]):
110
+ pulumi.set(self, "volume_id", value)
111
+
93
112
  @property
94
113
  @pulumi.getter
95
114
  def zone(self) -> Optional[pulumi.Input[str]]:
@@ -106,6 +125,7 @@ class BlockSnapshotArgs:
106
125
  @pulumi.input_type
107
126
  class _BlockSnapshotState:
108
127
  def __init__(__self__, *,
128
+ import_: Optional[pulumi.Input['BlockSnapshotImportArgs']] = None,
109
129
  name: Optional[pulumi.Input[str]] = None,
110
130
  project_id: Optional[pulumi.Input[str]] = None,
111
131
  tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
@@ -113,12 +133,15 @@ class _BlockSnapshotState:
113
133
  zone: Optional[pulumi.Input[str]] = None):
114
134
  """
115
135
  Input properties used for looking up and filtering BlockSnapshot resources.
136
+ :param pulumi.Input['BlockSnapshotImportArgs'] import_: Import snapshot from a qcow
116
137
  :param pulumi.Input[str] name: The name of the snapshot. If not provided, a name will be randomly generated.
117
138
  :param pulumi.Input[str] project_id: ). The ID of the Scaleway Project the snapshot is associated with.
118
139
  :param pulumi.Input[Sequence[pulumi.Input[str]]] tags: A list of tags to apply to the snapshot.
119
140
  :param pulumi.Input[str] volume_id: The ID of the volume to take a snapshot from.
120
141
  :param pulumi.Input[str] zone: ). The zone in which the snapshot should be created.
121
142
  """
143
+ if import_ is not None:
144
+ pulumi.set(__self__, "import_", import_)
122
145
  if name is not None:
123
146
  pulumi.set(__self__, "name", name)
124
147
  if project_id is not None:
@@ -130,6 +153,18 @@ class _BlockSnapshotState:
130
153
  if zone is not None:
131
154
  pulumi.set(__self__, "zone", zone)
132
155
 
156
+ @property
157
+ @pulumi.getter(name="import")
158
+ def import_(self) -> Optional[pulumi.Input['BlockSnapshotImportArgs']]:
159
+ """
160
+ Import snapshot from a qcow
161
+ """
162
+ return pulumi.get(self, "import_")
163
+
164
+ @import_.setter
165
+ def import_(self, value: Optional[pulumi.Input['BlockSnapshotImportArgs']]):
166
+ pulumi.set(self, "import_", value)
167
+
133
168
  @property
134
169
  @pulumi.getter
135
170
  def name(self) -> Optional[pulumi.Input[str]]:
@@ -201,6 +236,7 @@ class BlockSnapshot(pulumi.CustomResource):
201
236
  def __init__(__self__,
202
237
  resource_name: str,
203
238
  opts: Optional[pulumi.ResourceOptions] = None,
239
+ import_: Optional[pulumi.Input[Union['BlockSnapshotImportArgs', 'BlockSnapshotImportArgsDict']]] = None,
204
240
  name: Optional[pulumi.Input[str]] = None,
205
241
  project_id: Optional[pulumi.Input[str]] = None,
206
242
  tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
@@ -243,6 +279,7 @@ class BlockSnapshot(pulumi.CustomResource):
243
279
 
244
280
  :param str resource_name: The name of the resource.
245
281
  :param pulumi.ResourceOptions opts: Options for the resource.
282
+ :param pulumi.Input[Union['BlockSnapshotImportArgs', 'BlockSnapshotImportArgsDict']] import_: Import snapshot from a qcow
246
283
  :param pulumi.Input[str] name: The name of the snapshot. If not provided, a name will be randomly generated.
247
284
  :param pulumi.Input[str] project_id: ). The ID of the Scaleway Project the snapshot is associated with.
248
285
  :param pulumi.Input[Sequence[pulumi.Input[str]]] tags: A list of tags to apply to the snapshot.
@@ -253,7 +290,7 @@ class BlockSnapshot(pulumi.CustomResource):
253
290
  @overload
254
291
  def __init__(__self__,
255
292
  resource_name: str,
256
- args: BlockSnapshotArgs,
293
+ args: Optional[BlockSnapshotArgs] = None,
257
294
  opts: Optional[pulumi.ResourceOptions] = None):
258
295
  """
259
296
  The `block.Snapshot` resource is used to create and manage snapshots of Block Storage volumes.
@@ -304,6 +341,7 @@ class BlockSnapshot(pulumi.CustomResource):
304
341
  def _internal_init(__self__,
305
342
  resource_name: str,
306
343
  opts: Optional[pulumi.ResourceOptions] = None,
344
+ import_: Optional[pulumi.Input[Union['BlockSnapshotImportArgs', 'BlockSnapshotImportArgsDict']]] = None,
307
345
  name: Optional[pulumi.Input[str]] = None,
308
346
  project_id: Optional[pulumi.Input[str]] = None,
309
347
  tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
@@ -319,11 +357,10 @@ class BlockSnapshot(pulumi.CustomResource):
319
357
  raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
320
358
  __props__ = BlockSnapshotArgs.__new__(BlockSnapshotArgs)
321
359
 
360
+ __props__.__dict__["import_"] = import_
322
361
  __props__.__dict__["name"] = name
323
362
  __props__.__dict__["project_id"] = project_id
324
363
  __props__.__dict__["tags"] = tags
325
- if volume_id is None and not opts.urn:
326
- raise TypeError("Missing required property 'volume_id'")
327
364
  __props__.__dict__["volume_id"] = volume_id
328
365
  __props__.__dict__["zone"] = zone
329
366
  super(BlockSnapshot, __self__).__init__(
@@ -336,6 +373,7 @@ class BlockSnapshot(pulumi.CustomResource):
336
373
  def get(resource_name: str,
337
374
  id: pulumi.Input[str],
338
375
  opts: Optional[pulumi.ResourceOptions] = None,
376
+ import_: Optional[pulumi.Input[Union['BlockSnapshotImportArgs', 'BlockSnapshotImportArgsDict']]] = None,
339
377
  name: Optional[pulumi.Input[str]] = None,
340
378
  project_id: Optional[pulumi.Input[str]] = None,
341
379
  tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
@@ -348,6 +386,7 @@ class BlockSnapshot(pulumi.CustomResource):
348
386
  :param str resource_name: The unique name of the resulting resource.
349
387
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
350
388
  :param pulumi.ResourceOptions opts: Options for the resource.
389
+ :param pulumi.Input[Union['BlockSnapshotImportArgs', 'BlockSnapshotImportArgsDict']] import_: Import snapshot from a qcow
351
390
  :param pulumi.Input[str] name: The name of the snapshot. If not provided, a name will be randomly generated.
352
391
  :param pulumi.Input[str] project_id: ). The ID of the Scaleway Project the snapshot is associated with.
353
392
  :param pulumi.Input[Sequence[pulumi.Input[str]]] tags: A list of tags to apply to the snapshot.
@@ -358,6 +397,7 @@ class BlockSnapshot(pulumi.CustomResource):
358
397
 
359
398
  __props__ = _BlockSnapshotState.__new__(_BlockSnapshotState)
360
399
 
400
+ __props__.__dict__["import_"] = import_
361
401
  __props__.__dict__["name"] = name
362
402
  __props__.__dict__["project_id"] = project_id
363
403
  __props__.__dict__["tags"] = tags
@@ -365,6 +405,14 @@ class BlockSnapshot(pulumi.CustomResource):
365
405
  __props__.__dict__["zone"] = zone
366
406
  return BlockSnapshot(resource_name, opts=opts, __props__=__props__)
367
407
 
408
+ @property
409
+ @pulumi.getter(name="import")
410
+ def import_(self) -> pulumi.Output[Optional['outputs.BlockSnapshotImport']]:
411
+ """
412
+ Import snapshot from a qcow
413
+ """
414
+ return pulumi.get(self, "import_")
415
+
368
416
  @property
369
417
  @pulumi.getter
370
418
  def name(self) -> pulumi.Output[str]:
@@ -391,7 +439,7 @@ class BlockSnapshot(pulumi.CustomResource):
391
439
 
392
440
  @property
393
441
  @pulumi.getter(name="volumeId")
394
- def volume_id(self) -> pulumi.Output[str]:
442
+ def volume_id(self) -> pulumi.Output[Optional[str]]:
395
443
  """
396
444
  The ID of the volume to take a snapshot from.
397
445
  """
@@ -1008,7 +1008,7 @@ class Container(pulumi.CustomResource):
1008
1008
  "path": "/ping",
1009
1009
  }],
1010
1010
  "failure_threshold": 40,
1011
- "interval": "3s",
1011
+ "interval": "5s",
1012
1012
  }])
1013
1013
  ```
1014
1014
 
@@ -1186,7 +1186,7 @@ class Container(pulumi.CustomResource):
1186
1186
  "path": "/ping",
1187
1187
  }],
1188
1188
  "failure_threshold": 40,
1189
- "interval": "3s",
1189
+ "interval": "5s",
1190
1190
  }])
1191
1191
  ```
1192
1192
 
@@ -1003,7 +1003,7 @@ class Container(pulumi.CustomResource):
1003
1003
  "path": "/ping",
1004
1004
  }],
1005
1005
  "failure_threshold": 40,
1006
- "interval": "3s",
1006
+ "interval": "5s",
1007
1007
  }])
1008
1008
  ```
1009
1009
 
@@ -1181,7 +1181,7 @@ class Container(pulumi.CustomResource):
1181
1181
  "path": "/ping",
1182
1182
  }],
1183
1183
  "failure_threshold": 40,
1184
- "interval": "3s",
1184
+ "interval": "5s",
1185
1185
  }])
1186
1186
  ```
1187
1187