This repository has been archived by the owner on Apr 14, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Initial Version #2
Open
joaodaher
wants to merge
16
commits into
master
Choose a base branch
from
feature/api-models
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
b6a0cb8
Add initial project files
joaodaher 66bb52c
Add Tsuru client
joaodaher ac4ac1b
Add models base files
joaodaher 50acb2e
Add support to App resource
joaodaher 00ead0c
Add support to Deploy resource
joaodaher c6a98db
Add support to Env resource
joaodaher 30ca7cd
Add support to Lock resource
joaodaher 31cc539
Add support to Log resource
joaodaher 3857cef
Add support to Plan resource
joaodaher e76609f
Add support to Platform resource
joaodaher 8efa368
Add support to Team resource
joaodaher c2b9a1b
Add support to Unit resource
joaodaher 7dac269
+1 initial
joaodaher f0efb16
+1 client
joaodaher 4d51653
+1 model base
joaodaher cbc0871
Allow refreshing model from client
joaodaher File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add support to Env resource
- Loading branch information
commit c6a98db33ac8de2f3250046e863262c5cdb95b65
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 |
---|---|---|
@@ -1,6 +1,8 @@ | ||
from tsuru.models.app import App | ||
from tsuru.models.deploy import Deploy | ||
from tsuru.models.env import Env | ||
__all__ = ( | ||
'App', | ||
'Deploy', | ||
'Env', | ||
) |
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,17 @@ | ||
from tsuru.models.base import UnsupportedModelMixin, BaseModel | ||
|
||
|
||
class Env(UnsupportedModelMixin, BaseModel): | ||
_RESOURCE_NAME = 'env' | ||
|
||
@property | ||
def name(self): | ||
return self._get('name') | ||
|
||
@property | ||
def value(self): | ||
return self._get('value') | ||
|
||
@property | ||
def public(self): | ||
return self._get('public') |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we handle the
****
if the value is notpublic
?