Skip to content

Commit 7afd09d

Browse files
authored
code and test (#34411)
Co-authored-by: azure-sdk <PythonSdkPipelines>
1 parent 616e76a commit 7afd09d

File tree

67 files changed

+14167
-304
lines changed

Some content is hidden

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

67 files changed

+14167
-304
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,28 @@
11
# Release History
22

3+
## 1.0.0 (2024-02-19)
4+
5+
### Features Added
6+
7+
- Added operation ServicesOperations.begin_export_metadata_schema
8+
- Added operation group ApiDefinitionsOperations
9+
- Added operation group ApiVersionsOperations
10+
- Added operation group ApisOperations
11+
- Added operation group DeploymentsOperations
12+
- Added operation group EnvironmentsOperations
13+
- Added operation group MetadataSchemasOperations
14+
- Added operation group WorkspacesOperations
15+
- Model Service has a new parameter properties
16+
- Model ServiceUpdate has a new parameter identity
17+
- Model ServiceUpdate has a new parameter tags
18+
19+
### Breaking Changes
20+
21+
- Model Service no longer has parameter provisioning_state
22+
- Model ServiceUpdate no longer has parameter provisioning_state
23+
- Operation ServicesOperations.update has a new required parameter properties
24+
- Operation ServicesOperations.update no longer has parameter parameters
25+
326
## 1.0.0b1 (2023-08-25)
427

528
* Initial Release

sdk/apicenter/azure-mgmt-apicenter/README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Microsoft Azure SDK for Python
22

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

77
## _Disclaimer_
@@ -12,7 +12,7 @@ _Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For
1212

1313
### Prerequisites
1414

15-
- Python 3.7+ is required to use this package.
15+
- Python 3.8+ is required to use this package.
1616
- [Azure subscription](https://azure.microsoft.com/free/)
1717

1818
### Install the package
@@ -59,6 +59,3 @@ Code samples for this package can be found at:
5959
If you encounter any bugs or have suggestions, please file an issue in the
6060
[Issues](https://github.com/Azure/azure-sdk-for-python/issues)
6161
section of the project.
62-
63-
64-
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-apicenter%2FREADME.png)

sdk/apicenter/azure-mgmt-apicenter/_meta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"commit": "1d2b8c05b55be5dd98ce94c835d7e96ee1ea7f5d",
2+
"commit": "a9fb3fa967eb2df4f4386358419a4f3f2f90a1ce",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.9.7",
55
"use": [

sdk/apicenter/azure-mgmt-apicenter/azure/mgmt/apicenter/_api_center_mgmt_client.py

Lines changed: 40 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,29 +15,55 @@
1515
from . import models as _models
1616
from ._configuration import ApiCenterMgmtClientConfiguration
1717
from ._serialization import Deserializer, Serializer
18-
from .operations import Operations, ServicesOperations
18+
from .operations import (
19+
ApiDefinitionsOperations,
20+
ApiVersionsOperations,
21+
ApisOperations,
22+
DeploymentsOperations,
23+
EnvironmentsOperations,
24+
MetadataSchemasOperations,
25+
Operations,
26+
ServicesOperations,
27+
WorkspacesOperations,
28+
)
1929

2030
if TYPE_CHECKING:
2131
# pylint: disable=unused-import,ungrouped-imports
2232
from azure.core.credentials import TokenCredential
2333

2434

25-
class ApiCenterMgmtClient: # pylint: disable=client-accepts-api-version-keyword
35+
class ApiCenterMgmtClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
2636
"""Azure API Center Resource Provider.
2737
2838
:ivar operations: Operations operations
2939
:vartype operations: azure.mgmt.apicenter.operations.Operations
3040
:ivar services: ServicesOperations operations
3141
:vartype services: azure.mgmt.apicenter.operations.ServicesOperations
42+
:ivar metadata_schemas: MetadataSchemasOperations operations
43+
:vartype metadata_schemas: azure.mgmt.apicenter.operations.MetadataSchemasOperations
44+
:ivar workspaces: WorkspacesOperations operations
45+
:vartype workspaces: azure.mgmt.apicenter.operations.WorkspacesOperations
46+
:ivar apis: ApisOperations operations
47+
:vartype apis: azure.mgmt.apicenter.operations.ApisOperations
48+
:ivar deployments: DeploymentsOperations operations
49+
:vartype deployments: azure.mgmt.apicenter.operations.DeploymentsOperations
50+
:ivar api_versions: ApiVersionsOperations operations
51+
:vartype api_versions: azure.mgmt.apicenter.operations.ApiVersionsOperations
52+
:ivar api_definitions: ApiDefinitionsOperations operations
53+
:vartype api_definitions: azure.mgmt.apicenter.operations.ApiDefinitionsOperations
54+
:ivar environments: EnvironmentsOperations operations
55+
:vartype environments: azure.mgmt.apicenter.operations.EnvironmentsOperations
3256
:param credential: Credential needed for the client to connect to Azure. Required.
3357
:type credential: ~azure.core.credentials.TokenCredential
34-
:param subscription_id: The ID of the target subscription. Required.
58+
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
3559
:type subscription_id: str
3660
:param base_url: Service URL. Default value is "https://management.azure.com".
3761
:type base_url: str
38-
:keyword api_version: Api Version. Default value is "2023-07-01-preview". Note that overriding
39-
this default value may result in unsupported behavior.
62+
:keyword api_version: Api Version. Default value is "2024-03-01". Note that overriding this
63+
default value may result in unsupported behavior.
4064
:paramtype api_version: str
65+
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
66+
Retry-After header is present.
4167
"""
4268

4369
def __init__(
@@ -58,6 +84,15 @@ def __init__(
5884
self._serialize.client_side_validation = False
5985
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
6086
self.services = ServicesOperations(self._client, self._config, self._serialize, self._deserialize)
87+
self.metadata_schemas = MetadataSchemasOperations(
88+
self._client, self._config, self._serialize, self._deserialize
89+
)
90+
self.workspaces = WorkspacesOperations(self._client, self._config, self._serialize, self._deserialize)
91+
self.apis = ApisOperations(self._client, self._config, self._serialize, self._deserialize)
92+
self.deployments = DeploymentsOperations(self._client, self._config, self._serialize, self._deserialize)
93+
self.api_versions = ApiVersionsOperations(self._client, self._config, self._serialize, self._deserialize)
94+
self.api_definitions = ApiDefinitionsOperations(self._client, self._config, self._serialize, self._deserialize)
95+
self.environments = EnvironmentsOperations(self._client, self._config, self._serialize, self._deserialize)
6196

6297
def _send_request(self, request: HttpRequest, **kwargs: Any) -> HttpResponse:
6398
"""Runs the network request through the client's chained policies.

sdk/apicenter/azure-mgmt-apicenter/azure/mgmt/apicenter/_configuration.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,16 @@ class ApiCenterMgmtClientConfiguration(Configuration): # pylint: disable=too-ma
2727
2828
:param credential: Credential needed for the client to connect to Azure. Required.
2929
:type credential: ~azure.core.credentials.TokenCredential
30-
:param subscription_id: The ID of the target subscription. Required.
30+
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
3131
:type subscription_id: str
32-
:keyword api_version: Api Version. Default value is "2023-07-01-preview". Note that overriding
33-
this default value may result in unsupported behavior.
32+
:keyword api_version: Api Version. Default value is "2024-03-01". Note that overriding this
33+
default value may result in unsupported behavior.
3434
:paramtype api_version: str
3535
"""
3636

3737
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
3838
super(ApiCenterMgmtClientConfiguration, self).__init__(**kwargs)
39-
api_version: str = kwargs.pop("api_version", "2023-07-01-preview")
39+
api_version: str = kwargs.pop("api_version", "2024-03-01")
4040

4141
if credential is None:
4242
raise ValueError("Parameter 'credential' must not be None.")

sdk/apicenter/azure-mgmt-apicenter/azure/mgmt/apicenter/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "1.0.0b1"
9+
VERSION = "1.0.0"

sdk/apicenter/azure-mgmt-apicenter/azure/mgmt/apicenter/aio/_api_center_mgmt_client.py

Lines changed: 40 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,29 +15,55 @@
1515
from .. import models as _models
1616
from .._serialization import Deserializer, Serializer
1717
from ._configuration import ApiCenterMgmtClientConfiguration
18-
from .operations import Operations, ServicesOperations
18+
from .operations import (
19+
ApiDefinitionsOperations,
20+
ApiVersionsOperations,
21+
ApisOperations,
22+
DeploymentsOperations,
23+
EnvironmentsOperations,
24+
MetadataSchemasOperations,
25+
Operations,
26+
ServicesOperations,
27+
WorkspacesOperations,
28+
)
1929

2030
if TYPE_CHECKING:
2131
# pylint: disable=unused-import,ungrouped-imports
2232
from azure.core.credentials_async import AsyncTokenCredential
2333

2434

25-
class ApiCenterMgmtClient: # pylint: disable=client-accepts-api-version-keyword
35+
class ApiCenterMgmtClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
2636
"""Azure API Center Resource Provider.
2737
2838
:ivar operations: Operations operations
2939
:vartype operations: azure.mgmt.apicenter.aio.operations.Operations
3040
:ivar services: ServicesOperations operations
3141
:vartype services: azure.mgmt.apicenter.aio.operations.ServicesOperations
42+
:ivar metadata_schemas: MetadataSchemasOperations operations
43+
:vartype metadata_schemas: azure.mgmt.apicenter.aio.operations.MetadataSchemasOperations
44+
:ivar workspaces: WorkspacesOperations operations
45+
:vartype workspaces: azure.mgmt.apicenter.aio.operations.WorkspacesOperations
46+
:ivar apis: ApisOperations operations
47+
:vartype apis: azure.mgmt.apicenter.aio.operations.ApisOperations
48+
:ivar deployments: DeploymentsOperations operations
49+
:vartype deployments: azure.mgmt.apicenter.aio.operations.DeploymentsOperations
50+
:ivar api_versions: ApiVersionsOperations operations
51+
:vartype api_versions: azure.mgmt.apicenter.aio.operations.ApiVersionsOperations
52+
:ivar api_definitions: ApiDefinitionsOperations operations
53+
:vartype api_definitions: azure.mgmt.apicenter.aio.operations.ApiDefinitionsOperations
54+
:ivar environments: EnvironmentsOperations operations
55+
:vartype environments: azure.mgmt.apicenter.aio.operations.EnvironmentsOperations
3256
:param credential: Credential needed for the client to connect to Azure. Required.
3357
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
34-
:param subscription_id: The ID of the target subscription. Required.
58+
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
3559
:type subscription_id: str
3660
:param base_url: Service URL. Default value is "https://management.azure.com".
3761
:type base_url: str
38-
:keyword api_version: Api Version. Default value is "2023-07-01-preview". Note that overriding
39-
this default value may result in unsupported behavior.
62+
:keyword api_version: Api Version. Default value is "2024-03-01". Note that overriding this
63+
default value may result in unsupported behavior.
4064
:paramtype api_version: str
65+
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
66+
Retry-After header is present.
4167
"""
4268

4369
def __init__(
@@ -58,6 +84,15 @@ def __init__(
5884
self._serialize.client_side_validation = False
5985
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
6086
self.services = ServicesOperations(self._client, self._config, self._serialize, self._deserialize)
87+
self.metadata_schemas = MetadataSchemasOperations(
88+
self._client, self._config, self._serialize, self._deserialize
89+
)
90+
self.workspaces = WorkspacesOperations(self._client, self._config, self._serialize, self._deserialize)
91+
self.apis = ApisOperations(self._client, self._config, self._serialize, self._deserialize)
92+
self.deployments = DeploymentsOperations(self._client, self._config, self._serialize, self._deserialize)
93+
self.api_versions = ApiVersionsOperations(self._client, self._config, self._serialize, self._deserialize)
94+
self.api_definitions = ApiDefinitionsOperations(self._client, self._config, self._serialize, self._deserialize)
95+
self.environments = EnvironmentsOperations(self._client, self._config, self._serialize, self._deserialize)
6196

6297
def _send_request(self, request: HttpRequest, **kwargs: Any) -> Awaitable[AsyncHttpResponse]:
6398
"""Runs the network request through the client's chained policies.

sdk/apicenter/azure-mgmt-apicenter/azure/mgmt/apicenter/aio/_configuration.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,16 @@ class ApiCenterMgmtClientConfiguration(Configuration): # pylint: disable=too-ma
2727
2828
:param credential: Credential needed for the client to connect to Azure. Required.
2929
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
30-
:param subscription_id: The ID of the target subscription. Required.
30+
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
3131
:type subscription_id: str
32-
:keyword api_version: Api Version. Default value is "2023-07-01-preview". Note that overriding
33-
this default value may result in unsupported behavior.
32+
:keyword api_version: Api Version. Default value is "2024-03-01". Note that overriding this
33+
default value may result in unsupported behavior.
3434
:paramtype api_version: str
3535
"""
3636

3737
def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None:
3838
super(ApiCenterMgmtClientConfiguration, self).__init__(**kwargs)
39-
api_version: str = kwargs.pop("api_version", "2023-07-01-preview")
39+
api_version: str = kwargs.pop("api_version", "2024-03-01")
4040

4141
if credential is None:
4242
raise ValueError("Parameter 'credential' must not be None.")

sdk/apicenter/azure-mgmt-apicenter/azure/mgmt/apicenter/aio/operations/__init__.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@
88

99
from ._operations import Operations
1010
from ._services_operations import ServicesOperations
11+
from ._metadata_schemas_operations import MetadataSchemasOperations
12+
from ._workspaces_operations import WorkspacesOperations
13+
from ._apis_operations import ApisOperations
14+
from ._deployments_operations import DeploymentsOperations
15+
from ._api_versions_operations import ApiVersionsOperations
16+
from ._api_definitions_operations import ApiDefinitionsOperations
17+
from ._environments_operations import EnvironmentsOperations
1118

1219
from ._patch import __all__ as _patch_all
1320
from ._patch import * # pylint: disable=unused-wildcard-import
@@ -16,6 +23,13 @@
1623
__all__ = [
1724
"Operations",
1825
"ServicesOperations",
26+
"MetadataSchemasOperations",
27+
"WorkspacesOperations",
28+
"ApisOperations",
29+
"DeploymentsOperations",
30+
"ApiVersionsOperations",
31+
"ApiDefinitionsOperations",
32+
"EnvironmentsOperations",
1933
]
2034
__all__.extend([p for p in _patch_all if p not in __all__])
2135
_patch_sdk()

0 commit comments

Comments
 (0)