Skip to content

Commit

Permalink
Update terraform docs for drift and formatting (#5194)
Browse files Browse the repository at this point in the history
* Update project.html.markdown for drift

* Update project_config formatting

* Update project_environment format

* Update project format

* Update project_config format

* Update project_config.html.markdown

* Update project_environment.html.markdown

* Update project_config.html.markdown

* Update project_config.html.markdown

* Update project_environment.html.markdown

* Update project.html.markdown

* Update project.html.markdown

* Update project.html.markdown

* Update project_config.html.markdown
  • Loading branch information
h-romeus authored Mar 19, 2024
1 parent e807e17 commit 0f1e328
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 39 deletions.
14 changes: 7 additions & 7 deletions website/docs/d/project_config.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ data "ibm_project_config" "project_config" {

You can specify the following arguments for this data source.

* `project_config_id` - (Required, Forces new resource, String) The unique config ID.
* `project_config_id` - (Required, Forces new resource, String) The unique configuration ID.
* Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`.
* `project_id` - (Required, Forces new resource, String) The unique project ID.
* Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`.
Expand All @@ -40,7 +40,7 @@ Nested schema for **definition**:
* `authorizations` - (List) The authorization details. You can authorize by using a trusted profile or an API key in Secrets Manager.
Nested schema for **authorizations**:
* `api_key` - (String) The IBM Cloud API Key.
* Constraints: The maximum length is `512` characters. The minimum length is `0` characters. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/`.
* Constraints: The maximum length is `512` characters. The minimum length is `0` characters. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^<>\\x00-\\x1F]*$/`.
* `method` - (String) The authorization method. You can authorize by using a trusted profile or an API key in Secrets Manager.
* Constraints: Allowable values are: `api_key`, `trusted_profile`.
* `trusted_profile_id` - (String) The trusted profile ID.
Expand All @@ -56,9 +56,9 @@ Nested schema for **definition**:
* `instance_location` - (String) The location of the compliance instance.
* Constraints: The maximum length is `12` characters. The minimum length is `0` characters. The value must match regular expression `/^$|^(us-south|us-east|eu-gb|eu-de)$/`.
* `profile_name` - (String) The name of the compliance profile.
* Constraints: The maximum length is `1024` characters. The minimum length is `0` characters. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/`.
* Constraints: The maximum length is `1024` characters. The minimum length is `0` characters. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^<>\\x00-\\x1F]*$/`.
* `description` - (String) A project configuration description.
* Constraints: The default value is ``. The maximum length is `1024` characters. The minimum length is `0` characters. The value must match regular expression `/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/`.
* Constraints: The default value is `''`. The maximum length is `1024` characters. The minimum length is `0` characters. The value must match regular expression `/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/`.
* `environment_id` - (String) The ID of the project environment.
* Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`.
* `inputs` - (Map) The input variables for configuration definition and environment.
Expand Down Expand Up @@ -94,11 +94,11 @@ Nested schema for **outputs**:
* `project` - (List) The project referenced by this resource.
Nested schema for **project**:
* `crn` - (String) An IBM Cloud resource name, which uniquely identifies a resource.
* Constraints: The maximum length is `512` characters. The minimum length is `4` characters. The value must match regular expression `/(?!\\s)(?!.*\\s$)^(crn)[^'"`<>{}\\s\\x00-\\x1F]*/`.
* Constraints: The maximum length is `512` characters. The minimum length is `4` characters. The value must match regular expression `/(?!\\s)(?!.*\\s$)^(crn)[^'"<>{}\\s\\x00-\\x1F]*/`.
* `definition` - (List) The definition of the project reference.
Nested schema for **definition**:
* `name` - (String) The name of the project.
* Constraints: The maximum length is `64` characters. The minimum length is `1` character. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^'"`<>{}\\x00-\\x1F]+$/`.
* Constraints: The maximum length is `64` characters. The minimum length is `1` character. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^'"<>{}\\x00-\\x1F]+$/`.
* `href` - (String) A URL.
* Constraints: The maximum length is `256` characters. The minimum length is `1` character. The value must match regular expression `/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/`.
* `id` - (String) The unique ID.
Expand Down Expand Up @@ -155,7 +155,7 @@ Nested schema for **schematics**:
* `type` - (String) The type of the script.
* Constraints: The maximum length is `7` characters. The minimum length is `7` characters. The value must match regular expression `/^(ansible)$/`.
* `workspace_crn` - (String) An IBM Cloud resource name, which uniquely identifies a resource.
* Constraints: The maximum length is `512` characters. The minimum length is `4` characters. The value must match regular expression `/(?!\\s)(?!.*\\s$)^(crn)[^'"`<>{}\\s\\x00-\\x1F]*/`.
* Constraints: The maximum length is `512` characters. The minimum length is `4` characters. The value must match regular expression `/(?!\\s)(?!.*\\s$)^(crn)[^'"<>{}\\s\\x00-\\x1F]*/`.

* `state` - (String) The state of the configuration.
* Constraints: Allowable values are: `approved`, `deleted`, `deleting`, `deleting_failed`, `discarded`, `draft`, `deployed`, `deploying_failed`, `deploying`, `superseded`, `undeploying`, `undeploying_failed`, `validated`, `validating`, `validating_failed`, `applied`, `apply_failed`.
Expand Down
12 changes: 6 additions & 6 deletions website/docs/d/project_environment.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Nested schema for **definition**:
* `authorizations` - (List) The authorization details. You can authorize by using a trusted profile or an API key in Secrets Manager.
Nested schema for **authorizations**:
* `api_key` - (String) The IBM Cloud API Key.
* Constraints: The maximum length is `512` characters. The minimum length is `0` characters. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/`.
* Constraints: The maximum length is `512` characters. The minimum length is `0` characters. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^<>\\x00-\\x1F]*$/`.
* `method` - (String) The authorization method. You can authorize by using a trusted profile or an API key in Secrets Manager.
* Constraints: Allowable values are: `api_key`, `trusted_profile`.
* `trusted_profile_id` - (String) The trusted profile ID.
Expand All @@ -56,12 +56,12 @@ Nested schema for **definition**:
* `instance_location` - (String) The location of the compliance instance.
* Constraints: The maximum length is `12` characters. The minimum length is `0` characters. The value must match regular expression `/^$|^(us-south|us-east|eu-gb|eu-de)$/`.
* `profile_name` - (String) The name of the compliance profile.
* Constraints: The maximum length is `1024` characters. The minimum length is `0` characters. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^`<>\\x00-\\x1F]*$/`.
* Constraints: The maximum length is `1024` characters. The minimum length is `0` characters. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^<>\\x00-\\x1F]*$/`.
* `description` - (String) The description of the environment.
* Constraints: The default value is ``. The maximum length is `1024` characters. The minimum length is `0` characters. The value must match regular expression `/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/`.
* Constraints: The default value is `''`. The maximum length is `1024` characters. The minimum length is `0` characters. The value must match regular expression `/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/`.
* `inputs` - (Map) The input variables for configuration definition and environment.
* `name` - (String) The name of the environment. It is unique within the account across projects and regions.
* Constraints: The maximum length is `128` characters. The minimum length is `1` character. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^'"`<>{}\\x00-\\x1F]+$/`.
* Constraints: The maximum length is `128` characters. The minimum length is `1` character. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^'"<>{}\\x00-\\x1F]+$/`.

* `href` - (String) A URL.
* Constraints: The maximum length is `256` characters. The minimum length is `1` character. The value must match regular expression `/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/`.
Expand All @@ -71,11 +71,11 @@ Nested schema for **definition**:
* `project` - (List) The project referenced by this resource.
Nested schema for **project**:
* `crn` - (String) An IBM Cloud resource name, which uniquely identifies a resource.
* Constraints: The maximum length is `512` characters. The minimum length is `4` characters. The value must match regular expression `/(?!\\s)(?!.*\\s$)^(crn)[^'"`<>{}\\s\\x00-\\x1F]*/`.
* Constraints: The maximum length is `512` characters. The minimum length is `4` characters. The value must match regular expression `/(?!\\s)(?!.*\\s$)^(crn)[^'"<>{}\\s\\x00-\\x1F]*/`.
* `definition` - (List) The definition of the project reference.
Nested schema for **definition**:
* `name` - (String) The name of the project.
* Constraints: The maximum length is `64` characters. The minimum length is `1` character. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^'"`<>{}\\x00-\\x1F]+$/`.
* Constraints: The maximum length is `64` characters. The minimum length is `1` character. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^'"<>{}\\x00-\\x1F]+$/`.
* `href` - (String) A URL.
* Constraints: The maximum length is `256` characters. The minimum length is `1` character. The value must match regular expression `/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/`.
* `id` - (String) The unique ID.
Expand Down
28 changes: 14 additions & 14 deletions website/docs/r/project.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,16 @@ You can specify the following arguments for this resource.
* `definition` - (Required, List) The definition of the project.
Nested schema for **definition**:
* `description` - (Required, String) A brief explanation of the project's use in the configuration of a deployable architecture. It is possible to create a project without providing a description.
* Constraints: The default value is ``. The maximum length is `1024` characters. The minimum length is `0` characters. The value must match regular expression `/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/`.
* Constraints: The default value is `''`. The maximum length is `1024` characters. The minimum length is `0` characters. The value must match regular expression `/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/`.
* `destroy_on_delete` - (Required, Boolean) The policy that indicates whether the resources are destroyed or not when a project is deleted.
* `monitoring_enabled` - (Boolean) A boolean flag to enable project monitoring.
* `monitoring_enabled` - (Boolean) A boolean flag to enable automatic drift detection. Use this field to run a daily check to compare your configurations to your deployed resources to detect any difference.
* Constraints: The default value is `false`.
* `name` - (Required, String) The name of the project. It is unique within the account across regions.
* Constraints: The maximum length is `128` characters. The minimum length is `1` character. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^'"`<>{}\\x00-\\x1F]+$/`.
* Constraints: The maximum length is `128` characters. The minimum length is `1` character. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^'"<>{}\\x00-\\x1F]+$/`.
* `location` - (Required, Forces new resource, String) The IBM Cloud location where a resource is deployed.
* Constraints: The maximum length is `64` characters. The minimum length is `0` characters. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^'"`<>{}\\x00-\\x1F]*$/`.
* Constraints: The maximum length is `64` characters. The minimum length is `0` characters. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^'"<>{}\\x00-\\x1F]*$/`.
* `resource_group` - (Required, Forces new resource, String) The resource group name where the project's data and tools are created.
* Constraints: The maximum length is `64` characters. The minimum length is `0` characters. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^'"`<>{}\\x00-\\x1F]*$/`.
* Constraints: The maximum length is `64` characters. The minimum length is `0` characters. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^'"<>{}\\x00-\\x1F]*$/`.

## Attribute Reference

Expand All @@ -55,7 +55,7 @@ Nested schema for **configs**:
* `definition` - (List) The name and description of a project configuration.
Nested schema for **definition**:
* `description` - (String) A project configuration description.
* Constraints: The default value is ``. The maximum length is `1024` characters. The minimum length is `0` characters. The value must match regular expression `/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/`.
* Constraints: The default value is `''`. The maximum length is `1024` characters. The minimum length is `0` characters. The value must match regular expression `/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/`.
* `name` - (String) The configuration name. It is unique within the account across projects and regions.
* Constraints: The maximum length is `128` characters. The minimum length is `1` character. The value must match regular expression `/^[a-zA-Z0-9][a-zA-Z0-9-_ ]*$/`.
* `deployment_model` - (String) The configuration type.
Expand All @@ -68,11 +68,11 @@ Nested schema for **configs**:
* `project` - (List) The project referenced by this resource.
Nested schema for **project**:
* `crn` - (String) An IBM Cloud resource name, which uniquely identifies a resource.
* Constraints: The maximum length is `512` characters. The minimum length is `4` characters. The value must match regular expression `/(?!\\s)(?!.*\\s$)^(crn)[^'"`<>{}\\s\\x00-\\x1F]*/`.
* Constraints: The maximum length is `512` characters. The minimum length is `4` characters. The value must match regular expression `/(?!\\s)(?!.*\\s$)^(crn)[^'"<>{}\\s\\x00-\\x1F]*/`.
* `definition` - (List) The definition of the project reference.
Nested schema for **definition**:
* `name` - (String) The name of the project.
* Constraints: The maximum length is `64` characters. The minimum length is `1` character. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^'"`<>{}\\x00-\\x1F]+$/`.
* Constraints: The maximum length is `64` characters. The minimum length is `1` character. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^'"<>{}\\x00-\\x1F]+$/`.
* `href` - (String) A URL.
* Constraints: The maximum length is `256` characters. The minimum length is `1` character. The value must match regular expression `/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/`.
* `id` - (String) The unique ID.
Expand All @@ -82,15 +82,15 @@ Nested schema for **configs**:
* `version` - (Integer) The version of the configuration.
* `created_at` - (String) A date and time value in the format YYYY-MM-DDTHH:mm:ssZ or YYYY-MM-DDTHH:mm:ss.sssZ, matching the date and time format as specified by RFC 3339.
* `crn` - (String) An IBM Cloud resource name, which uniquely identifies a resource.
* Constraints: The maximum length is `512` characters. The minimum length is `4` characters. The value must match regular expression `/(?!\\s)(?!.*\\s$)^(crn)[^'"`<>{}\\s\\x00-\\x1F]*/`.
* Constraints: The maximum length is `512` characters. The minimum length is `4` characters. The value must match regular expression `/(?!\\s)(?!.*\\s$)^(crn)[^'"<>{}\\s\\x00-\\x1F]*/`.
* `cumulative_needs_attention_view` - (List) The cumulative list of needs attention items for a project. If the view is successfully retrieved, an array which could be empty is returned.
* Constraints: The default value is `[]`. The maximum length is `50` items. The minimum length is `0` items.
Nested schema for **cumulative_needs_attention_view**:
* `config_id` - (String) A unique ID for the configuration.
* Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`.
* `config_version` - (Integer) The version number of the configuration.
* `event` - (String) The event name.
* Constraints: The maximum length is `64` characters. The minimum length is `0` characters. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^'"`<>{}\\x00-\\x1F]*$/`.
* Constraints: The maximum length is `64` characters. The minimum length is `0` characters. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^'"<>{}\\x00-\\x1F]*$/`.
* `event_id` - (String) A unique ID for that individual event.
* Constraints: The maximum length is `128` characters. The value must match regular expression `/^[\\.\\-0-9a-zA-Z]+$/`.
* `cumulative_needs_attention_view_error` - (Boolean) True indicates that the fetch of the needs attention items failed. It only exists if there was an error while retrieving the cumulative needs attention view.
Expand All @@ -102,21 +102,21 @@ Nested schema for **environments**:
* `definition` - (List) The environment definition used in the project collection.
Nested schema for **definition**:
* `description` - (String) The description of the environment.
* Constraints: The default value is ``. The maximum length is `1024` characters. The minimum length is `0` characters. The value must match regular expression `/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/`.
* Constraints: The default value is `''`. The maximum length is `1024` characters. The minimum length is `0` characters. The value must match regular expression `/^$|^(?!\\s)(?!.*\\s$)[^\\x00-\\x1F]*$/`.
* `name` - (String) The name of the environment. It is unique within the account across projects and regions.
* Constraints: The maximum length is `128` characters. The minimum length is `1` character. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^'"`<>{}\\x00-\\x1F]+$/`.
* Constraints: The maximum length is `128` characters. The minimum length is `1` character. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^'"<>{}\\x00-\\x1F]+$/`.
* `href` - (String) A URL.
* Constraints: The maximum length is `256` characters. The minimum length is `1` character. The value must match regular expression `/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/`.
* `id` - (String) The environment id as a friendly name.
* Constraints: The maximum length is `256` characters. The minimum length is `1` character. The value must match regular expression `/^(?!\\s)(?!.*\\s$).+$/`.
* `project` - (List) The project referenced by this resource.
Nested schema for **project**:
* `crn` - (String) An IBM Cloud resource name, which uniquely identifies a resource.
* Constraints: The maximum length is `512` characters. The minimum length is `4` characters. The value must match regular expression `/(?!\\s)(?!.*\\s$)^(crn)[^'"`<>{}\\s\\x00-\\x1F]*/`.
* Constraints: The maximum length is `512` characters. The minimum length is `4` characters. The value must match regular expression `/(?!\\s)(?!.*\\s$)^(crn)[^'"<>{}\\s\\x00-\\x1F]*/`.
* `definition` - (List) The definition of the project reference.
Nested schema for **definition**:
* `name` - (String) The name of the project.
* Constraints: The maximum length is `64` characters. The minimum length is `1` character. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^'"`<>{}\\x00-\\x1F]+$/`.
* Constraints: The maximum length is `64` characters. The minimum length is `1` character. The value must match regular expression `/^(?!\\s)(?!.*\\s$)[^'"<>{}\\x00-\\x1F]+$/`.
* `href` - (String) A URL.
* Constraints: The maximum length is `256` characters. The minimum length is `1` character. The value must match regular expression `/^(http(s)?:\/\/)[a-zA-Z0-9\\$\\-_\\.+!\\*'\\(\\),=&?\/]+$/`.
* `id` - (String) The unique ID.
Expand Down
Loading

0 comments on commit 0f1e328

Please sign in to comment.