pulumi-digitalocean 4.40.0a1739511652__py3-none-any.whl → 4.56.0a1766428645__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.
- pulumi_digitalocean/__init__.py +224 -1
- pulumi_digitalocean/_enums.py +19 -9
- pulumi_digitalocean/_inputs.py +17037 -4771
- pulumi_digitalocean/_utilities.py +1 -1
- pulumi_digitalocean/app.py +238 -88
- pulumi_digitalocean/byoip_prefix.py +452 -0
- pulumi_digitalocean/cdn.py +106 -105
- pulumi_digitalocean/certificate.py +139 -138
- pulumi_digitalocean/config/__init__.py +2 -1
- pulumi_digitalocean/config/__init__.pyi +2 -2
- pulumi_digitalocean/config/vars.py +11 -11
- pulumi_digitalocean/container_registries.py +285 -0
- pulumi_digitalocean/container_registry.py +90 -89
- pulumi_digitalocean/container_registry_docker_credentials.py +84 -83
- pulumi_digitalocean/custom_image.py +180 -179
- pulumi_digitalocean/database_cluster.py +402 -373
- pulumi_digitalocean/database_connection_pool.py +159 -158
- pulumi_digitalocean/database_db.py +37 -36
- pulumi_digitalocean/database_firewall.py +23 -22
- pulumi_digitalocean/database_kafka_config.py +309 -308
- pulumi_digitalocean/database_kafka_schema_registry.py +360 -0
- pulumi_digitalocean/database_kafka_topic.py +83 -82
- pulumi_digitalocean/database_logsink_opensearch.py +680 -0
- pulumi_digitalocean/database_logsink_rsyslog.py +842 -0
- pulumi_digitalocean/database_mongodb_config.py +105 -104
- pulumi_digitalocean/database_mysql_config.py +479 -478
- pulumi_digitalocean/database_online_migration.py +460 -0
- pulumi_digitalocean/database_opensearch_config.py +666 -665
- pulumi_digitalocean/database_postgresql_config.py +859 -858
- pulumi_digitalocean/database_redis_config.py +211 -206
- pulumi_digitalocean/database_replica.py +199 -198
- pulumi_digitalocean/database_user.py +93 -92
- pulumi_digitalocean/database_valkey_config.py +776 -0
- pulumi_digitalocean/dns_record.py +184 -183
- pulumi_digitalocean/domain.py +55 -54
- pulumi_digitalocean/droplet.py +403 -402
- pulumi_digitalocean/droplet_autoscale.py +55 -54
- pulumi_digitalocean/droplet_snapshot.py +73 -72
- pulumi_digitalocean/firewall.py +80 -79
- pulumi_digitalocean/floating_ip.py +63 -62
- pulumi_digitalocean/floating_ip_assignment.py +37 -36
- pulumi_digitalocean/genai_agent.py +1903 -0
- pulumi_digitalocean/genai_agent_knowledge_base_attachment.py +198 -0
- pulumi_digitalocean/genai_agent_route.py +354 -0
- pulumi_digitalocean/genai_function.py +464 -0
- pulumi_digitalocean/genai_indexing_job_cancel.py +542 -0
- pulumi_digitalocean/genai_knowledge_base.py +627 -0
- pulumi_digitalocean/genai_knowledge_base_data_source.py +220 -0
- pulumi_digitalocean/genai_openai_api_key.py +386 -0
- pulumi_digitalocean/get_account.py +18 -18
- pulumi_digitalocean/get_app.py +28 -28
- pulumi_digitalocean/get_byoip_prefix.py +214 -0
- pulumi_digitalocean/get_byoip_prefix_resources.py +150 -0
- pulumi_digitalocean/get_certificate.py +22 -22
- pulumi_digitalocean/get_container_registries.py +151 -0
- pulumi_digitalocean/get_container_registry.py +22 -22
- pulumi_digitalocean/get_database_ca.py +12 -12
- pulumi_digitalocean/get_database_cluster.py +76 -62
- pulumi_digitalocean/get_database_connection_pool.py +36 -36
- pulumi_digitalocean/get_database_metrics_credentials.py +120 -0
- pulumi_digitalocean/get_database_replica.py +46 -46
- pulumi_digitalocean/get_database_user.py +27 -27
- pulumi_digitalocean/get_domain.py +16 -16
- pulumi_digitalocean/get_domains.py +7 -7
- pulumi_digitalocean/get_droplet.py +72 -72
- pulumi_digitalocean/get_droplet_autoscale.py +23 -23
- pulumi_digitalocean/get_droplet_snapshot.py +38 -38
- pulumi_digitalocean/get_droplets.py +13 -13
- pulumi_digitalocean/get_firewall.py +31 -31
- pulumi_digitalocean/get_floating_ip.py +16 -16
- pulumi_digitalocean/get_genai_agent.py +572 -0
- pulumi_digitalocean/get_genai_agent_versions.py +128 -0
- pulumi_digitalocean/get_genai_agents.py +128 -0
- pulumi_digitalocean/get_genai_agents_by_openai_api_key.py +97 -0
- pulumi_digitalocean/get_genai_indexing_job.py +239 -0
- pulumi_digitalocean/get_genai_indexing_job_data_sources.py +97 -0
- pulumi_digitalocean/get_genai_knowledge_base.py +259 -0
- pulumi_digitalocean/get_genai_knowledge_base_data_sources.py +97 -0
- pulumi_digitalocean/get_genai_knowledge_base_indexing_jobs.py +108 -0
- pulumi_digitalocean/get_genai_knowledge_bases.py +113 -0
- pulumi_digitalocean/get_genai_models.py +113 -0
- pulumi_digitalocean/get_genai_openai_api_key.py +152 -0
- pulumi_digitalocean/get_genai_openai_api_keys.py +113 -0
- pulumi_digitalocean/get_genai_regions.py +113 -0
- pulumi_digitalocean/get_image.py +50 -50
- pulumi_digitalocean/get_images.py +7 -7
- pulumi_digitalocean/get_kubernetes_cluster.py +144 -53
- pulumi_digitalocean/get_kubernetes_versions.py +14 -14
- pulumi_digitalocean/get_load_balancer.py +70 -59
- pulumi_digitalocean/get_nfs.py +205 -0
- pulumi_digitalocean/get_nfs_snapshot.py +188 -0
- pulumi_digitalocean/get_partner_attachment.py +206 -0
- pulumi_digitalocean/get_partner_attachment_service_key.py +118 -0
- pulumi_digitalocean/get_project.py +32 -32
- pulumi_digitalocean/get_projects.py +7 -7
- pulumi_digitalocean/get_record.py +32 -32
- pulumi_digitalocean/get_records.py +13 -13
- pulumi_digitalocean/get_region.py +18 -18
- pulumi_digitalocean/get_regions.py +7 -7
- pulumi_digitalocean/get_reserved_ip.py +16 -16
- pulumi_digitalocean/get_reserved_ipv6.py +51 -16
- pulumi_digitalocean/get_sizes.py +141 -7
- pulumi_digitalocean/get_spaces_bucket.py +22 -22
- pulumi_digitalocean/get_spaces_bucket_object.py +58 -58
- pulumi_digitalocean/get_spaces_bucket_objects.py +46 -46
- pulumi_digitalocean/get_spaces_buckets.py +7 -7
- pulumi_digitalocean/get_spaces_key.py +157 -0
- pulumi_digitalocean/get_ssh_key.py +14 -14
- pulumi_digitalocean/get_ssh_keys.py +7 -7
- pulumi_digitalocean/get_tag.py +22 -22
- pulumi_digitalocean/get_tags.py +7 -7
- pulumi_digitalocean/get_volume.py +34 -34
- pulumi_digitalocean/get_volume_snapshot.py +40 -40
- pulumi_digitalocean/get_vpc.py +30 -30
- pulumi_digitalocean/get_vpc_nat_gateway.py +263 -0
- pulumi_digitalocean/get_vpc_peering.py +24 -24
- pulumi_digitalocean/kubernetes_cluster.py +572 -303
- pulumi_digitalocean/kubernetes_node_pool.py +170 -169
- pulumi_digitalocean/load_balancer.py +406 -372
- pulumi_digitalocean/monitor_alert.py +153 -156
- pulumi_digitalocean/nfs.py +481 -0
- pulumi_digitalocean/nfs_attachment.py +289 -0
- pulumi_digitalocean/nfs_snapshot.py +379 -0
- pulumi_digitalocean/outputs.py +26759 -7592
- pulumi_digitalocean/partner_attachment.py +555 -0
- pulumi_digitalocean/project.py +141 -140
- pulumi_digitalocean/project_resources.py +37 -36
- pulumi_digitalocean/provider.py +105 -84
- pulumi_digitalocean/pulumi-plugin.json +1 -1
- pulumi_digitalocean/reserved_ip.py +63 -62
- pulumi_digitalocean/reserved_ip_assignment.py +37 -36
- pulumi_digitalocean/reserved_ipv6.py +122 -62
- pulumi_digitalocean/reserved_ipv6_assignment.py +81 -30
- pulumi_digitalocean/spaces_bucket.py +107 -106
- pulumi_digitalocean/spaces_bucket_cors_configuration.py +40 -39
- pulumi_digitalocean/spaces_bucket_logging.py +346 -0
- pulumi_digitalocean/spaces_bucket_object.py +284 -283
- pulumi_digitalocean/spaces_bucket_policy.py +54 -53
- pulumi_digitalocean/spaces_key.py +388 -0
- pulumi_digitalocean/ssh_key.py +46 -45
- pulumi_digitalocean/tag.py +74 -73
- pulumi_digitalocean/uptime_alert.py +112 -111
- pulumi_digitalocean/uptime_check.py +90 -89
- pulumi_digitalocean/volume.py +183 -182
- pulumi_digitalocean/volume_attachment.py +37 -36
- pulumi_digitalocean/volume_snapshot.py +90 -89
- pulumi_digitalocean/vpc.py +100 -99
- pulumi_digitalocean/vpc_nat_gateway.py +722 -0
- pulumi_digitalocean/vpc_peering.py +55 -58
- {pulumi_digitalocean-4.40.0a1739511652.dist-info → pulumi_digitalocean-4.56.0a1766428645.dist-info}/METADATA +4 -4
- pulumi_digitalocean-4.56.0a1766428645.dist-info/RECORD +154 -0
- {pulumi_digitalocean-4.40.0a1739511652.dist-info → pulumi_digitalocean-4.56.0a1766428645.dist-info}/WHEEL +1 -1
- pulumi_digitalocean-4.40.0a1739511652.dist-info/RECORD +0 -108
- {pulumi_digitalocean-4.40.0a1739511652.dist-info → pulumi_digitalocean-4.56.0a1766428645.dist-info}/top_level.txt +0 -0
pulumi_digitalocean/volume.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import builtins as _builtins
|
|
6
6
|
import warnings
|
|
7
7
|
import sys
|
|
8
8
|
import pulumi
|
|
@@ -20,26 +20,26 @@ __all__ = ['VolumeArgs', 'Volume']
|
|
|
20
20
|
@pulumi.input_type
|
|
21
21
|
class VolumeArgs:
|
|
22
22
|
def __init__(__self__, *,
|
|
23
|
-
region: pulumi.Input[Union[str, 'Region']],
|
|
24
|
-
size: pulumi.Input[int],
|
|
25
|
-
description: Optional[pulumi.Input[str]] = None,
|
|
26
|
-
filesystem_type: Optional[pulumi.Input[str]] = None,
|
|
27
|
-
initial_filesystem_label: Optional[pulumi.Input[str]] = None,
|
|
28
|
-
initial_filesystem_type: Optional[pulumi.Input[Union[str, 'FileSystemType']]] = None,
|
|
29
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
30
|
-
snapshot_id: Optional[pulumi.Input[str]] = None,
|
|
31
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
|
|
23
|
+
region: pulumi.Input[Union[_builtins.str, 'Region']],
|
|
24
|
+
size: pulumi.Input[_builtins.int],
|
|
25
|
+
description: Optional[pulumi.Input[_builtins.str]] = None,
|
|
26
|
+
filesystem_type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
27
|
+
initial_filesystem_label: Optional[pulumi.Input[_builtins.str]] = None,
|
|
28
|
+
initial_filesystem_type: Optional[pulumi.Input[Union[_builtins.str, 'FileSystemType']]] = None,
|
|
29
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
30
|
+
snapshot_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
31
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None):
|
|
32
32
|
"""
|
|
33
33
|
The set of arguments for constructing a Volume resource.
|
|
34
|
-
:param pulumi.Input[Union[str, 'Region']] region: The region that the block storage volume will be created in.
|
|
35
|
-
:param pulumi.Input[int] size: The size of the block storage volume in GiB. If updated, can only be expanded.
|
|
36
|
-
:param pulumi.Input[str] description: A free-form text field up to a limit of 1024 bytes to describe a block storage volume.
|
|
37
|
-
:param pulumi.Input[str] filesystem_type: Filesystem type (`xfs` or `ext4`) for the block storage volume.
|
|
38
|
-
:param pulumi.Input[str] initial_filesystem_label: Initial filesystem label for the block storage volume.
|
|
39
|
-
:param pulumi.Input[Union[str, 'FileSystemType']] initial_filesystem_type: Initial filesystem type (`xfs` or `ext4`) for the block storage volume.
|
|
40
|
-
:param pulumi.Input[str] name: A name for the block storage volume. Must be lowercase and be composed only of numbers, letters and "-", up to a limit of 64 characters. The name must begin with a letter.
|
|
41
|
-
:param pulumi.Input[str] snapshot_id: The ID of an existing volume snapshot from which the new volume will be created. If supplied, the region and size will be limited on creation to that of the referenced snapshot
|
|
42
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] tags: A list of the tags to be applied to this Volume.
|
|
34
|
+
:param pulumi.Input[Union[_builtins.str, 'Region']] region: The region that the block storage volume will be created in.
|
|
35
|
+
:param pulumi.Input[_builtins.int] size: The size of the block storage volume in GiB. If updated, can only be expanded.
|
|
36
|
+
:param pulumi.Input[_builtins.str] description: A free-form text field up to a limit of 1024 bytes to describe a block storage volume.
|
|
37
|
+
:param pulumi.Input[_builtins.str] filesystem_type: Filesystem type (`xfs` or `ext4`) for the block storage volume.
|
|
38
|
+
:param pulumi.Input[_builtins.str] initial_filesystem_label: Initial filesystem label for the block storage volume.
|
|
39
|
+
:param pulumi.Input[Union[_builtins.str, 'FileSystemType']] initial_filesystem_type: Initial filesystem type (`xfs` or `ext4`) for the block storage volume.
|
|
40
|
+
:param pulumi.Input[_builtins.str] name: A name for the block storage volume. Must be lowercase and be composed only of numbers, letters and "-", up to a limit of 64 characters. The name must begin with a letter.
|
|
41
|
+
:param pulumi.Input[_builtins.str] snapshot_id: The ID of an existing volume snapshot from which the new volume will be created. If supplied, the region and size will be limited on creation to that of the referenced snapshot
|
|
42
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: A list of the tags to be applied to this Volume.
|
|
43
43
|
"""
|
|
44
44
|
pulumi.set(__self__, "region", region)
|
|
45
45
|
pulumi.set(__self__, "size", size)
|
|
@@ -61,145 +61,145 @@ class VolumeArgs:
|
|
|
61
61
|
if tags is not None:
|
|
62
62
|
pulumi.set(__self__, "tags", tags)
|
|
63
63
|
|
|
64
|
-
@property
|
|
64
|
+
@_builtins.property
|
|
65
65
|
@pulumi.getter
|
|
66
|
-
def region(self) -> pulumi.Input[Union[str, 'Region']]:
|
|
66
|
+
def region(self) -> pulumi.Input[Union[_builtins.str, 'Region']]:
|
|
67
67
|
"""
|
|
68
68
|
The region that the block storage volume will be created in.
|
|
69
69
|
"""
|
|
70
70
|
return pulumi.get(self, "region")
|
|
71
71
|
|
|
72
72
|
@region.setter
|
|
73
|
-
def region(self, value: pulumi.Input[Union[str, 'Region']]):
|
|
73
|
+
def region(self, value: pulumi.Input[Union[_builtins.str, 'Region']]):
|
|
74
74
|
pulumi.set(self, "region", value)
|
|
75
75
|
|
|
76
|
-
@property
|
|
76
|
+
@_builtins.property
|
|
77
77
|
@pulumi.getter
|
|
78
|
-
def size(self) -> pulumi.Input[int]:
|
|
78
|
+
def size(self) -> pulumi.Input[_builtins.int]:
|
|
79
79
|
"""
|
|
80
80
|
The size of the block storage volume in GiB. If updated, can only be expanded.
|
|
81
81
|
"""
|
|
82
82
|
return pulumi.get(self, "size")
|
|
83
83
|
|
|
84
84
|
@size.setter
|
|
85
|
-
def size(self, value: pulumi.Input[int]):
|
|
85
|
+
def size(self, value: pulumi.Input[_builtins.int]):
|
|
86
86
|
pulumi.set(self, "size", value)
|
|
87
87
|
|
|
88
|
-
@property
|
|
88
|
+
@_builtins.property
|
|
89
89
|
@pulumi.getter
|
|
90
|
-
def description(self) -> Optional[pulumi.Input[str]]:
|
|
90
|
+
def description(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
91
91
|
"""
|
|
92
92
|
A free-form text field up to a limit of 1024 bytes to describe a block storage volume.
|
|
93
93
|
"""
|
|
94
94
|
return pulumi.get(self, "description")
|
|
95
95
|
|
|
96
96
|
@description.setter
|
|
97
|
-
def description(self, value: Optional[pulumi.Input[str]]):
|
|
97
|
+
def description(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
98
98
|
pulumi.set(self, "description", value)
|
|
99
99
|
|
|
100
|
-
@property
|
|
100
|
+
@_builtins.property
|
|
101
101
|
@pulumi.getter(name="filesystemType")
|
|
102
102
|
@_utilities.deprecated("""This fields functionality has been replaced by `initial_filesystem_type`. The property will still remain as a computed attribute representing the current volumes filesystem type.""")
|
|
103
|
-
def filesystem_type(self) -> Optional[pulumi.Input[str]]:
|
|
103
|
+
def filesystem_type(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
104
104
|
"""
|
|
105
105
|
Filesystem type (`xfs` or `ext4`) for the block storage volume.
|
|
106
106
|
"""
|
|
107
107
|
return pulumi.get(self, "filesystem_type")
|
|
108
108
|
|
|
109
109
|
@filesystem_type.setter
|
|
110
|
-
def filesystem_type(self, value: Optional[pulumi.Input[str]]):
|
|
110
|
+
def filesystem_type(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
111
111
|
pulumi.set(self, "filesystem_type", value)
|
|
112
112
|
|
|
113
|
-
@property
|
|
113
|
+
@_builtins.property
|
|
114
114
|
@pulumi.getter(name="initialFilesystemLabel")
|
|
115
|
-
def initial_filesystem_label(self) -> Optional[pulumi.Input[str]]:
|
|
115
|
+
def initial_filesystem_label(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
116
116
|
"""
|
|
117
117
|
Initial filesystem label for the block storage volume.
|
|
118
118
|
"""
|
|
119
119
|
return pulumi.get(self, "initial_filesystem_label")
|
|
120
120
|
|
|
121
121
|
@initial_filesystem_label.setter
|
|
122
|
-
def initial_filesystem_label(self, value: Optional[pulumi.Input[str]]):
|
|
122
|
+
def initial_filesystem_label(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
123
123
|
pulumi.set(self, "initial_filesystem_label", value)
|
|
124
124
|
|
|
125
|
-
@property
|
|
125
|
+
@_builtins.property
|
|
126
126
|
@pulumi.getter(name="initialFilesystemType")
|
|
127
|
-
def initial_filesystem_type(self) -> Optional[pulumi.Input[Union[str, 'FileSystemType']]]:
|
|
127
|
+
def initial_filesystem_type(self) -> Optional[pulumi.Input[Union[_builtins.str, 'FileSystemType']]]:
|
|
128
128
|
"""
|
|
129
129
|
Initial filesystem type (`xfs` or `ext4`) for the block storage volume.
|
|
130
130
|
"""
|
|
131
131
|
return pulumi.get(self, "initial_filesystem_type")
|
|
132
132
|
|
|
133
133
|
@initial_filesystem_type.setter
|
|
134
|
-
def initial_filesystem_type(self, value: Optional[pulumi.Input[Union[str, 'FileSystemType']]]):
|
|
134
|
+
def initial_filesystem_type(self, value: Optional[pulumi.Input[Union[_builtins.str, 'FileSystemType']]]):
|
|
135
135
|
pulumi.set(self, "initial_filesystem_type", value)
|
|
136
136
|
|
|
137
|
-
@property
|
|
137
|
+
@_builtins.property
|
|
138
138
|
@pulumi.getter
|
|
139
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
|
139
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
140
140
|
"""
|
|
141
141
|
A name for the block storage volume. Must be lowercase and be composed only of numbers, letters and "-", up to a limit of 64 characters. The name must begin with a letter.
|
|
142
142
|
"""
|
|
143
143
|
return pulumi.get(self, "name")
|
|
144
144
|
|
|
145
145
|
@name.setter
|
|
146
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
|
146
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
147
147
|
pulumi.set(self, "name", value)
|
|
148
148
|
|
|
149
|
-
@property
|
|
149
|
+
@_builtins.property
|
|
150
150
|
@pulumi.getter(name="snapshotId")
|
|
151
|
-
def snapshot_id(self) -> Optional[pulumi.Input[str]]:
|
|
151
|
+
def snapshot_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
152
152
|
"""
|
|
153
153
|
The ID of an existing volume snapshot from which the new volume will be created. If supplied, the region and size will be limited on creation to that of the referenced snapshot
|
|
154
154
|
"""
|
|
155
155
|
return pulumi.get(self, "snapshot_id")
|
|
156
156
|
|
|
157
157
|
@snapshot_id.setter
|
|
158
|
-
def snapshot_id(self, value: Optional[pulumi.Input[str]]):
|
|
158
|
+
def snapshot_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
159
159
|
pulumi.set(self, "snapshot_id", value)
|
|
160
160
|
|
|
161
|
-
@property
|
|
161
|
+
@_builtins.property
|
|
162
162
|
@pulumi.getter
|
|
163
|
-
def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
163
|
+
def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
164
164
|
"""
|
|
165
165
|
A list of the tags to be applied to this Volume.
|
|
166
166
|
"""
|
|
167
167
|
return pulumi.get(self, "tags")
|
|
168
168
|
|
|
169
169
|
@tags.setter
|
|
170
|
-
def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
170
|
+
def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
|
171
171
|
pulumi.set(self, "tags", value)
|
|
172
172
|
|
|
173
173
|
|
|
174
174
|
@pulumi.input_type
|
|
175
175
|
class _VolumeState:
|
|
176
176
|
def __init__(__self__, *,
|
|
177
|
-
description: Optional[pulumi.Input[str]] = None,
|
|
178
|
-
droplet_ids: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
|
|
179
|
-
filesystem_label: Optional[pulumi.Input[str]] = None,
|
|
180
|
-
filesystem_type: Optional[pulumi.Input[str]] = None,
|
|
181
|
-
initial_filesystem_label: Optional[pulumi.Input[str]] = None,
|
|
182
|
-
initial_filesystem_type: Optional[pulumi.Input[Union[str, 'FileSystemType']]] = None,
|
|
183
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
184
|
-
region: Optional[pulumi.Input[Union[str, 'Region']]] = None,
|
|
185
|
-
size: Optional[pulumi.Input[int]] = None,
|
|
186
|
-
snapshot_id: Optional[pulumi.Input[str]] = None,
|
|
187
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
188
|
-
volume_urn: Optional[pulumi.Input[str]] = None):
|
|
177
|
+
description: Optional[pulumi.Input[_builtins.str]] = None,
|
|
178
|
+
droplet_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.int]]]] = None,
|
|
179
|
+
filesystem_label: Optional[pulumi.Input[_builtins.str]] = None,
|
|
180
|
+
filesystem_type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
181
|
+
initial_filesystem_label: Optional[pulumi.Input[_builtins.str]] = None,
|
|
182
|
+
initial_filesystem_type: Optional[pulumi.Input[Union[_builtins.str, 'FileSystemType']]] = None,
|
|
183
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
184
|
+
region: Optional[pulumi.Input[Union[_builtins.str, 'Region']]] = None,
|
|
185
|
+
size: Optional[pulumi.Input[_builtins.int]] = None,
|
|
186
|
+
snapshot_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
187
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
188
|
+
volume_urn: Optional[pulumi.Input[_builtins.str]] = None):
|
|
189
189
|
"""
|
|
190
190
|
Input properties used for looking up and filtering Volume resources.
|
|
191
|
-
:param pulumi.Input[str] description: A free-form text field up to a limit of 1024 bytes to describe a block storage volume.
|
|
192
|
-
:param pulumi.Input[Sequence[pulumi.Input[int]]] droplet_ids: A list of associated droplet ids.
|
|
193
|
-
:param pulumi.Input[str] filesystem_label: Filesystem label for the block storage volume.
|
|
194
|
-
:param pulumi.Input[str] filesystem_type: Filesystem type (`xfs` or `ext4`) for the block storage volume.
|
|
195
|
-
:param pulumi.Input[str] initial_filesystem_label: Initial filesystem label for the block storage volume.
|
|
196
|
-
:param pulumi.Input[Union[str, 'FileSystemType']] initial_filesystem_type: Initial filesystem type (`xfs` or `ext4`) for the block storage volume.
|
|
197
|
-
:param pulumi.Input[str] name: A name for the block storage volume. Must be lowercase and be composed only of numbers, letters and "-", up to a limit of 64 characters. The name must begin with a letter.
|
|
198
|
-
:param pulumi.Input[Union[str, 'Region']] region: The region that the block storage volume will be created in.
|
|
199
|
-
:param pulumi.Input[int] size: The size of the block storage volume in GiB. If updated, can only be expanded.
|
|
200
|
-
:param pulumi.Input[str] snapshot_id: The ID of an existing volume snapshot from which the new volume will be created. If supplied, the region and size will be limited on creation to that of the referenced snapshot
|
|
201
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] tags: A list of the tags to be applied to this Volume.
|
|
202
|
-
:param pulumi.Input[str] volume_urn: The uniform resource name for the volume.
|
|
191
|
+
:param pulumi.Input[_builtins.str] description: A free-form text field up to a limit of 1024 bytes to describe a block storage volume.
|
|
192
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.int]]] droplet_ids: A list of associated droplet ids.
|
|
193
|
+
:param pulumi.Input[_builtins.str] filesystem_label: Filesystem label for the block storage volume.
|
|
194
|
+
:param pulumi.Input[_builtins.str] filesystem_type: Filesystem type (`xfs` or `ext4`) for the block storage volume.
|
|
195
|
+
:param pulumi.Input[_builtins.str] initial_filesystem_label: Initial filesystem label for the block storage volume.
|
|
196
|
+
:param pulumi.Input[Union[_builtins.str, 'FileSystemType']] initial_filesystem_type: Initial filesystem type (`xfs` or `ext4`) for the block storage volume.
|
|
197
|
+
:param pulumi.Input[_builtins.str] name: A name for the block storage volume. Must be lowercase and be composed only of numbers, letters and "-", up to a limit of 64 characters. The name must begin with a letter.
|
|
198
|
+
:param pulumi.Input[Union[_builtins.str, 'Region']] region: The region that the block storage volume will be created in.
|
|
199
|
+
:param pulumi.Input[_builtins.int] size: The size of the block storage volume in GiB. If updated, can only be expanded.
|
|
200
|
+
:param pulumi.Input[_builtins.str] snapshot_id: The ID of an existing volume snapshot from which the new volume will be created. If supplied, the region and size will be limited on creation to that of the referenced snapshot
|
|
201
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: A list of the tags to be applied to this Volume.
|
|
202
|
+
:param pulumi.Input[_builtins.str] volume_urn: The uniform resource name for the volume.
|
|
203
203
|
"""
|
|
204
204
|
if description is not None:
|
|
205
205
|
pulumi.set(__self__, "description", description)
|
|
@@ -229,166 +229,167 @@ class _VolumeState:
|
|
|
229
229
|
if volume_urn is not None:
|
|
230
230
|
pulumi.set(__self__, "volume_urn", volume_urn)
|
|
231
231
|
|
|
232
|
-
@property
|
|
232
|
+
@_builtins.property
|
|
233
233
|
@pulumi.getter
|
|
234
|
-
def description(self) -> Optional[pulumi.Input[str]]:
|
|
234
|
+
def description(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
235
235
|
"""
|
|
236
236
|
A free-form text field up to a limit of 1024 bytes to describe a block storage volume.
|
|
237
237
|
"""
|
|
238
238
|
return pulumi.get(self, "description")
|
|
239
239
|
|
|
240
240
|
@description.setter
|
|
241
|
-
def description(self, value: Optional[pulumi.Input[str]]):
|
|
241
|
+
def description(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
242
242
|
pulumi.set(self, "description", value)
|
|
243
243
|
|
|
244
|
-
@property
|
|
244
|
+
@_builtins.property
|
|
245
245
|
@pulumi.getter(name="dropletIds")
|
|
246
|
-
def droplet_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[int]]]]:
|
|
246
|
+
def droplet_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.int]]]]:
|
|
247
247
|
"""
|
|
248
248
|
A list of associated droplet ids.
|
|
249
249
|
"""
|
|
250
250
|
return pulumi.get(self, "droplet_ids")
|
|
251
251
|
|
|
252
252
|
@droplet_ids.setter
|
|
253
|
-
def droplet_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]]):
|
|
253
|
+
def droplet_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.int]]]]):
|
|
254
254
|
pulumi.set(self, "droplet_ids", value)
|
|
255
255
|
|
|
256
|
-
@property
|
|
256
|
+
@_builtins.property
|
|
257
257
|
@pulumi.getter(name="filesystemLabel")
|
|
258
|
-
def filesystem_label(self) -> Optional[pulumi.Input[str]]:
|
|
258
|
+
def filesystem_label(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
259
259
|
"""
|
|
260
260
|
Filesystem label for the block storage volume.
|
|
261
261
|
"""
|
|
262
262
|
return pulumi.get(self, "filesystem_label")
|
|
263
263
|
|
|
264
264
|
@filesystem_label.setter
|
|
265
|
-
def filesystem_label(self, value: Optional[pulumi.Input[str]]):
|
|
265
|
+
def filesystem_label(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
266
266
|
pulumi.set(self, "filesystem_label", value)
|
|
267
267
|
|
|
268
|
-
@property
|
|
268
|
+
@_builtins.property
|
|
269
269
|
@pulumi.getter(name="filesystemType")
|
|
270
270
|
@_utilities.deprecated("""This fields functionality has been replaced by `initial_filesystem_type`. The property will still remain as a computed attribute representing the current volumes filesystem type.""")
|
|
271
|
-
def filesystem_type(self) -> Optional[pulumi.Input[str]]:
|
|
271
|
+
def filesystem_type(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
272
272
|
"""
|
|
273
273
|
Filesystem type (`xfs` or `ext4`) for the block storage volume.
|
|
274
274
|
"""
|
|
275
275
|
return pulumi.get(self, "filesystem_type")
|
|
276
276
|
|
|
277
277
|
@filesystem_type.setter
|
|
278
|
-
def filesystem_type(self, value: Optional[pulumi.Input[str]]):
|
|
278
|
+
def filesystem_type(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
279
279
|
pulumi.set(self, "filesystem_type", value)
|
|
280
280
|
|
|
281
|
-
@property
|
|
281
|
+
@_builtins.property
|
|
282
282
|
@pulumi.getter(name="initialFilesystemLabel")
|
|
283
|
-
def initial_filesystem_label(self) -> Optional[pulumi.Input[str]]:
|
|
283
|
+
def initial_filesystem_label(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
284
284
|
"""
|
|
285
285
|
Initial filesystem label for the block storage volume.
|
|
286
286
|
"""
|
|
287
287
|
return pulumi.get(self, "initial_filesystem_label")
|
|
288
288
|
|
|
289
289
|
@initial_filesystem_label.setter
|
|
290
|
-
def initial_filesystem_label(self, value: Optional[pulumi.Input[str]]):
|
|
290
|
+
def initial_filesystem_label(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
291
291
|
pulumi.set(self, "initial_filesystem_label", value)
|
|
292
292
|
|
|
293
|
-
@property
|
|
293
|
+
@_builtins.property
|
|
294
294
|
@pulumi.getter(name="initialFilesystemType")
|
|
295
|
-
def initial_filesystem_type(self) -> Optional[pulumi.Input[Union[str, 'FileSystemType']]]:
|
|
295
|
+
def initial_filesystem_type(self) -> Optional[pulumi.Input[Union[_builtins.str, 'FileSystemType']]]:
|
|
296
296
|
"""
|
|
297
297
|
Initial filesystem type (`xfs` or `ext4`) for the block storage volume.
|
|
298
298
|
"""
|
|
299
299
|
return pulumi.get(self, "initial_filesystem_type")
|
|
300
300
|
|
|
301
301
|
@initial_filesystem_type.setter
|
|
302
|
-
def initial_filesystem_type(self, value: Optional[pulumi.Input[Union[str, 'FileSystemType']]]):
|
|
302
|
+
def initial_filesystem_type(self, value: Optional[pulumi.Input[Union[_builtins.str, 'FileSystemType']]]):
|
|
303
303
|
pulumi.set(self, "initial_filesystem_type", value)
|
|
304
304
|
|
|
305
|
-
@property
|
|
305
|
+
@_builtins.property
|
|
306
306
|
@pulumi.getter
|
|
307
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
|
307
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
308
308
|
"""
|
|
309
309
|
A name for the block storage volume. Must be lowercase and be composed only of numbers, letters and "-", up to a limit of 64 characters. The name must begin with a letter.
|
|
310
310
|
"""
|
|
311
311
|
return pulumi.get(self, "name")
|
|
312
312
|
|
|
313
313
|
@name.setter
|
|
314
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
|
314
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
315
315
|
pulumi.set(self, "name", value)
|
|
316
316
|
|
|
317
|
-
@property
|
|
317
|
+
@_builtins.property
|
|
318
318
|
@pulumi.getter
|
|
319
|
-
def region(self) -> Optional[pulumi.Input[Union[str, 'Region']]]:
|
|
319
|
+
def region(self) -> Optional[pulumi.Input[Union[_builtins.str, 'Region']]]:
|
|
320
320
|
"""
|
|
321
321
|
The region that the block storage volume will be created in.
|
|
322
322
|
"""
|
|
323
323
|
return pulumi.get(self, "region")
|
|
324
324
|
|
|
325
325
|
@region.setter
|
|
326
|
-
def region(self, value: Optional[pulumi.Input[Union[str, 'Region']]]):
|
|
326
|
+
def region(self, value: Optional[pulumi.Input[Union[_builtins.str, 'Region']]]):
|
|
327
327
|
pulumi.set(self, "region", value)
|
|
328
328
|
|
|
329
|
-
@property
|
|
329
|
+
@_builtins.property
|
|
330
330
|
@pulumi.getter
|
|
331
|
-
def size(self) -> Optional[pulumi.Input[int]]:
|
|
331
|
+
def size(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
332
332
|
"""
|
|
333
333
|
The size of the block storage volume in GiB. If updated, can only be expanded.
|
|
334
334
|
"""
|
|
335
335
|
return pulumi.get(self, "size")
|
|
336
336
|
|
|
337
337
|
@size.setter
|
|
338
|
-
def size(self, value: Optional[pulumi.Input[int]]):
|
|
338
|
+
def size(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
339
339
|
pulumi.set(self, "size", value)
|
|
340
340
|
|
|
341
|
-
@property
|
|
341
|
+
@_builtins.property
|
|
342
342
|
@pulumi.getter(name="snapshotId")
|
|
343
|
-
def snapshot_id(self) -> Optional[pulumi.Input[str]]:
|
|
343
|
+
def snapshot_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
344
344
|
"""
|
|
345
345
|
The ID of an existing volume snapshot from which the new volume will be created. If supplied, the region and size will be limited on creation to that of the referenced snapshot
|
|
346
346
|
"""
|
|
347
347
|
return pulumi.get(self, "snapshot_id")
|
|
348
348
|
|
|
349
349
|
@snapshot_id.setter
|
|
350
|
-
def snapshot_id(self, value: Optional[pulumi.Input[str]]):
|
|
350
|
+
def snapshot_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
351
351
|
pulumi.set(self, "snapshot_id", value)
|
|
352
352
|
|
|
353
|
-
@property
|
|
353
|
+
@_builtins.property
|
|
354
354
|
@pulumi.getter
|
|
355
|
-
def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
355
|
+
def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
356
356
|
"""
|
|
357
357
|
A list of the tags to be applied to this Volume.
|
|
358
358
|
"""
|
|
359
359
|
return pulumi.get(self, "tags")
|
|
360
360
|
|
|
361
361
|
@tags.setter
|
|
362
|
-
def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
362
|
+
def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
|
363
363
|
pulumi.set(self, "tags", value)
|
|
364
364
|
|
|
365
|
-
@property
|
|
365
|
+
@_builtins.property
|
|
366
366
|
@pulumi.getter(name="volumeUrn")
|
|
367
|
-
def volume_urn(self) -> Optional[pulumi.Input[str]]:
|
|
367
|
+
def volume_urn(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
368
368
|
"""
|
|
369
369
|
The uniform resource name for the volume.
|
|
370
370
|
"""
|
|
371
371
|
return pulumi.get(self, "volume_urn")
|
|
372
372
|
|
|
373
373
|
@volume_urn.setter
|
|
374
|
-
def volume_urn(self, value: Optional[pulumi.Input[str]]):
|
|
374
|
+
def volume_urn(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
375
375
|
pulumi.set(self, "volume_urn", value)
|
|
376
376
|
|
|
377
377
|
|
|
378
|
+
@pulumi.type_token("digitalocean:index/volume:Volume")
|
|
378
379
|
class Volume(pulumi.CustomResource):
|
|
379
380
|
@overload
|
|
380
381
|
def __init__(__self__,
|
|
381
382
|
resource_name: str,
|
|
382
383
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
383
|
-
description: Optional[pulumi.Input[str]] = None,
|
|
384
|
-
filesystem_type: Optional[pulumi.Input[str]] = None,
|
|
385
|
-
initial_filesystem_label: Optional[pulumi.Input[str]] = None,
|
|
386
|
-
initial_filesystem_type: Optional[pulumi.Input[Union[str, 'FileSystemType']]] = None,
|
|
387
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
388
|
-
region: Optional[pulumi.Input[Union[str, 'Region']]] = None,
|
|
389
|
-
size: Optional[pulumi.Input[int]] = None,
|
|
390
|
-
snapshot_id: Optional[pulumi.Input[str]] = None,
|
|
391
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
384
|
+
description: Optional[pulumi.Input[_builtins.str]] = None,
|
|
385
|
+
filesystem_type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
386
|
+
initial_filesystem_label: Optional[pulumi.Input[_builtins.str]] = None,
|
|
387
|
+
initial_filesystem_type: Optional[pulumi.Input[Union[_builtins.str, 'FileSystemType']]] = None,
|
|
388
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
389
|
+
region: Optional[pulumi.Input[Union[_builtins.str, 'Region']]] = None,
|
|
390
|
+
size: Optional[pulumi.Input[_builtins.int]] = None,
|
|
391
|
+
snapshot_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
392
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
392
393
|
__props__=None):
|
|
393
394
|
"""
|
|
394
395
|
Provides a DigitalOcean Block Storage volume which can be attached to a Droplet in order to provide expanded storage.
|
|
@@ -439,15 +440,15 @@ class Volume(pulumi.CustomResource):
|
|
|
439
440
|
|
|
440
441
|
:param str resource_name: The name of the resource.
|
|
441
442
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
442
|
-
:param pulumi.Input[str] description: A free-form text field up to a limit of 1024 bytes to describe a block storage volume.
|
|
443
|
-
:param pulumi.Input[str] filesystem_type: Filesystem type (`xfs` or `ext4`) for the block storage volume.
|
|
444
|
-
:param pulumi.Input[str] initial_filesystem_label: Initial filesystem label for the block storage volume.
|
|
445
|
-
:param pulumi.Input[Union[str, 'FileSystemType']] initial_filesystem_type: Initial filesystem type (`xfs` or `ext4`) for the block storage volume.
|
|
446
|
-
:param pulumi.Input[str] name: A name for the block storage volume. Must be lowercase and be composed only of numbers, letters and "-", up to a limit of 64 characters. The name must begin with a letter.
|
|
447
|
-
:param pulumi.Input[Union[str, 'Region']] region: The region that the block storage volume will be created in.
|
|
448
|
-
:param pulumi.Input[int] size: The size of the block storage volume in GiB. If updated, can only be expanded.
|
|
449
|
-
:param pulumi.Input[str] snapshot_id: The ID of an existing volume snapshot from which the new volume will be created. If supplied, the region and size will be limited on creation to that of the referenced snapshot
|
|
450
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] tags: A list of the tags to be applied to this Volume.
|
|
443
|
+
:param pulumi.Input[_builtins.str] description: A free-form text field up to a limit of 1024 bytes to describe a block storage volume.
|
|
444
|
+
:param pulumi.Input[_builtins.str] filesystem_type: Filesystem type (`xfs` or `ext4`) for the block storage volume.
|
|
445
|
+
:param pulumi.Input[_builtins.str] initial_filesystem_label: Initial filesystem label for the block storage volume.
|
|
446
|
+
:param pulumi.Input[Union[_builtins.str, 'FileSystemType']] initial_filesystem_type: Initial filesystem type (`xfs` or `ext4`) for the block storage volume.
|
|
447
|
+
:param pulumi.Input[_builtins.str] name: A name for the block storage volume. Must be lowercase and be composed only of numbers, letters and "-", up to a limit of 64 characters. The name must begin with a letter.
|
|
448
|
+
:param pulumi.Input[Union[_builtins.str, 'Region']] region: The region that the block storage volume will be created in.
|
|
449
|
+
:param pulumi.Input[_builtins.int] size: The size of the block storage volume in GiB. If updated, can only be expanded.
|
|
450
|
+
:param pulumi.Input[_builtins.str] snapshot_id: The ID of an existing volume snapshot from which the new volume will be created. If supplied, the region and size will be limited on creation to that of the referenced snapshot
|
|
451
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: A list of the tags to be applied to this Volume.
|
|
451
452
|
"""
|
|
452
453
|
...
|
|
453
454
|
@overload
|
|
@@ -517,15 +518,15 @@ class Volume(pulumi.CustomResource):
|
|
|
517
518
|
def _internal_init(__self__,
|
|
518
519
|
resource_name: str,
|
|
519
520
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
520
|
-
description: Optional[pulumi.Input[str]] = None,
|
|
521
|
-
filesystem_type: Optional[pulumi.Input[str]] = None,
|
|
522
|
-
initial_filesystem_label: Optional[pulumi.Input[str]] = None,
|
|
523
|
-
initial_filesystem_type: Optional[pulumi.Input[Union[str, 'FileSystemType']]] = None,
|
|
524
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
525
|
-
region: Optional[pulumi.Input[Union[str, 'Region']]] = None,
|
|
526
|
-
size: Optional[pulumi.Input[int]] = None,
|
|
527
|
-
snapshot_id: Optional[pulumi.Input[str]] = None,
|
|
528
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
521
|
+
description: Optional[pulumi.Input[_builtins.str]] = None,
|
|
522
|
+
filesystem_type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
523
|
+
initial_filesystem_label: Optional[pulumi.Input[_builtins.str]] = None,
|
|
524
|
+
initial_filesystem_type: Optional[pulumi.Input[Union[_builtins.str, 'FileSystemType']]] = None,
|
|
525
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
526
|
+
region: Optional[pulumi.Input[Union[_builtins.str, 'Region']]] = None,
|
|
527
|
+
size: Optional[pulumi.Input[_builtins.int]] = None,
|
|
528
|
+
snapshot_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
529
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
529
530
|
__props__=None):
|
|
530
531
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
531
532
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -561,18 +562,18 @@ class Volume(pulumi.CustomResource):
|
|
|
561
562
|
def get(resource_name: str,
|
|
562
563
|
id: pulumi.Input[str],
|
|
563
564
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
564
|
-
description: Optional[pulumi.Input[str]] = None,
|
|
565
|
-
droplet_ids: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
|
|
566
|
-
filesystem_label: Optional[pulumi.Input[str]] = None,
|
|
567
|
-
filesystem_type: Optional[pulumi.Input[str]] = None,
|
|
568
|
-
initial_filesystem_label: Optional[pulumi.Input[str]] = None,
|
|
569
|
-
initial_filesystem_type: Optional[pulumi.Input[Union[str, 'FileSystemType']]] = None,
|
|
570
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
571
|
-
region: Optional[pulumi.Input[Union[str, 'Region']]] = None,
|
|
572
|
-
size: Optional[pulumi.Input[int]] = None,
|
|
573
|
-
snapshot_id: Optional[pulumi.Input[str]] = None,
|
|
574
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
575
|
-
volume_urn: Optional[pulumi.Input[str]] = None) -> 'Volume':
|
|
565
|
+
description: Optional[pulumi.Input[_builtins.str]] = None,
|
|
566
|
+
droplet_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.int]]]] = None,
|
|
567
|
+
filesystem_label: Optional[pulumi.Input[_builtins.str]] = None,
|
|
568
|
+
filesystem_type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
569
|
+
initial_filesystem_label: Optional[pulumi.Input[_builtins.str]] = None,
|
|
570
|
+
initial_filesystem_type: Optional[pulumi.Input[Union[_builtins.str, 'FileSystemType']]] = None,
|
|
571
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
572
|
+
region: Optional[pulumi.Input[Union[_builtins.str, 'Region']]] = None,
|
|
573
|
+
size: Optional[pulumi.Input[_builtins.int]] = None,
|
|
574
|
+
snapshot_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
575
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
576
|
+
volume_urn: Optional[pulumi.Input[_builtins.str]] = None) -> 'Volume':
|
|
576
577
|
"""
|
|
577
578
|
Get an existing Volume resource's state with the given name, id, and optional extra
|
|
578
579
|
properties used to qualify the lookup.
|
|
@@ -580,18 +581,18 @@ class Volume(pulumi.CustomResource):
|
|
|
580
581
|
:param str resource_name: The unique name of the resulting resource.
|
|
581
582
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
582
583
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
583
|
-
:param pulumi.Input[str] description: A free-form text field up to a limit of 1024 bytes to describe a block storage volume.
|
|
584
|
-
:param pulumi.Input[Sequence[pulumi.Input[int]]] droplet_ids: A list of associated droplet ids.
|
|
585
|
-
:param pulumi.Input[str] filesystem_label: Filesystem label for the block storage volume.
|
|
586
|
-
:param pulumi.Input[str] filesystem_type: Filesystem type (`xfs` or `ext4`) for the block storage volume.
|
|
587
|
-
:param pulumi.Input[str] initial_filesystem_label: Initial filesystem label for the block storage volume.
|
|
588
|
-
:param pulumi.Input[Union[str, 'FileSystemType']] initial_filesystem_type: Initial filesystem type (`xfs` or `ext4`) for the block storage volume.
|
|
589
|
-
:param pulumi.Input[str] name: A name for the block storage volume. Must be lowercase and be composed only of numbers, letters and "-", up to a limit of 64 characters. The name must begin with a letter.
|
|
590
|
-
:param pulumi.Input[Union[str, 'Region']] region: The region that the block storage volume will be created in.
|
|
591
|
-
:param pulumi.Input[int] size: The size of the block storage volume in GiB. If updated, can only be expanded.
|
|
592
|
-
:param pulumi.Input[str] snapshot_id: The ID of an existing volume snapshot from which the new volume will be created. If supplied, the region and size will be limited on creation to that of the referenced snapshot
|
|
593
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] tags: A list of the tags to be applied to this Volume.
|
|
594
|
-
:param pulumi.Input[str] volume_urn: The uniform resource name for the volume.
|
|
584
|
+
:param pulumi.Input[_builtins.str] description: A free-form text field up to a limit of 1024 bytes to describe a block storage volume.
|
|
585
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.int]]] droplet_ids: A list of associated droplet ids.
|
|
586
|
+
:param pulumi.Input[_builtins.str] filesystem_label: Filesystem label for the block storage volume.
|
|
587
|
+
:param pulumi.Input[_builtins.str] filesystem_type: Filesystem type (`xfs` or `ext4`) for the block storage volume.
|
|
588
|
+
:param pulumi.Input[_builtins.str] initial_filesystem_label: Initial filesystem label for the block storage volume.
|
|
589
|
+
:param pulumi.Input[Union[_builtins.str, 'FileSystemType']] initial_filesystem_type: Initial filesystem type (`xfs` or `ext4`) for the block storage volume.
|
|
590
|
+
:param pulumi.Input[_builtins.str] name: A name for the block storage volume. Must be lowercase and be composed only of numbers, letters and "-", up to a limit of 64 characters. The name must begin with a letter.
|
|
591
|
+
:param pulumi.Input[Union[_builtins.str, 'Region']] region: The region that the block storage volume will be created in.
|
|
592
|
+
:param pulumi.Input[_builtins.int] size: The size of the block storage volume in GiB. If updated, can only be expanded.
|
|
593
|
+
:param pulumi.Input[_builtins.str] snapshot_id: The ID of an existing volume snapshot from which the new volume will be created. If supplied, the region and size will be limited on creation to that of the referenced snapshot
|
|
594
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: A list of the tags to be applied to this Volume.
|
|
595
|
+
:param pulumi.Input[_builtins.str] volume_urn: The uniform resource name for the volume.
|
|
595
596
|
"""
|
|
596
597
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
597
598
|
|
|
@@ -611,98 +612,98 @@ class Volume(pulumi.CustomResource):
|
|
|
611
612
|
__props__.__dict__["volume_urn"] = volume_urn
|
|
612
613
|
return Volume(resource_name, opts=opts, __props__=__props__)
|
|
613
614
|
|
|
614
|
-
@property
|
|
615
|
+
@_builtins.property
|
|
615
616
|
@pulumi.getter
|
|
616
|
-
def description(self) -> pulumi.Output[Optional[str]]:
|
|
617
|
+
def description(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
617
618
|
"""
|
|
618
619
|
A free-form text field up to a limit of 1024 bytes to describe a block storage volume.
|
|
619
620
|
"""
|
|
620
621
|
return pulumi.get(self, "description")
|
|
621
622
|
|
|
622
|
-
@property
|
|
623
|
+
@_builtins.property
|
|
623
624
|
@pulumi.getter(name="dropletIds")
|
|
624
|
-
def droplet_ids(self) -> pulumi.Output[Sequence[int]]:
|
|
625
|
+
def droplet_ids(self) -> pulumi.Output[Sequence[_builtins.int]]:
|
|
625
626
|
"""
|
|
626
627
|
A list of associated droplet ids.
|
|
627
628
|
"""
|
|
628
629
|
return pulumi.get(self, "droplet_ids")
|
|
629
630
|
|
|
630
|
-
@property
|
|
631
|
+
@_builtins.property
|
|
631
632
|
@pulumi.getter(name="filesystemLabel")
|
|
632
|
-
def filesystem_label(self) -> pulumi.Output[str]:
|
|
633
|
+
def filesystem_label(self) -> pulumi.Output[_builtins.str]:
|
|
633
634
|
"""
|
|
634
635
|
Filesystem label for the block storage volume.
|
|
635
636
|
"""
|
|
636
637
|
return pulumi.get(self, "filesystem_label")
|
|
637
638
|
|
|
638
|
-
@property
|
|
639
|
+
@_builtins.property
|
|
639
640
|
@pulumi.getter(name="filesystemType")
|
|
640
641
|
@_utilities.deprecated("""This fields functionality has been replaced by `initial_filesystem_type`. The property will still remain as a computed attribute representing the current volumes filesystem type.""")
|
|
641
|
-
def filesystem_type(self) -> pulumi.Output[str]:
|
|
642
|
+
def filesystem_type(self) -> pulumi.Output[_builtins.str]:
|
|
642
643
|
"""
|
|
643
644
|
Filesystem type (`xfs` or `ext4`) for the block storage volume.
|
|
644
645
|
"""
|
|
645
646
|
return pulumi.get(self, "filesystem_type")
|
|
646
647
|
|
|
647
|
-
@property
|
|
648
|
+
@_builtins.property
|
|
648
649
|
@pulumi.getter(name="initialFilesystemLabel")
|
|
649
|
-
def initial_filesystem_label(self) -> pulumi.Output[Optional[str]]:
|
|
650
|
+
def initial_filesystem_label(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
650
651
|
"""
|
|
651
652
|
Initial filesystem label for the block storage volume.
|
|
652
653
|
"""
|
|
653
654
|
return pulumi.get(self, "initial_filesystem_label")
|
|
654
655
|
|
|
655
|
-
@property
|
|
656
|
+
@_builtins.property
|
|
656
657
|
@pulumi.getter(name="initialFilesystemType")
|
|
657
|
-
def initial_filesystem_type(self) -> pulumi.Output[Optional[str]]:
|
|
658
|
+
def initial_filesystem_type(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
658
659
|
"""
|
|
659
660
|
Initial filesystem type (`xfs` or `ext4`) for the block storage volume.
|
|
660
661
|
"""
|
|
661
662
|
return pulumi.get(self, "initial_filesystem_type")
|
|
662
663
|
|
|
663
|
-
@property
|
|
664
|
+
@_builtins.property
|
|
664
665
|
@pulumi.getter
|
|
665
|
-
def name(self) -> pulumi.Output[str]:
|
|
666
|
+
def name(self) -> pulumi.Output[_builtins.str]:
|
|
666
667
|
"""
|
|
667
668
|
A name for the block storage volume. Must be lowercase and be composed only of numbers, letters and "-", up to a limit of 64 characters. The name must begin with a letter.
|
|
668
669
|
"""
|
|
669
670
|
return pulumi.get(self, "name")
|
|
670
671
|
|
|
671
|
-
@property
|
|
672
|
+
@_builtins.property
|
|
672
673
|
@pulumi.getter
|
|
673
|
-
def region(self) -> pulumi.Output[str]:
|
|
674
|
+
def region(self) -> pulumi.Output[_builtins.str]:
|
|
674
675
|
"""
|
|
675
676
|
The region that the block storage volume will be created in.
|
|
676
677
|
"""
|
|
677
678
|
return pulumi.get(self, "region")
|
|
678
679
|
|
|
679
|
-
@property
|
|
680
|
+
@_builtins.property
|
|
680
681
|
@pulumi.getter
|
|
681
|
-
def size(self) -> pulumi.Output[int]:
|
|
682
|
+
def size(self) -> pulumi.Output[_builtins.int]:
|
|
682
683
|
"""
|
|
683
684
|
The size of the block storage volume in GiB. If updated, can only be expanded.
|
|
684
685
|
"""
|
|
685
686
|
return pulumi.get(self, "size")
|
|
686
687
|
|
|
687
|
-
@property
|
|
688
|
+
@_builtins.property
|
|
688
689
|
@pulumi.getter(name="snapshotId")
|
|
689
|
-
def snapshot_id(self) -> pulumi.Output[Optional[str]]:
|
|
690
|
+
def snapshot_id(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
690
691
|
"""
|
|
691
692
|
The ID of an existing volume snapshot from which the new volume will be created. If supplied, the region and size will be limited on creation to that of the referenced snapshot
|
|
692
693
|
"""
|
|
693
694
|
return pulumi.get(self, "snapshot_id")
|
|
694
695
|
|
|
695
|
-
@property
|
|
696
|
+
@_builtins.property
|
|
696
697
|
@pulumi.getter
|
|
697
|
-
def tags(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
|
698
|
+
def tags(self) -> pulumi.Output[Optional[Sequence[_builtins.str]]]:
|
|
698
699
|
"""
|
|
699
700
|
A list of the tags to be applied to this Volume.
|
|
700
701
|
"""
|
|
701
702
|
return pulumi.get(self, "tags")
|
|
702
703
|
|
|
703
|
-
@property
|
|
704
|
+
@_builtins.property
|
|
704
705
|
@pulumi.getter(name="volumeUrn")
|
|
705
|
-
def volume_urn(self) -> pulumi.Output[str]:
|
|
706
|
+
def volume_urn(self) -> pulumi.Output[_builtins.str]:
|
|
706
707
|
"""
|
|
707
708
|
The uniform resource name for the volume.
|
|
708
709
|
"""
|