Skip to content

Commit

Permalink
[AutoRelease] t2-appplatform-2021-07-09-19792 (#19735)
Browse files Browse the repository at this point in the history
* CodeGen from PR 15001 in Azure/azure-rest-api-specs
[python]track2 config (#15001)

* track2 config

* directive for required type in readme.python.md

* Update readme.md

* Update readme.python.md

* Update readme.python.md

* version,CHANGELOG

Co-authored-by: SDKAuto <sdkautomation@microsoft.com>
Co-authored-by: PythonSdkPipelines <PythonSdkPipelines>
  • Loading branch information
Azure CLI Bot and SDKAuto authored Jul 9, 2021
1 parent a3f454d commit f849ccf
Show file tree
Hide file tree
Showing 119 changed files with 18,305 additions and 534 deletions.
8 changes: 8 additions & 0 deletions sdk/appplatform/azure-mgmt-appplatform/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Release History

## 6.1.0 (2021-07-09)

**Features**

- Model UserSourceInfo has a new parameter custom_container
- Model MetricDimension has a new parameter to_be_exported_for_shoebox
- Model DeploymentSettings has a new parameter resource_requests

## 6.0.0 (2021-04-08)

**Features**
Expand Down
11 changes: 7 additions & 4 deletions sdk/appplatform/azure-mgmt-appplatform/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{
"autorest": "3.0.6369",
"use": "@autorest/python@5.6.2",
"commit": "44cd436a26f7ba25bdaae13ed98866c3543a522c",
"autorest": "3.4.2",
"use": [
"@autorest/python@5.8.1",
"@autorest/modelerfour@4.19.2"
],
"commit": "c803720c6bcfcb0fcf4c97f3463ec33a18f9e55c",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/appplatform/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.6.2 --version=3.0.6369",
"autorest_command": "autorest specification/appplatform/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.1 --use=@autorest/modelerfour@4.19.2 --version=3.4.2",
"readme": "specification/appplatform/resource-manager/readme.md"
}

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "6.0.0"
VERSION = "6.1.0"

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
# --------------------------------------------------------------------------

from ._app_platform_management_client import AppPlatformManagementClient
from ._version import VERSION

__version__ = VERSION
__all__ = ['AppPlatformManagementClient']

try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
from typing import Any, Optional

from azure.core.credentials import TokenCredential
from azure.core.pipeline.transport import HttpRequest, HttpResponse

from ._configuration import AppPlatformManagementClientConfiguration
from .operations import ServicesOperations
Expand Down Expand Up @@ -96,6 +97,24 @@ def __init__(
self.sku = SkuOperations(
self._client, self._config, self._serialize, self._deserialize)

def _send_request(self, http_request, **kwargs):
# type: (HttpRequest, Any) -> HttpResponse
"""Runs the network request through the client's chained policies.
:param http_request: The network request you want to make. Required.
:type http_request: ~azure.core.pipeline.transport.HttpRequest
:keyword bool stream: Whether the response payload will be streamed. Defaults to True.
:return: The response of your network call. Does not do error handling on your response.
:rtype: ~azure.core.pipeline.transport.HttpResponse
"""
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
}
http_request.url = self._client.format_url(http_request.url, **path_format_arguments)
stream = kwargs.pop("stream", True)
pipeline_response = self._client._pipeline.run(http_request, stream=stream, **kwargs)
return pipeline_response.http_response

def close(self):
# type: () -> None
self._client.close()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@
from azure.core.pipeline import policies
from azure.mgmt.core.policies import ARMHttpLoggingPolicy

from ._version import VERSION

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from typing import Any

from azure.core.credentials import TokenCredential

VERSION = "unknown"

class AppPlatformManagementClientConfiguration(Configuration):
"""Configuration for AppPlatformManagementClient.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"azure_arm": true,
"has_lro_operations": true,
"client_side_validation": false,
"sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"AppPlatformManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}",
"async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"AppPlatformManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}"
"sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"AppPlatformManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"]}}}",
"async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"AppPlatformManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}"
},
"global_parameters": {
"sync": {
Expand Down Expand Up @@ -107,11 +107,5 @@
"operations": "Operations",
"runtime_versions": "RuntimeVersionsOperations",
"sku": "SkuOperations"
},
"operation_mixins": {
"sync_imports": "None",
"async_imports": "None",
"operations": {
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# coding=utf-8
# --------------------------------------------------------------------------
# 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.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "6.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

from typing import Any, Optional, TYPE_CHECKING

from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest
from azure.mgmt.core import AsyncARMPipelineClient
from msrest import Deserializer, Serializer

Expand Down Expand Up @@ -93,6 +94,23 @@ def __init__(
self.sku = SkuOperations(
self._client, self._config, self._serialize, self._deserialize)

async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse:
"""Runs the network request through the client's chained policies.
:param http_request: The network request you want to make. Required.
:type http_request: ~azure.core.pipeline.transport.HttpRequest
:keyword bool stream: Whether the response payload will be streamed. Defaults to True.
:return: The response of your network call. Does not do error handling on your response.
:rtype: ~azure.core.pipeline.transport.AsyncHttpResponse
"""
path_format_arguments = {
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
}
http_request.url = self._client.format_url(http_request.url, **path_format_arguments)
stream = kwargs.pop("stream", True)
pipeline_response = await self._client._pipeline.run(http_request, stream=stream, **kwargs)
return pipeline_response.http_response

async def close(self) -> None:
await self._client.close()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@
from azure.core.pipeline import policies
from azure.mgmt.core.policies import ARMHttpLoggingPolicy

from .._version import VERSION

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

VERSION = "unknown"

class AppPlatformManagementClientConfiguration(Configuration):
"""Configuration for AppPlatformManagementClient.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ async def get(
service_name: str,
app_name: str,
sync_status: Optional[str] = None,
**kwargs
**kwargs: Any
) -> "_models.AppResource":
"""Get an App and its properties.
Expand Down Expand Up @@ -117,7 +117,7 @@ async def _create_or_update_initial(
service_name: str,
app_name: str,
app_resource: "_models.AppResource",
**kwargs
**kwargs: Any
) -> "_models.AppResource":
cls = kwargs.pop('cls', None) # type: ClsType["_models.AppResource"]
error_map = {
Expand Down Expand Up @@ -176,7 +176,7 @@ async def begin_create_or_update(
service_name: str,
app_name: str,
app_resource: "_models.AppResource",
**kwargs
**kwargs: Any
) -> AsyncLROPoller["_models.AppResource"]:
"""Create a new App or update an exiting App.
Expand All @@ -191,8 +191,8 @@ async def begin_create_or_update(
:type app_resource: ~azure.mgmt.appplatform.v2019_05_01_preview.models.AppResource
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:keyword polling: By default, your polling method will be AsyncARMPolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of AsyncLROPoller that returns either AppResource or the result of cls(response)
Expand Down Expand Up @@ -252,7 +252,7 @@ async def delete(
resource_group_name: str,
service_name: str,
app_name: str,
**kwargs
**kwargs: Any
) -> None:
"""Operation to delete an App.
Expand Down Expand Up @@ -313,7 +313,7 @@ async def _update_initial(
service_name: str,
app_name: str,
app_resource: "_models.AppResource",
**kwargs
**kwargs: Any
) -> "_models.AppResource":
cls = kwargs.pop('cls', None) # type: ClsType["_models.AppResource"]
error_map = {
Expand Down Expand Up @@ -372,7 +372,7 @@ async def begin_update(
service_name: str,
app_name: str,
app_resource: "_models.AppResource",
**kwargs
**kwargs: Any
) -> AsyncLROPoller["_models.AppResource"]:
"""Operation to update an exiting App.
Expand All @@ -387,8 +387,8 @@ async def begin_update(
:type app_resource: ~azure.mgmt.appplatform.v2019_05_01_preview.models.AppResource
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
False for no polling, or your own initialized polling object for a personal polling strategy.
:keyword polling: By default, your polling method will be AsyncARMPolling.
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
:return: An instance of AsyncLROPoller that returns either AppResource or the result of cls(response)
Expand Down Expand Up @@ -447,7 +447,7 @@ def list(
self,
resource_group_name: str,
service_name: str,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.AppResourceCollection"]:
"""Handles requests to list all resources in a Service.
Expand Down Expand Up @@ -523,7 +523,7 @@ async def get_resource_upload_url(
resource_group_name: str,
service_name: str,
app_name: str,
**kwargs
**kwargs: Any
) -> "_models.ResourceUploadDefinition":
"""Get an resource upload URL for an App, which may be artifacts or source archive.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ async def get(
service_name: str,
app_name: str,
binding_name: str,
**kwargs
**kwargs: Any
) -> "_models.BindingResource":
"""Get a Binding and its properties.
Expand Down Expand Up @@ -115,7 +115,7 @@ async def create_or_update(
app_name: str,
binding_name: str,
binding_resource: "_models.BindingResource",
**kwargs
**kwargs: Any
) -> "_models.BindingResource":
"""Create a new Binding or update an exiting Binding.
Expand Down Expand Up @@ -189,7 +189,7 @@ async def delete(
service_name: str,
app_name: str,
binding_name: str,
**kwargs
**kwargs: Any
) -> None:
"""Operation to delete a Binding.
Expand Down Expand Up @@ -254,7 +254,7 @@ async def update(
app_name: str,
binding_name: str,
binding_resource: "_models.BindingResource",
**kwargs
**kwargs: Any
) -> "_models.BindingResource":
"""Operation to update an exiting Binding.
Expand Down Expand Up @@ -327,7 +327,7 @@ def list(
resource_group_name: str,
service_name: str,
app_name: str,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.BindingResourceCollection"]:
"""Handles requests to list all resources in an App.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ async def get(
resource_group_name: str,
service_name: str,
certificate_name: str,
**kwargs
**kwargs: Any
) -> "_models.CertificateResource":
"""Get the certificate resource.
Expand Down Expand Up @@ -110,7 +110,7 @@ async def create_or_update(
service_name: str,
certificate_name: str,
certificate_resource: "_models.CertificateResource",
**kwargs
**kwargs: Any
) -> "_models.CertificateResource":
"""Create or update certificate resource.
Expand Down Expand Up @@ -180,7 +180,7 @@ async def delete(
resource_group_name: str,
service_name: str,
certificate_name: str,
**kwargs
**kwargs: Any
) -> None:
"""Delete the certificate resource.
Expand Down Expand Up @@ -239,7 +239,7 @@ def list(
self,
resource_group_name: str,
service_name: str,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.CertificateResourceCollection"]:
"""List all the certificates of one user.
Expand Down
Loading

0 comments on commit f849ccf

Please sign in to comment.