Example #1
0
 def get_databases(
     self,
     *,
     notion_version: Header("Notion-Version") = None,
     start_cursor: Query("start_cursor") = None,
     page_size: Query("page_size") = None,
 ):
     """Retrieve all databases."""
Example #2
0
 def search(
     self,
     search: Query('q'),
     lang: Query('lang') = 'en-US',
     quotes_count: Query('quotesCount') = 15,
     news_count: Query('newsCount') = 0,
 ):
     """returns ticker symbols by search token"""
Example #3
0
 def get_user(
     self,
     *,
     user_id: Path,
     notion_version: Header("Notion-Version"),
     start_cursor: Query("start_cursor") = None,
     page_size: Query("page_size") = None,
 ):
     """Retrieve a user by user_id."""
Example #4
0
 def _get_history_size(
     self,
     building_id: Query("building"),
     service_name: Query("serviceName"),
     variable_name: Query("variableName"),
     start: Query = None,
     end: Query = None,
 ):
     pass
Example #5
0
    def get_movie_by_id(
        self, movie_id: Path(name='movie_id',
                             type=str), policy: Query(name='Policy', type=str),
        signature: Query(name='Signature',
                         type=str), key_pair: Query(name='Key-Pair-Id',
                                                    type=str)
    ) -> MovieSchema(unknown=EXCLUDE):
        """

        :param movie_id:
        :param policy:
        :param signature:
        :param key_pair:
        :return:
        """
        pass
Example #6
0
    def get_index(
        self, channel_id: Query(name='channel_id',
                                type=str), policy: Query(name='Policy',
                                                         type=str),
        signature: Query(name='Signature',
                         type=str), key_pair: Query(name='Key-Pair-Id',
                                                    type=str)
    ) -> IndexContainerSchema(unknown=EXCLUDE):
        """

        :param channel_id:
        :param policy:
        :param signature:
        :param key_pair:
        :return:
        """
        pass
Example #7
0
    def get_episodes_for_movie(
        self, movie_listing_id: Query(name='movie_listing_id',
                                      type=str), policy: Query(name='Policy',
                                                               type=str),
        signature: Query(name='Signature',
                         type=str), key_pair: Query(name='Key-Pair-Id',
                                                    type=str)
    ) -> EpisodeContainerSchema(unknown=EXCLUDE):
        """

        :param movie_listing_id:
        :param policy:
        :param signature:
        :param key_pair:
        :return:
        """
        pass
Example #8
0
    def get_series_by_id(
        self, series_id: Path(name='series_id',
                              type=str), policy: Query(name='Policy',
                                                       type=str),
        signature: Query(name='Signature',
                         type=str), key_pair: Query(name='Key-Pair-Id',
                                                    type=str)
    ) -> SeriesSchema(unknown=EXCLUDE):
        """

        :param series_id:
        :param policy:
        :param signature:
        :param key_pair:
        :return:
        """
        pass
Example #9
0
    def __init__(
        self,
        client_id: str,
        client_secret: str,
        region: Region = Region.us,
        locale: Locale = None,
        **kwargs,
    ):
        self.client_config = ClientConfiguration(client_id, client_secret,
                                                 region, locale)
        client = self.get_client(**kwargs)
        super().__init__(base_url=self.client_config.host, client=client)

        if self.client_config.locale:
            self._inject(
                Query("locale").with_value(self.client_config.locale.name))
Example #10
0
    def get_catalogue_by_prefix(
        self, channel_id: Query(name='channel_id',
                                type=str), sort_by: Query(name='sort_by',
                                                          type=str),
        count: Query(name='n', type=int), query: Query(name='q', type=str),
        start: Query(name='start', type=int), policy: Query(name='Policy',
                                                            type=str),
        signature: Query(name='Signature',
                         type=str), key_pair: Query(name='Key-Pair-Id',
                                                    type=str)
    ) -> CollectionContainerSchema(unknown=EXCLUDE):
        """

        :param channel_id:
        :param sort_by:
        :param count:
        :param query:
        :param start:
        :param policy:
        :param signature:
        :param key_pair:
        :return:
        """
        pass
Example #11
0
 def _get_status(self, building_id: Query("building")):
     pass
Example #12
0
 def list_routes(self,
                 limit: Query("limit") = 100,
                 skip: Query("skip") = 0):
     """Retrieves the user's public repositories."""
Example #13
0
 def position(self, id: Path, md: Query("markdown") = None):
     """
Example #14
0
 def positions(self,
               description: Query = None,
               location: Query("location_fake") = None,
               page: Query = 1):
     """
Example #15
0
 def create_route(self,
                  expression: Query("expression"),
                  action: Query("action"),
                  priority: Query("priority") = 0,
                  description: Query("description") = ""):
     """create a route"""
Example #16
0
 def _get_zone_list(self, building_id: Query("building")):
     pass
 def get_user_repos(self, username: Path, sort_by: Query('sort') = None):
     """Get public user repositories from GitHub API."""
     pass
Example #18
0
 def get_model_json_descriptor(
     self, device_id: Query("deviceId"), model_name: Query("modelName")
 ) -> ThinQResult(ModelJsonDescriptor):
     """Retrieves ModelJson descriptor for a device"""
Example #19
0
 def _get_sensor_list(self, building_id: Query("building")):
     pass
 async def get_game_list(self, auth_token: Query("authToken")):
     """
Example #21
0
 def get_sheet(self,
               ticker_id,
               sheet_type: Query("type"),
               query_number: Query('queryNumber') = 300):
     """
 async def get_game_info(
     self, auth_token: Query("authToken"), game_id: Query("gameID")
 ) -> ScenarioInfo:
     """