Skip to content

Commit

Permalink
Merge pull request #74 from MagaluCloud/update-files-32bce8256b1ee73e…
Browse files Browse the repository at this point in the history
…136550c28be7945be73d1ab7

Update files from source repository
  • Loading branch information
publi0 authored Jan 15, 2025
2 parents b1cc9e9 + 47bb90b commit b8bf93d
Show file tree
Hide file tree
Showing 30 changed files with 687 additions and 565 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ The provider is currently under development, so new Magalu Cloud resources will
- You can contribute to an [open issue](https://github.com/MagaluCloud/terraform-provider-mgc/issues) to report a bug or suggest improvements and new features
- You can open tópic in our [Dicussions Forum](https://github.com/MagaluCloud/terraform-provider-mgc/discussions)
- See our roadmap in [projects](https://github.com/orgs/MagaluCloud/projects/2/views/7)
- For the time being, the source code is on our [monorepo](https://github.com/MagaluCloud/magalu) (separation in progress).


# References
Expand Down
48 changes: 48 additions & 0 deletions docs/data-sources/availability_zones.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "mgc_availability_zones Data Source - terraform-provider-mgc"
subcategory: "Availability Zones"
description: |-
List of available regions and availability zones.
---

# mgc_availability_zones (Data Source)

List of available regions and availability zones.

## Example Usage

```terraform
data "mgc_availability_zones" "availability_zones" {
}
output "availability_zones" {
value = data.mgc_availability_zones.availability_zones.regions
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Read-Only

- `regions` (Attributes List) (see [below for nested schema](#nestedatt--regions))

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

Read-Only:

- `availability_zones` (Attributes List) (see [below for nested schema](#nestedatt--regions--availability_zones))
- `region` (String)

<a id="nestedatt--regions--availability_zones"></a>
### Nested Schema for `regions.availability_zones`

Optional:

- `block_type` (String)

Read-Only:

- `availability_zone` (String)
9 changes: 1 addition & 8 deletions docs/data-sources/block_storage_snapshot.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,4 @@ output "snapshot" {
- `status` (String) The status of the virtual machine instance.
- `type` (String) The type of the snapshot.
- `updated_at` (String) The timestamp when the block storage was last updated.
- `volume` (Attributes) (see [below for nested schema](#nestedatt--volume))

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

Read-Only:

- `id` (String) ID of block storage volume
- `volume_id` (String) ID of block storage volume
9 changes: 1 addition & 8 deletions docs/data-sources/block_storage_snapshots.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,4 @@ Read-Only:
- `status` (String) The status of the virtual machine instance.
- `type` (String) The type of the snapshot.
- `updated_at` (String) The timestamp when the block storage was last updated.
- `volume` (Attributes) (see [below for nested schema](#nestedatt--snapshots--volume))

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

Read-Only:

- `id` (String) ID of block storage volume
- `volume_id` (String) ID of block storage volume
23 changes: 10 additions & 13 deletions docs/data-sources/block_storage_volume.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
page_title: "mgc_block_storage_volume Data Source - terraform-provider-mgc"
subcategory: "Block Storage"
description: |-
Block storage volumes
Block storage volume
---

# mgc_block_storage_volume (Data Source)

Block storage volumes
Block storage volume

## Example Usage

Expand All @@ -32,21 +32,18 @@ output "my-volume" {

### Read-Only

- `attached_at` (String) The timestamp when the block storage was attached.
- `attached_device` (String) The device path of the attachment.
- `attached_instance_id` (String) The unique identifier of the instance.
- `attached_instance_name` (String) The name of the instance.
- `availability_zone` (String) The availability zones where the block storage is available.
- `created_at` (String) The timestamp when the block storage was created.
- `disk_type` (String) The disk type of the block storage.
- `name` (String) The name of the block storage.
- `size` (Number) The size of the block storage in GB.
- `state` (String) The current state of the virtual machine instance.
- `status` (String) The status of the virtual machine instance.
- `type` (Attributes) The type of the block storage. (see [below for nested schema](#nestedatt--type))
- `type_id` (String) The unique identifier of the block storage type.
- `type_name` (String) The name of the block storage type.
- `type_status` (String) The status of the block storage type.
- `updated_at` (String) The timestamp when the block storage was last updated.

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

Read-Only:

- `disk_type` (String) The disk type of the block storage.
- `id` (String) The unique identifier of the block storage type.
- `name` (String) The name of the block storage type.
- `status` (String) The status of the block storage type.
12 changes: 1 addition & 11 deletions docs/data-sources/block_storage_volumes.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,5 @@ Read-Only:
- `size` (Number) The size of the block storage in GB.
- `state` (String) The current state of the virtual machine instance.
- `status` (String) The status of the virtual machine instance.
- `type` (Attributes) The type of the block storage. (see [below for nested schema](#nestedatt--volumes--type))
- `type_id` (String) The unique identifier of the block storage type.
- `updated_at` (String) The timestamp when the block storage was last updated.

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

Read-Only:

- `disk_type` (String) The disk type of the block storage.
- `id` (String) The unique identifier of the block storage type.
- `name` (String) The name of the block storage type.
- `status` (String) The status of the block storage type.
27 changes: 27 additions & 0 deletions docs/data-sources/container_credentials.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "mgc_container_credentials Data Source - terraform-provider-mgc"
subcategory: "Container Registry"
description: |-
Credentials for Container Registry authentication
---

# mgc_container_credentials (Data Source)

Credentials for Container Registry authentication

## Example Usage

```terraform
data "mgc_container_credentials" "creds"{
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Read-Only

- `email` (String) Email address for the credentials
- `password` (String, Sensitive) Password for authentication
- `username` (String) Username for authentication
43 changes: 43 additions & 0 deletions docs/data-sources/container_images.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "mgc_container_images Data Source - terraform-provider-mgc"
subcategory: "Container Registry"
description: |-
Data source for Container Registry Images
---

# mgc_container_images (Data Source)

Data source for Container Registry Images

## Example Usage

```terraform
data "mgc_container_images" "image"{
registry_id = mgc_container_registries.registry.id
repository_name = "alohomora"
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `registry_id` (String) ID of the registry
- `repository_name` (String) Name of the repository

### Read-Only

- `images` (Attributes List) List of container images (see [below for nested schema](#nestedatt--images))

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

Read-Only:

- `digest` (String) The digest hash of the image
- `pullet_at` (String) The timestamp when the image was last pulled
- `pushed_at` (String) The timestamp when the image was pushed
- `size_bytes` (Number) The size of the image in bytes
- `tags` (List of String) List of tags associated with the image
36 changes: 36 additions & 0 deletions docs/data-sources/container_registries.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "mgc_container_registries Data Source - terraform-provider-mgc"
subcategory: "Container Registry"
description: |-
Data source for Container Registry lists
---

# mgc_container_registries (Data Source)

Data source for Container Registry lists

## Example Usage

```terraform
data "mgc_container_registries" "registry"{
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Read-Only

- `registries` (Attributes List) List of container registries (see [below for nested schema](#nestedatt--registries))

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

Read-Only:

- `created_at` (String) The timestamp when the registry was created
- `id` (String) The unique identifier of the registry
- `name` (String) The name of the registry
- `storage_usage_bytes` (Number) The storage usage in bytes
- `updated_at` (String) The timestamp when the registry was last updated
41 changes: 41 additions & 0 deletions docs/data-sources/container_repositories.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "mgc_container_repositories Data Source - terraform-provider-mgc"
subcategory: "Container Registry"
description: |-
Data source for Container Registry Repositories
---

# mgc_container_repositories (Data Source)

Data source for Container Registry Repositories

## Example Usage

```terraform
data "mgc_container_repositories" "repository"{
registry_id = mgc_container_registries.registry.id
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `registry_id` (String) ID of the registry

### Read-Only

- `repositories` (Attributes List) List of container repositories (see [below for nested schema](#nestedatt--repositories))

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

Read-Only:

- `created_at` (String) The timestamp when the repository was created
- `image_count` (Number) The number of images in the repository
- `name` (String) The name of the repository
- `registry_name` (String) The name of the registry containing this repository
- `updated_at` (String) The timestamp when the repository was last updated
48 changes: 48 additions & 0 deletions docs/data-sources/dbaas_engines.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "mgc_dbaas_engines Data Source - terraform-provider-mgc"
subcategory: "Database"
description: |-
A list of available database engines.
---

# mgc_dbaas_engines (Data Source)

A list of available database engines.

## Example Usage

```terraform
# Data sources
data "mgc_dbaas_engines" "active_engines" {
status = "ACTIVE"
}
data "mgc_dbaas_engines" "deprecated_engines" {
status = "DEPRECATED"
}
data "mgc_dbaas_engines" "all_engines" {}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Optional

- `status` (String) Filter to return engines based on their status. If set to ACTIVE, returns only active engines. If set to DEPRECATED, returns only deprecated engines.

### Read-Only

- `engines` (Attributes List) List of available database engines (see [below for nested schema](#nestedatt--engines))

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

Read-Only:

- `engine` (String) The type of the database engine
- `id` (String) The ID of the database engine
- `name` (String) The name of the database engine
- `status` (String) The status of the database engine
- `version` (String) The version of the database engine
48 changes: 48 additions & 0 deletions docs/data-sources/dbaas_instance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "mgc_dbaas_instance Data Source - terraform-provider-mgc"
subcategory: "Database"
description: |-
Get a database instance by ID.
---

# mgc_dbaas_instance (Data Source)

Get a database instance by ID.

## Example Usage

```terraform
data "mgc_dbaas_instance" "test_instance" {
id = "test_instance_id"
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `id` (String) ID of the instance to fetch

### Read-Only

- `addresses` (Attributes List) List of instance addresses (see [below for nested schema](#nestedatt--addresses))
- `backup_retention_days` (Number) Number of days to retain backups
- `created_at` (String) Creation timestamp of the instance
- `engine_id` (String) ID of the engine
- `instance_type_id` (String) ID of the instance type
- `name` (String) Name of the instance
- `parameters` (Map of String) Map of parameters
- `status` (String) Status of the instance
- `volume_size` (Number) Size of the volume
- `volume_type` (String) Type of the volume

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

Read-Only:

- `access` (String) Access type of the address
- `address` (String) IP address
- `type` (String) Type of the address
Loading

0 comments on commit b8bf93d

Please sign in to comment.