Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

updates for latest schema, version 0.5.1

  • Loading branch information...
commit ab3320c0b603292a42f39cd41a0a8f71d1b3716b 1 parent 16d7b50
@bgentry authored
View
3  addon.go
@@ -10,6 +10,9 @@ import (
// Add-ons represent add-ons that have been provisioned for an app.
type Addon struct {
+ // config vars associated with this application
+ ConfigVars []string `json:"config_vars"`
+
// when add-on was updated
CreatedAt time.Time `json:"created_at"`
View
5 formation.go
@@ -9,8 +9,9 @@ import (
)
// The formation of processes that should be maintained for an app. Update the
-// formation to scale processes or change dyno sizes. Commands and types are
-// defined by the Procfile uploaded with an app.
+// formation to scale processes or change dyno sizes. Available process type
+// names and commands are defined by the process_types attribute for the slug
+// currently released on an app.
type Formation struct {
// command to use to launch this process
Command string `json:"command"`
View
1  gen/gen.rb
@@ -283,6 +283,7 @@ def resolve_typedef(propdef)
arraytype = if propdef["items"]["$ref"]
resolve_typedef(propdef["items"])
else
+ puts "propdef[items][type]: #{propdef["items"]["type"].inspect}"
propdef["items"]["type"]
end
"[]#{arraytype}"
View
40 gen/schema.json
@@ -459,6 +459,20 @@
"object"
],
"definitions": {
+ "config_vars": {
+ "description": "config vars associated with this application",
+ "example": [
+ "FOO",
+ "BAZ"
+ ],
+ "items": {
+ "type": "string"
+ },
+ "readOnly": true,
+ "type": [
+ "array"
+ ]
+ },
"created_at": {
"description": "when add-on was updated",
"example": "2012-01-01T12:00:00Z",
@@ -587,6 +601,9 @@
}
],
"properties": {
+ "config_vars": {
+ "$ref": "#/definitions/addon/definitions/config_vars"
+ },
"created_at": {
"$ref": "#/definitions/addon/definitions/created_at"
},
@@ -1734,7 +1751,7 @@
}
},
"formation": {
- "description": "The formation of processes that should be maintained for an app. Update the formation to scale processes or change dyno sizes. Commands and types are defined by the Procfile uploaded with an app.",
+ "description": "The formation of processes that should be maintained for an app. Update the formation to scale processes or change dyno sizes. Available process type names and commands are defined by the `process_types` attribute for the [slug](#slug) currently released on an app.",
"id": "schema/formation",
"$schema": "http://json-schema.org/draft-04/hyper-schema",
"title": "Heroku Platform API - Formation",
@@ -2052,7 +2069,7 @@
}
},
"log-drain": {
- "description": "[Log drains](https://devcenter.heroku.com/articles/logging#syslog-drains) provide a way to forward your Heroku logs to an external syslog server for long-term archiving. This external service must be configured to receive syslog packets from Heroku, whereupon its URL can be added to an app using this API.",
+ "description": "[Log drains](https://devcenter.heroku.com/articles/logging#syslog-drains) provide a way to forward your Heroku logs to an external syslog server for long-term archiving. This external service must be configured to receive syslog packets from Heroku, whereupon its URL can be added to an app using this API. Some addons will add a log drain when they are provisioned to an app. These drains can only be removed by removing the add-on.",
"id": "schema/log-drain",
"$schema": "http://json-schema.org/draft-04/hyper-schema",
"title": "Heroku Platform API - Log Drain",
@@ -2143,7 +2160,7 @@
"title": "Create"
},
{
- "description": "Delete an existing log drain.",
+ "description": "Delete an existing log drain. Log drains added by add-ons can only be removed by removing the add-on.",
"href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/log-drains/{(%23%2Fdefinitions%2Flog-drain%2Fdefinitions%2Fidentity)}",
"method": "DELETE",
"rel": "destroy",
@@ -3378,6 +3395,15 @@
"object"
],
"definitions": {
+ "buildpack_provided_description": {
+ "description": "description from buildpack of slug",
+ "example": "Ruby/Rack",
+ "readOnly": false,
+ "type": [
+ "null",
+ "string"
+ ]
+ },
"commit": {
"description": "identification of the code with your version control system (eg: SHA of the git HEAD)",
"example": "60883d9e8947a57e04dc9124f25df004866a2051",
@@ -3470,6 +3496,9 @@
"rel": "create",
"schema": {
"properties": {
+ "buildpack_provided_description": {
+ "$ref": "#/definitions/slug/definitions/buildpack_provided_description"
+ },
"commit": {
"$ref": "#/definitions/slug/definitions/commit"
},
@@ -3499,6 +3528,9 @@
"object"
]
},
+ "buildpack_provided_description": {
+ "$ref": "#/definitions/slug/definitions/buildpack_provided_description"
+ },
"commit": {
"$ref": "#/definitions/slug/definitions/commit"
},
@@ -3866,4 +3898,4 @@
"type": [
"object"
]
-}
+}
View
2  heroku.go
@@ -21,7 +21,7 @@ import (
)
const (
- Version = "0.5.0"
+ Version = "0.5.1"
DefaultAPIURL = "https://api.heroku.com"
DefaultUserAgent = "heroku-go/" + Version + " (" + runtime.GOOS + "; " + runtime.GOARCH + ")"
)
View
6 log_drain.go
@@ -11,7 +11,8 @@ import (
// Log drains provide a way to forward your Heroku logs to an external syslog
// server for long-term archiving. This external service must be configured to
// receive syslog packets from Heroku, whereupon its URL can be added to an app
-// using this API.
+// using this API. Some addons will add a log drain when they are provisioned to
+// an app. These drains can only be removed by removing the add-on.
type LogDrain struct {
// addon that created the drain
Addon *struct {
@@ -48,7 +49,8 @@ func (c *Client) LogDrainCreate(appIdentity string, url string) (*LogDrain, erro
return &logDrainRes, c.Post(&logDrainRes, "/apps/"+appIdentity+"/log-drains", params)
}
-// Delete an existing log drain.
+// Delete an existing log drain. Log drains added by add-ons can only be removed
+// by removing the add-on.
//
// appIdentity is the unique identifier of the log-drain's app. logDrainIdentity
// is the unique identifier of the LogDrain.
View
11 slug.go
@@ -17,6 +17,9 @@ type Slug struct {
URL string `json:"url"`
} `json:"blob"`
+ // description from buildpack of slug
+ BuildpackProvidedDescription *string `json:"buildpack_provided_description"`
+
// identification of the code with your version control system (eg: SHA of the git HEAD)
Commit *string `json:"commit"`
@@ -50,12 +53,14 @@ func (c *Client) SlugInfo(appIdentity string, slugIdentity string) (*Slug, error
// struct of optional parameters for this action.
func (c *Client) SlugCreate(appIdentity string, processTypes map[string]string, options *SlugCreateOpts) (*Slug, error) {
params := struct {
- ProcessTypes map[string]string `json:"process_types"`
- Commit *string `json:"commit,omitempty"`
+ ProcessTypes map[string]string `json:"process_types"`
+ BuildpackProvidedDescription *string `json:"buildpack_provided_description,omitempty"`
+ Commit *string `json:"commit,omitempty"`
}{
ProcessTypes: processTypes,
}
if options != nil {
+ params.BuildpackProvidedDescription = options.BuildpackProvidedDescription
params.Commit = options.Commit
}
var slugRes Slug
@@ -64,6 +69,8 @@ func (c *Client) SlugCreate(appIdentity string, processTypes map[string]string,
// SlugCreateOpts holds the optional parameters for SlugCreate
type SlugCreateOpts struct {
+ // description from buildpack of slug
+ BuildpackProvidedDescription *string `json:"buildpack_provided_description,omitempty"`
// identification of the code with your version control system (eg: SHA of the git HEAD)
Commit *string `json:"commit,omitempty"`
}
Please sign in to comment.
Something went wrong with that request. Please try again.