_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c169900 | validation | // expandClusterDasConfigInfo reads certain ResourceData keys and returns a
// ClusterDasConfigInfo. | {
"resource": ""
} | ||
c169901 | validation | // flattenClusterDasConfigInfo saves a ClusterDasConfigInfo into the supplied
// ResourceData. | {
"resource": ""
} | ||
c169902 | validation | // expandBaseClusterDasAdmissionControlPolicy reads certain ResourceData keys
// and returns a BaseClusterDasAdmissionControlPolicy. | {
"resource": ""
} | ||
c169903 | validation | // flattenBaseClusterDasAdmissionControlPolicy saves a
// BaseClusterDasAdmissionControlPolicy into the supplied ResourceData. | {
"resource": ""
} | ||
c169904 | validation | // expandClusterFailoverResourcesAdmissionControlPolicy reads certain
// ResourceData keys and returns a
// ClusterFailoverResourcesAdmissionControlPolicy. | {
"resource": ""
} | ||
c169905 | validation | // flattenClusterFailoverResourcesAdmissionControlPolicy saves a
// ClusterFailoverResourcesAdmissionControlPolicy into the supplied
// ResourceData. | {
"resource": ""
} | ||
c169906 | validation | // expandClusterFailoverLevelAdmissionControlPolicy reads certain ResourceData
// keys and returns a ClusterFailoverLevelAdmissionControlPolicy. | {
"resource": ""
} | ||
c169907 | validation | // flattenClusterFailoverLevelAdmissionControlPolicy saves a
// ClusterFailoverLevelAdmissionControlPolicy into the supplied ResourceData. | {
"resource": ""
} | ||
c169908 | validation | // expandClusterFailoverHostAdmissionControlPolicy reads certain ResourceData
// keys and returns a ClusterFailoverHostAdmissionControlPolicy. | {
"resource": ""
} | ||
c169909 | validation | // flattenClusterFailoverHostAdmissionControlPolicy saves a
// ClusterFailoverHostAdmissionControlPolicy into the supplied ResourceData. | {
"resource": ""
} | ||
c169910 | validation | // expandClusterDasVMSettings reads certain ResourceData keys and returns a
// ClusterDasVmSettings. | {
"resource": ""
} | ||
c169911 | validation | // flattenClusterDasVMSettings saves a ClusterDasVmSettings into the supplied
// ResourceData. | {
"resource": ""
} | ||
c169912 | validation | // expandClusterVMComponentProtectionSettings reads certain ResourceData keys and returns a
// ClusterVmComponentProtectionSettings. | {
"resource": ""
} | ||
c169913 | validation | // flattenClusterVmComponentProtectionSettings saves a
// ClusterVmComponentProtectionSettings into the supplied ResourceData. | {
"resource": ""
} | ||
c169914 | validation | // expandClusterVMToolsMonitoringSettings reads certain ResourceData keys and returns a
// ClusterVmToolsMonitoringSettings. | {
"resource": ""
} | ||
c169915 | validation | // flattenClusterVmToolsMonitoringSettings saves a
// ClusterVmToolsMonitoringSettings into the supplied ResourceData. | {
"resource": ""
} | ||
c169916 | validation | // expandClusterDpmConfigInfo reads certain ResourceData keys and returns a
// ClusterDpmConfigInfo. | {
"resource": ""
} | ||
c169917 | validation | // flattenClusterDpmConfigInfo saves a ClusterDpmConfigInfo into the supplied
// ResourceData. | {
"resource": ""
} | ||
c169918 | validation | // expandClusterDrsConfigInfo reads certain ResourceData keys and returns a
// ClusterDrsConfigInfo. | {
"resource": ""
} | ||
c169919 | validation | // flattenClusterDrsConfigInfo saves a ClusterDrsConfigInfo into the supplied
// ResourceData. | {
"resource": ""
} | ||
c169920 | validation | // expandResourceVSphereComputeClusterDrsAdvancedOptions reads certain
// ResourceData keys and returns a BaseOptionValue list designed for use as DRS
// advanced options. | {
"resource": ""
} | ||
c169921 | validation | // expandClusterInfraUpdateHaConfigInfo reads certain ResourceData keys and returns a
// ClusterInfraUpdateHaConfigInfo. | {
"resource": ""
} | ||
c169922 | validation | // flattenClusterInfraUpdateHaConfigInfo saves a ClusterInfraUpdateHaConfigInfo into the
// supplied ResourceData. | {
"resource": ""
} | ||
c169923 | validation | // expandClusterOrchestrationInfo reads certain ResourceData keys and returns a
// ClusterOrchestrationInfo. | {
"resource": ""
} | ||
c169924 | validation | // flattenClusterOrchestrationInfo saves a ClusterOrchestrationInfo into the
// supplied ResourceData. | {
"resource": ""
} | ||
c169925 | validation | // expandClusterProactiveDrsConfigInfo reads certain ResourceData keys and returns a
// ClusterProactiveDrsConfigInfo. | {
"resource": ""
} | ||
c169926 | validation | // flattenClusterProactiveDrsConfigInfo saves a ClusterProactiveDrsConfigInfo into the
// supplied ResourceData. | {
"resource": ""
} | ||
c169927 | validation | // Properties is a convenience method that wraps fetching the
// StoragePod MO from its higher-level object. | {
"resource": ""
} | ||
c169928 | validation | // Create creates a StoragePod from a supplied folder. The resulting StoragePod
// is returned. | {
"resource": ""
} | ||
c169929 | validation | // ApplyDRSConfiguration takes a types.StorageDrsConfigSpec and applies it
// against the specified StoragePod. | {
"resource": ""
} | ||
c169930 | validation | // Rename renames a StoragePod. | {
"resource": ""
} | ||
c169931 | validation | // MoveToFolder is a complex method that moves a StoragePod to a given relative
// datastore folder path. "Relative" here means relative to a datacenter, which
// is discovered from the current StoragePod path. | {
"resource": ""
} | ||
c169932 | validation | // StorageDRSEnabled checks a StoragePod to see if Storage DRS is enabled. | {
"resource": ""
} | ||
c169933 | validation | // CreateVM creates a virtual machine on a datastore cluster via the
// StorageResourceManager API. It mimics our helper in the virtualmachine
// package in functionality, returning a VM helper object on success. | {
"resource": ""
} | ||
c169934 | validation | // CloneVM clones a virtual machine to a datastore cluster via the
// StorageResourceManager API. It mimics our helper in the virtualmachine
// package in functionality, returning a VM helper object on success. | {
"resource": ""
} | ||
c169935 | validation | // ReconfigureVM reconfigures a virtual machine via the StorageResourceManager
// API, applying any disk modifications that will require going through Storage
// DRS. It mimics our helper in the virtualmachine package in functionality.
//
// Note that this function will fail if there are no new disks in the spec,
// ch... | {
"resource": ""
} | ||
c169936 | validation | // RelocateVM migrates a virtual machine to a datastore cluster via the
// StorageResourceManager API. It mimics our helper in the virtualmachine
// package in functionality. | {
"resource": ""
} | ||
c169937 | validation | // HasDiskCreationOperations is an exported function that checks a list of
// device changes to see if there are any disk creation operations. This should
// be used to check if ReconfigureVM should be done through the Storage DRS
// API, as a Reconfig operation done through SDRS without new disk operations
// will fai... | {
"resource": ""
} | ||
c169938 | validation | // IsMember checks to see if a datastore is a member of the datastore cluster
// in question.
//
// This is a pretty basic operation that checks that the parent of the
// datastore is the StoragePod. | {
"resource": ""
} | ||
c169939 | validation | // NewConfig returns a new Config from a supplied ResourceData. | {
"resource": ""
} | ||
c169940 | validation | // Client returns a new client for accessing VMWare vSphere. | {
"resource": ""
} | ||
c169941 | validation | // EnableDebug turns on govmomi API operation logging, if appropriate settings
// are set on the provider. | {
"resource": ""
} | ||
c169942 | validation | // sessionFile is a helper that generates a unique hash of the client's URL
// to use as the session file name.
//
// This is the same logic used as part of govmomi and is designed to be
// consistent so that sessions can be shared if possible between both tools. | {
"resource": ""
} | ||
c169943 | validation | // vimSessionFile is takes the session file name generated by sessionFile and
// then prefixes the SOAP client session path to it. | {
"resource": ""
} | ||
c169944 | validation | // restSessionFile is takes the session file name generated by sessionFile and
// then prefixes the REST client session path to it. | {
"resource": ""
} | ||
c169945 | validation | // SaveVimClient saves a client to the supplied path. This facilitates re-use of
// the session at a later date.
//
// Note the logic in this function has been largely adapted from govc and is
// designed to be compatible with it. | {
"resource": ""
} | ||
c169946 | validation | // SaveRestClient saves the REST client session ID to the supplied path. This
// facilitates re-use of the session at a later date. | {
"resource": ""
} | ||
c169947 | validation | // restoreVimClient loads the saved session from disk. Note that this is a helper
// function to LoadVimClient and should not be called directly. | {
"resource": ""
} | ||
c169948 | validation | // readRestSessionID reads a saved REST session ID and returns it. An empty
// string is returned if session does not exist. | {
"resource": ""
} | ||
c169949 | validation | // LoadVimClient loads a saved vSphere SOAP API session from disk, previously
// saved by SaveVimClient, checking it for validity before returning it. A nil
// client means that the session is no longer valid and should be created from
// scratch.
//
// Note the logic in this function has been largely adapted from govc... | {
"resource": ""
} | ||
c169950 | validation | // LoadRestClient loads a saved vSphere REST API session from disk, previously
// saved by SaveRestClient, checking it for validity before returning it. If
// it's not valid, false is returned as the third return value, but the client
// can still be technically used for logging in by calling Login on the client. | {
"resource": ""
} | ||
c169951 | validation | // SavedVimSessionOrNew either loads a saved SOAP session from disk, or creates
// a new one. | {
"resource": ""
} | ||
c169952 | validation | // SavedRestSessionOrNew either loads a saved REST session from disk, or creates
// a new one. | {
"resource": ""
} | ||
c169953 | validation | // wait waits for the customization of a supplied VirtualMachine to complete,
// either due to success or error. It does this by watching specifically for
// CustomizationSucceeded and CustomizationFailed events. If the customization
// failed due to some sort of error, the full formatted message is returned as
// an e... | {
"resource": ""
} | ||
c169954 | validation | // selectEventsForReference allows you to query events for a specific
// ManagedObjectReference.
//
// Event types can be supplied to this function via the eventTypes parameter.
// This is highly recommended when you expect the list of events to be large,
// as there is no limit on returned events. | {
"resource": ""
} | ||
c169955 | validation | // getDatastore gets datastore object | {
"resource": ""
} | ||
c169956 | validation | // resourceVSphereVirtualMachineUpdateReconfigureWithSDRS runs the reconfigure
// part of resourceVSphereVirtualMachineUpdate through storage DRS. It's
// designed to be run when a storage cluster is specified, versus simply
// specifying datastores. | {
"resource": ""
} | ||
c169957 | validation | // resourceVSphereVirtualMachineCreateBareWithSDRS runs the creation part of
// resourceVSphereVirtualMachineCreateBare through storage DRS. It's designed
// to be run when a storage cluster is specified, versus simply specifying
// datastores. | {
"resource": ""
} | ||
c169958 | validation | // resourceVSphereVirtualMachineCreateBareStandard performs the steps necessary
// during resourceVSphereVirtualMachineCreateBare to create a virtual machine
// when a datastore cluster is not supplied. | {
"resource": ""
} | ||
c169959 | validation | // resourceVSphereVirtualMachineCreateCloneWithSDRS runs the clone part of
// resourceVSphereVirtualMachineCreateClone through storage DRS. It's designed
// to be run when a storage cluster is specified, versus simply specifying
// datastores. | {
"resource": ""
} | ||
c169960 | validation | // resourceVSphereVirtualMachineRollbackCreate attempts to "roll back" a
// resource due to an error that happened post-create that will put the VM in a
// state where it cannot be worked with. This should only be done early on in
// the process, namely on clone operations between when the clone actually
// happens, an... | {
"resource": ""
} | ||
c169961 | validation | // resourceVSphereVirtualMachineUpdateLocationRelocateWithSDRS runs the storage vMotion
// part of resourceVSphereVirtualMachineUpdateLocation through storage DRS.
// It's designed to be run when a storage cluster is specified, versus simply
// specifying datastores. | {
"resource": ""
} | ||
c169962 | validation | // applyVirtualDevices is used by Create and Update to build a list of virtual
// device changes. | {
"resource": ""
} | ||
c169963 | validation | // expandClusterDrsVMConfigInfo reads certain ResourceData keys and returns a
// ClusterDpmHostConfigInfo. | {
"resource": ""
} | ||
c169964 | validation | // flattenClusterDpmHostConfigInfo saves a ClusterDpmHostConfigInfo into the
// supplied ResourceData. | {
"resource": ""
} | ||
c169965 | validation | // resourceVSphereDPMHostOverrideFlattenID makes an ID for the
// vsphere_dpm_host_override resource. | {
"resource": ""
} | ||
c169966 | validation | // resourceVSphereDPMHostOverrideFindEntry 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": ""
} | ||
c169967 | validation | // Define VirtualDisk args | {
"resource": ""
} | ||
c169968 | validation | // createHardDisk creates a new Hard Disk. | {
"resource": ""
} | ||
c169969 | validation | // Searches for the presence of a directory path. | {
"resource": ""
} | ||
c169970 | validation | // processMountOperations processes all pending mount operations by diffing old
// and new and adding any hosts that were not found in old. The datastore is
// returned, along with any error. | {
"resource": ""
} | ||
c169971 | validation | // processUnmountOperations processes all pending unmount operations by diffing old
// and new and removing any hosts that were not found in new. This operation
// only proceeds if the datastore field in the processor is populated. | {
"resource": ""
} | ||
c169972 | validation | // isEligibleTagEndpoint is a meta-validation that is used on login to see if
// the connected endpoint supports the CIS REST API, which we use for tags. | {
"resource": ""
} | ||
c169973 | validation | // tagCategoryByName locates a tag category by name. It's used by the
// vsphere_tag_category data source, and the resource importer. | {
"resource": ""
} | ||
c169974 | validation | // tagByName locates a tag by it supplied name and category ID. Use
// tagCategoryByName to get the tag category ID if require the category ID as
// well. | {
"resource": ""
} | ||
c169975 | validation | // tagsSchema returns the schema for the tags configuration attribute for each
// resource that needs it.
//
// The key is usually "tags" and should be a list of tag IDs to associate with
// this resource. | {
"resource": ""
} | ||
c169976 | validation | // tagTypeForObject takes an object.Reference and returns the tag type based on
// its underlying type. If it's not in this list, we don't support it for
// tagging and we return an error. | {
"resource": ""
} | ||
c169977 | validation | // readTagsForResource reads the tags for a given reference and saves the list
// in the supplied ResourceData. It returns an error if there was an issue
// reading the tags. | {
"resource": ""
} | ||
c169978 | validation | // diff is what diffOldNew and diffNewOld hand off to. | {
"resource": ""
} | ||
c169979 | validation | // processAttachOperations processes all pending attach operations by diffing old
// and new and adding any IDs that were not found in old. | {
"resource": ""
} | ||
c169980 | validation | // tagsClientIfDefined goes through the client validation process and returns
// the tags client only if there are tags defined in the supplied ResourceData.
//
// This should be used to fetch the tagging REST client on resources that
// support tags, usually closer to the beginning of a CRUD function to check to
// ma... | {
"resource": ""
} | ||
c169981 | validation | // processTagDiff wraps the whole tag diffing operation into a nice clean
// function that resources can use. | {
"resource": ""
} | ||
c169982 | validation | // expandDVSContactInfo reads certain ResourceData keys and
// returns a DVSContactInfo. | {
"resource": ""
} | ||
c169983 | validation | // flattenDVSContactInfo reads various fields from a
// DVSContactInfo into the passed in ResourceData. | {
"resource": ""
} | ||
c169984 | validation | // expandDistributedVirtualSwitchHostMemberConfigSpec reads certain keys from a
// Set object map and returns a DistributedVirtualSwitchHostMemberConfigSpec. | {
"resource": ""
} | ||
c169985 | validation | // flattenDistributedVirtualSwitchHostMemberConfigSpec reads various fields
// from a DistributedVirtualSwitchHostMemberConfigSpec and returns a Set object
// map.
//
// This is the flatten counterpart to
// expandDistributedVirtualSwitchHostMemberConfigSpec. | {
"resource": ""
} | ||
c169986 | validation | // expandSliceOfDistributedVirtualSwitchHostMemberConfigSpec expands all host
// entires for a VMware DVS, detecting if a host spec needs to be added,
// removed, or updated as well. The whole slice is returned. | {
"resource": ""
} | ||
c169987 | validation | // flattenSliceOfDistributedVirtualSwitchHostMember creates a set of all host
// entries for a supplied slice of DistributedVirtualSwitchHostMember.
//
// This is the flatten counterpart to
// expandSliceOfDistributedVirtualSwitchHostMemberConfigSpec. | {
"resource": ""
} | ||
c169988 | validation | // expandVMwareIpfixConfig reads certain ResourceData keys and
// returns a VMwareIpfixConfig. | {
"resource": ""
} | ||
c169989 | validation | // flattenVMwareIpfixConfig reads various fields from a
// VMwareIpfixConfig into the passed in ResourceData. | {
"resource": ""
} | ||
c169990 | validation | // flattenDvsHostInfrastructureTrafficResource reads various fields from a
// DvsHostInfrastructureTrafficResource and sets appropriate keys in the
// supplied ResourceData. | {
"resource": ""
} | ||
c169991 | validation | // expandDVSNameArrayUplinkPortPolicy reads certain ResourceData keys and
// returns a DVSNameArrayUplinkPortPolicy. | {
"resource": ""
} | ||
c169992 | validation | // flattenDVSNameArrayUplinkPortPolicy reads various fields from a
// DVSNameArrayUplinkPortPolicy into the passed in ResourceData. | {
"resource": ""
} | ||
c169993 | validation | // expandVMwareDVSConfigSpec reads certain ResourceData keys and
// returns a VMwareDVSConfigSpec. | {
"resource": ""
} | ||
c169994 | validation | // flattenVMwareDVSConfigInfo reads various fields from a
// VMwareDVSConfigInfo into the passed in ResourceData.
//
// This is the flatten counterpart to expandVMwareDVSConfigSpec, as the
// configuration info from a DVS comes back as this type instead of a specific
// ConfigSpec. | {
"resource": ""
} | ||
c169995 | validation | // schemaDVSCreateSpec returns schema items for resources that
// need to work with a DVSCreateSpec. | {
"resource": ""
} | ||
c169996 | validation | // expandDVSCreateSpec reads certain ResourceData keys and
// returns a DVSCreateSpec. | {
"resource": ""
} | ||
c169997 | validation | // getWithRestart fetches the resoruce data specified at key. If the value has
// changed, a reboot is flagged in the virtual machine by setting
// reboot_required to true. | {
"resource": ""
} | ||
c169998 | validation | // vAppSubresourceSchema represents the schema for the vApp sub-resource.
//
// This sub-resource allows the customization of vApp properties
// on cloned VMs. | {
"resource": ""
} | ||
c169999 | validation | // expandVirtualMachineBootOptions reads certain ResourceData keys and
// returns a VirtualMachineBootOptions. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.