-
Notifications
You must be signed in to change notification settings - Fork 455
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding vm_storage_policy_profile resource for tag based placement pol…
…icy management (#1094) * Adding vm_storage_policy_profile resource for tag based placement policies management * Fixing descriptions and punctuation for storage policy.
- Loading branch information
1 parent
396d3ed
commit 4971a0d
Showing
11 changed files
with
539 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
28 changes: 28 additions & 0 deletions
28
vsphere/internal/virtualdevice/virtual_machine_tag_rules_subresource.go
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package virtualdevice | ||
|
||
import ( | ||
"github.com/hashicorp/terraform-plugin-sdk/helper/schema" | ||
) | ||
|
||
func VirtualMachineTagRulesSchema() map[string]*schema.Schema { | ||
return map[string]*schema.Schema{ | ||
"tag_category": { | ||
Type: schema.TypeString, | ||
Required: true, | ||
Description: "The tag category to select the tags from.", | ||
}, | ||
"tags": { | ||
Type: schema.TypeList, | ||
Required: true, | ||
MinItems: 1, | ||
Description: "The tags to use for creating a tag-based vm placement rule.", | ||
Elem: &schema.Schema{Type: schema.TypeString}, | ||
}, | ||
"include_datastores_with_tags": { | ||
Type: schema.TypeBool, | ||
Optional: true, | ||
Description: "Whether to include or exclude datastores tagged with the provided tags", | ||
Default: true, | ||
}, | ||
} | ||
} |
This file contains 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
This file contains 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
Oops, something went wrong.