Module Expr Str Import alias ImportFrom alias alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Expr Str Assign NameStore BoolOpOr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore BoolOpOr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Assign NameStore Str For NameStore Call NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr BinOpAdd NameLoad Num NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword Str keyword NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Return NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call AttributeLoad Str attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If NameLoad body Raise Call NameLoad NameLoad Return NameLoad decorator_list decorator_list
N/A N/A 
Copyright 2015 Rackspace

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
 N/A time cloudcafe.networking.networks.common.behaviors NetworkingBaseBehaviors NetworkingResponse cloudcafe.networking.networks.common.exceptions ResourceGetException cloudcafe.networking.networks.extensions.limits_api.constants LimitsResponseCodes LimitsBehaviors N/A NetworkingBaseBehaviors N/A __init__ N/A N/A self limits_client limits_config N/A N/A N/A N/A N/A N/A super LimitsBehaviors self __init__ N/A N/A self config limits_config N/A N/A self client limits_client N/A get_limits N/A N/A self page_reverse resource_get_attempts raise_exception poll_interval N/A None None False None N/A N/A 
        @summary: get rate limits
        @param page_reverse: direction of the page
        @type page_reverse: bool
        @param resource_get_attempts: number of API retries
        @type resource_get_attempts: int
        @param raise_exception: flag to raise an exception if the get
            limits call was not as expected or to return None
        @type raise_exception: bool
        @param poll_interval: sleep time interval between API retries
        @type poll_interval: int
        @return: NetworkingResponse object with api response and failure list
        @rtype: common.behaviors.NetworkingResponse
         N/A poll_interval N/A poll_interval N/A N/A self config api_poll_interval N/A resource_get_attempts N/A resource_get_attempts N/A N/A self config api_retries N/A result N/A NetworkingResponse N/A err_msg Limits GET failure N/A attempt N/A range resource_get_attempts N/A N/A N/A N/A N/A self _log debug N/A N/A Attempt {0} of {1} with limits GET format N/A attempt 1 resource_get_attempts N/A resp N/A N/A N/A self client get_limits page_reverse page_reverse N/A resp_check N/A N/A self check_response resp resp status_code N/A LimitsResponseCodes GET_LIMITS label message err_msg N/A N/A result response resp N/A N/A resp_check None N/A N/A result N/A N/A N/A N/A result failures append resp_check N/A N/A N/A time sleep poll_interval N/A N/A err_msg N/A N/A Unable to GET limits after {0} attempts: {1} format resource_get_attempts N/A result failures N/A N/A N/A N/A self _log error err_msg N/A raise_exception N/A N/A N/A ResourceGetException err_msg N/A result N/A N/A