Skip to content

Commit 50f7edf

Browse files
azure-sdkmsyycChenxiJiang333
authored
[AutoRelease] t2-informaticadatamanagement-2024-07-10-92022(can only be merged by SDK owner) (#36408)
* code and test * Delete sdk/informaticadatamanagement/azure-mgmt-informaticadatamanagement/tsp-location.yaml * Update CHANGELOG.md * update-testcase --------- Co-authored-by: azure-sdk <PythonSdkPipelines> Co-authored-by: Yuchao Yan <[email protected]> Co-authored-by: ChenxiJiang333 <[email protected]>
1 parent f1ebb2a commit 50f7edf

File tree

66 files changed

+9148
-13577
lines changed

Some content is hidden

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

66 files changed

+9148
-13577
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Release History
22

3+
## 1.0.0 (2024-07-15)
4+
5+
### Features Added
6+
7+
- Added model InformaticaOrganizationResourceListResult
8+
- Added model InformaticaServerlessRuntimeResourceListResult
9+
- Added model OperationListResult
10+
311
## 1.0.0b1 (2024-05-29)
412

513
- Initial version
Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
{
2-
"commit": "53af822b054f0ae1cfa3858e6b7441b6a917d7f9",
2+
"commit": "40390d1f34a8f74584a272d4da55f12827972357",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"typespec_src": "specification/informatica/Informatica.DataManagement",
55
"@azure-tools/typespec-python": "0.23.11",
6-
"@autorest/python": "6.13.17"
6+
"@autorest/python": "6.13.17",
7+
"autorest": "3.10.2",
8+
"use": [
9+
"@autorest/[email protected]",
10+
"@autorest/[email protected]"
11+
],
12+
"autorest_command": "autorest specification/informatica/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
13+
"readme": "specification/informatica/resource-manager/readme.md"
714
}

sdk/informaticadatamanagement/azure-mgmt-informaticadatamanagement/assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"AssetsRepo": "Azure/azure-sdk-assets",
33
"AssetsRepoPrefixPath": "python",
44
"TagPrefix": "python/informaticadatamanagement/azure-mgmt-informaticadatamanagement",
5-
"Tag": "python/informaticadatamanagement/azure-mgmt-informaticadatamanagement_f5d2b8d4a9"
5+
"Tag": "python/informaticadatamanagement/azure-mgmt-informaticadatamanagement_53ed4247c3"
66
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
# --------------------------------------------------------------------------
33
# Copyright (c) Microsoft Corporation. All rights reserved.
44
# Licensed under the MIT License. See License.txt in the project root for license information.
5-
# Code generated by Microsoft (R) Python Code Generator.
5+
# Code generated by Microsoft (R) AutoRest Code Generator.
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
from ._client import InformaticaDataMgmtClient
9+
from ._informatica_data_mgmt_client import InformaticaDataMgmtClient
1010
from ._version import VERSION
1111

1212
__version__ = VERSION

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# --------------------------------------------------------------------------
33
# Copyright (c) Microsoft Corporation. All rights reserved.
44
# Licensed under the MIT License. See License.txt in the project root for license information.
5-
# Code generated by Microsoft (R) Python Code Generator.
5+
# Code generated by Microsoft (R) AutoRest Code Generator.
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

@@ -24,12 +24,12 @@ class InformaticaDataMgmtClientConfiguration: # pylint: disable=too-many-instan
2424
Note that all parameters used to create this instance are saved as instance
2525
attributes.
2626
27-
:param credential: Credential used to authenticate requests to the service. Required.
27+
:param credential: Credential needed for the client to connect to Azure. Required.
2828
:type credential: ~azure.core.credentials.TokenCredential
2929
:param subscription_id: The ID of the target subscription. Required.
3030
:type subscription_id: str
31-
:keyword api_version: The API version to use for this operation. Default value is "2024-05-08".
32-
Note that overriding this default value may result in unsupported behavior.
31+
:keyword api_version: Api Version. Default value is "2024-05-08". Note that overriding this
32+
default value may result in unsupported behavior.
3333
:paramtype api_version: str
3434
"""
3535

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,20 @@
22
# --------------------------------------------------------------------------
33
# Copyright (c) Microsoft Corporation. All rights reserved.
44
# Licensed under the MIT License. See License.txt in the project root for license information.
5-
# Code generated by Microsoft (R) Python Code Generator.
5+
# Code generated by Microsoft (R) AutoRest Code Generator.
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

99
from copy import deepcopy
1010
from typing import Any, TYPE_CHECKING
11+
from typing_extensions import Self
1112

1213
from azure.core.pipeline import policies
1314
from azure.core.rest import HttpRequest, HttpResponse
1415
from azure.mgmt.core import ARMPipelineClient
1516
from azure.mgmt.core.policies import ARMAutoResourceProviderRegistrationPolicy
1617

18+
from . import models as _models
1719
from ._configuration import InformaticaDataMgmtClientConfiguration
1820
from ._serialization import Deserializer, Serializer
1921
from .operations import Operations, OrganizationsOperations, ServerlessRuntimesOperations
@@ -33,14 +35,14 @@ class InformaticaDataMgmtClient: # pylint: disable=client-accepts-api-version-k
3335
:ivar serverless_runtimes: ServerlessRuntimesOperations operations
3436
:vartype serverless_runtimes:
3537
azure.mgmt.informaticadatamanagement.operations.ServerlessRuntimesOperations
36-
:param credential: Credential used to authenticate requests to the service. Required.
38+
:param credential: Credential needed for the client to connect to Azure. Required.
3739
:type credential: ~azure.core.credentials.TokenCredential
3840
:param subscription_id: The ID of the target subscription. Required.
3941
:type subscription_id: str
40-
:param base_url: Service host. Default value is "https://management.azure.com".
42+
:param base_url: Service URL. Default value is "https://management.azure.com".
4143
:type base_url: str
42-
:keyword api_version: The API version to use for this operation. Default value is "2024-05-08".
43-
Note that overriding this default value may result in unsupported behavior.
44+
:keyword api_version: Api Version. Default value is "2024-05-08". Note that overriding this
45+
default value may result in unsupported behavior.
4446
:paramtype api_version: str
4547
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
4648
Retry-After header is present.
@@ -76,22 +78,23 @@ def __init__(
7678
]
7779
self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, policies=_policies, **kwargs)
7880

79-
self._serialize = Serializer()
80-
self._deserialize = Deserializer()
81+
client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)}
82+
self._serialize = Serializer(client_models)
83+
self._deserialize = Deserializer(client_models)
8184
self._serialize.client_side_validation = False
8285
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
8386
self.organizations = OrganizationsOperations(self._client, self._config, self._serialize, self._deserialize)
8487
self.serverless_runtimes = ServerlessRuntimesOperations(
8588
self._client, self._config, self._serialize, self._deserialize
8689
)
8790

88-
def send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse:
91+
def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse:
8992
"""Runs the network request through the client's chained policies.
9093
9194
>>> from azure.core.rest import HttpRequest
9295
>>> request = HttpRequest("GET", "https://www.example.org/")
9396
<HttpRequest [GET], url: 'https://www.example.org/'>
94-
>>> response = client.send_request(request)
97+
>>> response = client._send_request(request)
9598
<HttpResponse: 200 OK>
9699
97100
For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request
@@ -110,7 +113,7 @@ def send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs:
110113
def close(self) -> None:
111114
self._client.close()
112115

113-
def __enter__(self) -> "InformaticaDataMgmtClient":
116+
def __enter__(self) -> Self:
114117
self._client.__enter__()
115118
return self
116119

0 commit comments

Comments
 (0)