-
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.
codegen output 7839b767d8114c79a8c33d1a5ffd1bec (#44)
* generated with codegen at box/box-codegen@efdca9b and spec at box/box-openapi@fc21828 * generated with codegen at box/box-codegen@c6d3cfa and spec at box/box-openapi@fc21828 * generated with codegen at box/box-codegen@7a2cf3d and spec at box/box-openapi@fc21828
- Loading branch information
1 parent
244faf6
commit 4910011
Showing
175 changed files
with
3,841 additions
and
2,394 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
from typing import Dict | ||
|
||
from box_sdk_gen.base_object import BaseObject | ||
|
||
|
||
class BaseUrls(BaseObject): | ||
_fields_to_json_mapping: Dict[str, str] = { | ||
'oauth_2_url': 'oauth2_url', | ||
**BaseObject._fields_to_json_mapping, | ||
} | ||
_json_to_fields_mapping: Dict[str, str] = { | ||
'oauth2_url': 'oauth_2_url', | ||
**BaseObject._json_to_fields_mapping, | ||
} | ||
|
||
def __init__( | ||
self, | ||
base_url: str = 'https://api.box.com/2.0', | ||
upload_url: str = 'https://upload.box.com/api/2.0', | ||
oauth_2_url: str = 'https://account.box.com/api/oauth2', | ||
**kwargs | ||
): | ||
super().__init__(**kwargs) | ||
self.base_url = base_url | ||
self.upload_url = upload_url | ||
self.oauth_2_url = oauth_2_url |
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
Oops, something went wrong.