_id
stringlengths
2
7
text
stringlengths
6
2.61k
title
stringclasses
1 value
c180500
// RightScriptLocator builds a locator from the given href.
c180501
// RightScriptAttachmentLocator builds a locator from the given href.
c180502
// RouteLocator builds a locator from the given href.
c180503
// RouteTableLocator builds a locator from the given href.
c180504
// RunnableBindingLocator builds a locator from the given href.
c180505
// SchedulerLocator builds a locator from the given href.
c180506
// SecurityGroupLocator builds a locator from the given href.
c180507
// SecurityGroupRuleLocator builds a locator from the given href.
c180508
// ServerLocator builds a locator from the given href.
c180509
// ServerArrayLocator builds a locator from the given href.
c180510
// ServerTemplateLocator builds a locator from the given href.
c180511
// ServerTemplateMultiCloudImageLocator builds a locator from the given href.
c180512
// SessionLocator builds a locator from the given href.
c180513
// SshKeyLocator builds a locator from the given href.
c180514
// SubnetLocator builds a locator from the given href.
c180515
// TagLocator builds a locator from the given href.
c180516
// TaskLocator builds a locator from the given href.
c180517
// UserLocator builds a locator from the given href.
c180518
// UserDataLocator builds a locator from the given href.
c180519
// VolumeLocator builds a locator from the given href.
c180520
// VolumeAttachmentLocator builds a locator from the given href.
c180521
// VolumeSnapshotLocator builds a locator from the given href.
c180522
// VolumeTypeLocator builds a locator from the given href.
c180523
// RegisterCommands registers all the commands with the kinpin application.
c180524
// ShowCommandHelp displays the command help.
c180525
// ShowAPIActions displays the command hrefs.
c180526
// ShowHelp displays help for the given command and flags.
c180527
// ParseCommandAndFlags parses a command flag and infers the resource, action, href and params.
c180528
// Validate flag value using validation criteria provided in metadata
c180529
// Reconstruct query from flatten values
c180530
// Reconstruct payload map from flatten values
c180531
// Attempt to shorten action pattern for display by looking at other action hrefs // and picking one that doesn't have the suffix if there is one.
c180532
// cleans up description, removing blank lines and extraneous info
c180533
// fileExists reads content from existing file and returns a byte array
c180534
// AnalysisSnapshotLocator builds a locator from the given href.
c180535
// BudgetAlertLocator builds a locator from the given href.
c180536
// CloudBillLocator builds a locator from the given href.
c180537
// CloudBillMetricLocator builds a locator from the given href.
c180538
// CurrentUserLocator builds a locator from the given href.
c180539
// InstanceCombinationLocator builds a locator from the given href.
c180540
// InstanceMetricLocator builds a locator from the given href.
c180541
// InstanceUsagePeriodLocator builds a locator from the given href.
c180542
// PatternLocator builds a locator from the given href.
c180543
// ReservedInstanceLocator builds a locator from the given href.
c180544
// ReservedInstancePurchaseLocator builds a locator from the given href.
c180545
// ScenarioLocator builds a locator from the given href.
c180546
// ScheduledReportLocator builds a locator from the given href.
c180547
// TempInstancePriceLocator builds a locator from the given href.
c180548
// UserSettingLocator builds a locator from the given href.
c180549
// Read file asynchronously
c180550
// Extract command line argument with given name and return remaining arguments
c180551
// Helper function that appends a string to output file
c180552
// AppliedPolicyLocator builds a locator from the given href.
c180553
// ApprovalLocator builds a locator from the given href.
c180554
// IncidentLocator builds a locator from the given href.
c180555
// PolicyTemplateLocator builds a locator from the given href.
c180556
// PublishedTemplateLocator builds a locator from the given href.
c180557
// DebugCookbookPathLocator builds a locator from the given href.
c180558
// DockerControlLocator builds a locator from the given href.
c180559
// EnvLocator builds a locator from the given href.
c180560
// LoginControlLocator builds a locator from the given href.
c180561
// ProcLocator builds a locator from the given href.
c180562
// Rl10Locator builds a locator from the given href.
c180563
// TSSLocator builds a locator from the given href.
c180564
// TSSControlLocator builds a locator from the given href.
c180565
// TSSPluginLocator builds a locator from the given href.
c180566
// NewAngularWriter creates a new code writer that generates angular.js types.
c180567
// WriteResource writes the code for a resource.
c180568
// Path for given action, for now simplify and take first path in PathPatterns. // In the future we may want to create one "action" in generated JS per path.
c180569
// Returns true if parameter with given name is mandatory
c180570
// New returns a API client that uses the given authenticator. // host may be blank in which case client attempts to resolve it using auth.
c180571
// FromCommandLine builds an API client from the command line.
c180572
// CanAuthenticate makes a test authenticated request to the RightScale API and returns an error // if it fails.
c180573
// Encrypt encrypts the given text with a hard-coded secret. Not truly secure.
c180574
// Decrypt decrypts the given encrypted string using the hard-coded secret.
c180575
// guessType tries to guess the resource name based on the definition and service. // This info is not stored in the swagger. TBD manual overrides if needed.
c180576
// addType conditionally adds a new type, trying its best to avoid type // collisions. This is the downside of swagger 2 vs swagger 3. For swagger 2 // if you the same type like "User" returned in multiple places, each have to // create their own definition in the swagger "definitions" section for goa // v2. So they'll...
c180577
// extractCmdLineParams generates flags for the command line
c180578
// NewMetadataWriter creates a new writer that generates metadata data structures.
c180579
// WriteHeader writes the generic header text.
c180580
// WriteMetadata writes the data structures that describe the API resources and actions.
c180581
// Return code corresponding to param location
c180582
// New returns a client that uses RL10 authentication. // accountId, host and auth arguments are not used. // If no HTTP client is specified then the default client is used.
c180583
// Wrap generic client into RL10 client
c180584
// BuildRequest builds a HTTP request from a resource name and href and an action name and // parameters. // It is intended for generic clients that need to consume APIs in a generic maner. // The method builds an HTTP request that can be fed to PerformRequest.
c180585
// Initialize GenMetadata from each CA API generated metadata
c180586
// NewDisplayer creates a new displayer using the response body.
c180587
// ApplySingleExtract applies the given JSON selector and returns the results. // It's an error if the selector yields more than one value.
c180588
// ApplyExtract applies selector to js.
c180589
// ApplyHeaderExtract reads the value of the given header.
c180590
// Output returns the current output.
c180591
// NewAPIAnalyzer is the factory method for the API analyzer
c180592
// Analyze iterate through all resources and initializes the Resources and ParamTypes fields of // the APIAnalyzer struct accordingly.
c180593
// AnalyzeAliases goes through the aliases and copies the details from original actions to the // aliased actions. It skips the route field since we have the routes hard-coded in the // ParseRoute function.
c180594
// LocatorFunc returns the source code for building a locator instance from a resource.
c180595
// ParseRoute parses a API 1.5 route and returns corresponding path patterns.
c180596
// true if path is for a deprecated API
c180597
// Heuristic to determine whether given param is a query string param // For now only consider view and filter...
c180598
// Look in given path patterns to chek whether given parameter name corresponds to a variable // name.
c180599
// Make an API call and fetch the audit entries matching specified criteria