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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions sdk/apimanagement/azure-mgmt-apimanagement/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"commit": "1198b4b73bed8c941a51acb037f1531166aa6728",
"commit": "8f973e94e1b24e4b14bc984491712191538944d3",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.9.2",
"use": [
"@autorest/python@6.4.8",
"@autorest/modelerfour@4.24.3"
],
"autorest_command": "autorest specification/apimanagement/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.4.8 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False",
"autorest_command": "autorest specification/apimanagement/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.4.8 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False",
"readme": "specification/apimanagement/resource-manager/readme.md"
}

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ class ApiManagementClientConfiguration(Configuration): # pylint: disable=too-ma
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription. Required.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2022-08-01". Note that overriding this
default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2022-09-01-preview". Note that overriding
this default value may result in unsupported behavior.
:paramtype api_version: str
"""

def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
super(ApiManagementClientConfiguration, self).__init__(**kwargs)
api_version: str = kwargs.pop("api_version", "2022-08-01")
api_version: str = kwargs.pop("api_version", "2022-09-01-preview")

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "4.0.0"
VERSION = "1.0.0b1"

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ class ApiManagementClientConfiguration(Configuration): # pylint: disable=too-ma
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The ID of the target subscription. Required.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2022-08-01". Note that overriding this
default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2022-09-01-preview". Note that overriding
this default value may result in unsupported behavior.
:paramtype api_version: str
"""

def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None:
super(ApiManagementClientConfiguration, self).__init__(**kwargs)
api_version: str = kwargs.pop("api_version", "2022-08-01")
api_version: str = kwargs.pop("api_version", "2022-09-01-preview")

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
from ._api_wikis_operations import ApiWikisOperations
from ._api_export_operations import ApiExportOperations
from ._api_version_set_operations import ApiVersionSetOperations
from ._authorization_server_operations import AuthorizationServerOperations
from ._authorization_provider_operations import AuthorizationProviderOperations
from ._authorization_operations import AuthorizationOperations
from ._authorization_login_links_operations import AuthorizationLoginLinksOperations
from ._authorization_access_policy_operations import AuthorizationAccessPolicyOperations
from ._authorization_server_operations import AuthorizationServerOperations
from ._backend_operations import BackendOperations
from ._cache_operations import CacheOperations
from ._certificate_operations import CertificateOperations
Expand All @@ -43,6 +43,7 @@
from ._api_management_service_skus_operations import ApiManagementServiceSkusOperations
from ._api_management_service_operations import ApiManagementServiceOperations
from ._diagnostic_operations import DiagnosticOperations
from ._documentation_operations import DocumentationOperations
from ._email_template_operations import EmailTemplateOperations
from ._gateway_operations import GatewayOperations
from ._gateway_hostname_configuration_operations import GatewayHostnameConfigurationOperations
Expand Down Expand Up @@ -77,6 +78,8 @@
from ._product_policy_operations import ProductPolicyOperations
from ._product_wiki_operations import ProductWikiOperations
from ._product_wikis_operations import ProductWikisOperations
from ._product_api_link_operations import ProductApiLinkOperations
from ._product_group_link_operations import ProductGroupLinkOperations
from ._quota_by_counter_keys_operations import QuotaByCounterKeysOperations
from ._quota_by_period_keys_operations import QuotaByPeriodKeysOperations
from ._region_operations import RegionOperations
Expand All @@ -86,6 +89,9 @@
from ._api_management_skus_operations import ApiManagementSkusOperations
from ._subscription_operations import SubscriptionOperations
from ._tag_resource_operations import TagResourceOperations
from ._tag_api_link_operations import TagApiLinkOperations
from ._tag_operation_link_operations import TagOperationLinkOperations
from ._tag_product_link_operations import TagProductLinkOperations
from ._tenant_access_operations import TenantAccessOperations
from ._tenant_access_git_operations import TenantAccessGitOperations
from ._tenant_configuration_operations import TenantConfigurationOperations
Expand All @@ -94,7 +100,34 @@
from ._user_subscription_operations import UserSubscriptionOperations
from ._user_identities_operations import UserIdentitiesOperations
from ._user_confirmation_password_operations import UserConfirmationPasswordOperations
from ._documentation_operations import DocumentationOperations
from ._workspace_operations import WorkspaceOperations
from ._workspace_policy_operations import WorkspacePolicyOperations
from ._workspace_named_value_operations import WorkspaceNamedValueOperations
from ._workspace_global_schema_operations import WorkspaceGlobalSchemaOperations
from ._workspace_notification_operations import WorkspaceNotificationOperations
from ._workspace_notification_recipient_user_operations import WorkspaceNotificationRecipientUserOperations
from ._workspace_notification_recipient_email_operations import WorkspaceNotificationRecipientEmailOperations
from ._workspace_policy_fragment_operations import WorkspacePolicyFragmentOperations
from ._workspace_group_operations import WorkspaceGroupOperations
from ._workspace_group_user_operations import WorkspaceGroupUserOperations
from ._workspace_subscription_operations import WorkspaceSubscriptionOperations
from ._workspace_api_version_set_operations import WorkspaceApiVersionSetOperations
from ._workspace_api_operations import WorkspaceApiOperations
from ._workspace_api_revision_operations import WorkspaceApiRevisionOperations
from ._workspace_api_release_operations import WorkspaceApiReleaseOperations
from ._workspace_api_operation_operations import WorkspaceApiOperationOperations
from ._workspace_api_operation_policy_operations import WorkspaceApiOperationPolicyOperations
from ._workspace_api_policy_operations import WorkspaceApiPolicyOperations
from ._workspace_api_schema_operations import WorkspaceApiSchemaOperations
from ._workspace_product_operations import WorkspaceProductOperations
from ._workspace_product_api_link_operations import WorkspaceProductApiLinkOperations
from ._workspace_product_group_link_operations import WorkspaceProductGroupLinkOperations
from ._workspace_product_policy_operations import WorkspaceProductPolicyOperations
from ._workspace_tag_operations import WorkspaceTagOperations
from ._workspace_tag_api_link_operations import WorkspaceTagApiLinkOperations
from ._workspace_tag_operation_link_operations import WorkspaceTagOperationLinkOperations
from ._workspace_tag_product_link_operations import WorkspaceTagProductLinkOperations
from ._workspace_api_export_operations import WorkspaceApiExportOperations

from ._patch import __all__ as _patch_all
from ._patch import * # pylint: disable=unused-wildcard-import
Expand Down Expand Up @@ -122,11 +155,11 @@
"ApiWikisOperations",
"ApiExportOperations",
"ApiVersionSetOperations",
"AuthorizationServerOperations",
"AuthorizationProviderOperations",
"AuthorizationOperations",
"AuthorizationLoginLinksOperations",
"AuthorizationAccessPolicyOperations",
"AuthorizationServerOperations",
"BackendOperations",
"CacheOperations",
"CertificateOperations",
Expand All @@ -138,6 +171,7 @@
"ApiManagementServiceSkusOperations",
"ApiManagementServiceOperations",
"DiagnosticOperations",
"DocumentationOperations",
"EmailTemplateOperations",
"GatewayOperations",
"GatewayHostnameConfigurationOperations",
Expand Down Expand Up @@ -172,6 +206,8 @@
"ProductPolicyOperations",
"ProductWikiOperations",
"ProductWikisOperations",
"ProductApiLinkOperations",
"ProductGroupLinkOperations",
"QuotaByCounterKeysOperations",
"QuotaByPeriodKeysOperations",
"RegionOperations",
Expand All @@ -181,6 +217,9 @@
"ApiManagementSkusOperations",
"SubscriptionOperations",
"TagResourceOperations",
"TagApiLinkOperations",
"TagOperationLinkOperations",
"TagProductLinkOperations",
"TenantAccessOperations",
"TenantAccessGitOperations",
"TenantConfigurationOperations",
Expand All @@ -189,7 +228,34 @@
"UserSubscriptionOperations",
"UserIdentitiesOperations",
"UserConfirmationPasswordOperations",
"DocumentationOperations",
"WorkspaceOperations",
"WorkspacePolicyOperations",
"WorkspaceNamedValueOperations",
"WorkspaceGlobalSchemaOperations",
"WorkspaceNotificationOperations",
"WorkspaceNotificationRecipientUserOperations",
"WorkspaceNotificationRecipientEmailOperations",
"WorkspacePolicyFragmentOperations",
"WorkspaceGroupOperations",
"WorkspaceGroupUserOperations",
"WorkspaceSubscriptionOperations",
"WorkspaceApiVersionSetOperations",
"WorkspaceApiOperations",
"WorkspaceApiRevisionOperations",
"WorkspaceApiReleaseOperations",
"WorkspaceApiOperationOperations",
"WorkspaceApiOperationPolicyOperations",
"WorkspaceApiPolicyOperations",
"WorkspaceApiSchemaOperations",
"WorkspaceProductOperations",
"WorkspaceProductApiLinkOperations",
"WorkspaceProductGroupLinkOperations",
"WorkspaceProductPolicyOperations",
"WorkspaceTagOperations",
"WorkspaceTagApiLinkOperations",
"WorkspaceTagOperationLinkOperations",
"WorkspaceTagProductLinkOperations",
"WorkspaceApiExportOperations",
]
__all__.extend([p for p in _patch_all if p not in __all__])
_patch_sdk()
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,15 @@ async def _perform_connectivity_check_async_initial( # pylint: disable=name-too
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)

deserialized = None
response_headers = {}
if response.status_code == 200:
deserialized = self._deserialize("ConnectivityCheckResponse", pipeline_response)

if response.status_code == 202:
response_headers["location"] = self._deserialize("str", response.headers.get("location"))

if cls:
return cls(pipeline_response, deserialized, {})
return cls(pipeline_response, deserialized, response_headers)

return deserialized

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ async def _backup_initial(
deserialized = self._deserialize("ApiManagementServiceResource", pipeline_response)

if response.status_code == 202:
response_headers["Location"] = self._deserialize("str", response.headers.get("Location"))
response_headers["location"] = self._deserialize("str", response.headers.get("location"))

if cls:
return cls(pipeline_response, deserialized, response_headers)
Expand Down Expand Up @@ -841,11 +841,15 @@ async def _update_initial(
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)

deserialized = None
response_headers = {}
if response.status_code == 200:
deserialized = self._deserialize("ApiManagementServiceResource", pipeline_response)

if response.status_code == 202:
response_headers["location"] = self._deserialize("str", response.headers.get("location"))

if cls:
return cls(pipeline_response, deserialized, {})
return cls(pipeline_response, deserialized, response_headers)

return deserialized

Expand Down Expand Up @@ -1119,11 +1123,14 @@ async def _delete_initial(
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)

deserialized = None
response_headers = {}
if response.status_code == 202:
response_headers["location"] = self._deserialize("str", response.headers.get("location"))

deserialized = self._deserialize("ApiManagementServiceResource", pipeline_response)

if cls:
return cls(pipeline_response, deserialized, {})
return cls(pipeline_response, deserialized, response_headers)

return deserialized

Expand Down Expand Up @@ -1177,9 +1184,13 @@ async def begin_delete(
kwargs.pop("error_map", None)

def get_long_running_output(pipeline_response):
response_headers = {}
response = pipeline_response.http_response
response_headers["location"] = self._deserialize("str", response.headers.get("location"))

deserialized = self._deserialize("ApiManagementServiceResource", pipeline_response)
if cls:
return cls(pipeline_response, deserialized, {})
return cls(pipeline_response, deserialized, response_headers)
return deserialized

if polling is True:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,9 @@ async def _create_or_update_initial(

deserialized = self._deserialize("ApiContract", pipeline_response)

if response.status_code == 202:
response_headers["location"] = self._deserialize("str", response.headers.get("location"))

if cls:
return cls(pipeline_response, deserialized, response_headers)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,9 @@ async def _create_or_update_initial(

deserialized = self._deserialize("SchemaContract", pipeline_response)

if response.status_code == 202:
response_headers["location"] = self._deserialize("str", response.headers.get("location"))

if cls:
return cls(pipeline_response, deserialized, response_headers)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,9 @@ async def _create_or_update_initial(

deserialized = self._deserialize("GlobalSchemaContract", pipeline_response)

if response.status_code == 202:
response_headers["location"] = self._deserialize("str", response.headers.get("location"))

if cls:
return cls(pipeline_response, deserialized, response_headers)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,9 @@ async def _create_or_update_initial(

deserialized = self._deserialize("NamedValueContract", pipeline_response)

if response.status_code == 202:
response_headers["location"] = self._deserialize("str", response.headers.get("location"))

if cls:
return cls(pipeline_response, deserialized, response_headers)

Expand Down Expand Up @@ -657,6 +660,9 @@ async def _update_initial(

deserialized = self._deserialize("NamedValueContract", pipeline_response)

if response.status_code == 202:
response_headers["location"] = self._deserialize("str", response.headers.get("location"))

if cls:
return cls(pipeline_response, deserialized, response_headers)

Expand Down Expand Up @@ -1037,6 +1043,9 @@ async def _refresh_secret_initial(

deserialized = self._deserialize("NamedValueContract", pipeline_response)

if response.status_code == 202:
response_headers["location"] = self._deserialize("str", response.headers.get("location"))

if cls:
return cls(pipeline_response, deserialized, response_headers)

Expand Down
Loading