Skip to content

Commit

Permalink
Add allocation roles. (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit91 authored Aug 18, 2021
1 parent 2b4a4ed commit 7e20aba
Show file tree
Hide file tree
Showing 6 changed files with 110 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/models/datastore_machine_search_query.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions api/models/v1_firewall_find_request.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

53 changes: 53 additions & 0 deletions api/models/v1_machine_allocation.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions api/models/v1_machine_find_request.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions metal-api.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@
"allocation_project": {
"type": "string"
},
"allocation_role": {
"type": "string"
},
"allocation_succeeded": {
"type": "boolean"
},
Expand Down Expand Up @@ -925,6 +928,9 @@
"allocation_project": {
"type": "string"
},
"allocation_role": {
"type": "string"
},
"allocation_succeeded": {
"type": "boolean"
},
Expand Down Expand Up @@ -1821,6 +1827,14 @@
"description": "indicates whether to reinstall the machine",
"type": "boolean"
},
"role": {
"description": "the role of the machine",
"enum": [
"firewall",
"machine"
],
"type": "string"
},
"ssh_pub_keys": {
"description": "the public ssh keys to access the machine with",
"items": {
Expand All @@ -1845,6 +1859,7 @@
"networks",
"project",
"reinstall",
"role",
"ssh_pub_keys",
"succeeded"
]
Expand Down Expand Up @@ -2064,6 +2079,9 @@
"allocation_project": {
"type": "string"
},
"allocation_role": {
"type": "string"
},
"allocation_succeeded": {
"type": "boolean"
},
Expand Down
30 changes: 30 additions & 0 deletions test/mocks/image/ClientService.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7e20aba

Please sign in to comment.