_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c17300
train
// ListAppEventsByQuery returns all app events based on eventType and queries
{ "resource": "" }
c17301
train
// CreateServiceKey creates a service key from the request. If a service key // exists already, it returns an error containing `CF-ServiceKeyNameTaken`
{ "resource": "" }
c17302
train
//Reads most security group response bodies into a SecGroup object
{ "resource": "" }
c17303
train
//Create and Update secGroup pretty much do the same thing, so this function abstracts those out.
{ "resource": "" }
c17304
train
// ListAllProcessesByQuery will call the v3 processes api
{ "resource": "" }
c17305
train
// ListAppsByQueryWithLimits queries totalPages app info. When totalPages is // less and equal than 0, it queries all app info // When there are no more than totalPages apps on server side, all apps info will be returned
{ "resource": "" }
c17306
train
// GetAppByGuidNoInlineCall will fetch app info including space and orgs information // Without using inline-relations-depth=2 call
{ "resource": "" }
c17307
train
//AppByName takes an appName, and GUIDs for a space and org, and performs // the API lookup with those query parameters set to return you the desired // App object.
{ "resource": "" }
c17308
train
// UploadAppBits uploads the application's contents
{ "resource": "" }
c17309
train
// GetAppBits downloads the application's bits as a tar file
{ "resource": "" }
c17310
train
// CreateApp creates a new empty application that still needs it's // app bit uploaded and to be started
{ "resource": "" }
c17311
train
// GetInfo retrieves Info from the Cloud Controller API
{ "resource": "" }
c17312
train
// CF APIs v3 can return multiple errors, we take the first one and convert it into a V2 model
{ "resource": "" }
c17313
train
// ListServiceUsageEventsByQuery lists all events matching the provided query.
{ "resource": "" }
c17314
train
// ListEventsByQuery lists all events matching the provided query.
{ "resource": "" }
c17315
train
// TotalEventsByQuery returns the number of events matching the provided query.
{ "resource": "" }
c17316
train
// CreateTask creates a new task in CF system and returns its structure.
{ "resource": "" }
c17317
train
// GetTaskByGuid returns a task structure by requesting it with the tasks GUID.
{ "resource": "" }
c17318
train
// TerminateTask cancels a task identified by its GUID.
{ "resource": "" }
c17319
train
//DefaultConfig configuration for client //Keep LoginAdress for backward compatibility //Need to be remove in close future
{ "resource": "" }
c17320
train
// getUserTokenAuth initializes client credentials from existing bearer token.
{ "resource": "" }
c17321
train
// NewRequest is used to create a new Request
{ "resource": "" }
c17322
train
// NewRequestWithBody is used to create a new request with // arbigtrary body io.Reader.
{ "resource": "" }
c17323
train
// DoRequestWithoutRedirects executes the request without following redirects
{ "resource": "" }
c17324
train
//a uniqueID is the id of the service in the catalog and not in cf internal db
{ "resource": "" }
c17325
train
// GetUserByGUID retrieves the user with the provided guid.
{ "resource": "" }
c17326
train
// ListAppUsageEventsByQuery lists all events matching the provided query.
{ "resource": "" }
c17327
train
// CreateRoute creates a regular http route
{ "resource": "" }
c17328
train
// BindRoute associates the specified route with the application
{ "resource": "" }
c17329
train
// Check returns whether the descriptor is valid
{ "resource": "" }
c17330
train
// GetWidth returns the width in pixels for the input plane
{ "resource": "" }
c17331
train
// GetHeight returns the height in pixels for the input plane
{ "resource": "" }
c17332
train
// GetRatio returns a ChromaRatio from an image.YCbCrSubsampleRatio
{ "resource": "" }
c17333
train
// PrepareConversion returns a ConverterConfig properly set for a conversion // from input images to output images // Returns an error if the conversion is not possible
{ "resource": "" }
c17334
train
// Psnr computes the PSNR between two input images // Only ycbcr is currently supported
{ "resource": "" }
c17335
train
// NewResize returns a new resizer // cfg = resize configuration // filter = filter used for computing weights
{ "resource": "" }
c17336
train
// This file is auto-generated - do not modify
{ "resource": "" }
c17337
train
// DumpImage dumps each img planes to disk using the input prefix
{ "resource": "" }
c17338
train
// NewListFromString parses a string that represents a Public Suffix source // and returns a List initialized with the rules in the source.
{ "resource": "" }
c17339
train
// NewListFromFile parses a string that represents a Public Suffix source // and returns a List initialized with the rules in the source.
{ "resource": "" }
c17340
train
// Load parses and loads a set of rules from an io.Reader into the current list.
{ "resource": "" }
c17341
train
// LoadString parses and loads a set of rules from a String into the current list.
{ "resource": "" }
c17342
train
// LoadFile parses and loads a set of rules from a File into the current list.
{ "resource": "" }
c17343
train
// AddRule adds a new rule to the list. // // The exact position of the rule into the list is unpredictable. // The list may be optimized internally for lookups, therefore the algorithm // will decide the best position for the new rule.
{ "resource": "" }
c17344
train
// Find and returns the most appropriate rule for the domain name.
{ "resource": "" }
c17345
train
// MustNewRule is like NewRule, but panics if the content cannot be parsed.
{ "resource": "" }
c17346
train
// PublicSuffix implements cookiejar.PublicSuffixList.
{ "resource": "" }
c17347
train
// Visit all files under the given node.
{ "resource": "" }
c17348
train
// Convert bytes to human readable string. Like a 2 MB, 64.2 KB, 52 B
{ "resource": "" }
c17349
train
// case-insensitive contains helper
{ "resource": "" }
c17350
train
// Retrieves the struct field name and key name that represents the identity field for a given struct.
{ "resource": "" }
c17351
train
// Returns the backend and protocol components of the string.
{ "resource": "" }
c17352
train
// Returns the protocol component of the string.
{ "resource": "" }
c17353
train
// Returns the host component of the string.
{ "resource": "" }
c17354
train
// Returns the dataset component of the string.
{ "resource": "" }
c17355
train
// Explicitly set username and password on this connection string
{ "resource": "" }
c17356
train
// Reads a .netrc-style file and loads the appropriate credentials. The host component of // this connection string is matched with the netrc "machine" field.
{ "resource": "" }
c17357
train
// Create a new colllection definition with no fields.
{ "resource": "" }
c17358
train
// Return the duration until the TimeToLiveField in given record expires within the current collection. // Collections with an empty TimeToLiveField, or records with a missing or zero-valued TimeToLiveField // will return 0. If the record has already expired, the returned duration will be a negative number.
{ "resource": "" }
c17359
train
// Expired records are those whose TTL duration is non-zero and negative.
{ "resource": "" }
c17360
train
// Get the canonical name of the external index name.
{ "resource": "" }
c17361
train
// Get the canonical name of the dataset in an external aggregator service.
{ "resource": "" }
c17362
train
// Configure the identity field of a collection in a single function call.
{ "resource": "" }
c17363
train
// Append a field definition to this collection.
{ "resource": "" }
c17364
train
// Copies certain collection and field properties from the definition object into this collection // instance. This is useful for collections that are created by parsing the schema as it exists on // the remote datastore, which will have some but not all of the information we need to work with the // data. Definition...
{ "resource": "" }
c17365
train
// Retrieve a single field by name. The second return value will be false if the field does not // exist.
{ "resource": "" }
c17366
train
// Retrieve a single field by its index value. The second return value will be false if a field // at that index does not exist.
{ "resource": "" }
c17367
train
// Return whether a given field name is a key on this Collection.
{ "resource": "" }
c17368
train
// Retrieve all of the fields that comprise the primary key for this Collection. This will always include the identity // field at a minimum.
{ "resource": "" }
c17369
train
// Retrieve the first non-indentity key field, sometimes referred to as the "range", "sort", or "cluster" key.
{ "resource": "" }
c17370
train
// Convert a given value according to the data type of a specific named field.
{ "resource": "" }
c17371
train
// Convert the given record into a map.
{ "resource": "" }
c17372
train
// Validate the given record against all Field and Collection validators.
{ "resource": "" }
c17373
train
// Verifies that the schema passes some basic sanity checks.
{ "resource": "" }
c17374
train
// Retrieves an instance of the model identified by the given ID and populates the value pointed to // by the into parameter. Structs and dal.Record instances can be populated. //
{ "resource": "" }
c17375
train
// Tests whether a record exists for the given ID. //
{ "resource": "" }
c17376
train
// Updates and saves an existing instance of the model from the given struct or dal.Record. //
{ "resource": "" }
c17377
train
// Creates or updates an instance of the model depending on whether it exists or not. //
{ "resource": "" }
c17378
train
// Delete instances of the model identified by the given IDs //
{ "resource": "" }
c17379
train
// Delete all records matching the given query.
{ "resource": "" }
c17380
train
// Perform a query for instances of the model that match the given filter.Filter. // Results will be returned in the slice or array pointed to by the into parameter, or // if into points to a dal.RecordSet, the RecordSet resulting from the query will be returned // as-is. //
{ "resource": "" }
c17381
train
// Perform a query for instances of the model that match the given filter.Filter. // The given callback function will be called once per result. //
{ "resource": "" }
c17382
train
// Generates a V4 UUID value if the existing value is empty.
{ "resource": "" }
c17383
train
// Same as GenerateUUID, but allows for a custom representation of the underlying bytes.
{ "resource": "" }
c17384
train
// Only evaluates the given formatter if the current value of the field is empty.
{ "resource": "" }
c17385
train
// Extracts values from the given Record and generates a deterministic output based on those values.
{ "resource": "" }
c17386
train
// Returns the current time every time the field is persisted.
{ "resource": "" }
c17387
train
// Returns the current time when the field is persisted if the current value is empty.
{ "resource": "" }
c17388
train
// Returns the current time with an added offset when the field is persisted.
{ "resource": "" }
c17389
train
// Validate that the given value matches all of the given regular expressions.
{ "resource": "" }
c17390
train
// Validate that all of the given validator functions pass.
{ "resource": "" }
c17391
train
// Validate that the given value is among the given choices.
{ "resource": "" }
c17392
train
// Validate that the given value is not a zero value, and if it's a string, that the string // does not contain only whitespace.
{ "resource": "" }
c17393
train
// Validate that the given value is an integer > 0.
{ "resource": "" }
c17394
train
// Validate that the value is a URL with a non-empty scheme and host component.
{ "resource": "" }
c17395
train
// wraps the process of borrowing a connection from the pool and running a command
{ "resource": "" }
c17396
train
// DeleteQuery removes records using a filter
{ "resource": "" }
c17397
train
// Takes a slice of structs or maps and fills it with instances populated by the records in this RecordSet // in accordance with the types specified in the given collection definition, as well as which // fields are available in the given struct.
{ "resource": "" }
c17398
train
// Populates a given struct with with the values in this record.
{ "resource": "" }
c17399
train
// NewContext returns a derived context containing the logger.
{ "resource": "" }