-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: fix datasource result blocks #763
Changes from 12 commits
4eb32f5
eafb5a4
18527d7
cdb42cf
974fb03
609a4ef
193dce7
94fe20a
c59ef32
cf6f201
7f67da7
5edee49
0ac039f
23afe52
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,6 @@ data "octopusdeploy_variables" "example" { | |
|
||
### Optional | ||
|
||
- `scope` (Block List) As variable names can appear more than once under different scopes, a VariableScope must also be provided (see [below for nested schema](#nestedblock--scope)) | ||
- `space_id` (String) A Space ID to filter by. Will revert what is specified on the provider if not set. | ||
|
||
### Read-Only | ||
|
@@ -37,24 +36,11 @@ data "octopusdeploy_variables" "example" { | |
- `is_editable` (Boolean) Indicates whether or not this variable is considered editable. | ||
- `is_sensitive` (Boolean) Indicates whether or not this resource is considered sensitive and should be kept secret. | ||
- `prompt` (Attributes List) (see [below for nested schema](#nestedatt--prompt)) | ||
- `scope` (Attributes List) As variable names can appear more than once under different scopes, a VariableScope must also be provided (see [below for nested schema](#nestedatt--scope)) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looking at the old schema docs it looks like the scope should be Required, sorry I think I mislead you on the last review. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the scope is a nested property of the variable, within a datasource the results are all readonly, I think this feels right |
||
- `sensitive_value` (String, Sensitive) | ||
- `type` (String) The type of variable represented by this resource. Valid types are `AmazonWebServicesAccount`, `AzureAccount`, `GoogleCloudAccount`, `UsernamePasswordAccount`, `Certificate`, `Sensitive`, `String`, `WorkerPool`. | ||
- `value` (String) | ||
|
||
<a id="nestedblock--scope"></a> | ||
### Nested Schema for `scope` | ||
|
||
Optional: | ||
|
||
- `actions` (List of String) A list of actions that are scoped to this variable value. | ||
- `channels` (List of String) A list of channels that are scoped to this variable value. | ||
- `environments` (List of String) A list of environments that are scoped to this variable value. | ||
- `machines` (List of String) A list of machines that are scoped to this variable value. | ||
- `processes` (List of String) A list of processes that are scoped to this variable value. | ||
- `roles` (List of String) A list of roles that are scoped to this variable value. | ||
- `tenant_tags` (List of String) A list of tenant tags that are scoped to this variable value. | ||
|
||
|
||
<a id="nestedatt--prompt"></a> | ||
### Nested Schema for `prompt` | ||
|
||
|
@@ -82,3 +68,19 @@ Read-Only: | |
- `value` (String) The select value | ||
|
||
|
||
|
||
|
||
<a id="nestedatt--scope"></a> | ||
### Nested Schema for `scope` | ||
|
||
Optional: | ||
|
||
- `actions` (List of String) A list of actions that are scoped to this variable value. | ||
- `channels` (List of String) A list of channels that are scoped to this variable value. | ||
- `environments` (List of String) A list of environments that are scoped to this variable value. | ||
- `machines` (List of String) A list of machines that are scoped to this variable value. | ||
- `processes` (List of String) A list of processes that are scoped to this variable value. | ||
- `roles` (List of String) A list of roles that are scoped to this variable value. | ||
- `tenant_tags` (List of String) A list of tenant tags that are scoped to this variable value. | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think these should still be Read only.