Browse files

schema update, version 0.5.0

  • Loading branch information...
1 parent 1a4db8b commit 16d7b5048e957955e641af1b223cf115f0a47a28 @bgentry committed Jan 26, 2014
Showing with 62 additions and 21 deletions.
  1. +3 −0 account_feature.go
  2. +3 −0 app_feature.go
  3. +50 −18 gen/schema.json
  4. +1 −1 heroku.go
  5. +5 −2 slug.go
View
3 account_feature.go
@@ -29,6 +29,9 @@ type AccountFeature struct {
// unique name of account feature
Name string `json:"name"`
+ // state of account feature
+ State string `json:"state"`
+
// when account feature was updated
UpdatedAt time.Time `json:"updated_at"`
}
View
3 app_feature.go
@@ -29,6 +29,9 @@ type AppFeature struct {
// unique name of app feature
Name string `json:"name"`
+ // state of app feature
+ State string `json:"state"`
+
// when app feature was updated
UpdatedAt time.Time `json:"updated_at"`
}
View
68 gen/schema.json
@@ -69,6 +69,14 @@
"string"
]
},
+ "state": {
+ "description": "state of account feature",
+ "example": "public",
+ "readOnly": true,
+ "type": [
+ "string"
+ ]
+ },
"updated_at": {
"description": "when account feature was updated",
"example": "2012-01-01T12:00:00Z",
@@ -131,6 +139,9 @@
"name": {
"$ref": "#/definitions/account-feature/definitions/name"
},
+ "state": {
+ "$ref": "#/definitions/account-feature/definitions/state"
+ },
"updated_at": {
"$ref": "#/definitions/account-feature/definitions/updated_at"
}
@@ -675,6 +686,14 @@
"string"
]
},
+ "state": {
+ "description": "state of app feature",
+ "example": "public",
+ "readOnly": true,
+ "type": [
+ "string"
+ ]
+ },
"updated_at": {
"description": "when app feature was updated",
"example": "2012-01-01T12:00:00Z",
@@ -737,6 +756,9 @@
"name": {
"$ref": "#/definitions/app-feature/definitions/name"
},
+ "state": {
+ "$ref": "#/definitions/app-feature/definitions/state"
+ },
"updated_at": {
"$ref": "#/definitions/app-feature/definitions/updated_at"
}
@@ -3356,23 +3378,6 @@
"object"
],
"definitions": {
- "blob": {
- "additionalProperties": false,
- "description": "HTTP verb and url where clients can fetch or store the release blob file",
- "example": {
- "get": "https://api.heroku.com/slugs/1234.tgz"
- },
- "patternProperties": {
- "^\\w+$": {
- "type": [
- "string"
- ]
- }
- },
- "type": [
- "object"
- ]
- },
"commit": {
"description": "identification of the code with your version control system (eg: SHA of the git HEAD)",
"example": "60883d9e8947a57e04dc9124f25df004866a2051",
@@ -3407,6 +3412,14 @@
}
]
},
+ "method": {
+ "description": "method to be used to interact with the slug blob",
+ "example": "GET",
+ "readOnly": true,
+ "type": [
+ "string"
+ ]
+ },
"process_types": {
"additionalProperties": false,
"description": "hash mapping process type names to their respective command",
@@ -3432,6 +3445,14 @@
"type": [
"string"
]
+ },
+ "url": {
+ "description": "URL to interact with the slug blob",
+ "example": "https://api.heroku.com/slugs/1234.tgz",
+ "readOnly": true,
+ "type": [
+ "string"
+ ]
}
},
"links": [
@@ -3465,7 +3486,18 @@
],
"properties": {
"blob": {
- "$ref": "#/definitions/slug/definitions/blob"
+ "description": "pointer to the url where clients can fetch or store the actual release binary",
+ "properties": {
+ "method": {
+ "$ref": "#/definitions/slug/definitions/method"
+ },
+ "url": {
+ "$ref": "#/definitions/slug/definitions/url"
+ }
+ },
+ "type": [
+ "object"
+ ]
},
"commit": {
"$ref": "#/definitions/slug/definitions/commit"
View
2 heroku.go
@@ -21,7 +21,7 @@ import (
)
const (
- Version = "0.4.4"
+ Version = "0.5.0"
DefaultAPIURL = "https://api.heroku.com"
DefaultUserAgent = "heroku-go/" + Version + " (" + runtime.GOOS + "; " + runtime.GOARCH + ")"
)
View
7 slug.go
@@ -11,8 +11,11 @@ import (
// A slug is a snapshot of your application code that is ready to run on the
// platform.
type Slug struct {
- // HTTP verb and url where clients can fetch or store the release blob file
- Blob map[string]string `json:"blob"`
+ // pointer to the url where clients can fetch or store the actual release binary
+ Blob struct {
+ Method string `json:"method"`
+ URL string `json:"url"`
+ } `json:"blob"`
// identification of the code with your version control system (eg: SHA of the git HEAD)
Commit *string `json:"commit"`

0 comments on commit 16d7b50

Please sign in to comment.