_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c170200
validation
// resourceVSphereFolderMigrateState is the master state migration function for // the vsphere_folder resource.
{ "resource": "" }
c170201
validation
// resourceVSphereFolderMigrateStateV1 migrates the state of the vsphere_folder // from version 0 to version 1.
{ "resource": "" }
c170202
validation
// getDatacenter gets the higher-level datacenter object for the datacenter // name supplied by dc. // // The default datacenter is denoted by using an empty string. When working // with ESXi directly, the default datacenter is always selected.
{ "resource": "" }
c170203
validation
// datacenterFromID locates a Datacenter by its managed object reference ID.
{ "resource": "" }
c170204
validation
// NewDiskSubresource returns a subresource populated with all of the necessary // fields.
{ "resource": "" }
c170205
validation
// DiskApplyOperation processes an apply operation for all disks in the // resource. // // The function takes the root resource's ResourceData, the provider // connection, and the device list as known to vSphere at the start of this // operation. All disk operations are carried out, with both the complete, // updated, ...
{ "resource": "" }
c170206
validation
// diskApplyOperationDelete is an inner-loop helper for disk deletion // operations.
{ "resource": "" }
c170207
validation
// diskApplyOperationCreateUpdate is an inner-loop helper for disk creation and // update operations.
{ "resource": "" }
c170208
validation
// DiskMigrateRelocateOperation assembles the // VirtualMachineRelocateSpecDiskLocator slice for a virtual machine migration // operation, otherwise known as storage vMotion.
{ "resource": "" }
c170209
validation
// DiskCloneRelocateOperation assembles the // VirtualMachineRelocateSpecDiskLocator slice for a virtual machine clone // operation. // // This differs from a regular storage vMotion in that we have no existing // devices in the resource to work off of - the disks in the source virtual // machine is our source of truth...
{ "resource": "" }
c170210
validation
// DiskImportOperation validates the disk configuration of the virtual // machine's VirtualDeviceList to ensure it will be imported properly, and also // saves device addresses into state for disks defined in config. Both the // imported device list is sorted by the device's unit number on the SCSI bus.
{ "resource": "" }
c170211
validation
// ReadDiskAttrsForDataSource returns select attributes from the list of disks // on a virtual machine. This is used in the VM data source to discover // specific options of all of the disks on the virtual machine sorted by the // order that they would be added in if a clone were to be done.
{ "resource": "" }
c170212
validation
// Create creates a vsphere_virtual_machine disk sub-resource.
{ "resource": "" }
c170213
validation
// Read reads a vsphere_virtual_machine disk sub-resource and commits the data // to the newData layer.
{ "resource": "" }
c170214
validation
// Update updates a vsphere_virtual_machine disk sub-resource.
{ "resource": "" }
c170215
validation
// Delete deletes a vsphere_virtual_machine disk sub-resource.
{ "resource": "" }
c170216
validation
// DiffExisting validates and normalizes the fields for an existing disk // sub-resource. It handles carrying over existing values, so this should not // be used on disks that have not been successfully matched up between current // and old diffs.
{ "resource": "" }
c170217
validation
// DiffGeneral performs complex validation of an individual disk sub-resource // that can't be done in schema alone. Should be run on new and existing disks.
{ "resource": "" }
c170218
validation
// normalizeDiskDatastore normalizes the datastore_id field in a disk // sub-resource. If the VM has a datastore cluster defined, it checks to make // sure the datastore in the current state of the disk is a member of the // currently defined datastore cluster, and if it is not, it marks the disk as // computed so that...
{ "resource": "" }
c170219
validation
// Relocate produces a VirtualMachineRelocateSpecDiskLocator for this resource // and is used for both cloning and storage vMotion.
{ "resource": "" }
c170220
validation
// String prints out the disk sub-resource's information including the ID at // time of instantiation, the path of the disk, and the current device // key and address.
{ "resource": "" }
c170221
validation
// expandDiskSettings sets appropriate fields on an existing disk - this is // used during Create and Update to set attributes to those found in // configuration.
{ "resource": "" }
c170222
validation
// createDisk performs all of the logic for a base virtual disk creation.
{ "resource": "" }
c170223
validation
// assignDisk takes a unit number and assigns it correctly to a controller on // the SCSI bus. An error is returned if the assigned unit number is taken.
{ "resource": "" }
c170224
validation
// findControllerInfo determines the normalized unit number for the disk device // based on the SCSI controller and unit number it's connected to. The // controller is also returned.
{ "resource": "" }
c170225
validation
// diskRelocateListString pretty-prints a list of // VirtualMachineRelocateSpecDiskLocator.
{ "resource": "" }
c170226
validation
// diskRelocateString prints out information from a // VirtualMachineRelocateSpecDiskLocator in a friendly way. // // The format depends on whether or not a backing has been defined.
{ "resource": "" }
c170227
validation
// Less helps implement sort.Interface for virtualDeviceListSorter. A // BaseVirtualDevice is "less" than another device if its controller's bus // number and unit number combination are earlier in the order than the other.
{ "resource": "" }
c170228
validation
// Swap helps implement sort.Interface for virtualDeviceListSorter.
{ "resource": "" }
c170229
validation
// Less helps implement sort.Interface for virtualDiskSubresourceSorter.
{ "resource": "" }
c170230
validation
// Swap helps implement sort.Interface for virtualDiskSubresourceSorter.
{ "resource": "" }
c170231
validation
// datastorePathHasBase is a helper to check if a datastore path's file matches // a supplied file name.
{ "resource": "" }
c170232
validation
// findVirtualDisk locates a virtual disk by it UUID, or by its device address // if UUID is missing. // // The device address search is only used if fallback is true - this is so that // we can distinguish situations where it should be used, such as a read, // versus situations where it should never be used, such as a...
{ "resource": "" }
c170233
validation
// diskCapacityInGiB reports the supplied disk's capacity, by first checking // CapacityInBytes, and then falling back to CapacityInKB if that value is // unavailable. This helps correct some situations where the former value's // data gets cleared, which seems to happen on upgrades.
{ "resource": "" }
c170234
validation
// hostNetworkSystemFromHostSystem locates a HostNetworkSystem from a specified // HostSystem.
{ "resource": "" }
c170235
validation
// hostNetworkSystemFromHostSystemID locates a HostNetworkSystem from a // specified HostSystem managed object ID.
{ "resource": "" }
c170236
validation
// hostVSwitchFromName locates a virtual switch on the supplied // HostNetworkSystem by name.
{ "resource": "" }
c170237
validation
// hostPortGroupFromName locates a port group on the supplied HostNetworkSystem // by name.
{ "resource": "" }
c170238
validation
// networkObjectFromHostSystem locates the network object in vCenter for a // specific HostSystem and network name. // // It does this by searching for all networks in the folder hierarchy that // match the given network name for the HostSystem's managed object reference // ID. This match is returned - if nothing is fo...
{ "resource": "" }
c170239
validation
// resourceVSphereLicenseUpdate check for change in labels of the key and updates them.
{ "resource": "" }
c170240
validation
// isKeyPresent iterates over the InfoList to check if the license is present or not.
{ "resource": "" }
c170241
validation
// UpdateLabel provides a wrapper around the UpdateLabel data objects
{ "resource": "" }
c170242
validation
// DecodeError tries to find a specific error which occurs when an invalid key is passed // to the server
{ "resource": "" }
c170243
validation
// resourceVSphereVAppContainerApplyTags processes the tags step for both create // and update for vsphere_vapp_container.
{ "resource": "" }
c170244
validation
// resourceVSphereVAppContainerReadTags reads the tags for // vsphere_vapp_container.
{ "resource": "" }
c170245
validation
// expandClusterVMHostRuleInfo reads certain ResourceData keys and returns a // ClusterVmHostRuleInfo.
{ "resource": "" }
c170246
validation
// flattenClusterVMHostRuleInfo saves a ClusterVmHostRuleInfo into the supplied ResourceData.
{ "resource": "" }
c170247
validation
// resourceVSphereVirtualMachineMigrateState is the master state migration function for // the vsphere_virtual_machine resource.
{ "resource": "" }
c170248
validation
// migrateVSphereVirtualMachineStateV3 migrates the state of the // vsphere_virtual_machine from version 2 to version 3.
{ "resource": "" }
c170249
validation
// NewEnvironmentBrowser initializes a new EnvironmentBrowser based off the // supplied managed object reference.
{ "resource": "" }
c170250
validation
// DefaultDevices loads a satisfactory default device list for the optionally // supplied host and descriptor key. The result is returned as a higher-level // VirtualDeviceList object. This can be used as an initial VirtualDeviceList // when building a device list and VirtualDeviceConfigSpec list for new virtual // mac...
{ "resource": "" }
c170251
validation
// OSFamily fetches the operating system family for the supplied guest ID.
{ "resource": "" }
c170252
validation
// QueryConfigOptionDescriptor returns a list the list of ConfigOption keys // available on the environment that this browser targets. The keys can be used // as query options for DefaultDevices and other functions, facilitating the // specification of results specific to a certain VM version.
{ "resource": "" }
c170253
validation
// RootFromDatacenter returns the root path for the particle from the given // datacenter's inventory path.
{ "resource": "" }
c170254
validation
// PathFromDatacenter returns the combined result of RootFromDatacenter plus a // relative path for a given particle and datacenter object.
{ "resource": "" }
c170255
validation
// SplitDatacenter is a convenience method that splits out the datacenter path // from the supplied path for the particle.
{ "resource": "" }
c170256
validation
// SplitRelativeFolder is a convenience method that returns the parent folder // for the result of SplitRelative on the supplied path. // // This is generally useful to get the folder for a managed entity, versus getting a full relative path. If you want that, use SplitRelative instead.
{ "resource": "" }
c170257
validation
// NewRootFromPath takes the datacenter path for a specific entity, and then // appends the new particle supplied.
{ "resource": "" }
c170258
validation
// datacenterPathFromHostSystemID returns the datacenter section of a // HostSystem's inventory path.
{ "resource": "" }
c170259
validation
// datastoreRootPathFromHostSystemID returns the root datastore folder path // for a specific host system ID.
{ "resource": "" }
c170260
validation
// validateDatastoreFolder checks to make sure the folder is a datastore // folder, and returns it if it is, or an error if it isn't.
{ "resource": "" }
c170261
validation
// validateHostFolder checks to make sure the folder is a host // folder, and returns it if it is, or an error if it isn't.
{ "resource": "" }
c170262
validation
// validateVirtualMachineFolder checks to make sure the folder is a VM folder, // and returns it if it is, or an error if it isn't.
{ "resource": "" }
c170263
validation
// validateNetworkFolder checks to make sure the folder is a network folder, // and returns it if it is, or an error if it isn't.
{ "resource": "" }
c170264
validation
// NormalizePath is a SchemaStateFunc that normalizes a folder path.
{ "resource": "" }
c170265
validation
// MoveObjectTo moves a object by reference into a folder.
{ "resource": "" }
c170266
validation
// Properties is a convenience method that wraps fetching the // Folder MO from its higher-level object.
{ "resource": "" }
c170267
validation
// FindType returns a proper VSphereFolderType for a folder object by checking its child type.
{ "resource": "" }
c170268
validation
// ToServerListQuery formats a ListOpts into a query string.
{ "resource": "" }
c170269
validation
// Index returns the first index of the target string t, or -1 if no match is found.
{ "resource": "" }
c170270
validation
//Any returns true if one of the strings in the slice satisfies the predicate f.
{ "resource": "" }
c170271
validation
// client returns an authenticated HTTP client for use with GCE.
{ "resource": "" }
c170272
validation
// lookupProject retrieves the project name from the metadata of the current node.
{ "resource": "" }
c170273
validation
// lookupZones retrieves the zones of the project and filters them by pattern.
{ "resource": "" }
c170274
validation
// lookupAddrs retrieves the private ip addresses of all instances in a given // project and zone which have a matching tag value.
{ "resource": "" }
c170275
validation
// New creates a new discover client with the given options.
{ "resource": "" }
c170276
validation
// WithUserAgent allows specifying a custom user agent option to send with // requests when the underlying client library supports it.
{ "resource": "" }
c170277
validation
// WithProviders allows specifying your own set of providers.
{ "resource": "" }
c170278
validation
// Names returns the names of the configured providers.
{ "resource": "" }
c170279
validation
// Help describes the format of the configuration string for address discovery // and the various provider specific options.
{ "resource": "" }
c170280
validation
// Addrs discovers ip addresses of nodes that match the given filter criteria. // The config string must have the format 'provider=xxx key=val key=val ...' // where the keys and values are provider specific. The values are URL encoded.
{ "resource": "" }
c170281
validation
// String formats a config map into the "key=val key=val ..." // understood by Parse. The order of the keys is stable.
{ "resource": "" }
c170282
validation
// PodAddrs extracts the addresses from a list of pods. // // This is a separate method so that we can unit test this without having // to setup complicated K8S cluster scenarios. It shouldn't generally be // called externally.
{ "resource": "" }
c170283
validation
// argsOrEnv allows you to pick an environmental variable for a setting if the arg is not set
{ "resource": "" }
c170284
validation
// Addrs returns discovered addresses for the mDNS package.
{ "resource": "" }
c170285
validation
// setLog sets the logger.
{ "resource": "" }
c170286
validation
// discoverErr prints out a friendly error heading for the top-level discovery // errors. It should only be used in the Addrs method.
{ "resource": "" }
c170287
validation
// valueOrEnv provides a way of suppling configuration values through // environment variables. Defined values always take priority.
{ "resource": "" }
c170288
validation
// newVSphereClient returns a new vSphereClient after setting up the necessary // connections.
{ "resource": "" }
c170289
validation
// newVimSession connects the VIM SOAP API client connection.
{ "resource": "" }
c170290
validation
// newRestSession connects to the vSphere REST API endpoint, necessary for // tags.
{ "resource": "" }
c170291
validation
// Addrs implements the Provider interface for the vsphere package.
{ "resource": "" }
c170292
validation
// tagIDFromName helps convert the tag and category names into the final ID // used for discovery.
{ "resource": "" }
c170293
validation
// tagCategoryByName converts a tag category name into its ID.
{ "resource": "" }
c170294
validation
// tagByName converts a tag name into its ID.
{ "resource": "" }
c170295
validation
// virtualMachineIPsForTag is a higher-level wrapper that calls out to // functions to fetch all of the virtual machines matching a certain tag ID, // and then gets all of the IP addresses for those virtual machines.
{ "resource": "" }
c170296
validation
// virtualMachinesForTag discovers all of the virtual machines that match a // specific tag ID and returns their higher level helper objects.
{ "resource": "" }
c170297
validation
// ipAddrsForVirtualMachines takes a set of virtual machines and returns a // consolidated list of IP addresses for all of the VMs.
{ "resource": "" }
c170298
validation
// virtualMachineFromMOID locates a virtual machine by its managed object // reference ID.
{ "resource": "" }
c170299
validation
// virtualMachineProperties is a convenience method that wraps fetching the // VirtualMachine MO from its higher-level object. // // It takes a list of property keys to fetch. Keeping the property set small // can sometimes result in significant performance improvements.
{ "resource": "" }