Skip to content

Commit

Permalink
docs(csbs): fix docs issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zippo-Wang committed Sep 8, 2023
1 parent 9d08db8 commit 2ce13db
Show file tree
Hide file tree
Showing 4 changed files with 163 additions and 110 deletions.
54 changes: 32 additions & 22 deletions docs/data-sources/csbs_backup_policy_v1.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,53 +20,63 @@ data "flexibleengine_csbs_backup_policy_v1" "csbs_policy" {

The following arguments are supported:

* `id` - (Optional) Specifies the ID of backup policy.
* `region` - (Optional, String, ForceNew) Specifies the region in which to create the CSBS backup policy resource.
If omitted, the provider-level region will be used. Changing this will create a new CSBS backup policy resource.

* `name` - (Optional) Specifies the backup policy name.
* `id` - (Optional, String) Specifies the ID of backup policy.

* `status` - (Optional) Specifies the backup policy status.
* `name` - (Optional, String) Specifies the backup policy name.

## Attributes Reference
* `status` - (Optional, String) Specifies the backup policy status.

## Attribute Reference

In addition to all arguments above, the following attributes are exported:

* `description` - Specifies the backup policy description.

* `provider_id` - Provides the Backup provider ID.

* `parameters` - Specifies the parameters of a backup policy.
* `common` - General backup policy parameters, which are blank by default.

* `scheduled_operation` - Backup plan information.
The [scheduled_operation](#functiongraph_scheduled_operation) object structure is documented below.

* `resource` - Backup Object. The [resource](#functiongraph_resource) object structure is documented below.

* `scheduled_operation` block supports the following arguments:
<a name="functiongraph_scheduled_operation"></a>
The `scheduled_operation` block supports:

+ `name` - Specifies Scheduling period name.
* `name` - Specifies Scheduling period name.

+ `description` - Specifies Scheduling period description.
* `description` - Specifies Scheduling period description.

+ `enabled` - Specifies whether the scheduling period is enabled.
* `enabled` - Specifies whether the scheduling period is enabled.

+ `max_backups` - Specifies maximum number of backups that can be automatically created for a backup object.
* `max_backups` - Specifies maximum number of backups that can be automatically created for a backup object.

+ `retention_duration_days` - Specifies duration of retaining a backup, in days.
* `retention_duration_days` - Specifies duration of retaining a backup, in days.

+ `permanent` - Specifies whether backups are permanently retained.
* `permanent` - Specifies whether backups are permanently retained.

+ `trigger_pattern` - Specifies Scheduling policy of the scheduler.
* `trigger_pattern` - Specifies Scheduling policy of the scheduler.

+ `operation_type` - Specifies Operation type, which can be backup.
* `operation_type` - Specifies Operation type, which can be backup.

+ `id` - Specifies Scheduling period ID.
* `id` - Specifies Scheduling period ID.

+ `trigger_id` - Specifies Scheduler ID.
* `trigger_id` - Specifies Scheduler ID.

+ `trigger_name` - Specifies Scheduler name.
* `trigger_name` - Specifies Scheduler name.

+ `trigger_type` - Specifies Scheduler type.
* `trigger_type` - Specifies Scheduler type.

* `resource` block supports the following arguments:
<a name="functiongraph_resource"></a>
The `resource` block supports:

+ `id` - Specifies the ID of the object to be backed up.
* `id` - Specifies the ID of the object to be backed up.

+ `type` - Entity object type of the backup object.
* `type` - Entity object type of the backup object.

+ `name` - Specifies backup object name.
* `name` - Specifies backup object name.

75 changes: 42 additions & 33 deletions docs/data-sources/csbs_backup_v1.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,28 @@ data "flexibleengine_csbs_backup_v1" "csbs" {

The following arguments are supported:

* `id` - (Optional) Specifies the ID of backup.
* `region` - (Optional, String, ForceNew) Specifies the region in which to create the CSBS backup resource.
If omitted, the provider-level region will be used. Changing this will create a new CSBS backup resource.

* `backup_name` - (Optional) Specifies the backup name.
* `id` - (Optional, String) Specifies the ID of backup.

* `status` - (Optional) Specifies the backup status.
* `backup_name` - (Optional, String) Specifies the backup name.

* `resource_name` - (Optional) Specifies the backup object name.
* `status` - (Optional, String) Specifies the backup status.

* `backup_record_id` - (Optional) Specifies the backup record ID.
* `resource_name` - (Optional, String) Specifies the backup object name.

* `resource_type` - (Optional) Specifies the type of backup objects.
* `backup_record_id` - (Optional, String) Specifies the backup record ID.

* `resource_id` - (Optional) Specifies the backup object ID.
* `resource_type` - (Optional, String) Specifies the type of backup objects.

* `policy_id` - (Optional) Specifies the Policy Id.
* `resource_id` - (Optional, String) Specifies the backup object ID.

* `vm_ip` - (Optional) Specifies the ip of VM.
* `policy_id` - (Optional, String) Specifies the Policy Id.

## Attributes Reference
* `vm_ip` - (Optional, String) Specifies the ip of VM.

## Attribute Reference

In addition to all arguments above, the following attributes are exported:

Expand All @@ -50,48 +53,54 @@ In addition to all arguments above, the following attributes are exported:

* `size` - Specifies the backup capacity.

* `volume_backups` - block supports the following arguments:
* `volume_backups` - The [volume_backups](#functiongraph_volume_backups) object structure is documented below.

* `vm_metadata` - The [vm_metadata](#functiongraph_vm_metadata) object structure is documented below.

<a name="functiongraph_volume_backups"></a>
The `volume_backups` block supports:

+ `status` - Status of backup Volume.
* `status` - Status of backup Volume.

+ `space_saving_ratio` - Specifies the space saving rate.
* `space_saving_ratio` - Specifies the space saving rate.

+ `name` - It gives EVS disk backup name.
* `name` - It gives EVS disk backup name.

+ `bootable` - Specifies whether the disk is bootable.
* `bootable` - Specifies whether the disk is bootable.

+ `average_speed` - Specifies the average speed.
* `average_speed` - Specifies the average speed.

+ `source_volume_size` - Shows source volume size in GB.
* `source_volume_size` - Shows source volume size in GB.

+ `source_volume_id` - It specifies source volume ID.
* `source_volume_id` - It specifies source volume ID.

+ `incremental` - Shows whether incremental backup is used.
* `incremental` - Shows whether incremental backup is used.

+ `snapshot_id` - ID of snapshot.
* `snapshot_id` - ID of snapshot.

+ `source_volume_name` - Specifies source volume name.
* `source_volume_name` - Specifies source volume name.

+ `image_type` - It specifies backup. The default value is backup.
* `image_type` - It specifies backup. The default value is backup.

+ `id` - Specifies Cinder backup ID.
* `id` - Specifies Cinder backup ID.

+ `size` - Specifies accumulated size (MB) of backups.
* `size` - Specifies accumulated size (MB) of backups.

* `vm_metadata` - block supports the following arguments:
<a name="functiongraph_vm_metadata"></a>
The `vm_metadata` block supports:

+ `name` - Name of backup data.
* `name` - Name of backup data.

+ `eip` - Specifies elastic IP address of the ECS.
* `eip` - Specifies elastic IP address of the ECS.

+ `cloud_service_type` - Specifies ECS type.
* `cloud_service_type` - Specifies ECS type.

+ `ram` - Specifies memory size of the ECS, in MB.
* `ram` - Specifies memory size of the ECS, in MB.

+ `vcpus` - Specifies CPU cores corresponding to the ECS.
* `vcpus` - Specifies CPU cores corresponding to the ECS.

+ `private_ip` - It specifies internal IP address of the ECS.
* `private_ip` - It specifies internal IP address of the ECS.

+ `disk` - Shows system disk size corresponding to the ECS specifications.
* `disk` - Shows system disk size corresponding to the ECS specifications.

+ `image_type` - Specifies image type.
* `image_type` - Specifies image type.
65 changes: 41 additions & 24 deletions docs/resources/csbs_backup_policy_v1.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,61 +34,78 @@ Provides a FlexibleEngine Backup Policy of Resources.

The following arguments are supported:

* `name` - (Required) Specifies the name of backup policy. The value consists of 1 to 255 characters and
* `region` - (Optional, String, ForceNew) Specifies the region in which to create the CSBS backup policy resource.
If omitted, the provider-level region will be used. Changing this will create a new CSBS backup policy resource.

* `name` - (Required, String) Specifies the name of backup policy. The value consists of 1 to 255 characters and
can contain only letters, digits, underscores (_), and hyphens (-).

* `description` - (Optional) Backup policy description. The value consists of 0 to 255 characters and
* `description` - (Optional, String) Backup policy description. The value consists of 0 to 255 characters and
must not contain a greater-than sign (>) or less-than sign (<).

* `provider_id` - (Required) Specifies backup provider ID. Default value is **fc4d5750-22e7-4798-8a46-f48f62c4c1da**
* `provider_id` - (Required, String, ForceNew) Specifies backup provider ID. Default value is
**fc4d5750-22e7-4798-8a46-f48f62c4c1da**

* `common` - (Optional) General backup policy parameters, which are blank by default.
* `common` - (Optional, Map) General backup policy parameters, which are blank by default.

* `scheduled_operation` block supports the following arguments:
* `scheduled_operation` - (Required, Set) Backup plan information.

+ `name` - (Optional) Specifies Scheduling period name.The value consists of 1 to 255 characters and
+ `name` - (Optional, String) Specifies Scheduling period name.The value consists of 1 to 255 characters and
can contain only letters, digits, underscores (_), and hyphens (-).

+ `description` - (Optional) Specifies Scheduling period description.The value consists of 0 to 255 characters and
must not contain a greater-than sign (>) or less-than sign (<).
+ `description` - (Optional, String) Specifies Scheduling period description.The value consists of 0 to 255
characters and must not contain a greater-than sign (>) or less-than sign (<).

+ `enabled` - (Optional) Specifies whether the scheduling period is enabled. Default value is **true**
+ `enabled` - (Optional, Bool) Specifies whether the scheduling period is enabled. Default value is **true**.

+ `max_backups` - (Optional) Specifies maximum number of backups that can be automatically created for a backup object.
+ `max_backups` - (Optional, Int) Specifies maximum number of backups that can be automatically created for a
backup object.

+ `retention_duration_days` - (Optional) Specifies duration of retaining a backup, in days.
+ `retention_duration_days` - (Optional, Int) Specifies duration of retaining a backup, in days.

+ `permanent` - (Optional) Specifies whether backups are permanently retained.
+ `permanent` - (Optional, Bool) Specifies whether backups are permanently retained.

+ `trigger_pattern` - (Required) Specifies Scheduling policy of the scheduler.
+ `trigger_pattern` - (Required, String) Specifies Scheduling policy of the scheduler.

+ `operation_type` - (Required) Specifies Operation type, which can be backup.
+ `operation_type` - (Required, String) Specifies Operation type, which can be backup.

* `resource` block supports the following arguments:
* `resource` - (Required, Set, ForceNew) Backup Object.

+ `id` - (Required) Specifies the ID of the object to be backed up.
+ `id` - (Required, String) Specifies the ID of the object to be backed up.

+ `type` - (Required) Entity object type of the backup object. If the type is VMs, the value is **OS::Nova::Server**.
+ `type` - (Required, String) Entity object type of the backup object.
If the type is VMs, the value is **OS::Nova::Server**.

+ `name` - (Required) Specifies backup object name.
+ `name` - (Required, String) Specifies backup object name.

## Attributes Reference
## Attribute Reference

In addition to all arguments above, the following attributes are exported:

* `status` - Status of Backup Policy.

* `id` - Backup Policy ID.

* scheduled_operation - Backup plan information
* `scheduled_operation` - Backup plan information.
The [scheduled_operation](#functiongraph_scheduled_operation) object structure is documented below.

<a name="functiongraph_scheduled_operation"></a>
The `scheduled_operation` block supports:

* `id` - Specifies Scheduling period ID.

* `trigger_id` - Specifies Scheduler ID.

* `trigger_name` - Specifies Scheduler name.

+ `id` - Specifies Scheduling period ID.
* `trigger_type` - Specifies Scheduler type.

+ `trigger_id` - Specifies Scheduler ID.
## Timeouts

+ `trigger_name` - Specifies Scheduler name.
This resource provides the following timeouts configuration options:

+ `trigger_type` - Specifies Scheduler type.
* `create` - Default is 10 minutes.
* `delete` - Default is 10 minutes.

## Import

Expand Down
Loading

0 comments on commit 2ce13db

Please sign in to comment.