_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c169800 | validation | // schemaHostVirtualSwitchSpec returns schema items for resources that need to
// work with a HostVirtualSwitchSpec, such as virtual switches. | {
"resource": ""
} | ||
c169801 | validation | // expandHostVirtualSwitchSpec reads certain ResourceData keys and returns a
// HostVirtualSwitchSpec. | {
"resource": ""
} | ||
c169802 | validation | // flattenHostVirtualSwitchSpec reads various fields from a
// HostVirtualSwitchSpec into the passed in ResourceData. | {
"resource": ""
} | ||
c169803 | validation | // saveHostVirtualSwitchID sets a special ID for a host virtual switch,
// composed of the MOID for the concerned HostSystem and the virtual switch's
// key. | {
"resource": ""
} | ||
c169804 | validation | // virtualSwitchIDsFromResourceID passes a resource's ID through
// splitHostVirtualSwitchID. | {
"resource": ""
} | ||
c169805 | validation | // expandStorageDrsVMConfigInfo reads certain ResourceData keys and returns a
// StorageDrsVmConfigInfo. | {
"resource": ""
} | ||
c169806 | validation | // flattenStorageDrsVmConfigInfo saves a StorageDrsVmConfigInfo into the
// supplied ResourceData. | {
"resource": ""
} | ||
c169807 | validation | // resourceVSphereStorageDrsVMOverrideFlattenID makes an ID for the
// vsphere_storage_drs_vm_override resource. | {
"resource": ""
} | ||
c169808 | validation | // resourceVSphereStorageDrsVMOverrideFindEntry attempts to locate an existing VM
// config in a Storage Pod's DRS configuration. It's used by the resource's
// read functionality and tests. nil is returned if the entry cannot be found. | {
"resource": ""
} | ||
c169809 | validation | // NetworkInterfaceSubresourceSchema returns the schema for the disk
// sub-resource. | {
"resource": ""
} | ||
c169810 | validation | // NewNetworkInterfaceSubresource returns a network_interface subresource
// populated with all of the necessary fields. | {
"resource": ""
} | ||
c169811 | validation | // NetworkInterfaceDiffOperation performs operations relevant to managing the
// diff on network_interface sub-resources. | {
"resource": ""
} | ||
c169812 | validation | // ReadNetworkInterfaceTypes returns a list of network interface types. This is used
// in the VM data source to discover the types of the NIC drivers on the
// virtual machine. The list is sorted by the order that they would be added in
// if a clone were to be done. | {
"resource": ""
} | ||
c169813 | validation | // baseVirtualEthernetCardToBaseVirtualDevice converts a
// BaseVirtualEthernetCard value into a BaseVirtualDevice. | {
"resource": ""
} | ||
c169814 | validation | // baseVirtualDeviceToBaseVirtualEthernetCard converts a BaseVirtualDevice
// value into a BaseVirtualEthernetCard. | {
"resource": ""
} | ||
c169815 | validation | // virtualEthernetCardString prints a string representation of the ethernet device passed in. | {
"resource": ""
} | ||
c169816 | validation | // Create creates a vsphere_virtual_machine network_interface sub-resource. | {
"resource": ""
} | ||
c169817 | validation | // Read reads a vsphere_virtual_machine network_interface sub-resource. | {
"resource": ""
} | ||
c169818 | validation | // Delete deletes a vsphere_virtual_machine network_interface sub-resource. | {
"resource": ""
} | ||
c169819 | validation | // ValidateDiff performs any complex validation of an individual
// network_interface sub-resource that can't be done in schema alone. | {
"resource": ""
} | ||
c169820 | validation | // nicUnitRange calculates a range of units given a certain VirtualDeviceList,
// which should be network interfaces. It's used in network interface refresh
// logic to determine how many subresources may end up in state. | {
"resource": ""
} | ||
c169821 | validation | // hostStorageSystemFromHostSystemID locates a HostStorageSystem from a
// specified HostSystem managed object ID. | {
"resource": ""
} | ||
c169822 | validation | // FromUUID locates a virtualMachine by its UUID. | {
"resource": ""
} | ||
c169823 | validation | // virtualMachineFromSearchIndex gets the virtual machine reference via the
// SearchIndex MO and is the method used to fetch UUIDs on newer versions of
// vSphere. | {
"resource": ""
} | ||
c169824 | validation | // virtualMachineFromContainerView is a compatability method that is
// used when the version of vSphere is too old to support using SearchIndex's
// FindByUuid method correctly. This is mainly to facilitate the ability to use
// FromUUID to find both templates in addition to virtual machines, which
// historically was... | {
"resource": ""
} | ||
c169825 | validation | // Properties is a convenience method that wraps fetching the
// VirtualMachine MO from its higher-level object. | {
"resource": ""
} | ||
c169826 | validation | // WaitForGuestIP waits for a virtual machine to have an IP address.
//
// The timeout is specified in minutes. If zero or a negative value is passed,
// the waiter returns without error immediately. | {
"resource": ""
} | ||
c169827 | validation | // WaitForGuestNet waits for a virtual machine to have routable network
// access. This is denoted as a gateway, and at least one IP address that can
// reach that gateway. This function supports both IPv4 and IPv6, and returns
// the moment either stack is routable - it doesn't wait for both.
//
// The timeout is spec... | {
"resource": ""
} | ||
c169828 | validation | // Create wraps the creation of a virtual machine and the subsequent waiting of
// the task. A higher-level virtual machine object is returned. | {
"resource": ""
} | ||
c169829 | validation | // Clone wraps the creation of a virtual machine and the subsequent waiting of
// the task. A higher-level virtual machine object is returned. | {
"resource": ""
} | ||
c169830 | validation | // Customize wraps the customization of a virtual machine and the subsequent
// waiting of the task. | {
"resource": ""
} | ||
c169831 | validation | // MoveToFolder moves a virtual machine to the specified folder. | {
"resource": ""
} | ||
c169832 | validation | // Relocate wraps the Relocate task and the subsequent waiting for the task to
// complete. | {
"resource": ""
} | ||
c169833 | validation | // MOIDForUUID returns the managed object reference ID for a specific virtual
// machine UUID and returns a MOIDForUUIDResult with the appropriate
// association. | {
"resource": ""
} | ||
c169834 | validation | // UUIDForMOID returns the managed object reference ID for a specific virtual
// machine MOID and returns a MOIDForUUIDResult with the appropriate
// association. | {
"resource": ""
} | ||
c169835 | validation | // MOIDsForUUIDs returns a MOIDForUUIDResults for a list of UUIDs. If one UUID
// cannot be found, an error is returned. There are no partial results
// returned. | {
"resource": ""
} | ||
c169836 | validation | // UUIDsForMOIDs returns a MOIDForUUIDResults for a list of MOIDs. If one MOID
// cannot be found, an error is returned. There are no partial results
// returned. | {
"resource": ""
} | ||
c169837 | validation | // UUIDsForManagedObjectReferences returns a MOIDForUUIDResults for a list of
// ManagedObjectReferences. If one cannot be found, an error is returned. There
// are no partial results returned. | {
"resource": ""
} | ||
c169838 | validation | // MOIDs returns all MOIDs in a MOIDForUUIDResults. | {
"resource": ""
} | ||
c169839 | validation | // ManagedObjectReferences returns all MOIDs in a MOIDForUUIDResults, as
// ManagedObjectReferences as type VirtualMachine. | {
"resource": ""
} | ||
c169840 | validation | // UUIDs returns all UUIDs in a MOIDForUUIDResults. | {
"resource": ""
} | ||
c169841 | validation | // FromKey gets a portgroup object from its key. | {
"resource": ""
} | ||
c169842 | validation | // FromMOID locates a portgroup by its managed object reference ID. | {
"resource": ""
} | ||
c169843 | validation | // FromPath gets a portgroup object from its path. | {
"resource": ""
} | ||
c169844 | validation | // Properties is a convenience method that wraps fetching the
// portgroup MO from its higher-level object. | {
"resource": ""
} | ||
c169845 | validation | // Create exposes the CreateDVPortgroup_Task method of the
// DistributedVirtualSwitch MO. This local implementation may go away if this
// is exposed in the higher-level object upstream. | {
"resource": ""
} | ||
c169846 | validation | // Properties is a convenience method that wraps fetching the
// Datastore MO from its higher-level object. | {
"resource": ""
} | ||
c169847 | validation | // MoveToFolder is a complex method that moves a datastore to a given
// relative datastore folder path. "Relative" here means relative to a
// datacenter, which is discovered from the current datastore path. | {
"resource": ""
} | ||
c169848 | validation | // MoveToFolderRelativeHostSystemID is a complex method that moves a
// datastore to a given datastore path, similar to MoveToFolder,
// except the path is relative to a HostSystem supplied by ID instead of the
// datastore. | {
"resource": ""
} | ||
c169849 | validation | // Browser returns the HostDatastoreBrowser for a certain datastore. This is a
// convenience method that exists to abstract the context. | {
"resource": ""
} | ||
c169850 | validation | // SearchDatastore searches a datastore using the supplied HostDatastoreBrowser
// and a supplied path. The current implementation only returns the basic
// information, so all FileQueryFlags set, but not any flags for specific types
// of files. | {
"resource": ""
} | ||
c169851 | validation | // FileExists takes a path in the datastore and checks to see if it exists.
//
// The path should be a bare path, not a datastore path. Globs are not allowed. | {
"resource": ""
} | ||
c169852 | validation | // FromPath returns a VirtualApp via its supplied path. | {
"resource": ""
} | ||
c169853 | validation | // FromID locates a VirtualApp by its managed object reference ID. | {
"resource": ""
} | ||
c169854 | validation | // IsVApp checks if a given managed object ID is a vApp. This is useful
// deciding if a given resource pool is a vApp or a standard resource pool. | {
"resource": ""
} | ||
c169855 | validation | // Create creates a VirtualApp. | {
"resource": ""
} | ||
c169856 | validation | // Update updates a VirtualApp. | {
"resource": ""
} | ||
c169857 | validation | // ResourceIDString prints a friendly string for a resource, supplied by name. | {
"resource": ""
} | ||
c169858 | validation | // SliceInterfacesToStrings converts an interface slice to a string slice. The
// function does not attempt to do any sanity checking and will panic if one of
// the items in the slice is not a string. | {
"resource": ""
} | ||
c169859 | validation | // SliceStringsToInterfaces converts a string slice to an interface slice. | {
"resource": ""
} | ||
c169860 | validation | // SliceInterfacesToManagedObjectReferences converts an interface slice into a
// slice of ManagedObjectReferences with the type of t. | {
"resource": ""
} | ||
c169861 | validation | // BoolStringPtrState is a state normalization function for stringified 3-state
// bool pointers.
//
// The function silently drops any result that can't be parsed with ParseBool,
// and will return an empty string for these cases.
//
// This is designed to address the current lack of HCL and Terraform to be able
// to... | {
"resource": ""
} | ||
c169862 | validation | // ValidateBoolStringPtr validates that the input value can be parsed by
// ParseBool. It also succeeds on empty strings.
//
// This is designed to address the current lack of HCL and Terraform to be able
// to distinguish between nil states and zero values properly. This is a
// systemic issue that affects reading, wr... | {
"resource": ""
} | ||
c169863 | validation | // BoolPolicy converts a bool into a VMware BoolPolicy value. | {
"resource": ""
} | ||
c169864 | validation | // GetBoolPolicy reads a ResourceData and returns an appropriate BoolPolicy for
// the state of the definition. nil is returned if it does not exist. | {
"resource": ""
} | ||
c169865 | validation | // SetBoolPolicy sets a ResourceData field depending on if a BoolPolicy exists
// or not. The field is not set if it's nil. | {
"resource": ""
} | ||
c169866 | validation | // StringPolicy converts a string into a VMware StringPolicy value. | {
"resource": ""
} | ||
c169867 | validation | // GetStringPolicy reads a ResourceData and returns an appropriate StringPolicy
// for the state of the definition. nil is returned if it does not exist. | {
"resource": ""
} | ||
c169868 | validation | // SetStringPolicy sets a ResourceData field depending on if a StringPolicy
// exists or not. The field is not set if it's nil. | {
"resource": ""
} | ||
c169869 | validation | // LongPolicy converts a supported number into a VMware LongPolicy value. This
// will panic if there is no implicit conversion of the value into an int64. | {
"resource": ""
} | ||
c169870 | validation | // GetLongPolicy reads a ResourceData and returns an appropriate LongPolicy
// for the state of the definition. nil is returned if it does not exist. | {
"resource": ""
} | ||
c169871 | validation | // SetLongPolicy sets a ResourceData field depending on if a LongPolicy
// exists or not. The field is not set if it's nil. | {
"resource": ""
} | ||
c169872 | validation | // AllFieldsEmpty checks to see if all fields in a given struct are zero
// values. It does not recurse, so finer-grained checking should be done for
// deep accuracy when necessary. It also does not dereference pointers, except
// if the value itself is a pointer and is not nil. | {
"resource": ""
} | ||
c169873 | validation | // DeRef returns the value pointed to by the interface if the interface is a
// pointer and is not nil, otherwise returns nil, or the direct value if it's
// not a pointer. | {
"resource": ""
} | ||
c169874 | validation | // Less helps implement sort.Interface for MoRefSorter. | {
"resource": ""
} | ||
c169875 | validation | // Swap helps implement sort.Interface for MoRefSorter. | {
"resource": ""
} | ||
c169876 | validation | // hostDatastoreSystemFromHostSystemID locates a HostDatastoreSystem from a
// specified HostSystem managed object ID. | {
"resource": ""
} | ||
c169877 | validation | // availableScsiDisk checks to make sure that a disk is available for use in a
// VMFS datastore, and returns the ScsiDisk. | {
"resource": ""
} | ||
c169878 | validation | // diskSpecForCreate checks to make sure that a disk is available to be used to
// create a VMFS datastore, specifically in its entirety, and returns a
// respective VmfsDatastoreCreateSpec. | {
"resource": ""
} | ||
c169879 | validation | // diskSpecForExtend checks to make sure that a disk is available to be
// used to extend a VMFS datastore, specifically in its entirety, and returns a
// respective VmfsDatastoreExtendSpec if it is. An error is returned if it's
// not. | {
"resource": ""
} | ||
c169880 | validation | // removeDatastore is a convenience method for removing a referenced datastore. | {
"resource": ""
} | ||
c169881 | validation | // queryVmfsDatastoreExtendOptions is a stop-gap method that implements
// QueryVmfsDatastoreExtendOptions. It will be removed once the higher level
// HostDatastoreSystem object supports this method. | {
"resource": ""
} | ||
c169882 | validation | // extendVmfsDatastore is a stop-gap method that implements
// ExtendVmfsDatastore. It will be removed once the higher level
// HostDatastoreSystem object supports this method. | {
"resource": ""
} | ||
c169883 | validation | // resourceVSphereComputeClusterImportSetDefaults sets configuration defaults
// for resource attributes that are not managed by read. This gives
// completeness for import, in addition to reducing the number of post-import
// diffs that may need to happen. | {
"resource": ""
} | ||
c169884 | validation | // resourceVSphereComputeClusterApplyCreate processes the creation part of
// resourceVSphereComputeClusterCreate. | {
"resource": ""
} | ||
c169885 | validation | // resourceVSphereComputeClusterApplyTags processes the tags step for both
// create and update for vsphere_compute_cluster. | {
"resource": ""
} | ||
c169886 | validation | // resourceVSphereComputeClusterReadTags reads the tags for
// vsphere_compute_cluster. | {
"resource": ""
} | ||
c169887 | validation | // resourceVSphereComputeClusterApplyCustomAttributes processes the custom
// attributes step for both create and update for vsphere_compute_cluster. | {
"resource": ""
} | ||
c169888 | validation | // resourceVSphereComputeClusterReadCustomAttributes reads the custom
// attributes for vsphere_compute_cluster. | {
"resource": ""
} | ||
c169889 | validation | // resourceVSphereComputeClusterGetCluster gets the ComputeClusterResource from the ID
// in the supplied ResourceData. | {
"resource": ""
} | ||
c169890 | validation | // resourceVSphereComputeClusterGetClusterFromPath gets the ComputeClusterResource from a
// supplied path. If no datacenter is supplied, the path must be a full path. | {
"resource": ""
} | ||
c169891 | validation | // resourceVSphereComputeClusterSaveDatacenter saves the datacenter that the
// cluster is a member of for correctness on imports. | {
"resource": ""
} | ||
c169892 | validation | // resourceVSphereComputeClusterSaveNameAndPath saves the name and path of a
// StoragePod into the supplied ResourceData. | {
"resource": ""
} | ||
c169893 | validation | // resourceVSphereComputeClusterApplyNameChange applies any changes to a
// ClusterComputeResource's name. | {
"resource": ""
} | ||
c169894 | validation | // resourceVSphereComputeClusterApplyFolderChange applies any changes to a
// ClusterComputeResource's folder location. | {
"resource": ""
} | ||
c169895 | validation | // resourceVSphereComputeClusterValidateEmptyCluster validates that the cluster
// is empty. This is used to ensure a safe deletion of the cluster - we do not
// allow deletion of clusters that still virtual machines or hosts in them. | {
"resource": ""
} | ||
c169896 | validation | // resourceVSphereComputeClusterApplyDelete process the removal of a
// cluster. | {
"resource": ""
} | ||
c169897 | validation | // resourceVSphereComputeClusterFlattenData saves the configuration attributes
// from a ClusterComputeResource into the supplied ResourceData. It also saves
// the root resource pool for the cluster in resource_pool_id.
//
// Note that other functions handle other non-configuration related items, such
// as path, name... | {
"resource": ""
} | ||
c169898 | validation | // expandClusterConfigSpecEx reads certain ResourceData keys and returns a
// ClusterConfigSpecEx. | {
"resource": ""
} | ||
c169899 | validation | // flattenClusterConfigSpecEx saves a ClusterConfigSpecEx into the supplied
// ResourceData. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.