Skip to content

Commit c735133

Browse files
author
SDK Automation
committed
Generated from ddd3cdf3c6715b17fe1b2f25045634dec6ee447c
Re-add capitalizations where appropriate
1 parent 52bdd94 commit c735133

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+3774
-1410
lines changed
Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,21 @@
1-
## Microsoft Azure SDK for Python
1+
# Microsoft Azure SDK for Python
22

33
This is the Microsoft Azure Search Management Client Library.
4+
This package has been tested with Python 2.7, 3.5, 3.6, 3.7 and 3.8.
5+
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).
46

5-
Azure Resource Manager (ARM) is the next generation of management APIs
6-
that replace the old Azure Service Management (ASM).
77

8-
This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7.
8+
# Usage
99

10-
For the older Azure Service Management (ASM) libraries, see
11-
[azure-servicemanagement-legacy](https://pypi.python.org/pypi/azure-servicemanagement-legacy)
12-
library.
13-
14-
For a more complete set of Azure libraries, see the
15-
[azure sdk python release](https://aka.ms/azsdk/python/all).
16-
17-
## Usage
18-
19-
For code examples, see [Search
20-
Management](https://docs.microsoft.com/python/api/overview/azure/search)
10+
For code examples, see [Search Management](https://docs.microsoft.com/python/api/overview/azure/search)
2111
on docs.microsoft.com.
2212

23-
## Provide Feedback
2413

25-
If you encounter any bugs or have suggestions, please file an issue in
26-
the [Issues](https://github.com/Azure/azure-sdk-for-python/issues)
14+
# Provide Feedback
15+
16+
If you encounter any bugs or have suggestions, please file an issue in the
17+
[Issues](https://github.com/Azure/azure-sdk-for-python/issues)
2718
section of the project.
2819

29-
![image](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-search%2FREADME.png)
20+
21+
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-search%2FREADME.png)

sdk/search/azure-mgmt-search/azure/mgmt/search/__init__.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@
99
# regenerated.
1010
# --------------------------------------------------------------------------
1111

12-
from .search_management_client import SearchManagementClient
13-
from .version import VERSION
12+
from ._configuration import SearchManagementClientConfiguration
13+
from ._search_management_client import SearchManagementClient
14+
__all__ = ['SearchManagementClient', 'SearchManagementClientConfiguration']
1415

15-
__all__ = ['SearchManagementClient']
16+
from .version import VERSION
1617

1718
__version__ = VERSION
1819

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
from msrestazure import AzureConfiguration
12+
13+
from .version import VERSION
14+
15+
16+
class SearchManagementClientConfiguration(AzureConfiguration):
17+
"""Configuration for SearchManagementClient
18+
Note that all parameters used to create this instance are saved as instance
19+
attributes.
20+
21+
:param credentials: Credentials needed for the client to connect to Azure.
22+
:type credentials: :mod:`A msrestazure Credentials
23+
object<msrestazure.azure_active_directory>`
24+
:param subscription_id: The unique identifier for a Microsoft Azure
25+
subscription. You can obtain this value from the Azure Resource Manager
26+
API or the portal.
27+
:type subscription_id: str
28+
:param str base_url: Service URL
29+
"""
30+
31+
def __init__(
32+
self, credentials, subscription_id, base_url=None):
33+
34+
if credentials is None:
35+
raise ValueError("Parameter 'credentials' must not be None.")
36+
if subscription_id is None:
37+
raise ValueError("Parameter 'subscription_id' must not be None.")
38+
if not base_url:
39+
base_url = 'https://management.azure.com'
40+
41+
super(SearchManagementClientConfiguration, self).__init__(base_url)
42+
43+
# Starting Autorest.Python 4.0.64, make connection pool activated by default
44+
self.keep_alive = True
45+
46+
self.add_user_agent('azure-mgmt-search/{}'.format(VERSION))
47+
self.add_user_agent('Azure-SDK-For-Python')
48+
49+
self.credentials = credentials
50+
self.subscription_id = subscription_id

sdk/search/azure-mgmt-search/azure/mgmt/search/search_management_client.py renamed to sdk/search/azure-mgmt-search/azure/mgmt/search/_search_management_client.py

Lines changed: 23 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -11,51 +11,20 @@
1111

1212
from msrest.service_client import SDKClient
1313
from msrest import Serializer, Deserializer
14-
from msrestazure import AzureConfiguration
15-
from .version import VERSION
16-
from .operations.operations import Operations
17-
from .operations.admin_keys_operations import AdminKeysOperations
18-
from .operations.query_keys_operations import QueryKeysOperations
19-
from .operations.services_operations import ServicesOperations
20-
from . import models
21-
22-
23-
class SearchManagementClientConfiguration(AzureConfiguration):
24-
"""Configuration for SearchManagementClient
25-
Note that all parameters used to create this instance are saved as instance
26-
attributes.
2714

28-
:param credentials: Credentials needed for the client to connect to Azure.
29-
:type credentials: :mod:`A msrestazure Credentials
30-
object<msrestazure.azure_active_directory>`
31-
:param subscription_id: The unique identifier for a Microsoft Azure
32-
subscription. You can obtain this value from the Azure Resource Manager
33-
API or the portal.
34-
:type subscription_id: str
35-
:param str base_url: Service URL
36-
"""
37-
38-
def __init__(
39-
self, credentials, subscription_id, base_url=None):
40-
41-
if credentials is None:
42-
raise ValueError("Parameter 'credentials' must not be None.")
43-
if subscription_id is None:
44-
raise ValueError("Parameter 'subscription_id' must not be None.")
45-
if not base_url:
46-
base_url = 'https://management.azure.com'
47-
48-
super(SearchManagementClientConfiguration, self).__init__(base_url)
49-
50-
self.add_user_agent('azure-mgmt-search/{}'.format(VERSION))
51-
self.add_user_agent('Azure-SDK-For-Python')
52-
53-
self.credentials = credentials
54-
self.subscription_id = subscription_id
15+
from ._configuration import SearchManagementClientConfiguration
16+
from .operations import Operations
17+
from .operations import AdminKeysOperations
18+
from .operations import QueryKeysOperations
19+
from .operations import ServicesOperations
20+
from .operations import PrivateLinkResourcesOperations
21+
from .operations import PrivateEndpointConnectionsOperations
22+
from .operations import SharedPrivateLinkResourcesOperations
23+
from . import models
5524

5625

5726
class SearchManagementClient(SDKClient):
58-
"""Client that can be used to manage Azure Search services and API keys.
27+
"""Client that can be used to manage Azure Cognitive Search services and API keys.
5928
6029
:ivar config: Configuration for client.
6130
:vartype config: SearchManagementClientConfiguration
@@ -68,6 +37,12 @@ class SearchManagementClient(SDKClient):
6837
:vartype query_keys: azure.mgmt.search.operations.QueryKeysOperations
6938
:ivar services: Services operations
7039
:vartype services: azure.mgmt.search.operations.ServicesOperations
40+
:ivar private_link_resources: PrivateLinkResources operations
41+
:vartype private_link_resources: azure.mgmt.search.operations.PrivateLinkResourcesOperations
42+
:ivar private_endpoint_connections: PrivateEndpointConnections operations
43+
:vartype private_endpoint_connections: azure.mgmt.search.operations.PrivateEndpointConnectionsOperations
44+
:ivar shared_private_link_resources: SharedPrivateLinkResources operations
45+
:vartype shared_private_link_resources: azure.mgmt.search.operations.SharedPrivateLinkResourcesOperations
7146
7247
:param credentials: Credentials needed for the client to connect to Azure.
7348
:type credentials: :mod:`A msrestazure Credentials
@@ -86,7 +61,7 @@ def __init__(
8661
super(SearchManagementClient, self).__init__(self.config.credentials, self.config)
8762

8863
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
89-
self.api_version = '2015-08-19'
64+
self.api_version = '2020-08-01'
9065
self._serialize = Serializer(client_models)
9166
self._deserialize = Deserializer(client_models)
9267

@@ -98,3 +73,9 @@ def __init__(
9873
self._client, self.config, self._serialize, self._deserialize)
9974
self.services = ServicesOperations(
10075
self._client, self.config, self._serialize, self._deserialize)
76+
self.private_link_resources = PrivateLinkResourcesOperations(
77+
self._client, self.config, self._serialize, self._deserialize)
78+
self.private_endpoint_connections = PrivateEndpointConnectionsOperations(
79+
self._client, self.config, self._serialize, self._deserialize)
80+
self.shared_private_link_resources = SharedPrivateLinkResourcesOperations(
81+
self._client, self.config, self._serialize, self._deserialize)

sdk/search/azure-mgmt-search/azure/mgmt/search/models/__init__.py

Lines changed: 99 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -10,62 +10,129 @@
1010
# --------------------------------------------------------------------------
1111

1212
try:
13-
from .check_name_availability_input_py3 import CheckNameAvailabilityInput
14-
from .check_name_availability_output_py3 import CheckNameAvailabilityOutput
15-
from .admin_key_result_py3 import AdminKeyResult
16-
from .query_key_py3 import QueryKey
17-
from .sku_py3 import Sku
18-
from .search_service_py3 import SearchService
19-
from .identity_py3 import Identity
20-
from .resource_py3 import Resource
21-
from .operation_display_py3 import OperationDisplay
22-
from .operation_py3 import Operation
23-
from .search_management_request_options_py3 import SearchManagementRequestOptions
13+
from ._models_py3 import AdminKeyResult
14+
from ._models_py3 import AsyncOperationResult
15+
from ._models_py3 import AzureEntityResource
16+
from ._models_py3 import CheckNameAvailabilityInput
17+
from ._models_py3 import CheckNameAvailabilityOutput
18+
from ._models_py3 import Identity
19+
from ._models_py3 import IpRule
20+
from ._models_py3 import NetworkRuleSet
21+
from ._models_py3 import Operation
22+
from ._models_py3 import OperationDisplay
23+
from ._models_py3 import PrivateEndpointConnection
24+
from ._models_py3 import PrivateEndpointConnectionProperties
25+
from ._models_py3 import PrivateEndpointConnectionPropertiesPrivateEndpoint
26+
from ._models_py3 import PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState
27+
from ._models_py3 import PrivateLinkResource
28+
from ._models_py3 import PrivateLinkResourceProperties
29+
from ._models_py3 import ProxyResource
30+
from ._models_py3 import QueryKey
31+
from ._models_py3 import Resource
32+
from ._models_py3 import SearchManagementRequestOptions
33+
from ._models_py3 import SearchService
34+
from ._models_py3 import SearchServiceUpdate
35+
from ._models_py3 import ShareablePrivateLinkResourceProperties
36+
from ._models_py3 import ShareablePrivateLinkResourceType
37+
from ._models_py3 import SharedPrivateLinkResource
38+
from ._models_py3 import SharedPrivateLinkResourceProperties
39+
from ._models_py3 import Sku
40+
from ._models_py3 import TrackedResource
2441
except (SyntaxError, ImportError):
25-
from .check_name_availability_input import CheckNameAvailabilityInput
26-
from .check_name_availability_output import CheckNameAvailabilityOutput
27-
from .admin_key_result import AdminKeyResult
28-
from .query_key import QueryKey
29-
from .sku import Sku
30-
from .search_service import SearchService
31-
from .identity import Identity
32-
from .resource import Resource
33-
from .operation_display import OperationDisplay
34-
from .operation import Operation
35-
from .search_management_request_options import SearchManagementRequestOptions
36-
from .operation_paged import OperationPaged
37-
from .query_key_paged import QueryKeyPaged
38-
from .search_service_paged import SearchServicePaged
39-
from .search_management_client_enums import (
42+
from ._models import AdminKeyResult
43+
from ._models import AsyncOperationResult
44+
from ._models import AzureEntityResource
45+
from ._models import CheckNameAvailabilityInput
46+
from ._models import CheckNameAvailabilityOutput
47+
from ._models import Identity
48+
from ._models import IpRule
49+
from ._models import NetworkRuleSet
50+
from ._models import Operation
51+
from ._models import OperationDisplay
52+
from ._models import PrivateEndpointConnection
53+
from ._models import PrivateEndpointConnectionProperties
54+
from ._models import PrivateEndpointConnectionPropertiesPrivateEndpoint
55+
from ._models import PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState
56+
from ._models import PrivateLinkResource
57+
from ._models import PrivateLinkResourceProperties
58+
from ._models import ProxyResource
59+
from ._models import QueryKey
60+
from ._models import Resource
61+
from ._models import SearchManagementRequestOptions
62+
from ._models import SearchService
63+
from ._models import SearchServiceUpdate
64+
from ._models import ShareablePrivateLinkResourceProperties
65+
from ._models import ShareablePrivateLinkResourceType
66+
from ._models import SharedPrivateLinkResource
67+
from ._models import SharedPrivateLinkResourceProperties
68+
from ._models import Sku
69+
from ._models import TrackedResource
70+
from ._paged_models import OperationPaged
71+
from ._paged_models import PrivateEndpointConnectionPaged
72+
from ._paged_models import PrivateLinkResourcePaged
73+
from ._paged_models import QueryKeyPaged
74+
from ._paged_models import SearchServicePaged
75+
from ._paged_models import SharedPrivateLinkResourcePaged
76+
from ._search_management_client_enums import (
4077
UnavailableNameReason,
4178
SkuName,
79+
PrivateLinkServiceConnectionStatus,
80+
SharedPrivateLinkResourceStatus,
81+
SharedPrivateLinkResourceProvisioningState,
4282
HostingMode,
83+
PublicNetworkAccess,
4384
SearchServiceStatus,
4485
ProvisioningState,
4586
IdentityType,
87+
SharedPrivateLinkResourceAsyncOperationResult,
4688
AdminKeyKind,
4789
)
4890

4991
__all__ = [
92+
'AdminKeyResult',
93+
'AsyncOperationResult',
94+
'AzureEntityResource',
5095
'CheckNameAvailabilityInput',
5196
'CheckNameAvailabilityOutput',
52-
'AdminKeyResult',
53-
'QueryKey',
54-
'Sku',
55-
'SearchService',
5697
'Identity',
57-
'Resource',
58-
'OperationDisplay',
98+
'IpRule',
99+
'NetworkRuleSet',
59100
'Operation',
101+
'OperationDisplay',
102+
'PrivateEndpointConnection',
103+
'PrivateEndpointConnectionProperties',
104+
'PrivateEndpointConnectionPropertiesPrivateEndpoint',
105+
'PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState',
106+
'PrivateLinkResource',
107+
'PrivateLinkResourceProperties',
108+
'ProxyResource',
109+
'QueryKey',
110+
'Resource',
60111
'SearchManagementRequestOptions',
112+
'SearchService',
113+
'SearchServiceUpdate',
114+
'ShareablePrivateLinkResourceProperties',
115+
'ShareablePrivateLinkResourceType',
116+
'SharedPrivateLinkResource',
117+
'SharedPrivateLinkResourceProperties',
118+
'Sku',
119+
'TrackedResource',
61120
'OperationPaged',
62121
'QueryKeyPaged',
63122
'SearchServicePaged',
123+
'PrivateLinkResourcePaged',
124+
'PrivateEndpointConnectionPaged',
125+
'SharedPrivateLinkResourcePaged',
64126
'UnavailableNameReason',
65127
'SkuName',
128+
'PrivateLinkServiceConnectionStatus',
129+
'SharedPrivateLinkResourceStatus',
130+
'SharedPrivateLinkResourceProvisioningState',
66131
'HostingMode',
132+
'PublicNetworkAccess',
67133
'SearchServiceStatus',
68134
'ProvisioningState',
69135
'IdentityType',
136+
'SharedPrivateLinkResourceAsyncOperationResult',
70137
'AdminKeyKind',
71138
]

0 commit comments

Comments
 (0)