nodes: 0, module; 1, function_definition; 2, function_name:get_zones; 3, parameters; 4, block; 5, identifier:self; 6, default_parameter; 7, dictionary_splat_pattern; 8, expression_statement; 9, expression_statement; 10, expression_statement; 11, return_statement; 12, identifier:q; 13, None; 14, identifier:kwargs; 15, comment:"""Returns a list of zones across all of the user's accounts.
  
          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.
  
          """; 16, assignment; 17, assignment; 18, call; 19, identifier:uri; 20, string:"/v1/zones"; 21, identifier:params; 22, call; 23, attribute; 24, argument_list; 25, identifier:build_params; 26, argument_list; 27, attribute; 28, identifier:get; 29, identifier:uri; 30, identifier:params; 31, identifier:q; 32, identifier:kwargs; 33, identifier:self; 34, identifier:rest_api_connection
code: def get_zones(self, q=None, **kwargs):
          """Returns a list of zones across all of the user's accounts.
  
          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/zones"
          params = build_params(q, kwargs)
          return self.rest_api_connection.get(uri, params)