heroku-client
Advanced tools
Comparing version 0.7.1 to 0.7.2
@@ -9,2 +9,4 @@ # account | ||
Info for account. | ||
`heroku.account().info({callback});` | ||
@@ -18,2 +20,4 @@ | ||
Update account. | ||
`heroku.account().update({attributes}, {callback});` | ||
@@ -25,6 +29,8 @@ | ||
### `changeEmail` | ||
### `patch` | ||
`heroku.account().changeEmail({attributes}, {callback});` | ||
Change Email for account. | ||
`heroku.account().patch({attributes}, {callback});` | ||
Method | Path | ||
@@ -34,6 +40,8 @@ --- | --- | ||
### `changePassword` | ||
### `patch` | ||
`heroku.account().changePassword({attributes}, {callback});` | ||
Change Password for account. | ||
`heroku.account().patch({attributes}, {callback});` | ||
Method | Path | ||
@@ -40,0 +48,0 @@ --- | --- |
@@ -9,2 +9,4 @@ # account-feature | ||
Info for an existing account feature. | ||
`heroku.account().features({account-feature_id_or_name}).info({callback});` | ||
@@ -18,2 +20,4 @@ | ||
List existing account features. | ||
`heroku.account().features().list({callback});` | ||
@@ -27,2 +31,4 @@ | ||
Update an existing account feature. | ||
`heroku.account().features({account-feature_id_or_name}).update({attributes}, {callback});` | ||
@@ -29,0 +35,0 @@ |
@@ -9,2 +9,4 @@ # addon | ||
Create a new add-on. | ||
`heroku.apps({app_id_or_name}).addons().create({attributes}, {callback});` | ||
@@ -18,2 +20,4 @@ | ||
Delete an existing add-on. | ||
`heroku.apps({app_id_or_name}).addons({addon_id}).delete({callback});` | ||
@@ -27,2 +31,4 @@ | ||
Info for an existing add-on. | ||
`heroku.apps({app_id_or_name}).addons({addon_id}).info({callback});` | ||
@@ -36,2 +42,4 @@ | ||
List existing add-ons. | ||
`heroku.apps({app_id_or_name}).addons().list({callback});` | ||
@@ -45,2 +53,4 @@ | ||
Update an existing add-on. | ||
`heroku.apps({app_id_or_name}).addons({addon_id}).update({attributes}, {callback});` | ||
@@ -47,0 +57,0 @@ |
@@ -9,2 +9,4 @@ # addon-service | ||
Info for existing addon-service. | ||
`heroku.addonServices({addon-service_id_or_name}).info({callback});` | ||
@@ -18,2 +20,4 @@ | ||
List existing addon-services. | ||
`heroku.addonServices().list({callback});` | ||
@@ -20,0 +24,0 @@ |
@@ -9,2 +9,4 @@ # app | ||
Create a new app. | ||
`heroku.apps().create({attributes}, {callback});` | ||
@@ -18,2 +20,4 @@ | ||
Delete an existing app. | ||
`heroku.apps({app_id_or_name}).delete({callback});` | ||
@@ -27,2 +31,4 @@ | ||
Info for existing app. | ||
`heroku.apps({app_id_or_name}).info({callback});` | ||
@@ -36,2 +42,4 @@ | ||
List existing apps. | ||
`heroku.apps().list({callback});` | ||
@@ -45,2 +53,4 @@ | ||
Update an existing app. | ||
`heroku.apps({app_id_or_name}).update({attributes}, {callback});` | ||
@@ -47,0 +57,0 @@ |
@@ -9,2 +9,4 @@ # app-feature | ||
Info for an existing app feature. | ||
`heroku.apps({app_id_or_name}).features({app_id_or_name}).info({callback});` | ||
@@ -18,2 +20,4 @@ | ||
List existing app features. | ||
`heroku.apps({app_id_or_name}).features().list({callback});` | ||
@@ -27,2 +31,4 @@ | ||
Update an existing app feature. | ||
`heroku.apps({app_id_or_name}).features({app_id_or_name}).update({attributes}, {callback});` | ||
@@ -29,0 +35,0 @@ |
@@ -9,2 +9,4 @@ # app-transfer | ||
Create a new app transfer. | ||
`heroku.account().appTransfers().create({attributes}, {callback});` | ||
@@ -18,2 +20,4 @@ | ||
Delete an existing app transfer | ||
`heroku.account().appTransfers({app-transfer_id}).delete({callback});` | ||
@@ -27,2 +31,4 @@ | ||
Info for existing app transfer. | ||
`heroku.account().appTransfers({app-transfer_id}).info({callback});` | ||
@@ -36,2 +42,4 @@ | ||
List existing apps transfers. | ||
`heroku.account().appTransfers().list({callback});` | ||
@@ -45,2 +53,4 @@ | ||
Update an existing app transfer. | ||
`heroku.account().appTransfers({app-transfer_id}).update({attributes}, {callback});` | ||
@@ -47,0 +57,0 @@ |
@@ -9,2 +9,4 @@ # collaborator | ||
Create a new collaborator. | ||
`heroku.apps({app_id_or_name}).collaborators().create({attributes}, {callback});` | ||
@@ -18,2 +20,4 @@ | ||
Delete an existing collaborator. | ||
`heroku.apps({app_id_or_name}).collaborators({collaborator_email_or_id}).delete({callback});` | ||
@@ -27,2 +31,4 @@ | ||
Info for existing collaborator. | ||
`heroku.apps({app_id_or_name}).collaborators({collaborator_email_or_id}).info({callback});` | ||
@@ -36,2 +42,4 @@ | ||
List existing collaborators. | ||
`heroku.apps({app_id_or_name}).collaborators().list({callback});` | ||
@@ -38,0 +46,0 @@ |
@@ -9,2 +9,4 @@ # config-var | ||
Get config-vars for app. | ||
`heroku.apps({app_id_or_name}).configVars().info({callback});` | ||
@@ -18,2 +20,4 @@ | ||
Update config-vars for app. | ||
`heroku.apps({app_id_or_name}).configVars().update({attributes}, {callback});` | ||
@@ -20,0 +24,0 @@ |
@@ -9,2 +9,4 @@ # domain | ||
Create a new domain. | ||
`heroku.apps({app_id_or_name}).domains().create({attributes}, {callback});` | ||
@@ -18,2 +20,4 @@ | ||
Delete an existing domain | ||
`heroku.apps({app_id_or_name}).domains({domain_hostname_or_id}).delete({callback});` | ||
@@ -27,2 +31,4 @@ | ||
Info for existing domain. | ||
`heroku.apps({app_id_or_name}).domains({domain_hostname_or_id}).info({callback});` | ||
@@ -36,2 +42,4 @@ | ||
List existing domains. | ||
`heroku.apps({app_id_or_name}).domains().list({callback});` | ||
@@ -38,0 +46,0 @@ |
@@ -9,2 +9,4 @@ # dyno | ||
Create a new dyno. | ||
`heroku.apps({app_id_or_name}).dynos().create({attributes}, {callback});` | ||
@@ -16,6 +18,8 @@ | ||
### `restartDyno` | ||
### `delete` | ||
`heroku.apps({app_id_or_name}).dynos({dyno_id_or_name}).restartDyno({callback});` | ||
Restart dyno. | ||
`heroku.apps({app_id_or_name}).dynos({dyno_id_or_name}).delete({callback});` | ||
Method | Path | ||
@@ -25,6 +29,8 @@ --- | --- | ||
### `restartAllDynos` | ||
### `delete` | ||
`heroku.apps({app_id_or_name}).dynos().restartAllDynos({callback});` | ||
Restart all dynos | ||
`heroku.apps({app_id_or_name}).dynos().delete({callback});` | ||
Method | Path | ||
@@ -36,2 +42,4 @@ --- | --- | ||
Info for existing dyno. | ||
`heroku.apps({app_id_or_name}).dynos({dyno_id_or_name}).info({callback});` | ||
@@ -45,2 +53,4 @@ | ||
List existing dynos. | ||
`heroku.apps({app_id_or_name}).dynos().list({callback});` | ||
@@ -47,0 +57,0 @@ |
@@ -9,2 +9,4 @@ # formation | ||
Info for a process type | ||
`heroku.apps({app_id_or_name}).formation({formation_id_or_type}).info({callback});` | ||
@@ -18,2 +20,4 @@ | ||
List process type formation | ||
`heroku.apps({app_id_or_name}).formation().list({callback});` | ||
@@ -27,2 +31,4 @@ | ||
Update process type | ||
`heroku.apps({app_id_or_name}).formation({formation_id_or_type}).update({attributes}, {callback});` | ||
@@ -29,0 +35,0 @@ |
@@ -9,2 +9,4 @@ # key | ||
Create a new key. | ||
`heroku.account().keys().create({attributes}, {callback});` | ||
@@ -18,2 +20,4 @@ | ||
Delete an existing key | ||
`heroku.account().keys({key_fingerprint_or_id}).delete({callback});` | ||
@@ -27,2 +31,4 @@ | ||
Info for existing key. | ||
`heroku.account().keys({key_fingerprint_or_id}).info({callback});` | ||
@@ -36,2 +42,4 @@ | ||
List existing keys. | ||
`heroku.account().keys().list({callback});` | ||
@@ -38,0 +46,0 @@ |
@@ -9,2 +9,4 @@ # log-drain | ||
Create a new log drain. | ||
`heroku.apps({app_id_or_name}).logDrains().create({attributes}, {callback});` | ||
@@ -18,2 +20,4 @@ | ||
Delete an existing log drain. | ||
`heroku.apps({app_id_or_name}).logDrains({log-drain_id_or_url}).delete({callback});` | ||
@@ -27,2 +31,4 @@ | ||
Info for existing log drain. | ||
`heroku.apps({app_id_or_name}).logDrains({log-drain_id_or_url}).info({callback});` | ||
@@ -36,2 +42,4 @@ | ||
List existing log drains. | ||
`heroku.apps({app_id_or_name}).logDrains().list({callback});` | ||
@@ -38,0 +46,0 @@ |
@@ -9,2 +9,4 @@ # log-session | ||
Create a new log session. | ||
`heroku.apps({app_id_or_name}).logSessions().create({attributes}, {callback});` | ||
@@ -11,0 +13,0 @@ |
@@ -9,2 +9,4 @@ # oauth-authorization | ||
Create a new OAuth authorization. | ||
`heroku.oauth().authorizations().create({attributes}, {callback});` | ||
@@ -18,2 +20,4 @@ | ||
Delete OAuth authorization. | ||
`heroku.oauth().authorizations({oauth-authorization_id}).delete({callback});` | ||
@@ -27,2 +31,4 @@ | ||
Info for an OAuth authorization. | ||
`heroku.oauth().authorizations({oauth-authorization_id}).info({callback});` | ||
@@ -36,2 +42,4 @@ | ||
List OAuth authorizations. | ||
`heroku.oauth().authorizations().list({callback});` | ||
@@ -38,0 +46,0 @@ |
@@ -9,2 +9,4 @@ # oauth-client | ||
Create a new OAuth client. | ||
`heroku.oauth().clients().create({attributes}, {callback});` | ||
@@ -18,2 +20,4 @@ | ||
Delete OAuth client. | ||
`heroku.oauth().clients({oauth-client_id}).delete({callback});` | ||
@@ -27,2 +31,4 @@ | ||
Info for an OAuth client | ||
`heroku.oauth().clients({oauth-client_id}).info({callback});` | ||
@@ -36,2 +42,4 @@ | ||
List OAuth clients | ||
`heroku.oauth().clients().list({callback});` | ||
@@ -45,2 +53,4 @@ | ||
Update OAuth client | ||
`heroku.oauth().clients({oauth-client_id}).update({attributes}, {callback});` | ||
@@ -47,0 +57,0 @@ |
@@ -9,2 +9,4 @@ # oauth-token | ||
Create a new OAuth token. | ||
`heroku.oauth().tokens().create({attributes}, {callback});` | ||
@@ -11,0 +13,0 @@ |
@@ -9,2 +9,4 @@ # plan | ||
Info for existing plan. | ||
`heroku.addonServices({addon-service_id_or_name}).plans({plan_id_or_name}).info({callback});` | ||
@@ -18,2 +20,4 @@ | ||
List existing plans. | ||
`heroku.addonServices({addon-service_id_or_name}).plans().list({callback});` | ||
@@ -20,0 +24,0 @@ |
@@ -9,2 +9,4 @@ # rate-limit | ||
Info for rate limits. | ||
`heroku.account().rateLimits().info({callback});` | ||
@@ -11,0 +13,0 @@ |
@@ -9,2 +9,4 @@ # region | ||
Info for existing region. | ||
`heroku.regions({region_id_or_name}).info({callback});` | ||
@@ -18,2 +20,4 @@ | ||
List existing regions. | ||
`heroku.regions().list({callback});` | ||
@@ -20,0 +24,0 @@ |
@@ -9,2 +9,4 @@ # release | ||
Info for existing release. | ||
`heroku.apps({app_id_or_name}).releases({release_id_or_version}).info({callback});` | ||
@@ -18,2 +20,4 @@ | ||
List existing releases. | ||
`heroku.apps({app_id_or_name}).releases().list({callback});` | ||
@@ -25,6 +29,8 @@ | ||
### `rollback` | ||
### `post` | ||
`heroku.apps({app_id_or_name}).releases().rollback({attributes}, {callback});` | ||
Rollback to an existing release. | ||
`heroku.apps({app_id_or_name}).releases().post({attributes}, {callback});` | ||
Method | Path | ||
@@ -31,0 +37,0 @@ --- | --- |
@@ -9,2 +9,4 @@ # ssl-endpoint | ||
Create a new SSL endpoint. | ||
`heroku.apps({app_id_or_name}).sslEndpoints().create({attributes}, {callback});` | ||
@@ -18,2 +20,4 @@ | ||
Delete existing SSL endpoint. | ||
`heroku.apps({app_id_or_name}).sslEndpoints({ssl-endpoint_id_or_name}).delete({callback});` | ||
@@ -27,2 +31,4 @@ | ||
Info for existing SSL endpoint. | ||
`heroku.apps({app_id_or_name}).sslEndpoints({ssl-endpoint_id_or_name}).info({callback});` | ||
@@ -36,2 +42,4 @@ | ||
List existing SSL endpoints. | ||
`heroku.apps({app_id_or_name}).sslEndpoints().list({callback});` | ||
@@ -45,2 +53,4 @@ | ||
Update an existing SSL endpoint. | ||
`heroku.apps({app_id_or_name}).sslEndpoints({ssl-endpoint_id_or_name}).update({attributes}, {callback});` | ||
@@ -47,0 +57,0 @@ |
@@ -9,2 +9,4 @@ # stack | ||
Stack info. | ||
`heroku.stacks({stack_id_or_name}).info({callback});` | ||
@@ -18,2 +20,4 @@ | ||
List available stacks. | ||
`heroku.stacks().list({callback});` | ||
@@ -20,0 +24,0 @@ |
@@ -21,3 +21,3 @@ var Heroku = require('./heroku'), | ||
var constructor = getResource(action.href), | ||
actionName = action.title; | ||
actionName = getActionName(action); | ||
@@ -53,2 +53,13 @@ constructor.prototype[getName(actionName)] = function (body, callback) { | ||
function getActionName(action) { | ||
var stdNames = ["Info", "List", "Create", "Update", "Delete"]; | ||
if (_.include(stdNames, action.title)) { | ||
return action.title; | ||
} | ||
return action.method[0].toUpperCase() + action.method.slice(1, action.method.length); | ||
} | ||
function getResource(path) { | ||
@@ -55,0 +66,0 @@ var proxy = Heroku, |
{ | ||
"name": "heroku-client", | ||
"version": "0.7.1", | ||
"version": "0.7.2", | ||
"description": "A wrapper for the Heroku v3 API", | ||
@@ -5,0 +5,0 @@ "main": "./lib/heroku.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
156270
4180