def __init__(self, insights_client, user_token): # type: (InsightsClient, str) -> None super(UserInsightsClientAsync, self).__init__(insights_client, user_token) client = UserInsightsClient(insights_client, user_token) _create_async_methods_in(self, client)
def __init__(self, insights_client, transporter, insights_config): # type: (InsightsClient, TransporterAsync, InsightsConfig) -> None self._transporter_async = transporter super(InsightsClientAsync, self).__init__(insights_client._transporter, insights_config) client = InsightsClient(transporter, insights_config) _create_async_methods_in(self, client)
def __init__(self, insights_client, transporter, insights_config): # type: (InsightsClient, TransporterAsync, InsightsConfig) -> None self._transporter_async = transporter super(InsightsClientAsync, self).__init__(insights_client._transporter, insights_config) client = InsightsClient(transporter, insights_config) _create_async_methods_in(self, client)
def __init__(self, recommendation_client, transporter, search_config): # type: (RecommendationClient, TransporterAsync, RecommendationConfig) -> None # noqa: E501 self._transporter_async = transporter super(RecommendationClientAsync, self).__init__(recommendation_client._transporter, search_config) client = RecommendationClient(transporter, search_config) _create_async_methods_in(self, client)
def __init__(self, insights_client, user_token): # type: (InsightsClient, str) -> None super(UserInsightsClientAsync, self).__init__( insights_client, user_token ) client = UserInsightsClient(insights_client, user_token) _create_async_methods_in(self, client)
def __init__(self, analytics_client, transporter, search_config): # type: (AnalyticsClient, TransporterAsync, AnalyticsConfig) -> None self._transporter_async = transporter super(AnalyticsClientAsync, self).__init__(analytics_client._transporter, search_config) client = AnalyticsClient(transporter, search_config) _create_async_methods_in(self, client)
def __init__(self, personalization_client, transporter, search_config): # type: (PersonalizationClient, TransporterAsync, PersonalizationConfig) -> None # noqa: E501 self._transporter_async = transporter super(PersonalizationClientAsync, self).__init__(personalization_client._transporter, search_config) client = PersonalizationClient(transporter, search_config) _create_async_methods_in(self, client)
def __init__(self, recommend_client, transporter, search_config): # type: (RecommendClient, TransporterAsync, SearchConfig) -> None self._recommend_client = recommend_client self._transporter_async = transporter super(RecommendClientAsync, self).__init__(recommend_client._transporter, search_config) recommend_client = RecommendClient(transporter, search_config) recommend_client.__setattr__("_sync", self._sync) _create_async_methods_in(self, recommend_client)
def __init__(self, search_index, transporter, config, name): # type: (SearchIndex, TransporterAsync, SearchConfig, str) -> None self._search_index = search_index self._transporter_async = transporter super(SearchIndexAsync, self).__init__(search_index._transporter, config, name) search_index = SearchIndex(transporter, config, name) search_index.__setattr__('_sync', self._sync) _create_async_methods_in(self, search_index)
def __init__(self, analytics_client, transporter, search_config): # type: (AnalyticsClient, TransporterAsync, AnalyticsConfig) -> None self._transporter_async = transporter super(AnalyticsClientAsync, self).__init__( analytics_client._transporter, search_config ) client = AnalyticsClient(transporter, search_config) _create_async_methods_in(self, client)
def __init__(self, search_client, transporter, search_config): # type: (SearchClient, TransporterAsync, SearchConfig) -> None self._search_client = search_client self._transporter_async = transporter super(SearchClientAsync, self).__init__(search_client._transporter, search_config) search_client = SearchClient(transporter, search_config) search_client.__setattr__('init_index', self.init_index) search_client.__setattr__('_sync', self._sync) _create_async_methods_in(self, search_client)
def __init__(self, search_client, transporter, search_config): # type: (SearchClient, TransporterAsync, SearchConfig) -> None self._search_client = search_client self._transporter_async = transporter super(SearchClientAsync, self).__init__( search_client._transporter, search_config ) search_client = SearchClient(transporter, search_config) search_client.__setattr__('init_index', self.init_index) search_client.__setattr__('_sync', self._sync) _create_async_methods_in(self, search_client)
def __init__(self, search_index, transporter, config, name): # type: (SearchIndex, TransporterAsync, SearchConfig, str) -> None self._search_index = search_index self._transporter_async = transporter super(SearchIndexAsync, self).__init__( search_index._transporter, config, name ) search_index = SearchIndex(transporter, config, name) search_index.__setattr__('_sync', self._sync) _create_async_methods_in(self, search_index)