Skip to content

Commit

Permalink
CodeGen from PR 14301 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge dcc797ba0d736dfd71a0c71f74f8d26fe58fed7b into 44ee37a
  • Loading branch information
SDKAuto committed May 10, 2021
1 parent 1998f3b commit 5747972
Show file tree
Hide file tree
Showing 54 changed files with 17,577 additions and 55 deletions.
8 changes: 4 additions & 4 deletions sdk/appplatform/azure-mgmt-appplatform/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"autorest": "3.0.6369",
"use": "@autorest/python@5.6.2",
"commit": "44cd436a26f7ba25bdaae13ed98866c3543a522c",
"autorest": "3.3.0",
"use": "@autorest/python@5.6.6",
"commit": "bd0378ed8c1d031a2274897d33c0fdfad6ea679b",
"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.6.6 --version=3.3.0",
"readme": "specification/appplatform/resource-manager/readme.md"
}

Large diffs are not rendered by default.

Large diffs are not rendered by default.

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 @@ -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
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 @@ -329,7 +329,7 @@ class BindingResourceProperties(msrest.serialization.Model):
:param key: The key of the bound resource.
:type key: str
:param binding_parameters: Binding parameters of the Binding resource.
:type binding_parameters: dict[str, object]
:type binding_parameters: dict[str, str]
:ivar generated_properties: The generated Spring Boot property file for this binding. The
secret will be deducted.
:vartype generated_properties: str
Expand All @@ -352,7 +352,7 @@ class BindingResourceProperties(msrest.serialization.Model):
'resource_type': {'key': 'resourceType', 'type': 'str'},
'resource_id': {'key': 'resourceId', 'type': 'str'},
'key': {'key': 'key', 'type': 'str'},
'binding_parameters': {'key': 'bindingParameters', 'type': '{object}'},
'binding_parameters': {'key': 'bindingParameters', 'type': '{str}'},
'generated_properties': {'key': 'generatedProperties', 'type': 'str'},
'created_at': {'key': 'createdAt', 'type': 'str'},
'updated_at': {'key': 'updatedAt', 'type': 'str'},
Expand Down Expand Up @@ -2222,8 +2222,8 @@ class UserSourceInfo(msrest.serialization.Model):
:type relative_path: str
:param version: Version of the source.
:type version: str
:param artifact_selector: Selector for the artifact to be used for the deployment for multi-
module projects. This should be
:param artifact_selector: Selector for the artifact to be used for the deployment for
multi-module projects. This should be
the relative path to the target module/project.
:type artifact_selector: str
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ class BindingResourceProperties(msrest.serialization.Model):
:param key: The key of the bound resource.
:type key: str
:param binding_parameters: Binding parameters of the Binding resource.
:type binding_parameters: dict[str, object]
:type binding_parameters: dict[str, str]
:ivar generated_properties: The generated Spring Boot property file for this binding. The
secret will be deducted.
:vartype generated_properties: str
Expand All @@ -378,7 +378,7 @@ class BindingResourceProperties(msrest.serialization.Model):
'resource_type': {'key': 'resourceType', 'type': 'str'},
'resource_id': {'key': 'resourceId', 'type': 'str'},
'key': {'key': 'key', 'type': 'str'},
'binding_parameters': {'key': 'bindingParameters', 'type': '{object}'},
'binding_parameters': {'key': 'bindingParameters', 'type': '{str}'},
'generated_properties': {'key': 'generatedProperties', 'type': 'str'},
'created_at': {'key': 'createdAt', 'type': 'str'},
'updated_at': {'key': 'updatedAt', 'type': 'str'},
Expand All @@ -389,7 +389,7 @@ def __init__(
*,
resource_id: Optional[str] = None,
key: Optional[str] = None,
binding_parameters: Optional[Dict[str, object]] = None,
binding_parameters: Optional[Dict[str, str]] = None,
**kwargs
):
super(BindingResourceProperties, self).__init__(**kwargs)
Expand Down Expand Up @@ -2459,8 +2459,8 @@ class UserSourceInfo(msrest.serialization.Model):
:type relative_path: str
:param version: Version of the source.
:type version: str
:param artifact_selector: Selector for the artifact to be used for the deployment for multi-
module projects. This should be
:param artifact_selector: Selector for the artifact to be used for the deployment for
multi-module projects. This should be
the relative path to the target module/project.
:type artifact_selector: str
"""
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 @@ -106,6 +107,24 @@ def __init__(
self.skus = SkusOperations(
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 @@ -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 @@ -109,11 +109,5 @@
"operations": "Operations",
"runtime_versions": "RuntimeVersionsOperations",
"skus": "SkusOperations"
},
"operation_mixins": {
"sync_imports": "None",
"async_imports": "None",
"operations": {
}
}
}
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 @@ -103,6 +104,23 @@ def __init__(
self.skus = SkusOperations(
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 @@ -328,7 +328,7 @@ class BindingResourceProperties(msrest.serialization.Model):
:param key: The key of the bound resource.
:type key: str
:param binding_parameters: Binding parameters of the Binding resource.
:type binding_parameters: dict[str, object]
:type binding_parameters: dict[str, str]
:ivar generated_properties: The generated Spring Boot property file for this binding. The
secret will be deducted.
:vartype generated_properties: str
Expand All @@ -351,7 +351,7 @@ class BindingResourceProperties(msrest.serialization.Model):
'resource_type': {'key': 'resourceType', 'type': 'str'},
'resource_id': {'key': 'resourceId', 'type': 'str'},
'key': {'key': 'key', 'type': 'str'},
'binding_parameters': {'key': 'bindingParameters', 'type': '{object}'},
'binding_parameters': {'key': 'bindingParameters', 'type': '{str}'},
'generated_properties': {'key': 'generatedProperties', 'type': 'str'},
'created_at': {'key': 'createdAt', 'type': 'str'},
'updated_at': {'key': 'updatedAt', 'type': 'str'},
Expand Down Expand Up @@ -2311,8 +2311,8 @@ class UserSourceInfo(msrest.serialization.Model):
:type relative_path: str
:param version: Version of the source.
:type version: str
:param artifact_selector: Selector for the artifact to be used for the deployment for multi-
module projects. This should be
:param artifact_selector: Selector for the artifact to be used for the deployment for
multi-module projects. This should be
the relative path to the target module/project.
:type artifact_selector: str
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ class BindingResourceProperties(msrest.serialization.Model):
:param key: The key of the bound resource.
:type key: str
:param binding_parameters: Binding parameters of the Binding resource.
:type binding_parameters: dict[str, object]
:type binding_parameters: dict[str, str]
:ivar generated_properties: The generated Spring Boot property file for this binding. The
secret will be deducted.
:vartype generated_properties: str
Expand All @@ -377,7 +377,7 @@ class BindingResourceProperties(msrest.serialization.Model):
'resource_type': {'key': 'resourceType', 'type': 'str'},
'resource_id': {'key': 'resourceId', 'type': 'str'},
'key': {'key': 'key', 'type': 'str'},
'binding_parameters': {'key': 'bindingParameters', 'type': '{object}'},
'binding_parameters': {'key': 'bindingParameters', 'type': '{str}'},
'generated_properties': {'key': 'generatedProperties', 'type': 'str'},
'created_at': {'key': 'createdAt', 'type': 'str'},
'updated_at': {'key': 'updatedAt', 'type': 'str'},
Expand All @@ -388,7 +388,7 @@ def __init__(
*,
resource_id: Optional[str] = None,
key: Optional[str] = None,
binding_parameters: Optional[Dict[str, object]] = None,
binding_parameters: Optional[Dict[str, str]] = None,
**kwargs
):
super(BindingResourceProperties, self).__init__(**kwargs)
Expand Down Expand Up @@ -2555,8 +2555,8 @@ class UserSourceInfo(msrest.serialization.Model):
:type relative_path: str
:param version: Version of the source.
:type version: str
:param artifact_selector: Selector for the artifact to be used for the deployment for multi-
module projects. This should be
:param artifact_selector: Selector for the artifact to be used for the deployment for
multi-module projects. This should be
the relative path to the target module/project.
:type artifact_selector: str
"""
Expand Down
Loading

0 comments on commit 5747972

Please sign in to comment.