_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c21600
train
// Do sends the http.Request, decoding resBody if provided.
{ "resource": "" }
c21601
train
// Login creates a new session via Basic Authentication with the given url.Userinfo.
{ "resource": "" }
c21602
train
// Logout deletes the current session.
{ "resource": "" }
c21603
train
// NewClient returns a client targeting the SSO Lookup Service API endpoint.
{ "resource": "" }
c21604
train
// EndpointURL uses the Lookup Service to find the endpoint URL and thumbprint for the given filter. // If the endpoint is found, its TLS certificate is also added to the vim25.Client's trusted host thumbprints. // If the Lookup Service is not available, the given path is returned as the default.
{ "resource": "" }
c21605
train
// endpointThumbprint converts the base64 encoded endpoint certificate to a SHA1 thumbprint.
{ "resource": "" }
c21606
train
// CreateDescriptor wraps methods.CreateDescriptor
{ "resource": "" }
c21607
train
// CreateImportSpec wraps methods.CreateImportSpec
{ "resource": "" }
c21608
train
// ParseDescriptor wraps methods.ParseDescriptor
{ "resource": "" }
c21609
train
// ValidateHost wraps methods.ValidateHost
{ "resource": "" }
c21610
train
// CreateLibraryItem creates a new library item
{ "resource": "" }
c21611
train
// DeleteLibraryItem deletes an existing library item.
{ "resource": "" }
c21612
train
// ListLibraryItems returns a list of all items in a content library.
{ "resource": "" }
c21613
train
// GetLibraryItem returns information on a library item for the given ID.
{ "resource": "" }
c21614
train
// GetLibraryItems returns a list of all the library items for the specified library.
{ "resource": "" }
c21615
train
// FindLibraryItems returns the IDs of all the library items that match the // search criteria.
{ "resource": "" }
c21616
train
// GetFirewallInfo via 'esxcli network firewall get' // The HostFirewallSystem type does not expose this data. // This helper can be useful in particular to determine if the firewall is enabled or disabled.
{ "resource": "" }
c21617
train
// KeepAlive wraps the specified soap.RoundTripper and executes a meaningless // API request in the background after the RoundTripper has been idle for the // specified amount of idle time. The keep alive process only starts once a // user logs in and runs until the user logs out again.
{ "resource": "" }
c21618
train
// AttachTag attaches a tag ID to a managed object.
{ "resource": "" }
c21619
train
// ListAttachedTags fetches the array of tag IDs attached to the given object.
{ "resource": "" }
c21620
train
// GetAttachedTags fetches the array of tags attached to the given object.
{ "resource": "" }
c21621
train
// ListAttachedObjects fetches the array of attached objects for the given tag ID.
{ "resource": "" }
c21622
train
// Request sends an RPC command to the vmx and checks the return code for success or error
{ "resource": "" }
c21623
train
// datacenterPath returns the absolute path to the Datacenter containing the given ref
{ "resource": "" }
c21624
train
// Element returns an Element for the given ManagedObjectReference // This method is only useful for looking up the InventoryPath of a ManagedObjectReference.
{ "resource": "" }
c21625
train
// ObjectReference converts the given ManagedObjectReference to a type from the object package via object.NewReference // with the object.Common.InventoryPath field set.
{ "resource": "" }
c21626
train
// ResourcePoolListAll combines ResourcePoolList and VirtualAppList // VirtualAppList is only called if ResourcePoolList does not find any pools with the given path.
{ "resource": "" }
c21627
train
// MarshalIndent works like Marshal, but each XML element begins on a new // indented line that starts with prefix and is followed by one or more // copies of indent according to the nesting depth.
{ "resource": "" }
c21628
train
// Indent sets the encoder to generate XML in which each element // begins on a new indented line that starts with prefix and is followed by // one or more copies of indent according to the nesting depth.
{ "resource": "" }
c21629
train
// Encode writes the XML encoding of v to the stream. // // See the documentation for Marshal for details about the conversion // of Go values to XML. // // Encode calls Flush before returning.
{ "resource": "" }
c21630
train
// EncodeElement writes the XML encoding of v to the stream, // using start as the outermost tag in the encoding. // // See the documentation for Marshal for details about the conversion // of Go values to XML. // // EncodeElement calls Flush before returning.
{ "resource": "" }
c21631
train
// deleteAttrPrefix removes an attribute name space prefix.
{ "resource": "" }
c21632
train
// defaultStart returns the default start element to use, // given the reflect type, field info, and start template.
{ "resource": "" }
c21633
train
// marshalInterface marshals a Marshaler interface value.
{ "resource": "" }
c21634
train
// marshalTextInterface marshals a TextMarshaler interface value.
{ "resource": "" }
c21635
train
// writeStart writes the given start element.
{ "resource": "" }
c21636
train
// return the bufio Writer's cached write error
{ "resource": "" }
c21637
train
// trim updates the XML context to match the longest common prefix of the stack // and the given parents. A closing tag will be written for every parent // popped. Passing a zero slice or nil will close all the elements.
{ "resource": "" }
c21638
train
// push adds parent elements to the stack and writes open tags.
{ "resource": "" }
c21639
train
// rootMatch returns true if the root object path should be printed
{ "resource": "" }
c21640
train
// NewObjectManager returns an ObjectManager referencing the VcenterVStorageObjectManager singleton when connected to vCenter or // the HostVStorageObjectManager singleton when connected to an ESX host. The optional ref param can be used to specify a ESX // host instead, when connected to vCenter.
{ "resource": "" }
c21641
train
// PlaceDisk uses StorageResourceManager datastore placement recommendations to choose a Datastore from a Datastore cluster. // If the given spec backing Datastore field is not that of type StoragePod, the spec is unmodifed. // Otherwise, the backing Datastore field is replaced with a Datastore suggestion.
{ "resource": "" }
c21642
train
// NewRegistry creates a new instances of Registry
{ "resource": "" }
c21643
train
// typeName returns the type of the given object.
{ "resource": "" }
c21644
train
// valuePrefix returns the value name prefix of a given object
{ "resource": "" }
c21645
train
// newReference returns a new MOR, where Type defaults to type of the given item // and Value defaults to a unique id for the given type.
{ "resource": "" }
c21646
train
// AddHandler adds a RegisterObject handler to the Registry.
{ "resource": "" }
c21647
train
// PutEntity sets item.Parent to that of parent.Self before adding item to the Registry.
{ "resource": "" }
c21648
train
// Get returns the object for the given reference.
{ "resource": "" }
c21649
train
// Any returns the first instance of entity type specified by kind.
{ "resource": "" }
c21650
train
// All returns all entities of type specified by kind. // If kind is empty - all entities will be returned.
{ "resource": "" }
c21651
train
// applyHandlers calls the given func for each r.handlers
{ "resource": "" }
c21652
train
// Put adds a new object to Registry, generating a ManagedObjectReference if not already set.
{ "resource": "" }
c21653
train
// Remove removes an object from the Registry.
{ "resource": "" }
c21654
train
// Update dispatches object property changes to RegisterObject handlers, // such as any PropertyCollector instances with in-progress WaitForUpdates calls. // The changes are also applied to the given object via mo.ApplyPropertyChange, // so there is no need to set object fields directly.
{ "resource": "" }
c21655
train
// getEntityParent traverses up the inventory and returns the first object of type kind. // If no object of type kind is found, the method will panic when it reaches the // inventory root Folder where the Parent field is nil.
{ "resource": "" }
c21656
train
// getEntityDatacenter returns the Datacenter containing the given item
{ "resource": "" }
c21657
train
// getEntityComputeResource returns the ComputeResource parent for the given item. // A ResourcePool for example may have N Parents of type ResourcePool, but the top // most Parent pool is always a ComputeResource child.
{ "resource": "" }
c21658
train
// FindByName returns the first mo.Entity of the given refs whose Name field is equal to the given name. // If there is no match, nil is returned. // This method is useful for cases where objects are required to have a unique name, such as Datastore with // a HostStorageSystem or HostSystem within a ClusterComputeResou...
{ "resource": "" }
c21659
train
// FindReference returns the 1st match found in refs, or nil if not found.
{ "resource": "" }
c21660
train
// AppendReference appends the given refs to field.
{ "resource": "" }
c21661
train
// AddReference appends ref to field if not already in the given field.
{ "resource": "" }
c21662
train
// SearchIndex returns the SearchIndex singleton
{ "resource": "" }
c21663
train
// EventManager returns the EventManager singleton
{ "resource": "" }
c21664
train
// FileManager returns the FileManager singleton
{ "resource": "" }
c21665
train
// VirtualDiskManager returns the VirtualDiskManager singleton
{ "resource": "" }
c21666
train
// ViewManager returns the ViewManager singleton
{ "resource": "" }
c21667
train
// UserDirectory returns the UserDirectory singleton
{ "resource": "" }
c21668
train
// SessionManager returns the SessionManager singleton
{ "resource": "" }
c21669
train
// OptionManager returns the OptionManager singleton
{ "resource": "" }
c21670
train
// CustomFieldsManager returns CustomFieldsManager singleton
{ "resource": "" }
c21671
train
// LoadObjectFromContent loads properties from the 'PropSet' field in the // specified ObjectContent value into the value it represents, which is // returned as a reflect.Value.
{ "resource": "" }
c21672
train
// New returns an initialized simulator Service instance
{ "resource": "" }
c21673
train
// Fault wraps the given message and fault in a soap.Fault
{ "resource": "" }
c21674
train
// About generates some info about the simulator.
{ "resource": "" }
c21675
train
// Handle registers the handler for the given pattern with Service.ServeMux.
{ "resource": "" }
c21676
train
// RegisterSDK adds an HTTP handler for the Registry's Path and Namespace.
{ "resource": "" }
c21677
train
// ServeSDK implements the http.Handler interface
{ "resource": "" }
c21678
train
// defaultIP returns addr.IP if specified, otherwise attempts to find a non-loopback ipv4 IP
{ "resource": "" }
c21679
train
// NewServer returns an http Server instance for the given service
{ "resource": "" }
c21680
train
// Certificate returns the TLS certificate for the Server if started with TLS enabled. // This method will panic if TLS is not enabled for the server.
{ "resource": "" }
c21681
train
// proxy tunnels SDK requests
{ "resource": "" }
c21682
train
// StartTunnel runs an HTTP proxy for tunneling SDK requests that require TLS client certificate authentication.
{ "resource": "" }
c21683
train
// UnmarshalBody extracts the Body from a soap.Envelope and unmarshals to the corresponding govmomi type
{ "resource": "" }
c21684
train
// vmPaths resolves the paths for the VMs in the result.
{ "resource": "" }
c21685
train
// Iterates through all entities of passed field type; // Removes found field from their custom field properties.
{ "resource": "" }
c21686
train
// Iterates through all entities of passed field type; // Renames found field in entity's AvailableField property.
{ "resource": "" }
c21687
train
// Stat implements FileHandler.Stat
{ "resource": "" }
c21688
train
// Open implements FileHandler.Open
{ "resource": "" }
c21689
train
// newArchiveFromGuest returns an hgfs.File implementation to read a directory as a gzip'd tar.
{ "resource": "" }
c21690
train
// newArchiveToGuest returns an hgfs.File implementation to expand a gzip'd tar into a directory.
{ "resource": "" }
c21691
train
// archiveRead writes the contents of the given tar.Reader to the given directory.
{ "resource": "" }
c21692
train
// archiveWrite writes the contents of the given source directory to the given tar.Writer.
{ "resource": "" }
c21693
train
// MatchProperty returns true if a Filter entry matches the given prop.
{ "resource": "" }
c21694
train
// MatchPropertyList returns true if all given props match the Filter.
{ "resource": "" }
c21695
train
// MatchObjectContent returns a list of ObjectContent.Obj where the ObjectContent.PropSet matches the Filter.
{ "resource": "" }
c21696
train
// Lint lints src.
{ "resource": "" }
c21697
train
// LintFiles lints a set of files of a single package. // The argument is a map of filename to source.
{ "resource": "" }
c21698
train
// The variadic arguments may start with link and category types, // and must end with a format string and any arguments. // It returns the new Problem.
{ "resource": "" }
c21699
train
// scopeOf returns the tightest scope encompassing id.
{ "resource": "" }