Skip to content

Commit

Permalink
Update environments
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaacCalligeros95 committed Aug 8, 2024
1 parent c3a5d0c commit eaf1f60
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/data-sources/environments.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ data "octopusdeploy_environments" "example" {

### Optional

- `id` (String) The unique ID for this resource.
- `ids` (List of String) A filter to search by a list of IDs.
- `name` (String) A filter search by exact name
- `partial_name` (String) A filter to search by a partial name.
- `skip` (Number) A filter to specify the number of items to skip in the response.
Expand All @@ -37,7 +37,7 @@ data "octopusdeploy_environments" "example" {
### Read-Only

- `environments` (Block List) Provides information about existing environments. (see [below for nested schema](#nestedblock--environments))
- `ids` (String) The unique ID for this resource.
- `id` (String) The unique ID for this resource.

<a id="nestedblock--environments"></a>
### Nested Schema for `environments`
Expand Down
4 changes: 2 additions & 2 deletions octopusdeploy_framework/datasource_environments.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ func (*environmentDataSource) Schema(_ context.Context, req datasource.SchemaReq
Description: "Provides information about existing environments.",
Attributes: map[string]schema.Attribute{
//request
"ids": schemas.GetIdDatasourceSchema(true),
"ids": util.GetQueryIDsDatasourceSchema(),
"space_id": schemas.GetSpaceIdDatasourceSchema(schemas.EnvironmentResourceDescription, false),
"name": util.GetQueryNameDatasourceSchema(),
"partial_name": util.GetQueryPartialNameDatasourceSchema(),
"skip": util.GetQuerySkipDatasourceSchema(),
"take": util.GetQueryTakeDatasourceSchema(),

//response
"id": schemas.GetIdDatasourceSchema(false),
"id": schemas.GetIdDatasourceSchema(true),
},
Blocks: map[string]schema.Block{
"environments": schema.ListNestedBlock{
Expand Down

0 comments on commit eaf1f60

Please sign in to comment.