-
Notifications
You must be signed in to change notification settings - Fork 5
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 #9 from stat-kwon/master
refactor: change all APIs for SpaceONE 2.0
- Loading branch information
Showing
21 changed files
with
141 additions
and
498 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,4 @@ build | |
test | ||
*.egg-info | ||
__pycache__ | ||
.idea | ||
.idea/src/spaceone/board/service/post_service.py |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
from spaceone.board.error.board import * | ||
from spaceone.board.error.post import * |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,9 @@ | ||
from spaceone.core.error import * | ||
|
||
|
||
class ERROR_SETTING_CATEGORIES(ERROR_BASE): | ||
_message = "First, you need to set the categories of the board." | ||
|
||
|
||
class ERROR_INVALID_CATEGORY(ERROR_BASE): | ||
_message = ( | ||
"Invalid category (category = {category}), you must choose one of {categories}" | ||
) | ||
|
||
|
||
class ERROR_INVALID_KEY_IN_OPTIONS(ERROR_BASE): | ||
_message = "Invalid key in options" | ||
|
||
|
||
class ERROR_NOT_FOUND_FILE(ERROR_BASE): | ||
_message = "{file_id} does not exist in {domain_id}" | ||
|
||
|
||
class ERROR_INVALID_FILE_STATE(ERROR_BASE): | ||
_message = "file state is invalid (file_id = {file_id}, state = {state})" |
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,3 +1,2 @@ | ||
from spaceone.board.info.common_info import * | ||
from spaceone.board.info.board_info import * | ||
from spaceone.board.info.post_info import * |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
from spaceone.core.pygrpc.server import GRPCServer | ||
from spaceone.board.interface.grpc.board import Board | ||
from spaceone.board.interface.grpc.post import Post | ||
|
||
_all_ = ["app"] | ||
|
||
app = GRPCServer() | ||
app.add_service(Board) | ||
app.add_service(Post) |
This file was deleted.
Oops, something went wrong.
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 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 was deleted.
Oops, something went wrong.
Oops, something went wrong.