_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c180600
test
// Returns time in RightScale API supported format
{ "resource": "" }
c180601
test
// Prints the audit entries to console
{ "resource": "" }
c180602
test
// Extract unique audit entries from the newly received list by comparing the href of audit entries // in the old list.
{ "resource": "" }
c180603
test
// Get the href of an audit entry from the Links attribute by inspecting the self link
{ "resource": "" }
c180604
test
// Print error message and exit with code 1
{ "resource": "" }
c180605
test
// Serialize action parameters
{ "resource": "" }
c180606
test
// Produces code that initializes a APIParams struct with the values of parameters for the given // action and location.
{ "resource": "" }
c180607
test
// Command line used to run tool
{ "resource": "" }
c180608
test
// GET => Get
{ "resource": "" }
c180609
test
// Escape ` in string to be wrapped in them
{ "resource": "" }
c180610
test
// AccountPreferenceLocator builds a locator from the given href.
{ "resource": "" }
c180611
test
// ApplicationLocator builds a locator from the given href.
{ "resource": "" }
c180612
test
// EndUserLocator builds a locator from the given href.
{ "resource": "" }
c180613
test
// NotificationRuleLocator builds a locator from the given href.
{ "resource": "" }
c180614
test
// UserPreferenceLocator builds a locator from the given href.
{ "resource": "" }
c180615
test
// UserPreferenceInfoLocator builds a locator from the given href.
{ "resource": "" }
c180616
test
// LoadConfig loads the client configuration from disk
{ "resource": "" }
c180617
test
// CreateConfig creates a configuration file and saves it to the file at the given path.
{ "resource": "" }
c180618
test
// Wrap generic client into API 1.0 client
{ "resource": "" }
c180619
test
// HostFromLogin returns the policy endpoint from its login endpoint. // The following isn't great but seems better than having to enter by hand.
{ "resource": "" }
c180620
test
// AnalyzeParam analyzes input parameters to methods
{ "resource": "" }
c180621
test
// AnalyzeAttribute analyzes an attribute creating a corresponding ActionParam.
{ "resource": "" }
c180622
test
// AnalyzeType analyzes a type given its JSON definition.
{ "resource": "" }
c180623
test
// CreateType is a helper method that creates or retrieve a object data type given its attributes.
{ "resource": "" }
c180624
test
// Ref gets a definition for a Schema reference, if it exists
{ "resource": "" }
c180625
test
// Type gets a type for a Schema reference, if it exists
{ "resource": "" }
c180626
test
// Required gets a type for a Schema reference, if it exists
{ "resource": "" }
c180627
test
// ID of the reference
{ "resource": "" }
c180628
test
// Service returns the goa.v2 service
{ "resource": "" }
c180629
test
// Methods returns the goa.v2 method
{ "resource": "" }
c180630
test
// NewTypeRegistry creates a type registry.
{ "resource": "" }
c180631
test
// GetNamedType retrieves a type given its name.
{ "resource": "" }
c180632
test
// CreateNamedType returns a new type given a name, the name must be unique.
{ "resource": "" }
c180633
test
// CreateInlineType creates a new inline type.
{ "resource": "" }
c180634
test
// FinalizeTypeNames makes sure type names are unique, it should be called after analysis // has completed.
{ "resource": "" }
c180635
test
// Merge two descriptors together, make sure there are no duplicate resource names and that // common types are compatible.
{ "resource": "" }
c180636
test
// FinalizeTypeNames goes through all the types generated by the analyzer and generate unique names.
{ "resource": "" }
c180637
test
// Build unique type name by appending "next available index" to given prefix
{ "resource": "" }
c180638
test
// MandatoryParams returns the list of all action mandatory parameters
{ "resource": "" }
c180639
test
// HasOptionalParams returns true if the action takes optional parameters, false otherwise.
{ "resource": "" }
c180640
test
// MakeUniq makes a unique name given a prefix and a set of names.
{ "resource": "" }
c180641
test
// NewClientWriter is the client writer factory.
{ "resource": "" }
c180642
test
// WriteHeader writes the header text.
{ "resource": "" }
c180643
test
// WriteResourceHeader writes the resource header.
{ "resource": "" }
c180644
test
// WriteType writest the type declaration for a resource action arguments.
{ "resource": "" }
c180645
test
// WriteResource writest the code for a resource.
{ "resource": "" }
c180646
test
// WithTrail creates a new context with trail appended to
{ "resource": "" }
c180647
test
// AnalyzeEndpoint creates an API descriptor from goa v2 generated swagger definition
{ "resource": "" }
c180648
test
// NetworkInterfaceLocator builds a locator from the given href.
{ "resource": "" }
c180649
test
// NetworkInterfaceAttachmentLocator builds a locator from the given href.
{ "resource": "" }
c180650
test
// UnmarshalJSON implements the unmarshaller interface.
{ "resource": "" }
c180651
test
// ExecutionLocator builds a locator from the given href.
{ "resource": "" }
c180652
test
// NotificationLocator builds a locator from the given href.
{ "resource": "" }
c180653
test
// OperationLocator builds a locator from the given href.
{ "resource": "" }
c180654
test
// ScheduledActionLocator builds a locator from the given href.
{ "resource": "" }
c180655
test
// NewBasicAuthenticator returns a authenticator that uses email and password to create sessions. // The returned authenticator takes care of refreshing the RightScale session as needed.
{ "resource": "" }
c180656
test
// NewSSAuthenticator returns an authenticator that wraps another one and adds the logic needed to // create sessions in Self-Service.
{ "resource": "" }
c180657
test
// newCookieSigner returns a cookie signer that uses the given builder to build login requests.
{ "resource": "" }
c180658
test
// Sign adds the username and password authorization cookies to the request. // Checks the freshness of the session and creates a new one if needed.
{ "resource": "" }
c180659
test
// CanAuthenticate makes a test request to CM 1.5 and returns true if it is successful.
{ "resource": "" }
c180660
test
// refresh updates the cookie and expiration used to sign requests from a successful session // creation API response.
{ "resource": "" }
c180661
test
// Sign sets the OAuth authorization header
{ "resource": "" }
c180662
test
// RL10 authenticator uses special header
{ "resource": "" }
c180663
test
// Self-Service authenticator first creates a global session with the core then creates a local // session with self-service.
{ "resource": "" }
c180664
test
// SetHost sets the host used to create Self-Service session. // Pass in the CM 1.5 host, this method computes the Self-Service host from it.
{ "resource": "" }
c180665
test
// CanAuthenticate makes a test request to SS and returns true if it is successful.
{ "resource": "" }
c180666
test
// extractRedirectURL is a helper function that extracts the Location header from a redirect // response. It returns nil if the header is missing, an error if it's malformed.
{ "resource": "" }
c180667
test
// Compute API URL given a scheme, hostname and a path
{ "resource": "" }
c180668
test
// GetAction returns the action with the given name, returns nil if none is found.
{ "resource": "" }
c180669
test
// HasLink returns whether the resource has a link with the given name.
{ "resource": "" }
c180670
test
// Find paths that match given href
{ "resource": "" }
c180671
test
// NewPB returns an HTTP client using only the parameter block and ignoring // the current values of the package variables, which are not go-routine safe.
{ "resource": "" }
c180672
test
// newVariableDumpClient defines accessors for package variables, which are not // go-routine safe so can theoretically change value while the client is in use. // this emulates the legacy behavior.
{ "resource": "" }
c180673
test
// newRawClient creates an http package Client taking into account both the parameters and package // variables.
{ "resource": "" }
c180674
test
// DoHidden is equivalent to Do with the exception that nothing gets logged unless DumpFormat is // set to Verbose.
{ "resource": "" }
c180675
test
// Do dumps the request, makes the request and dumps the response as specified by DumpFormat.
{ "resource": "" }
c180676
test
// doImp actually performs the HTTP request logging according to the various settings.
{ "resource": "" }
c180677
test
// getClientWithoutTimeout returns a modified client that doesn't have the ResponseHeaderTimeout field set // in its Transport.
{ "resource": "" }
c180678
test
// Dump request if needed. // Return request serialized as JSON if DumpFormat is JSON, nil otherwise.
{ "resource": "" }
c180679
test
// writeHeaders is a helper function that writes the given HTTP headers to the given buffer as // human readable strings. If DumpFormat is not Verbose then writeHeaders filters out headers whose // names are keys of HiddenHeaders.
{ "resource": "" }
c180680
test
// copyHiddenHeaders copies the given map
{ "resource": "" }
c180681
test
// Make sure all the required information is there
{ "resource": "" }
c180682
test
// APIClient instantiates a client with the given name from command line arguments.
{ "resource": "" }
c180683
test
// RegisterClientCommands registers all API client commands.
{ "resource": "" }
c180684
test
// Interactive configures the logger to log messages of level Info or higher to Stdout and messages // of level Error or lesser to Stderr.
{ "resource": "" }
c180685
test
// Create path pattern from HTTP verb and request path
{ "resource": "" }
c180686
test
// WithClientIP returns a context which carries the given client IP.
{ "resource": "" }
c180687
test
// ClientIP returns the client IP embedded in the context, or nil if none were // found.
{ "resource": "" }
c180688
test
// NewProducer configures a new producer instance.
{ "resource": "" }
c180689
test
// StartProducer starts and returns a new producer p, configured with the // variables from the config parameter, or returning an non-nil error if // some of the configuration variables were invalid.
{ "resource": "" }
c180690
test
// Start explicitly begins the producer in case it was initialized with // NewProducer instead of StartProducer.
{ "resource": "" }
c180691
test
// Stop gracefully shutsdown the producer, cancelling all inflight requests and // waiting for all backend connections to be closed. // // It is safe to call the method multiple times and from multiple goroutines, // they will all block until the producer has been completely shutdown.
{ "resource": "" }
c180692
test
// Publish sends a message using the producer p, returning an error if it was // already closed or if an error occurred while publishing the message. // // Note that no retry is done internally, the producer will fail after the // first unsuccessful attempt to publish the message. It is the responsibility // of the caller to retry if necessary.
{ "resource": "" }
c180693
test
// PublishTo sends a message to a specific topic using the producer p, returning // an error if it was already closed or if an error occurred while publishing the // message. // // Note that no retry is done internally, the producer will fail after the // first unsuccessful attempt to publish the message. It is the responsibility // of the caller to retry if necessary.
{ "resource": "" }
c180694
test
// NewLocalEngine creates and returns an instance of LocalEngine configured with // config.
{ "resource": "" }
c180695
test
// validate ensures that this configuration is well-formed.
{ "resource": "" }
c180696
test
// defaults will set up this configuration with the global defaults where they // were not already set.
{ "resource": "" }
c180697
test
// NewConsumer configures a new consumer instance.
{ "resource": "" }
c180698
test
// StartConsumer creates and starts consuming from NSQ right away. This is the // fastest way to get up and running.
{ "resource": "" }
c180699
test
// Start explicitly begins consumption in case the consumer was initialized // with NewConsumer instead of StartConsumer.
{ "resource": "" }