tfutil

package
v0.0.0-...-a0cde7c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Copyright (c) 2019 Sean Reynolds, Stefaan Coussement MIT License

more info: https://github.com/stefaanc/terraform-provider-hyperv

Index

Constants

This section is empty.

Variables

View Source
var DataSourceXLifecycleSchema schema.Schema = schema.Schema{
	Type:     schema.TypeList,
	Optional: true,
	MaxItems: 1,
	Elem: &schema.Resource{
		Schema: map[string]*schema.Schema{

			"ignore_error_if_not_exists": &schema.Schema{
				Type:     schema.TypeBool,
				Optional: true,
				Default:  false,
			},

			"exists": &schema.Schema{
				Type:     schema.TypeBool,
				Computed: true,
			},
		},
	},
}
View Source
var ResourceXLifecycleSchema schema.Schema = schema.Schema{
	Type:     schema.TypeList,
	Optional: true,
	MaxItems: 1,
	Elem: &schema.Resource{
		Schema: map[string]*schema.Schema{

			"import_if_exists": &schema.Schema{
				Type:     schema.TypeBool,
				Optional: true,
				Default:  false,
			},

			"imported": &schema.Schema{
				Type:     schema.TypeBool,
				Computed: true,
			},

			"destroy_if_imported": &schema.Schema{
				Type:     schema.TypeBool,
				Optional: true,
				Default:  false,
			},
		},
	},
}

Functions

func DiffSuppressCase

func DiffSuppressCase() schema.SchemaDiffSuppressFunc

func GetResourceDataMap

func GetResourceDataMap(d *schema.ResourceData, name string) (m map[string]interface{})

func SetResourceDataMap

func SetResourceDataMap(d *schema.ResourceData, name string, m map[string]interface{}) error

func StateToLower

func StateToLower() schema.SchemaStateFunc

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL