Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
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

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
{
"commit": "40390d1f34a8f74584a272d4da55f12827972357",
"commit": "bb720b097f7c7afa6cdc8246f6fb654ef390993a",
"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": "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"
"typespec_src": "specification/informatica/Informatica.DataManagement.Management",
"@azure-tools/typespec-python": "0.40.0"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{
"CrossLanguagePackageId": "Informatica.DataManagement",
"CrossLanguageDefinitionId": {
"azure.mgmt.informaticadatamanagement.models.AdvancedCustomProperties": "Informatica.DataManagement.AdvancedCustomProperties",
"azure.mgmt.informaticadatamanagement.models.ApplicationConfigs": "Informatica.DataManagement.ApplicationConfigs",
"azure.mgmt.informaticadatamanagement.models.ApplicationTypeMetadata": "Informatica.DataManagement.ApplicationTypeMetadata",
"azure.mgmt.informaticadatamanagement.models.CdiConfigProps": "Informatica.DataManagement.CdiConfigProps",
"azure.mgmt.informaticadatamanagement.models.CheckDependenciesResponse": "Informatica.DataManagement.CheckDependenciesResponse",
"azure.mgmt.informaticadatamanagement.models.CompanyDetails": "Informatica.DataManagement.CompanyDetails",
"azure.mgmt.informaticadatamanagement.models.CompanyDetailsUpdate": "Informatica.DataManagement.CompanyDetailsUpdate",
"azure.mgmt.informaticadatamanagement.models.ComputeUnitsMetadata": "Informatica.DataManagement.ComputeUnitsMetadata",
"azure.mgmt.informaticadatamanagement.models.ErrorAdditionalInfo": "Azure.ResourceManager.CommonTypes.ErrorAdditionalInfo",
"azure.mgmt.informaticadatamanagement.models.ErrorDetail": "Azure.ResourceManager.CommonTypes.ErrorDetail",
"azure.mgmt.informaticadatamanagement.models.ErrorResponse": "Azure.ResourceManager.CommonTypes.ErrorResponse",
"azure.mgmt.informaticadatamanagement.models.InfaRuntimeResourceFetchMetaData": "Informatica.DataManagement.InfaRuntimeResourceFetchMetaData",
"azure.mgmt.informaticadatamanagement.models.InfaServerlessFetchConfigProperties": "Informatica.DataManagement.InfaServerlessFetchConfigProperties",
"azure.mgmt.informaticadatamanagement.models.Resource": "Azure.ResourceManager.CommonTypes.Resource",
"azure.mgmt.informaticadatamanagement.models.TrackedResource": "Azure.ResourceManager.CommonTypes.TrackedResource",
"azure.mgmt.informaticadatamanagement.models.InformaticaOrganizationResource": "Informatica.DataManagement.InformaticaOrganizationResource",
"azure.mgmt.informaticadatamanagement.models.InformaticaOrganizationResourceUpdate": "Informatica.DataManagement.InformaticaOrganizationResourceUpdate",
"azure.mgmt.informaticadatamanagement.models.InformaticaProperties": "Informatica.DataManagement.InformaticaProperties",
"azure.mgmt.informaticadatamanagement.models.InformaticaServerlessRuntimeProperties": "Informatica.DataManagement.InformaticaServerlessRuntimeProperties",
"azure.mgmt.informaticadatamanagement.models.ProxyResource": "Azure.ResourceManager.CommonTypes.ProxyResource",
"azure.mgmt.informaticadatamanagement.models.InformaticaServerlessRuntimeResource": "Informatica.DataManagement.InformaticaServerlessRuntimeResource",
"azure.mgmt.informaticadatamanagement.models.InformaticaServerlessRuntimeResourceList": "Informatica.DataManagement.InformaticaServerlessRuntimeResourceList",
"azure.mgmt.informaticadatamanagement.models.InformaticaServerlessRuntimeResourceUpdate": "Informatica.DataManagement.InformaticaServerlessRuntimeResourceUpdate",
"azure.mgmt.informaticadatamanagement.models.LinkOrganization": "Informatica.DataManagement.LinkOrganization",
"azure.mgmt.informaticadatamanagement.models.MarketplaceDetails": "Informatica.DataManagement.MarketplaceDetails",
"azure.mgmt.informaticadatamanagement.models.MarketplaceDetailsUpdate": "Informatica.DataManagement.MarketplaceDetailsUpdate",
"azure.mgmt.informaticadatamanagement.models.NetworkInterfaceConfiguration": "Informatica.DataManagement.NetworkInterfaceConfiguration",
"azure.mgmt.informaticadatamanagement.models.NetworkInterfaceConfigurationUpdate": "Informatica.DataManagement.NetworkInterfaceConfigurationUpdate",
"azure.mgmt.informaticadatamanagement.models.OfferDetails": "Informatica.DataManagement.OfferDetails",
"azure.mgmt.informaticadatamanagement.models.OfferDetailsUpdate": "Informatica.DataManagement.OfferDetailsUpdate",
"azure.mgmt.informaticadatamanagement.models.OrganizationProperties": "Informatica.DataManagement.OrganizationProperties",
"azure.mgmt.informaticadatamanagement.models.OrganizationPropertiesCustomUpdate": "Informatica.DataManagement.OrganizationPropertiesCustomUpdate",
"azure.mgmt.informaticadatamanagement.models.RegionsMetadata": "Informatica.DataManagement.RegionsMetadata",
"azure.mgmt.informaticadatamanagement.models.ServerlessConfigProperties": "Informatica.DataManagement.ServerlessConfigProperties",
"azure.mgmt.informaticadatamanagement.models.ServerlessMetadataResponse": "Informatica.DataManagement.ServerlessMetadataResponse",
"azure.mgmt.informaticadatamanagement.models.ServerlessRuntimeConfigProperties": "Informatica.DataManagement.ServerlessRuntimeConfigProperties",
"azure.mgmt.informaticadatamanagement.models.ServerlessRuntimeConfigPropertiesUpdate": "Informatica.DataManagement.ServerlessRuntimeConfigPropertiesUpdate",
"azure.mgmt.informaticadatamanagement.models.ServerlessRuntimeDependency": "Informatica.DataManagement.ServerlessRuntimeDependency",
"azure.mgmt.informaticadatamanagement.models.ServerlessRuntimeNetworkProfile": "Informatica.DataManagement.ServerlessRuntimeNetworkProfile",
"azure.mgmt.informaticadatamanagement.models.ServerlessRuntimeNetworkProfileUpdate": "Informatica.DataManagement.ServerlessRuntimeNetworkProfileUpdate",
"azure.mgmt.informaticadatamanagement.models.ServerlessRuntimePropertiesCustomUpdate": "Informatica.DataManagement.ServerlessRuntimePropertiesCustomUpdate",
"azure.mgmt.informaticadatamanagement.models.ServerlessRuntimeTag": "Informatica.DataManagement.ServerlessRuntimeTag",
"azure.mgmt.informaticadatamanagement.models.ServerlessRuntimeUserContextProperties": "Informatica.DataManagement.ServerlessRuntimeUserContextProperties",
"azure.mgmt.informaticadatamanagement.models.ServerlessRuntimeUserContextPropertiesUpdate": "Informatica.DataManagement.ServerlessRuntimeUserContextPropertiesUpdate",
"azure.mgmt.informaticadatamanagement.models.SystemData": "Azure.ResourceManager.CommonTypes.SystemData",
"azure.mgmt.informaticadatamanagement.models.UserDetails": "Informatica.DataManagement.UserDetails",
"azure.mgmt.informaticadatamanagement.models.UserDetailsUpdate": "Informatica.DataManagement.UserDetailsUpdate",
"azure.mgmt.informaticadatamanagement.models.CreatedByType": "Azure.ResourceManager.CommonTypes.createdByType",
"azure.mgmt.informaticadatamanagement.models.ProvisioningState": "Informatica.DataManagement.ProvisioningState",
"azure.mgmt.informaticadatamanagement.models.RuntimeType": "Informatica.DataManagement.RuntimeType",
"azure.mgmt.informaticadatamanagement.models.PlatformType": "Informatica.DataManagement.PlatformType",
"azure.mgmt.informaticadatamanagement.models.ApplicationType": "Informatica.DataManagement.ApplicationType",
"azure.mgmt.informaticadatamanagement.InformaticaDataMgmtClient.organizations.get": "Informatica.DataManagement.Organizations.get",
"azure.mgmt.informaticadatamanagement.InformaticaDataMgmtClient.organizations.begin_create_or_update": "Informatica.DataManagement.Organizations.createOrUpdate",
"azure.mgmt.informaticadatamanagement.InformaticaDataMgmtClient.organizations.update": "Informatica.DataManagement.Organizations.update",
"azure.mgmt.informaticadatamanagement.InformaticaDataMgmtClient.organizations.begin_delete": "Informatica.DataManagement.Organizations.delete",
"azure.mgmt.informaticadatamanagement.InformaticaDataMgmtClient.organizations.list_by_resource_group": "Azure.ResourceManager.Organizations.listByResourceGroup",
"azure.mgmt.informaticadatamanagement.InformaticaDataMgmtClient.organizations.list_by_subscription": "Azure.ResourceManager.Organizations.listBySubscription",
"azure.mgmt.informaticadatamanagement.InformaticaDataMgmtClient.organizations.get_serverless_metadata": "Informatica.DataManagement.Organizations.getServerlessMetadata",
"azure.mgmt.informaticadatamanagement.InformaticaDataMgmtClient.organizations.get_all_serverless_runtimes": "Informatica.DataManagement.Organizations.getAllServerlessRuntimes",
"azure.mgmt.informaticadatamanagement.InformaticaDataMgmtClient.serverless_runtimes.get": "Informatica.DataManagement.ServerlessRuntimes.get",
"azure.mgmt.informaticadatamanagement.InformaticaDataMgmtClient.serverless_runtimes.begin_create_or_update": "Informatica.DataManagement.ServerlessRuntimes.createOrUpdate",
"azure.mgmt.informaticadatamanagement.InformaticaDataMgmtClient.serverless_runtimes.begin_delete": "Informatica.DataManagement.ServerlessRuntimes.delete",
"azure.mgmt.informaticadatamanagement.InformaticaDataMgmtClient.serverless_runtimes.list_by_informatica_organization_resource": "Azure.ResourceManager.ServerlessRuntimes.listByInformaticaOrganizationResource",
"azure.mgmt.informaticadatamanagement.InformaticaDataMgmtClient.serverless_runtimes.update": "Informatica.DataManagement.ServerlessRuntimes.update",
"azure.mgmt.informaticadatamanagement.InformaticaDataMgmtClient.serverless_runtimes.check_dependencies": "Informatica.DataManagement.ServerlessRuntimes.checkDependencies",
"azure.mgmt.informaticadatamanagement.InformaticaDataMgmtClient.serverless_runtimes.start_failed_serverless_runtime": "Informatica.DataManagement.ServerlessRuntimes.startFailedServerlessRuntime",
"azure.mgmt.informaticadatamanagement.InformaticaDataMgmtClient.serverless_runtimes.serverless_resource_by_id": "Informatica.DataManagement.ServerlessRuntimes.serverlessResourceById"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,31 @@
# --------------------------------------------------------------------------
# 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) AutoRest Code Generator.
# Code generated by Microsoft (R) Python Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
# pylint: disable=wrong-import-position

from ._informatica_data_mgmt_client import InformaticaDataMgmtClient
from typing import TYPE_CHECKING

if TYPE_CHECKING:
from ._patch import * # pylint: disable=unused-wildcard-import

from ._client import InformaticaDataMgmtClient # type: ignore
from ._version import VERSION

__version__ = VERSION

try:
from ._patch import __all__ as _patch_all
from ._patch import * # pylint: disable=unused-wildcard-import
from ._patch import *
except ImportError:
_patch_all = []
from ._patch import patch_sdk as _patch_sdk

__all__ = [
"InformaticaDataMgmtClient",
]
__all__.extend([p for p in _patch_all if p not in __all__])
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore

_patch_sdk()
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) AutoRest Code Generator.
# Code generated by Microsoft (R) Python Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

Expand All @@ -15,17 +15,15 @@
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

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


class InformaticaDataMgmtClient: # pylint: disable=client-accepts-api-version-keyword
class InformaticaDataMgmtClient:
"""InformaticaDataMgmtClient.

:ivar operations: Operations operations
Expand All @@ -35,14 +33,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 needed for the client to connect to Azure. Required.
:param credential: Credential used to authenticate requests to the service. Required.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription. Required.
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
:type subscription_id: str
:param base_url: Service URL. Default value is "https://management.azure.com".
:param base_url: Service host. Default value is "https://management.azure.com".
:type base_url: str
:keyword api_version: Api Version. Default value is "2024-05-08". Note that overriding this
default value may result in unsupported behavior.
: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.
: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 All @@ -55,8 +53,9 @@ def __init__(
base_url: str = "https://management.azure.com",
**kwargs: Any
) -> None:
_endpoint = "{endpoint}"
self._config = InformaticaDataMgmtClientConfiguration(
credential=credential, subscription_id=subscription_id, **kwargs
credential=credential, subscription_id=subscription_id, base_url=base_url, **kwargs
)
_policies = kwargs.pop("policies", None)
if _policies is None:
Expand All @@ -76,25 +75,24 @@ def __init__(
policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None,
self._config.http_logging_policy,
]
self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, policies=_policies, **kwargs)
self._client: ARMPipelineClient = ARMPipelineClient(base_url=_endpoint, policies=_policies, **kwargs)

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 = Serializer()
self._deserialize = Deserializer()
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 @@ -107,7 +105,11 @@ def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs:
"""

request_copy = deepcopy(request)
request_copy.url = self._client.format_url(request_copy.url)
path_format_arguments = {
"endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True),
}

request_copy.url = self._client.format_url(request_copy.url, **path_format_arguments)
return self._client.send_request(request_copy, stream=stream, **kwargs) # type: ignore

def close(self) -> None:
Expand Down
Loading