Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Generated from b1485a40b89166473e0bfe61a469f9e7d0aace12
Updating swagger title for custom image search to Custom Image Search Client
  • Loading branch information
AutorestCI committed Sep 5, 2018
commit c94a1c2ce10ebc1b22f594cfbe8119309f7e765d
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
# regenerated.
# --------------------------------------------------------------------------

from .custom_image_search_api import CustomImageSearchAPI
from .custom_image_search_client import CustomImageSearchClient
from .version import VERSION

__all__ = ['CustomImageSearchAPI']
__all__ = ['CustomImageSearchClient']

__version__ = VERSION

Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
from . import models


class CustomImageSearchAPIConfiguration(Configuration):
"""Configuration for CustomImageSearchAPI
class CustomImageSearchClientConfiguration(Configuration):
"""Configuration for CustomImageSearchClient
Note that all parameters used to create this instance are saved as instance
attributes.

Expand All @@ -35,18 +35,18 @@ def __init__(
if not base_url:
base_url = 'https://api.cognitive.microsoft.com/bingcustomsearch/v7.0'

super(CustomImageSearchAPIConfiguration, self).__init__(base_url)
super(CustomImageSearchClientConfiguration, self).__init__(base_url)

self.add_user_agent('azure-cognitiveservices-search-customimagesearch/{}'.format(VERSION))

self.credentials = credentials


class CustomImageSearchAPI(SDKClient):
class CustomImageSearchClient(SDKClient):
"""The Bing Custom Image Search API lets you send an image search query to Bing and get back image search results customized to meet your custom search definition.

:ivar config: Configuration for client.
:vartype config: CustomImageSearchAPIConfiguration
:vartype config: CustomImageSearchClientConfiguration

:ivar custom_instance: CustomInstance operations
:vartype custom_instance: azure.cognitiveservices.search.customimagesearch.operations.CustomInstanceOperations
Expand All @@ -60,8 +60,8 @@ class CustomImageSearchAPI(SDKClient):
def __init__(
self, credentials, base_url=None):

self.config = CustomImageSearchAPIConfiguration(credentials, base_url)
super(CustomImageSearchAPI, self).__init__(self.config.credentials, self.config)
self.config = CustomImageSearchClientConfiguration(credentials, base_url)
super(CustomImageSearchClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '1.0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
from .error_response import ErrorResponse, ErrorResponseException
from .web_page import WebPage
from .response_base import ResponseBase
from .custom_image_search_api_enums import (
from .custom_image_search_client_enums import (
ErrorCode,
ErrorSubCode,
ImageAspect,
Expand Down