vsphere/datastore_structure.go
func schemaDatastoreSummary() map[string]*schema.Schema {
	return map[string]*schema.Schema{
		// Note that the following fields are not represented in the schema here:
		// * Name (more than likely the ID attribute and will be represented in
		// resource schema)
		// * Type (redundant attribute as the datastore type will be represented by
		// the resource)
		"accessible": {
			Type:        schema.TypeBool,
			Description: "The connectivity status of the datastore. If this is false, some other computed attributes may be out of date.",
			Computed:    true,
		},
		"capacity": {
			Type:        schema.TypeInt,
			Description: "Maximum capacity of the datastore, in MB.",
			Computed:    true,
		},
		"free_space": {
			Type:        schema.TypeInt,
			Description: "Available space of this datastore, in MB.",
			Computed:    true,
		},
		"maintenance_mode": {
			Type:        schema.TypeString,
			Description: "The current maintenance mode state of the datastore.",
			Computed:    true,
		},
		"multiple_host_access": {
			Type:        schema.TypeBool,
			Description: "If true, more than one host in the datacenter has been configured with access to the datastore.",
			Computed:    true,
		},
		"uncommitted_space": {
			Type:        schema.TypeInt,
			Description: "Total additional storage space, in MB, potentially used by all virtual machines on this datastore.",
			Computed:    true,
		},
		"url": {
			Type:        schema.TypeString,
			Description: "The unique locator for the datastore.",
			Computed:    true,
		},
	}
}
func schemaDatastoreSummary() map[string]*schema.Schema {
	return map[string]*schema.Schema{
		// Note that the following fields are not represented in the schema here:
		// * Name (more than likely the ID attribute and will be represented in
		// resource schema)
		// * Type (redundant attribute as the datastore type will be represented by
		// the resource)
		"accessible": {
			Type:        schema.TypeBool,
			Description: "The connectivity status of the datastore. If this is false, some other computed attributes may be out of date.",
			Computed:    true,
		},
		"capacity": {
			Type:        schema.TypeInt,
			Description: "Maximum capacity of the datastore, in MB.",
			Computed:    true,
		},
		"free_space": {
			Type:        schema.TypeInt,
			Description: "Available space of this datastore, in MB.",
			Computed:    true,
		},
		"maintenance_mode": {
			Type:        schema.TypeString,
			Description: "The current maintenance mode state of the datastore.",
			Computed:    true,
		},
		"multiple_host_access": {
			Type:        schema.TypeBool,
			Description: "If true, more than one host in the datacenter has been configured with access to the datastore.",
			Computed:    true,
		},
		"uncommitted_space": {
			Type:        schema.TypeInt,
			Description: "Total additional storage space, in MB, potentially used by all virtual machines on this datastore.",
			Computed:    true,
		},
		"url": {
			Type:        schema.TypeString,
			Description: "The unique locator for the datastore.",
			Computed:    true,
		},
	}
}
// schemaDatastoreSummary returns schema items for resources that
// need to work with a DatastoreSummary.