-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from digitalocean/asb/dedup-key-model
Dedup Spaces key model
- Loading branch information
Showing
8 changed files
with
15 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 10 additions & 39 deletions
49
specification/resources/spaces/models/key_create_response.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,10 @@ | ||
type: object | ||
|
||
properties: | ||
name: | ||
type: string | ||
description: The name of your access key. | ||
example: "my-access-key" | ||
|
||
grants: | ||
type: array | ||
description: The grants set to this access key. | ||
items: | ||
$ref: 'grant.yml' | ||
default: [] | ||
|
||
access_key: | ||
type: string | ||
description: The access key. | ||
example: DOACCESSKEYEXAMPLE | ||
readOnly: true | ||
|
||
secret_key: | ||
type: string | ||
description: The secret key. | ||
example: DOSECRETKEYEXAMPLE | ||
|
||
created_at: | ||
type: string | ||
format: date-time | ||
description: The date and time the key was created. | ||
example: '2018-07-19T15:04:16Z' | ||
readOnly: true | ||
|
||
required: | ||
- name | ||
- grants | ||
- access_key | ||
- secret_key | ||
- created_at | ||
allOf: | ||
- type: object | ||
properties: | ||
secret_key: | ||
type: string | ||
description: The secret key. This is the only time the secret key will be returned. | ||
example: DOSECRETKEYEXAMPLE | ||
readOnly: true | ||
|
||
- $ref: 'key.yml' |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters