Merge "Make dev the default StoryBoard instance"
This commit is contained in:
commit
cfdfaf866c
@ -21,7 +21,7 @@ from storyboardclient.auth import oauth
|
|||||||
from storyboardclient.openstack.common.apiclient import base
|
from storyboardclient.openstack.common.apiclient import base
|
||||||
from storyboardclient.openstack.common.apiclient import client
|
from storyboardclient.openstack.common.apiclient import client
|
||||||
|
|
||||||
DEFAULT_API_URL = "https://storyboard.openstack.org/api/v1"
|
DEFAULT_API_URL = "https://storyboard-dev.openstack.org/api/v1"
|
||||||
|
|
||||||
|
|
||||||
class BaseClient(client.BaseClient):
|
class BaseClient(client.BaseClient):
|
||||||
|
@ -38,15 +38,16 @@ class Client(base.BaseClient):
|
|||||||
@code:
|
@code:
|
||||||
from storyboard.v1 import client
|
from storyboard.v1 import client
|
||||||
|
|
||||||
storyboard = client.Client("https://storyboard.openstack.org/api/v1",
|
api_url = "https://storyboard-dev.openstack.org/api/v1"
|
||||||
"mytoken")
|
token = "$my_token"
|
||||||
|
storyboard = client.Client(api_url, token)
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, api_url=None, access_token=None, verify=True):
|
def __init__(self, api_url=None, access_token=None, verify=True):
|
||||||
"""Sets up a client with endpoint managers.
|
"""Sets up a client with endpoint managers.
|
||||||
|
|
||||||
:param api_url: (Optional) Full API url. Defaults to
|
:param api_url: (Optional) Full API url. Defaults to
|
||||||
https://storyboard.openstack.org/api/v1
|
https://storyboard-dev.openstack.org/api/v1
|
||||||
:param access_token: (Optional) OAuth2 access token. If skipped only
|
:param access_token: (Optional) OAuth2 access token. If skipped only
|
||||||
public read-only endpoint will be available. All other requests will
|
public read-only endpoint will be available. All other requests will
|
||||||
fail with Unauthorized error.
|
fail with Unauthorized error.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user