Skip to content

Commit

Permalink
[AutoRelease] t2-informaticadatamanagement-2024-07-10-92022(can only …
Browse files Browse the repository at this point in the history
…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]>
  • Loading branch information
3 people committed Jul 15, 2024
1 parent f1ebb2a commit 50f7edf
Show file tree
Hide file tree
Showing 66 changed files with 9,148 additions and 13,577 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Release History

## 1.0.0 (2024-07-15)

### Features Added

- Added model InformaticaOrganizationResourceListResult
- Added model InformaticaServerlessRuntimeResourceListResult
- Added model OperationListResult

## 1.0.0b1 (2024-05-29)

- Initial version
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
{
"commit": "53af822b054f0ae1cfa3858e6b7441b6a917d7f9",
"commit": "40390d1f34a8f74584a272d4da55f12827972357",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"typespec_src": "specification/informatica/Informatica.DataManagement",
"@azure-tools/typespec-python": "0.23.11",
"@autorest/python": "6.13.17"
"@autorest/python": "6.13.17",
"autorest": "3.10.2",
"use": [
"@autorest/[email protected]",
"@autorest/[email protected]"
],
"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",
"readme": "specification/informatica/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"AssetsRepo": "Azure/azure-sdk-assets",
"AssetsRepoPrefixPath": "python",
"TagPrefix": "python/informaticadatamanagement/azure-mgmt-informaticadatamanagement",
"Tag": "python/informaticadatamanagement/azure-mgmt-informaticadatamanagement_f5d2b8d4a9"
"Tag": "python/informaticadatamanagement/azure-mgmt-informaticadatamanagement_53ed4247c3"
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) Python Code Generator.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

from ._client import InformaticaDataMgmtClient
from ._informatica_data_mgmt_client import InformaticaDataMgmtClient
from ._version import VERSION

__version__ = VERSION
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) Python Code Generator.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,20 @@
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) Python Code Generator.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

from copy import deepcopy
from typing import Any, TYPE_CHECKING
from typing_extensions import Self

from azure.core.pipeline import policies
from azure.core.rest import HttpRequest, HttpResponse
from azure.mgmt.core import ARMPipelineClient
from azure.mgmt.core.policies import ARMAutoResourceProviderRegistrationPolicy

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

self._serialize = Serializer()
self._deserialize = Deserializer()
client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)
self._serialize.client_side_validation = False
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
self.organizations = OrganizationsOperations(self._client, self._config, self._serialize, self._deserialize)
self.serverless_runtimes = ServerlessRuntimesOperations(
self._client, self._config, self._serialize, self._deserialize
)

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

def __enter__(self) -> "InformaticaDataMgmtClient":
def __enter__(self) -> Self:
self._client.__enter__()
return self

Expand Down
Loading

0 comments on commit 50f7edf

Please sign in to comment.