_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c170000
validation
// flattenVirtualMachineBootOptions reads various fields from a // VirtualMachineBootOptions into the passed in ResourceData.
{ "resource": "" }
c170001
validation
// expandVirtualMachineFlagInfo reads certain ResourceData keys and // returns a VirtualMachineFlagInfo.
{ "resource": "" }
c170002
validation
// flattenVirtualMachineFlagInfo reads various fields from a // VirtualMachineFlagInfo into the passed in ResourceData.
{ "resource": "" }
c170003
validation
// expandToolsConfigInfo reads certain ResourceData keys and // returns a ToolsConfigInfo.
{ "resource": "" }
c170004
validation
// flattenToolsConfigInfo reads various fields from a // ToolsConfigInfo into the passed in ResourceData.
{ "resource": "" }
c170005
validation
// schemaVirtualMachineResourceAllocation returns the respective schema keys // for the various kinds of resource allocation settings available to a virtual // machine. This is an abridged version of ResourceAllocationInfo with only the // keys present that make sense for virtual machines.
{ "resource": "" }
c170006
validation
// expandVirtualMachineResourceAllocation reads the VM resource allocation // resource data keys for the type supplied by key and returns an appropriate // types.ResourceAllocationInfo reference.
{ "resource": "" }
c170007
validation
// expandLatencySensitivity reads certain ResourceData keys and returns a // LatencySensitivity.
{ "resource": "" }
c170008
validation
// flattenLatencySensitivity reads various fields from a LatencySensitivity and // sets appropriate keys in the supplied ResourceData.
{ "resource": "" }
c170009
validation
// flattenVirtualMachineResourceAllocation reads various fields from a // ResourceAllocationInfo and sets appropriate keys in the // supplied ResourceData.
{ "resource": "" }
c170010
validation
// flattenVAppConfig reads in the vAppConfig from a running virtual machine // and sets all keys in vapp.
{ "resource": "" }
c170011
validation
// expandVirtualMachineConfigSpec reads certain ResourceData keys and // returns a VirtualMachineConfigSpec.
{ "resource": "" }
c170012
validation
// flattenVirtualMachineConfigInfo reads various fields from a // VirtualMachineConfigInfo into the passed in ResourceData. // // This is the flatten counterpart to expandVirtualMachineConfigSpec.
{ "resource": "" }
c170013
validation
// expandVirtualMachineConfigSpecChanged compares an existing // VirtualMachineConfigInfo with a VirtualMachineConfigSpec generated from // existing resource data and compares them to see if there is a change. The new spec // // It does this be creating a fake ResourceData off of the VM resource schema, // flattening t...
{ "resource": "" }
c170014
validation
// getMemoryReservationLockedToMax determines if the memory_reservation is not // set to be equal to memory. If they are not equal, then the memory // reservation needs to be unlocked from the maximum. Rather than supporting // the locking reservation to max option, we can set memory_reservation to // memory in the con...
{ "resource": "" }
c170015
validation
// FromPathOrDefault returns a ResourcePool via its supplied path.
{ "resource": "" }
c170016
validation
// Properties returns the ResourcePool managed object from its higher-level // object.
{ "resource": "" }
c170017
validation
// ValidateHost checks to see if a HostSystem is a member of a ResourcePool // through cluster membership, or if the HostSystem ID matches the ID of a // standalone host ComputeResource. An error is returned if it is not a member // of the cluster to which the resource pool belongs, or if there was some sort // of othe...
{ "resource": "" }
c170018
validation
// OSFamily uses the resource pool's environment browser to get the OS family // for a specific guest ID.
{ "resource": "" }
c170019
validation
// Create creates a ResourcePool.
{ "resource": "" }
c170020
validation
// Update updates a ResourcePool.
{ "resource": "" }
c170021
validation
// MoveIntoResourcePool moves a virtual machine, resource pool, or // vApp into the specified ResourcePool.
{ "resource": "" }
c170022
validation
// expandClusterDasVMConfigInfo reads certain ResourceData keys and returns a // ClusterDasVmConfigInfo.
{ "resource": "" }
c170023
validation
// flattenClusterDasVmConfigInfo saves a ClusterDasVmConfigInfo into the // supplied ResourceData.
{ "resource": "" }
c170024
validation
// resourceVSphereHAVMOverrideFlattenID makes an ID for the // vsphere_ha_vm_override resource.
{ "resource": "" }
c170025
validation
// resourceVSphereHAVMOverrideFindEntry attempts to locate an existing // VM-specific HA config in a cluster's configuration. It's used by the // resource's read functionality and tests. nil is returned if the entry cannot // be found.
{ "resource": "" }
c170026
validation
// schemaHostPortGroupSpec returns schema items for resources that // need to work with HostPortGroupSpec, such as port groups.
{ "resource": "" }
c170027
validation
// expandHostPortGroupSpec reads certain ResourceData keys and returns a // HostPortGroupSpec.
{ "resource": "" }
c170028
validation
// flattenHostPortGroupSpec reads various fields from a HostPortGroupSpec into // the passed in ResourceData.
{ "resource": "" }
c170029
validation
// calculatePorts is a utility function that returns a set of port data.
{ "resource": "" }
c170030
validation
// portGroupPortSchema returns a sub-schema for a port group's connected ports.
{ "resource": "" }
c170031
validation
// saveHostPortGroupID sets a special ID for a host virtual switch, composed of // the MOID for the concerned HostSystem and the port group's key.
{ "resource": "" }
c170032
validation
// portGroupIDsFromResourceID passes a resource's ID through // splitHostPortGroupID.
{ "resource": "" }
c170033
validation
// BaseFromPath returns a BaseComputeResource for a given path.
{ "resource": "" }
c170034
validation
// BaseFromReference returns a BaseComputeResource for a given managed object // reference.
{ "resource": "" }
c170035
validation
// BaseProperties returns the base-level ComputeResource managed object for a // BaseComputeResource, an interface that any base-level ComputeResource and // derivative object implements. // // Note that this does not return any cluster-level attributes.
{ "resource": "" }
c170036
validation
// BasePropertiesFromReference combines BaseFromReference and BaseProperties to // get a base-level ComputeResource managed object for a specific managed // object reference.
{ "resource": "" }
c170037
validation
// DefaultDevicesFromReference fetches the default virtual device list for a // specific compute resource from a supplied managed object reference.
{ "resource": "" }
c170038
validation
// OSFamily uses the compute resource's environment browser to get the OS family // for a specific guest ID.
{ "resource": "" }
c170039
validation
// EnvironmentBrowserFromReference loads an environment browser for the // specific compute resource reference. The reference can be either a // standalone host or cluster. // // As an added safety feature if the compute resource properties come back with // an unset environmentBrowser attribute, this function will ret...
{ "resource": "" }
c170040
validation
// Properties is a convenience method that wraps fetching the // ClusterComputeResource MO from its higher-level object.
{ "resource": "" }
c170041
validation
// Create creates a ClusterComputeResource in a supplied folder. The resulting // ClusterComputeResource is returned.
{ "resource": "" }
c170042
validation
// MoveToFolder is a complex method that moves a ClusterComputeResource to a given relative // compute folder path. "Relative" here means relative to a datacenter, which // is discovered from the current ClusterComputeResource path.
{ "resource": "" }
c170043
validation
// Reconfigure reconfigures a cluster. This just gets dispatched to // computeresource as both methods are the same.
{ "resource": "" }
c170044
validation
// Delete destroys a ClusterComputeResource.
{ "resource": "" }
c170045
validation
// IsMember checks to see if a host is a member of the compute cluster // in question. // // This is a pretty basic operation that checks that the parent of the // compute is the ClusterComputeResource.
{ "resource": "" }
c170046
validation
// MoveHostsInto moves all of the supplied hosts into the cluster. All virtual // machines are moved to the cluster's root resource pool and any resource // pools on the host itself are deleted.
{ "resource": "" }
c170047
validation
// MoveHostsOutOf moves a supplied list of hosts out of the specified cluster. // The host is moved to the root host folder for the datacenter that the // cluster is in. // // The host is placed into maintenance mode with evacuate flagged on, ensuring // that as many VMs as possible are moved out of the host before rem...
{ "resource": "" }
c170048
validation
// expandVmwareDistributedVirtualSwitchVlanIDSpec reads certain ResourceData keys and // returns a VmwareDistributedVirtualSwitchVlanIdSpec.
{ "resource": "" }
c170049
validation
// flattenVmwareDistributedVirtualSwitchVlanIDSpec reads various fields from a // VmwareDistributedVirtualSwitchVlanIdSpec into the passed in ResourceData.
{ "resource": "" }
c170050
validation
// expandVmwareDistributedVirtualSwitchTrunkVlanSpec reads certain ResourceData keys and // returns a VmwareDistributedVirtualSwitchTrunkVlanSpec.
{ "resource": "" }
c170051
validation
// flattenVmwareDistributedVirtualSwitchTrunkVlanSpec reads various fields from a // VmwareDistributedVirtualSwitchTrunkVlanSpec into the passed in ResourceData.
{ "resource": "" }
c170052
validation
// expandVmwareDistributedVirtualSwitchPvlanSpec reads certain ResourceData keys and // returns a VmwareDistributedVirtualSwitchPvlanSpec.
{ "resource": "" }
c170053
validation
// flattenVmwareDistributedVirtualSwitchPvlanSpec reads various fields from a // VmwareDistributedVirtualSwitchPvlanSpec into the passed in ResourceData.
{ "resource": "" }
c170054
validation
// expandBaseVmwareDistributedVirtualSwitchVlanSpec reads certain ResourceData keys and // returns a BaseVmwareDistributedVirtualSwitchVlanSpec.
{ "resource": "" }
c170055
validation
// flattenBaseVmwareDistributedVirtualSwitchVlanSpec reads various fields from a // BaseVmwareDistributedVirtualSwitchVlanSpec into the passed in ResourceData.
{ "resource": "" }
c170056
validation
// expandDVSFailureCriteria reads certain ResourceData keys and // returns a DVSFailureCriteria.
{ "resource": "" }
c170057
validation
// flattenDVSFailureCriteria reads various fields from a // DVSFailureCriteria into the passed in ResourceData.
{ "resource": "" }
c170058
validation
// expandVMwareUplinkPortOrderPolicy reads certain ResourceData keys and // returns a VMwareUplinkPortOrderPolicy.
{ "resource": "" }
c170059
validation
// flattenVMwareUplinkPortOrderPolicy reads various fields from a // VMwareUplinkPortOrderPolicy into the passed in ResourceData.
{ "resource": "" }
c170060
validation
// expandVmwareUplinkPortTeamingPolicy reads certain ResourceData keys and // returns a VmwareUplinkPortTeamingPolicy.
{ "resource": "" }
c170061
validation
// flattenVmwareUplinkPortTeamingPolicy reads various fields from a // VmwareUplinkPortTeamingPolicy into the passed in ResourceData.
{ "resource": "" }
c170062
validation
// expandDVSSecurityPolicy reads certain ResourceData keys and // returns a DVSSecurityPolicy.
{ "resource": "" }
c170063
validation
// flattenDVSSecurityPolicy reads various fields from a // DVSSecurityPolicy into the passed in ResourceData.
{ "resource": "" }
c170064
validation
// expandVMwareUplinkLacpPolicy reads certain ResourceData keys and // returns a VMwareUplinkLacpPolicy.
{ "resource": "" }
c170065
validation
// flattenVMwareUplinkLacpPolicy reads various fields from a // VMwareUplinkLacpPolicy into the passed in ResourceData.
{ "resource": "" }
c170066
validation
// expandDVSTrafficShapingPolicyIngress reads certain ResourceData keys and // returns a DVSTrafficShapingPolicy for ingress traffic.
{ "resource": "" }
c170067
validation
// flattenDVSTrafficShapingPolicyIngress reads various fields from the // DVSTrafficShapingPolicy ingress policy into the passed in ResourceData.
{ "resource": "" }
c170068
validation
// expandVMwareDVSPortSetting reads certain ResourceData keys and // returns a VMwareDVSPortSetting.
{ "resource": "" }
c170069
validation
// flattenVMwareDVSPortSetting reads various fields from a // VMwareDVSPortSetting into the passed in ResourceData.
{ "resource": "" }
c170070
validation
// expandClusterDrsVMConfigInfo reads certain ResourceData keys and returns a // ClusterDrsVmConfigInfo.
{ "resource": "" }
c170071
validation
// flattenClusterDrsVmConfigInfo saves a ClusterDrsVmConfigInfo into the // supplied ResourceData.
{ "resource": "" }
c170072
validation
// resourceVSphereDRSVMOverrideParseID parses an ID for the // vsphere_drs_vm_override and outputs its parts.
{ "resource": "" }
c170073
validation
// resourceVSphereDRSVMOverrideFindEntry attempts to locate an existing DRS VM // config in a cluster's configuration. It's used by the resource's read // functionality and tests. nil is returned if the entry cannot be found.
{ "resource": "" }
c170074
validation
// resourceVSphereComputeClusterVMAntiAffinityRuleFlattenID makes an ID for the // vsphere_compute_cluster_vm_anti_affinity_rule resource.
{ "resource": "" }
c170075
validation
// schemaDatastoreSummary returns schema items for resources that // need to work with a DatastoreSummary.
{ "resource": "" }
c170076
validation
// flattenDatastoreSummary reads various fields from a DatastoreSummary into // the passed in ResourceData.
{ "resource": "" }
c170077
validation
// resourceVSphereDatastoreApplyFolderOrStorageClusterPath returns a path to a // folder or a datastore cluster, depending on what has been selected in the // resource.
{ "resource": "" }
c170078
validation
// resourceVSphereDatastoreReadFolderOrStorageClusterPath checks the inventory // path of the supplied datastore and checks to see if it is a normal folder or // if it's a datastore cluster, and saves the attributes accordingly.
{ "resource": "" }
c170079
validation
// CdromSubresourceSchema represents the schema for the cdrom sub-resource.
{ "resource": "" }
c170080
validation
// NewCdromSubresource returns a subresource populated with all of the necessary // fields.
{ "resource": "" }
c170081
validation
// CdromDiffOperation performs operations relevant to managing the // diff on cdrom sub-resources
{ "resource": "" }
c170082
validation
// ValidateDiff performs any complex validation of an individual // cdrom sub-resource that can't be done in schema alone.
{ "resource": "" }
c170083
validation
// Create creates a vsphere_virtual_machine cdrom sub-resource.
{ "resource": "" }
c170084
validation
// Read reads a vsphere_virtual_machine cdrom sub-resource.
{ "resource": "" }
c170085
validation
// Update updates a vsphere_virtual_machine cdrom sub-resource.
{ "resource": "" }
c170086
validation
// Delete deletes a vsphere_virtual_machine cdrom sub-resource.
{ "resource": "" }
c170087
validation
// mapCdrom takes a CdromSubresource and attaches either a client device or a datastore ISO.
{ "resource": "" }
c170088
validation
// VerifyVAppTransport validates that all the required components are included in // the virtual machine configuration if vApp properties are set.
{ "resource": "" }
c170089
validation
// verifyVAppCdromIso takes VirtualCdrom and determines if it is needed for // vApp ISO transport. It does this by first checking if it has an ISO inserted // that matches the vApp ISO naming pattern. If it does, then the next step is // to see if vApp ISO transport is supported on the VM. If both of those // condition...
{ "resource": "" }
c170090
validation
// DatastorePathFromString is a convenience method that returns a // fully-populated DatastorePath from a string containing a datastore path. A // flag indicating a successful parsing is also returned.
{ "resource": "" }
c170091
validation
// IsVmdkDatastorePath ensures that a string can be parsed as a datastore path // pointing to a virtual disk. This only checks the validity of the path, not // whether or not the file exists.
{ "resource": "" }
c170092
validation
// QueryDiskType queries the disk type of the specified virtual disk.
{ "resource": "" }
c170093
validation
// Delete deletes the virtual disk at the specified datastore path.
{ "resource": "" }
c170094
validation
// soapFault extracts the SOAP fault from an error fault, if it exists. Check // the returned boolean value to see if you have a SoapFault.
{ "resource": "" }
c170095
validation
// vimSoapFault extracts the VIM fault. Check the returned boolean value to see // if you have a fault, which will need to be further asserted into the error // that you are looking for.
{ "resource": "" }
c170096
validation
// taskFault extracts the task fault from a supplied task.Error. Check the // returned boolean value to see if the fault was extracted correctly, after // which you will need to do further checking.
{ "resource": "" }
c170097
validation
// IsManagedObjectNotFoundError checks an error to see if it's of the // ManagedObjectNotFound type.
{ "resource": "" }
c170098
validation
// isNotFoundError checks an error to see if it's of the NotFoundError type. // // Note this is different from the other "not found" faults and is an error // type in its own right. Use IsAnyNotFoundError to check for any "not found" // type.
{ "resource": "" }
c170099
validation
// IsAnyNotFoundError checks to see if the fault is of any not found error type // that we track.
{ "resource": "" }