Skip to content

Commit

Permalink
feat: update schema for gets for spaceId
Browse files Browse the repository at this point in the history
  • Loading branch information
mik-ky committed Oct 10, 2023
1 parent c0e1cac commit ab652f0
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions octopusdeploy/schema_library_variable_set.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ func getLibraryVariableSetDataSchema() map[string]*schema.Schema {
return map[string]*schema.Schema{
"content_type": getQueryContentType(),
"id": getDataSchemaID(),
"space_id": getQuerySpaceID(),
"ids": getQueryIDs(),
"library_variable_sets": {
Computed: true,
Expand Down
1 change: 1 addition & 0 deletions octopusdeploy/schema_project.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ func getProjectDataSchema() map[string]*schema.Schema {
return map[string]*schema.Schema{
"cloned_from_project_id": getQueryClonedFromProjectID(),
"id": getDataSchemaID(),
"space_id": getQuerySpaceID(),
"ids": getQueryIDs(),
"is_clone": getQueryIsClone(),
"name": getQueryName(),
Expand Down
1 change: 1 addition & 0 deletions octopusdeploy/schema_project_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ func getProjectGroupDataSchema() map[string]*schema.Schema {

return map[string]*schema.Schema{
"id": getDataSchemaID(),
"space_id": getQuerySpaceID(),
"ids": getQueryIDs(),
"partial_name": getQueryPartialName(),
"project_groups": {
Expand Down
5 changes: 3 additions & 2 deletions octopusdeploy/schema_script_modules.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,9 @@ func getScriptModuleDataSchema() map[string]*schema.Schema {
setDataSchema(&dataSchema)

return map[string]*schema.Schema{
"id": getDataSchemaID(),
"ids": getQueryIDs(),
"id": getDataSchemaID(),
"space_id": getQuerySpaceID(),
"ids": getQueryIDs(),
"script_modules": {
Computed: true,
Description: "A list of script modules that match the filter(s).",
Expand Down
5 changes: 3 additions & 2 deletions octopusdeploy/schema_variable.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@ func getVariableDataSchema() map[string]*schema.Schema {
setDataSchema(&dataSchema)

return map[string]*schema.Schema{
"id": getDataSchemaID(),
"ids": getQueryIDs(),
"id": getDataSchemaID(),
"space_id": getQuerySpaceID(),
"ids": getQueryIDs(),
"variables": {
Computed: true,
Description: "A list of variables that match the filter(s).",
Expand Down

0 comments on commit ab652f0

Please sign in to comment.