nodes: 0, module; 1, function_definition; 2, function_name:get_zones_of_account; 3, parameters; 4, block; 5, identifier:self; 6, identifier:account_name; 7, default_parameter; 8, dictionary_splat_pattern; 9, expression_statement; 10, expression_statement; 11, expression_statement; 12, return_statement; 13, identifier:q; 14, None; 15, identifier:kwargs; 16, comment:"""Returns a list of zones for the specified account.
  
          Arguments:
          account_name -- The name of the account.
  
          Keyword Arguments:
          q -- The search parameters, in a dict.  Valid keys are:
               name - substring match of the zone name
               zone_type - one of:
                  PRIMARY
                  SECONDARY
                  ALIAS
          sort -- The sort column used to order the list. Valid values for the sort field are:
                  NAME
                  ACCOUNT_NAME
                  RECORD_COUNT
                  ZONE_TYPE
          reverse -- Whether the list is ascending(False) or descending(True)
          offset -- The position in the list for the first returned element(0 based)
          limit -- The maximum number of rows to be returned.
  
          """; 17, assignment; 18, assignment; 19, call; 20, identifier:uri; 21, binary_operator:"/v1/accounts/" + account_name + "/zones"; 22, identifier:params; 23, call; 24, attribute; 25, argument_list; 26, binary_operator:"/v1/accounts/" + account_name; 27, string:"/zones"; 28, identifier:build_params; 29, argument_list; 30, attribute; 31, identifier:get; 32, identifier:uri; 33, identifier:params; 34, string:"/v1/accounts/"; 35, identifier:account_name; 36, identifier:q; 37, identifier:kwargs; 38, identifier:self; 39, identifier:rest_api_connection
code: def get_zones_of_account(self, account_name, q=None, **kwargs):
          """Returns a list of zones for the specified account.
  
          Arguments:
          account_name -- The name of the account.
  
          Keyword Arguments:
          q -- The search parameters, in a dict.  Valid keys are:
               name - substring match of the zone name
               zone_type - one of:
                  PRIMARY
                  SECONDARY
                  ALIAS
          sort -- The sort column used to order the list. Valid values for the sort field are:
                  NAME
                  ACCOUNT_NAME
                  RECORD_COUNT
                  ZONE_TYPE
          reverse -- Whether the list is ascending(False) or descending(True)
          offset -- The position in the list for the first returned element(0 based)
          limit -- The maximum number of rows to be returned.
  
          """
          uri = "/v1/accounts/" + account_name + "/zones"
          params = build_params(q, kwargs)
          return self.rest_api_connection.get(uri, params)