_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c21500
train
// CreateCategory creates a new category and returns the category ID.
{ "resource": "" }
c21501
train
// UpdateCategory can update one or more of the AssociableTypes, Cardinality, Description and Name fields.
{ "resource": "" }
c21502
train
// DeleteCategory deletes an existing category.
{ "resource": "" }
c21503
train
// GetCategory fetches the category information for the given identifier. // The id parameter can be a Category ID or Category Name.
{ "resource": "" }
c21504
train
// ListCategories returns all category IDs in the system.
{ "resource": "" }
c21505
train
// GetCategories fetches an array of category information in the system.
{ "resource": "" }
c21506
train
// New creates a vAPI simulator.
{ "resource": "" }
c21507
train
// AttachedObjects is meant for internal use via simulator.Registry.tagManager
{ "resource": "" }
c21508
train
// AttachedTags is meant for internal use via simulator.Registry.tagManager
{ "resource": "" }
c21509
train
// AttachTag is meant for internal use via simulator.Registry.tagManager
{ "resource": "" }
c21510
train
// DetachTag is meant for internal use via simulator.Registry.tagManager
{ "resource": "" }
c21511
train
// ok responds with http.StatusOK and json encodes val if given.
{ "resource": "" }
c21512
train
// ServeHTTP handles vAPI requests.
{ "resource": "" }
c21513
train
// libraryPath returns the local Datastore fs path for a Library or Item if id is specified.
{ "resource": "" }
c21514
train
// NewOVAFile creates a new OVA file reader
{ "resource": "" }
c21515
train
// Find looks for a filename match in the OVA file
{ "resource": "" }
c21516
train
// Read reads from the current file in the OVA file
{ "resource": "" }
c21517
train
// getOVAFileInfo opens an OVA, finds the file entry, and returns both the size and md5 checksum
{ "resource": "" }
c21518
train
// uploadFile will upload a single file from an OVA using the sessionID provided
{ "resource": "" }
c21519
train
// hostsWithDatastore returns hosts that have access to the given datastore path
{ "resource": "" }
c21520
train
// Marshal marshals Env to xml by using xml.Marshal.
{ "resource": "" }
c21521
train
// MarshalManual manually marshals Env to xml suitable for a vApp guest. // It exists to overcome the lack of expressiveness in Go's XML namespaces.
{ "resource": "" }
c21522
train
// DecodeElement works like xml.Unmarshal except that it takes // a pointer to the start XML element to decode into v. // It is useful when a client reads some raw XML tokens itself // but also wants to defer to Unmarshal for some elements.
{ "resource": "" }
c21523
train
// receiverType returns the receiver type to use in an expression like "%s.MethodName".
{ "resource": "" }
c21524
train
// Find reflect.Type for an element's type attribute.
{ "resource": "" }
c21525
train
// unmarshalPath walks down an XML structure looking for wanted // paths, and calls unmarshal on them. // The consumed result tells whether XML elements have been consumed // from the Decoder until start's matching end element, or if it's // still untouched because start is uninteresting for sv's fields.
{ "resource": "" }
c21526
train
// Skip reads tokens until it has consumed the end element // matching the most recent start element already consumed. // It recurs if it encounters a start element, so it can be used to // skip nested structures. // It returns nil if it finds an end element matching the start // element; otherwise it returns an error ...
{ "resource": "" }
c21527
train
// AddLibraryItemFile adds a file
{ "resource": "" }
c21528
train
// AddLibraryItemFileFromURI adds a file from a remote URI.
{ "resource": "" }
c21529
train
// GetLibraryItemUpdateSessionFile retrieves information about a specific file // that is a part of an update session.
{ "resource": "" }
c21530
train
// GetContentLengthAndFingerprint gets the number of bytes returned // by the URI as well as the SHA1 fingerprint of the peer certificate // if the URI's scheme is https.
{ "resource": "" }
c21531
train
// formatMessage applies the EventDescriptionEventDetail.FullFormat template to the given event's FullFormattedMessage field.
{ "resource": "" }
c21532
train
// doEntityEventArgument calls f for each entity argument in the event. // If f returns true, the iteration stops.
{ "resource": "" }
c21533
train
// eventFilterSelf returns true if self is one of the entity arguments in the event.
{ "resource": "" }
c21534
train
// eventFilterChildren returns true if a child of self is one of the entity arguments in the event.
{ "resource": "" }
c21535
train
// entityMatches returns true if the spec Entity filter matches the event.
{ "resource": "" }
c21536
train
// typeMatches returns true if one of the spec EventTypeId types matches the event.
{ "resource": "" }
c21537
train
// eventMatches returns true one of the filters matches the event.
{ "resource": "" }
c21538
train
// filePage copies the manager's latest events into the collector's page with Filter applied.
{ "resource": "" }
c21539
train
// CopyVirtualDisk copies a virtual disk, performing conversions as specified in the spec.
{ "resource": "" }
c21540
train
// CreateVirtualDisk creates a new virtual disk.
{ "resource": "" }
c21541
train
// ShrinkVirtualDisk shrinks a virtual disk.
{ "resource": "" }
c21542
train
// Queries virtual disk uuid
{ "resource": "" }
c21543
train
// NewService initializes a Service instance
{ "resource": "" }
c21544
train
// backoff exponentially increases the RPC poll delay up to maxDelay
{ "resource": "" }
c21545
train
// Start initializes the RPC channels and starts a goroutine to listen for incoming RPC requests
{ "resource": "" }
c21546
train
// RegisterHandler for the given RPC name
{ "resource": "" }
c21547
train
// Dispatch an incoming RPC request to a Handler
{ "resource": "" }
c21548
train
// Reset is the default Handler for reset requests
{ "resource": "" }
c21549
train
// SetOption is the default Handler for Set_Option requests
{ "resource": "" }
c21550
train
// DefaultIP is used by default when responding to a Set_Option broadcastIP request // It can be overridden with the Service.PrimaryIP field
{ "resource": "" }
c21551
train
// CreateDirectory creates a top-level directory on the given vsan datastore, using // the given user display name hint and opaque storage policy.
{ "resource": "" }
c21552
train
// DeleteDirectory deletes the given top-level directory from a vsan datastore.
{ "resource": "" }
c21553
train
// NewManager creates a new Manager instance.
{ "resource": "" }
c21554
train
// HistoricalInterval gets the PerformanceManager.HistoricalInterval property and wraps as an IntervalList.
{ "resource": "" }
c21555
train
// CounterInfo gets the PerformanceManager.PerfCounter property. // The property value is only collected once, subsequent calls return the cached value.
{ "resource": "" }
c21556
train
// CounterInfoByKey converts the PerformanceManager.PerfCounter property to a map, // where key is types.PerfCounterInfo.Key.
{ "resource": "" }
c21557
train
// ProviderSummary wraps the QueryPerfProviderSummary method, caching the value based on entity.Type.
{ "resource": "" }
c21558
train
// AvailableMetric wraps the QueryAvailablePerfMetric method. // The MetricList is sorted by PerfCounterInfo.GroupInfo.Key if Manager.Sort == true.
{ "resource": "" }
c21559
train
// Query wraps the QueryPerf method.
{ "resource": "" }
c21560
train
// ValueCSV converts the Value field to a CSV string
{ "resource": "" }
c21561
train
// SampleInfoCSV converts the SampleInfo field to a CSV string
{ "resource": "" }
c21562
train
// Spec attempts to fill in SslThumbprint if empty. // First checks GOVC_TLS_KNOWN_HOSTS, if not found and noverify=true then // use object.HostCertificateInfo to get the thumbprint.
{ "resource": "" }
c21563
train
// Fault checks if error is SSLVerifyFault, including the thumbprint if so
{ "resource": "" }
c21564
train
// Run implements exec.Cmd.Run over vmx guest RPC.
{ "resource": "" }
c21565
train
// Download initiates a file transfer from the guest
{ "resource": "" }
c21566
train
// Upload transfers a file to the guest
{ "resource": "" }
c21567
train
// ByRule returns a HostFirewallRulesetList where Direction, PortType and Protocol are equal and Port is within range
{ "resource": "" }
c21568
train
// Enabled returns a HostFirewallRulesetList with enabled rules
{ "resource": "" }
c21569
train
// Keys returns the HostFirewallRuleset.Key for each ruleset in the list
{ "resource": "" }
c21570
train
// CopyToken returns a copy of a Token.
{ "resource": "" }
c21571
train
// NewDecoder creates a new XML parser reading from r. // If r does not implement io.ByteReader, NewDecoder will // do its own buffering.
{ "resource": "" }
c21572
train
// Undo a pushEOF. // The element must have been finished, so the EOF should be at the top of the stack.
{ "resource": "" }
c21573
train
// Record that we are starting an element with the given name.
{ "resource": "" }
c21574
train
// Creates a SyntaxError with the current line number.
{ "resource": "" }
c21575
train
// Record that we are ending an element with the given name. // The name must match the record at the top of the stack, // which must be a pushElement record. // After popping the element, apply any undo records from // the stack to restore the name translations that existed // before we saw this element.
{ "resource": "" }
c21576
train
// If the top element on the stack is autoclosing and // t is not the end tag, invent the end tag.
{ "resource": "" }
c21577
train
// RawToken is like Token but does not verify that // start and end elements match and does not translate // name space prefixes to their corresponding URLs.
{ "resource": "" }
c21578
train
// Skip spaces if any
{ "resource": "" }
c21579
train
// Read a single byte. // If there is no byte to read, return ok==false // and leave the error in d.err. // Maintain line number.
{ "resource": "" }
c21580
train
// Read a name and append its bytes to d.buf. // The name is delimited by any single-byte character not valid in names. // All multi-byte characters are accepted; the caller must check their validity.
{ "resource": "" }
c21581
train
// procInstEncoding parses the `encoding="..."` or `encoding='...'` // value out of the provided string, returning "" if not found.
{ "resource": "" }
c21582
train
// EthernetCardBackingInfo returns the VirtualDeviceBackingInfo for this DistributedVirtualPortgroup
{ "resource": "" }
c21583
train
// AddPortGroup wraps methods.AddPortGroup
{ "resource": "" }
c21584
train
// AddServiceConsoleVirtualNic wraps methods.AddServiceConsoleVirtualNic
{ "resource": "" }
c21585
train
// AddVirtualSwitch wraps methods.AddVirtualSwitch
{ "resource": "" }
c21586
train
// QueryNetworkHint wraps methods.QueryNetworkHint
{ "resource": "" }
c21587
train
// RefreshNetworkSystem wraps methods.RefreshNetworkSystem
{ "resource": "" }
c21588
train
// RemovePortGroup wraps methods.RemovePortGroup
{ "resource": "" }
c21589
train
// RemoveVirtualSwitch wraps methods.RemoveVirtualSwitch
{ "resource": "" }
c21590
train
// UpdateConsoleIpRouteConfig wraps methods.UpdateConsoleIpRouteConfig
{ "resource": "" }
c21591
train
// UpdateNetworkConfig wraps methods.UpdateNetworkConfig
{ "resource": "" }
c21592
train
// UpdatePhysicalNicLinkSpeed wraps methods.UpdatePhysicalNicLinkSpeed
{ "resource": "" }
c21593
train
// UpdatePortGroup wraps methods.UpdatePortGroup
{ "resource": "" }
c21594
train
// UpdateVirtualNic wraps methods.UpdateVirtualNic
{ "resource": "" }
c21595
train
// CreateTaskView creates a new ListView that optionally watches for a ManagedEntity's recentTask updates.
{ "resource": "" }
c21596
train
// Collect calls function f for each Task update.
{ "resource": "" }
c21597
train
// DeployLibraryItem deploys a library OVF
{ "resource": "" }
c21598
train
// FilterLibraryItem deploys a library OVF
{ "resource": "" }
c21599
train
// NewClient creates a new Client instance.
{ "resource": "" }