Skip to content

Commit

Permalink
feat: refact tf bs (#1125)
Browse files Browse the repository at this point in the history
* feat: tf - refactor block storage
* fix: tf - vm private ip 
* feat: tf - vm rename instance
  • Loading branch information
geffersonFerraz authored Jul 31, 2024
1 parent 70dd0c6 commit 90fc3ce
Show file tree
Hide file tree
Showing 7 changed files with 703 additions and 163 deletions.
2 changes: 1 addition & 1 deletion mgc/sdk/version_development.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ var Version = func() string {
return fmt.Sprintf("%s-%s-%s%s", version, vcs, rev, status)
}
}
return version + " (vcs-unknown, please 'go build -buildvcs=true')"
return version + "dev"
}()
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
page_title: "mgc_block_storage_snapshots Resource - terraform-provider-mgc"
subcategory: ""
description: |-
Operations with snapshots for volumes.
The block storage snapshots resource allows you to manage block storage snapshots in the Magalu Cloud.
---

# mgc_block_storage_snapshots (Resource)

Operations with snapshots for volumes.
The block storage snapshots resource allows you to manage block storage snapshots in the Magalu Cloud.



Expand All @@ -17,62 +17,27 @@ Operations with snapshots for volumes.

### Required

- `description` (String)
- `name` (String)
- `description` (String) The description of the volume snapshot.
- `name` (String) The name of the volume snapshot.
- `volume` (Attributes) (see [below for nested schema](#nestedatt--volume))

### Optional

- `name_is_prefix` (Boolean) Indicates whether the provided name is a prefix or the exact name of the volume snapshot.

### Read-Only

- `created_at` (Attributes) (see [below for nested schema](#nestedatt--created_at))
- `current_volume` (Attributes) (see [below for nested schema](#nestedatt--current_volume))
- `id` (String) The ID of this resource.
- `size` (Number)
- `state` (String)
- `status` (String)
- `updated_at` (Attributes) (see [below for nested schema](#nestedatt--updated_at))
- `created_at` (String) The timestamp when the block storage was created.
- `final_name` (String) The final name of the volume snapshot after applying any naming conventions or modifications.
- `id` (String) The unique identifier of the volume snapshot.
- `size` (Number) The size of the snapshot in GB.
- `state` (String) The current state of the virtual machine instance.
- `status` (String) The status of the virtual machine instance.
- `updated_at` (String) The timestamp when the block storage was last updated.

<a id="nestedatt--volume"></a>
### Nested Schema for `volume`

Optional:

- `id` (String)
- `name` (String)


<a id="nestedatt--created_at"></a>
### Nested Schema for `created_at`

Read-Only:

- `string1` (String)
- `string2` (String)


<a id="nestedatt--current_volume"></a>
### Nested Schema for `current_volume`

Read-Only:

- `id` (String)
- `name` (String)
- `size` (Number)
- `type` (Attributes) (see [below for nested schema](#nestedatt--current_volume--type))

<a id="nestedatt--current_volume--type"></a>
### Nested Schema for `current_volume.type`

Read-Only:

- `id` (String)
- `name` (String)



<a id="nestedatt--updated_at"></a>
### Nested Schema for `updated_at`

Read-Only:
Required:

- `string1` (String)
- `string2` (String)
- `id` (String) ID of block storage volume
132 changes: 25 additions & 107 deletions mgc/terraform-provider-mgc/docs/resources/block_storage_volumes.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
page_title: "mgc_block_storage_volumes Resource - terraform-provider-mgc"
subcategory: ""
description: |-
Operations with volumes, including create, delete, extend, retype, list and other actions.
Block storage volumes are storage devices that can be attached to virtual machines. They are used to store data and can be detached and attached to other virtual machines.
---

# mgc_block_storage_volumes (Resource)

Operations with volumes, including create, delete, extend, retype, list and other actions.
Block storage volumes are storage devices that can be attached to virtual machines. They are used to store data and can be detached and attached to other virtual machines.



Expand All @@ -17,123 +17,41 @@ Operations with volumes, including create, delete, extend, retype, list and othe

### Required

- `name` (String)
- `size` (Number) Gibibytes (GiB)
- `type` (Attributes) (see [below for nested schema](#nestedatt--type))
- `name` (String) The name of the block storage.
- `size` (Number) The size of the block storage in GB.
- `type` (Attributes) The type of the block storage. (see [below for nested schema](#nestedatt--type))

### Optional

- `name_is_prefix` (Boolean) Indicates whether the provided name is a prefix or the exact name of the block storage.

### Read-Only

- `attachment` (Attributes) (see [below for nested schema](#nestedatt--attachment))
- `created_at` (Attributes) (see [below for nested schema](#nestedatt--created_at))
- `current_type` (Attributes) (see [below for nested schema](#nestedatt--current_type))
- `error` (Attributes) (see [below for nested schema](#nestedatt--error))
- `id` (String) The ID of this resource.
- `state` (String)
- `status` (String)
- `updated_at` (Attributes) (see [below for nested schema](#nestedatt--updated_at))
- `created_at` (String) The timestamp when the block storage was created.
- `final_name` (String) The final name of the block storage after applying any naming conventions or modifications.
- `id` (String) The unique identifier of the block storage.
- `state` (String) The current state of the virtual machine instance.
- `status` (String) The status of the virtual machine instance.
- `updated_at` (String) The timestamp when the block storage was last updated.

<a id="nestedatt--type"></a>
### Nested Schema for `type`

Optional:

- `id` (String)
- `name` (String)


<a id="nestedatt--attachment"></a>
### Nested Schema for `attachment`

Read-Only:

- `attached_at` (Attributes) (see [below for nested schema](#nestedatt--attachment--attached_at))
- `device` (String)
- `instance` (Attributes) (see [below for nested schema](#nestedatt--attachment--instance))
Required:

<a id="nestedatt--attachment--attached_at"></a>
### Nested Schema for `attachment.attached_at`
- `name` (String) The name of the block storage type.

Read-Only:

- `string1` (String)
- `string2` (String)


<a id="nestedatt--attachment--instance"></a>
### Nested Schema for `attachment.instance`

Read-Only:

- `created_at` (Attributes) (see [below for nested schema](#nestedatt--attachment--instance--created_at))
- `id` (String)
- `name` (String)
- `state` (String)
- `status` (String)
- `updated_at` (Attributes) (see [below for nested schema](#nestedatt--attachment--instance--updated_at))

<a id="nestedatt--attachment--instance--created_at"></a>
### Nested Schema for `attachment.instance.created_at`

Read-Only:

- `string1` (String)
- `string2` (String)


<a id="nestedatt--attachment--instance--updated_at"></a>
### Nested Schema for `attachment.instance.updated_at`

Read-Only:

- `string1` (String)
- `string2` (String)




<a id="nestedatt--created_at"></a>
### Nested Schema for `created_at`

Read-Only:

- `string1` (String)
- `string2` (String)


<a id="nestedatt--current_type"></a>
### Nested Schema for `current_type`

Read-Only:

- `disk_type` (String)
- `id` (String)
- `iops` (Attributes) (see [below for nested schema](#nestedatt--current_type--iops))
- `name` (String)
- `status` (String)

<a id="nestedatt--current_type--iops"></a>
### Nested Schema for `current_type.iops`

Read-Only:

- `read` (Number)
- `write` (Number)



<a id="nestedatt--error"></a>
### Nested Schema for `error`

Read-Only:

- `message` (String)
- `slug` (String)

- `disk_type` (String) The disk type of the block storage.
- `id` (String) The unique identifier of the block storage type.
- `iops` (Attributes) The IOPS of the block storage type. (see [below for nested schema](#nestedatt--type--iops))
- `status` (String) The status of the block storage type.

<a id="nestedatt--updated_at"></a>
### Nested Schema for `updated_at`
<a id="nestedatt--type--iops"></a>
### Nested Schema for `type.iops`

Read-Only:

- `string1` (String)
- `string2` (String)
- `read` (Number) The read IOPS of the block storage type.
- `write` (Number) The write IOPS of the block storage type.
Loading

0 comments on commit 90fc3ce

Please sign in to comment.