Fix deprecated imports in Identity clients
* Changed all imports in Identity and extension clients to AutoMarshallingHTTPClient Change-Id: I5b89fa1dc2b5747e0c1674c5e7475793d8ad51ca
This commit is contained in:
parent
64e3b7dacc
commit
de1714f659
@ -14,8 +14,7 @@ See the License for the specific language governing permissions and
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from cafe.engine.clients.rest import AutoMarshallingRestClient
|
from cafe.engine.http.client import AutoMarshallingHTTPClient
|
||||||
|
|
||||||
from cloudcafe.extensions.rax_auth.v2_0.tokens_api.models.requests. \
|
from cloudcafe.extensions.rax_auth.v2_0.tokens_api.models.requests. \
|
||||||
auth import Auth as AuthRequest
|
auth import Auth as AuthRequest
|
||||||
from cloudcafe.extensions.rax_auth.v2_0.tokens_api.models.responses. \
|
from cloudcafe.extensions.rax_auth.v2_0.tokens_api.models.responses. \
|
||||||
@ -27,7 +26,7 @@ _version = 'v2.0'
|
|||||||
_tokens = 'tokens'
|
_tokens = 'tokens'
|
||||||
|
|
||||||
|
|
||||||
class BaseTokenAPI_Client(AutoMarshallingRestClient):
|
class BaseTokenAPI_Client(AutoMarshallingHTTPClient):
|
||||||
|
|
||||||
def __init__(self, serialize_format, deserialize_format=None):
|
def __init__(self, serialize_format, deserialize_format=None):
|
||||||
super(BaseTokenAPI_Client, self).__init__(serialize_format,
|
super(BaseTokenAPI_Client, self).__init__(serialize_format,
|
||||||
|
@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from cafe.engine.clients.rest import AutoMarshallingRestClient
|
from cafe.engine.http.client import AutoMarshallingHTTPClient
|
||||||
from cloudcafe.identity.v2_0.common.models.constants import AdminExtensions
|
from cloudcafe.identity.v2_0.common.models.constants import AdminExtensions
|
||||||
from cloudcafe.identity.v2_0.extensions_api.models.responses.extensions \
|
from cloudcafe.identity.v2_0.extensions_api.models.responses.extensions \
|
||||||
import Extensions
|
import Extensions
|
||||||
@ -25,7 +25,7 @@ _version = 'v2.0'
|
|||||||
_admin_extensions = AdminExtensions.OS_KS_ADM
|
_admin_extensions = AdminExtensions.OS_KS_ADM
|
||||||
|
|
||||||
|
|
||||||
class ExtensionsAPI_Client(AutoMarshallingRestClient):
|
class ExtensionsAPI_Client(AutoMarshallingHTTPClient):
|
||||||
def __init__(self, url=None, auth_token=None,
|
def __init__(self, url=None, auth_token=None,
|
||||||
serialized_format=None, deserialized_format=None):
|
serialized_format=None, deserialized_format=None):
|
||||||
"""
|
"""
|
||||||
|
@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from cafe.engine.clients.rest import AutoMarshallingRestClient
|
from cafe.engine.http.client import AutoMarshallingHTTPClient
|
||||||
from cloudcafe.identity.v2_0.tenants_api.models.responses.tenant import \
|
from cloudcafe.identity.v2_0.tenants_api.models.responses.tenant import \
|
||||||
Tenants, Tenant
|
Tenants, Tenant
|
||||||
from cloudcafe.identity.v2_0.tenants_api.models.responses.role import \
|
from cloudcafe.identity.v2_0.tenants_api.models.responses.role import \
|
||||||
@ -29,7 +29,7 @@ _version = 'v2.0'
|
|||||||
_admin_extensions = AdminExtensions.OS_KS_ADM
|
_admin_extensions = AdminExtensions.OS_KS_ADM
|
||||||
|
|
||||||
|
|
||||||
class TenantsAPI_Client(AutoMarshallingRestClient):
|
class TenantsAPI_Client(AutoMarshallingHTTPClient):
|
||||||
def __init__(self, url, auth_token,
|
def __init__(self, url, auth_token,
|
||||||
serialize_format=None, deserialize_format=None):
|
serialize_format=None, deserialize_format=None):
|
||||||
"""
|
"""
|
||||||
|
@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from cafe.engine.clients.rest import AutoMarshallingRestClient
|
from cafe.engine.http.client import AutoMarshallingHTTPClient
|
||||||
from cloudcafe.identity.v2_0.tokens_api.models.requests.auth import \
|
from cloudcafe.identity.v2_0.tokens_api.models.requests.auth import \
|
||||||
Auth as AuthRequest
|
Auth as AuthRequest
|
||||||
from cloudcafe.identity.v2_0.tokens_api.models.responses.access import \
|
from cloudcafe.identity.v2_0.tokens_api.models.responses.access import \
|
||||||
@ -26,7 +26,7 @@ _version = 'v2.0'
|
|||||||
_tokens = 'tokens'
|
_tokens = 'tokens'
|
||||||
|
|
||||||
|
|
||||||
class BaseTokenAPI_Client(AutoMarshallingRestClient):
|
class BaseTokenAPI_Client(AutoMarshallingHTTPClient):
|
||||||
def __init__(self, serialize_format, deserialize_format=None):
|
def __init__(self, serialize_format, deserialize_format=None):
|
||||||
super(BaseTokenAPI_Client, self).__init__(serialize_format,
|
super(BaseTokenAPI_Client, self).__init__(serialize_format,
|
||||||
deserialize_format)
|
deserialize_format)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user