Conversation
Signed-off-by: Salim Afiune Maya <afiune@mondoo.com>
imilchev
approved these changes
Jan 30, 2025
misterpantz
reviewed
Jan 30, 2025
docs/resources/workspace.md
Outdated
| page_title: "mondoo_workspace Resource - terraform-provider-mondoo" | ||
| subcategory: "" | ||
| description: |- | ||
| Allows management of Mondoo Workspaces. |
Contributor
There was a problem hiding this comment.
Suggested change
| Allows management of Mondoo Workspaces. | |
| Allows management of Mondoo workspaces. |
misterpantz
reviewed
Jan 30, 2025
misterpantz
reviewed
Jan 30, 2025
|
|
||
| ### Required | ||
|
|
||
| - `asset_selections` (Attributes List) A list of workspace selections. (see [below for nested schema](#nestedatt--asset_selections)) |
Contributor
There was a problem hiding this comment.
Suggested change
| - `asset_selections` (Attributes List) A list of workspace selections. (see [below for nested schema](#nestedatt--asset_selections)) | |
| - `asset_selections` (Attributes List) A list of workspace selections. (See [below for nested schema](#nestedatt--asset_selections).) |
misterpantz
reviewed
Jan 30, 2025
|
|
||
| Required: | ||
|
|
||
| - `conditions` (Attributes List) A list of conditions for the selection. (see [below for nested schema](#nestedatt--asset_selections--conditions)) |
Contributor
There was a problem hiding this comment.
Suggested change
| - `conditions` (Attributes List) A list of conditions for the selection. (see [below for nested schema](#nestedatt--asset_selections--conditions)) | |
| - `conditions` (Attributes List) A list of conditions for the selection. (See [below for nested schema](#nestedatt--asset_selections--conditions).) |
misterpantz
reviewed
Jan 30, 2025
|
|
||
| Optional: | ||
|
|
||
| - `int_condition` (Attributes) A condition with values of type int. (see [below for nested schema](#nestedatt--asset_selections--conditions--int_condition)) |
Contributor
There was a problem hiding this comment.
Suggested change
| - `int_condition` (Attributes) A condition with values of type int. (see [below for nested schema](#nestedatt--asset_selections--conditions--int_condition)) | |
| - `int_condition` (Attributes) A condition with values of type int. (See [below for nested schema](#nestedatt--asset_selections--conditions--int_condition).) |
misterpantz
reviewed
Jan 30, 2025
| Optional: | ||
|
|
||
| - `int_condition` (Attributes) A condition with values of type int. (see [below for nested schema](#nestedatt--asset_selections--conditions--int_condition)) | ||
| - `key_value_condition` (Attributes) A condition with values of type key:value. (see [below for nested schema](#nestedatt--asset_selections--conditions--key_value_condition)) |
Contributor
There was a problem hiding this comment.
Suggested change
| - `key_value_condition` (Attributes) A condition with values of type key:value. (see [below for nested schema](#nestedatt--asset_selections--conditions--key_value_condition)) | |
| - `key_value_condition` (Attributes) A condition with values of type key:value. (See [below for nested schema](#nestedatt--asset_selections--conditions--key_value_condition).) |
misterpantz
reviewed
Jan 30, 2025
|
|
||
| - `int_condition` (Attributes) A condition with values of type int. (see [below for nested schema](#nestedatt--asset_selections--conditions--int_condition)) | ||
| - `key_value_condition` (Attributes) A condition with values of type key:value. (see [below for nested schema](#nestedatt--asset_selections--conditions--key_value_condition)) | ||
| - `rating_condition` (Attributes) A condition with values of type int. (see [below for nested schema](#nestedatt--asset_selections--conditions--rating_condition)) |
Contributor
There was a problem hiding this comment.
Suggested change
| - `rating_condition` (Attributes) A condition with values of type int. (see [below for nested schema](#nestedatt--asset_selections--conditions--rating_condition)) | |
| - `rating_condition` (Attributes) A condition with values of type int. (See [below for nested schema](#nestedatt--asset_selections--conditions--rating_condition).) |
misterpantz
reviewed
Jan 30, 2025
| - `int_condition` (Attributes) A condition with values of type int. (see [below for nested schema](#nestedatt--asset_selections--conditions--int_condition)) | ||
| - `key_value_condition` (Attributes) A condition with values of type key:value. (see [below for nested schema](#nestedatt--asset_selections--conditions--key_value_condition)) | ||
| - `rating_condition` (Attributes) A condition with values of type int. (see [below for nested schema](#nestedatt--asset_selections--conditions--rating_condition)) | ||
| - `string_condition` (Attributes) A condition with values of type string. (see [below for nested schema](#nestedatt--asset_selections--conditions--string_condition)) |
Contributor
There was a problem hiding this comment.
Suggested change
| - `string_condition` (Attributes) A condition with values of type string. (see [below for nested schema](#nestedatt--asset_selections--conditions--string_condition)) | |
| - `string_condition` (Attributes) A condition with values of type string. (See [below for nested schema](#nestedatt--asset_selections--conditions--string_condition).) |
misterpantz
reviewed
Jan 30, 2025
|
|
||
| - `field` (String) key:value field to match. Valid values: ["LABELS" "ANNOTATIONS"] | ||
| - `operator` (String) Rating operator. Valid values: ["CONTAINS"] | ||
| - `values` (Attributes List) key:value list to match. Values are ORed together. (see [below for nested schema](#nestedatt--asset_selections--conditions--key_value_condition--values)) |
Contributor
There was a problem hiding this comment.
Suggested change
| - `values` (Attributes List) key:value list to match. Values are ORed together. (see [below for nested schema](#nestedatt--asset_selections--conditions--key_value_condition--values)) | |
| - `values` (Attributes List) key:value list to match. Values are ORed together. (See [below for nested schema](#nestedatt--asset_selections--conditions--key_value_condition--values).) |
Contributor
Author
There was a problem hiding this comment.
All of these changes see > See are part of the code generator, I will try to see if I can change it.
Contributor
There was a problem hiding this comment.
Oh rats! Well it would be great if you can... but of course it's not the end of the world. 😃
Contributor
|
So nicely documented! I just nitpicked on capitalization. |
Contributor
Author
|
@misterpantz here is the change in the tool we use to auto generate the documentation |
Signed-off-by: Salim Afiune Maya <afiune@mondoo.com>
dda8803 to
8ad8670
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
mondoo_workspace (Resource)
Allows management of Mondoo Workspaces.
Example Usage
Schema
Required
asset_selections(Attributes List) A list of workspace selections. (see below for nested schema)name(String) Name of the workspace.Optional
description(String) Description of the workspace.space_id(String) Mondoo space identifier. If there is no ID, the provider space is used.Read-Only
mrn(String) The Mondoo resource name (MRN) of the workspace.Nested Schema for
asset_selectionsRequired:
conditions(Attributes List) A list of conditions for the selection. (see below for nested schema)Nested Schema for
asset_selections.conditionsRequired:
operator(String) Operator determining how the condition is joined with the other conditions in the list. Valid values:AND,AND_NOTOptional:
int_condition(Attributes) A condition with values of type int. (see below for nested schema)key_value_condition(Attributes) A condition with values of type key:value. (see below for nested schema)rating_condition(Attributes) A condition with values of type int. (see below for nested schema)string_condition(Attributes) A condition with values of type string. (see below for nested schema)Nested Schema for
asset_selections.conditions.int_conditionRequired:
field(String) Numeric field to match. Valid values: ["RISK_SCORE"]operator(String) Numeric operator. Valid values: ["EQUAL" "NOT_EQUAL" "GT" "LT"]values(List of Number) Int values to match. Values are ORed together.Nested Schema for
asset_selections.conditions.key_value_conditionRequired:
field(String) key:value field to match. Valid values: ["LABELS" "ANNOTATIONS"]operator(String) Rating operator. Valid values: ["CONTAINS"]values(Attributes List) key:value list to match. Values are ORed together. (see below for nested schema)Nested Schema for
asset_selections.conditions.key_value_condition.valuesRequired:
key(String) The key.value(String) The value.Nested Schema for
asset_selections.conditions.rating_conditionRequired:
field(String) Rating field to match. Valid values: ["RISK"]operator(String) Rating operator. Valid values: ["EQUAL" "NOT_EQUAL"]values(List of String) Int values to match. Values are ORed together.Nested Schema for
asset_selections.conditions.string_conditionRequired:
field(String) String field to match. Valid values: ["PLATFORM" "PLATFORM_VERSION" "ASSET_NAME" "ASSET_KIND" "TECHNOLOGY"]operator(String) String operator. Valid values: ["EQUAL" "NOT_EQUAL" "CONTAINS"]values(List of String) String values to match. Values are ORed together.