Skip to content

Commit db40908

Browse files
author
SDKAuto
committed
CodeGen from PR 14073 in Azure/azure-rest-api-specs
Merge bb2932a8b3cf727a88c736bfe127b4337141fe1d into f5fb710
1 parent d64d8c5 commit db40908

18 files changed

+170
-75
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"autorest": "3.0.6369",
3-
"use": "@autorest/[email protected].2",
4-
"commit": "44cd436a26f7ba25bdaae13ed98866c3543a522c",
2+
"autorest": "3.4.2",
3+
"use": "@autorest/[email protected].6",
4+
"commit": "c6921b27ac6d8d3525f03bb0230f362717e2abeb",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
6-
"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/[email protected].2 --version=3.0.6369",
6+
"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/[email protected].6 --version=3.4.2",
77
"readme": "specification/appplatform/resource-manager/readme.md"
88
}

sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/_app_platform_management_client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
from typing import Any, Optional
2424

2525
from azure.core.credentials import TokenCredential
26+
from azure.core.pipeline.transport import HttpRequest, HttpResponse
2627

2728
class _SDKClient(object):
2829
def __init__(self, *args, **kwargs):

sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/aio/_app_platform_management_client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
from typing import Any, Optional, TYPE_CHECKING
1313

14+
from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest
1415
from azure.mgmt.core import AsyncARMPipelineClient
1516
from azure.profiles import KnownProfiles, ProfileDefinition
1617
from azure.profiles.multiapiclient import MultiApiClientMixin

sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/v2019_05_01_preview/_app_platform_management_client.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
from typing import Any, Optional
1717

1818
from azure.core.credentials import TokenCredential
19+
from azure.core.pipeline.transport import HttpRequest, HttpResponse
1920

2021
from ._configuration import AppPlatformManagementClientConfiguration
2122
from .operations import ServicesOperations
@@ -96,6 +97,24 @@ def __init__(
9697
self.sku = SkuOperations(
9798
self._client, self._config, self._serialize, self._deserialize)
9899

100+
def _send_request(self, http_request, **kwargs):
101+
# type: (HttpRequest, Any) -> HttpResponse
102+
"""Runs the network request through the client's chained policies.
103+
104+
:param http_request: The network request you want to make. Required.
105+
:type http_request: ~azure.core.pipeline.transport.HttpRequest
106+
:keyword bool stream: Whether the response payload will be streamed. Defaults to True.
107+
:return: The response of your network call. Does not do error handling on your response.
108+
:rtype: ~azure.core.pipeline.transport.HttpResponse
109+
"""
110+
path_format_arguments = {
111+
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
112+
}
113+
http_request.url = self._client.format_url(http_request.url, **path_format_arguments)
114+
stream = kwargs.pop("stream", True)
115+
pipeline_response = self._client._pipeline.run(http_request, stream=stream, **kwargs)
116+
return pipeline_response.http_response
117+
99118
def close(self):
100119
# type: () -> None
101120
self._client.close()

sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/v2019_05_01_preview/_metadata.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"azure_arm": true,
1111
"has_lro_operations": true,
1212
"client_side_validation": false,
13-
"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\"]}}}",
14-
"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\"]}}}"
13+
"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\"]}}}",
14+
"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\"]}}}"
1515
},
1616
"global_parameters": {
1717
"sync": {
@@ -107,11 +107,5 @@
107107
"operations": "Operations",
108108
"runtime_versions": "RuntimeVersionsOperations",
109109
"sku": "SkuOperations"
110-
},
111-
"operation_mixins": {
112-
"sync_imports": "None",
113-
"async_imports": "None",
114-
"operations": {
115-
}
116110
}
117111
}

sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/v2019_05_01_preview/aio/_app_platform_management_client.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
from typing import Any, Optional, TYPE_CHECKING
1010

11+
from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest
1112
from azure.mgmt.core import AsyncARMPipelineClient
1213
from msrest import Deserializer, Serializer
1314

@@ -93,6 +94,23 @@ def __init__(
9394
self.sku = SkuOperations(
9495
self._client, self._config, self._serialize, self._deserialize)
9596

97+
async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse:
98+
"""Runs the network request through the client's chained policies.
99+
100+
:param http_request: The network request you want to make. Required.
101+
:type http_request: ~azure.core.pipeline.transport.HttpRequest
102+
:keyword bool stream: Whether the response payload will be streamed. Defaults to True.
103+
:return: The response of your network call. Does not do error handling on your response.
104+
:rtype: ~azure.core.pipeline.transport.AsyncHttpResponse
105+
"""
106+
path_format_arguments = {
107+
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
108+
}
109+
http_request.url = self._client.format_url(http_request.url, **path_format_arguments)
110+
stream = kwargs.pop("stream", True)
111+
pipeline_response = await self._client._pipeline.run(http_request, stream=stream, **kwargs)
112+
return pipeline_response.http_response
113+
96114
async def close(self) -> None:
97115
await self._client.close()
98116

sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/v2019_05_01_preview/models/_models.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def __init__(
199199
self.provisioning_state = None
200200
self.active_deployment_name = kwargs.get('active_deployment_name', None)
201201
self.fqdn = kwargs.get('fqdn', None)
202-
self.https_only = kwargs.get('https_only', None)
202+
self.https_only = kwargs.get('https_only', False)
203203
self.created_time = None
204204
self.temporary_disk = kwargs.get('temporary_disk', None)
205205
self.persistent_disk = kwargs.get('persistent_disk', None)
@@ -329,7 +329,7 @@ class BindingResourceProperties(msrest.serialization.Model):
329329
:param key: The key of the bound resource.
330330
:type key: str
331331
:param binding_parameters: Binding parameters of the Binding resource.
332-
:type binding_parameters: dict[str, object]
332+
:type binding_parameters: dict[str, str]
333333
:ivar generated_properties: The generated Spring Boot property file for this binding. The
334334
secret will be deducted.
335335
:vartype generated_properties: str
@@ -352,7 +352,7 @@ class BindingResourceProperties(msrest.serialization.Model):
352352
'resource_type': {'key': 'resourceType', 'type': 'str'},
353353
'resource_id': {'key': 'resourceId', 'type': 'str'},
354354
'key': {'key': 'key', 'type': 'str'},
355-
'binding_parameters': {'key': 'bindingParameters', 'type': '{object}'},
355+
'binding_parameters': {'key': 'bindingParameters', 'type': '{str}'},
356356
'generated_properties': {'key': 'generatedProperties', 'type': 'str'},
357357
'created_at': {'key': 'createdAt', 'type': 'str'},
358358
'updated_at': {'key': 'updatedAt', 'type': 'str'},
@@ -1034,7 +1034,7 @@ class DeploymentSettings(msrest.serialization.Model):
10341034
:param environment_variables: Collection of environment variables.
10351035
:type environment_variables: dict[str, str]
10361036
:param runtime_version: Runtime version. Possible values include: "Java_8", "Java_11",
1037-
"NetCore_31".
1037+
"NetCore_31". Default value: "Java_8".
10381038
:type runtime_version: str or ~azure.mgmt.appplatform.v2019_05_01_preview.models.RuntimeVersion
10391039
"""
10401040

@@ -1059,7 +1059,7 @@ def __init__(
10591059
self.net_core_main_entry_path = kwargs.get('net_core_main_entry_path', None)
10601060
self.instance_count = kwargs.get('instance_count', 1)
10611061
self.environment_variables = kwargs.get('environment_variables', None)
1062-
self.runtime_version = kwargs.get('runtime_version', None)
1062+
self.runtime_version = kwargs.get('runtime_version', "Java_8")
10631063

10641064

10651065
class Error(msrest.serialization.Model):
@@ -2222,8 +2222,8 @@ class UserSourceInfo(msrest.serialization.Model):
22222222
:type relative_path: str
22232223
:param version: Version of the source.
22242224
:type version: str
2225-
:param artifact_selector: Selector for the artifact to be used for the deployment for multi-
2226-
module projects. This should be
2225+
:param artifact_selector: Selector for the artifact to be used for the deployment for
2226+
multi-module projects. This should be
22272227
the relative path to the target module/project.
22282228
:type artifact_selector: str
22292229
"""

sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/v2019_05_01_preview/models/_models_py3.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def __init__(
206206
public: Optional[bool] = None,
207207
active_deployment_name: Optional[str] = None,
208208
fqdn: Optional[str] = None,
209-
https_only: Optional[bool] = None,
209+
https_only: Optional[bool] = False,
210210
temporary_disk: Optional["TemporaryDisk"] = None,
211211
persistent_disk: Optional["PersistentDisk"] = None,
212212
**kwargs
@@ -355,7 +355,7 @@ class BindingResourceProperties(msrest.serialization.Model):
355355
:param key: The key of the bound resource.
356356
:type key: str
357357
:param binding_parameters: Binding parameters of the Binding resource.
358-
:type binding_parameters: dict[str, object]
358+
:type binding_parameters: dict[str, str]
359359
:ivar generated_properties: The generated Spring Boot property file for this binding. The
360360
secret will be deducted.
361361
:vartype generated_properties: str
@@ -378,7 +378,7 @@ class BindingResourceProperties(msrest.serialization.Model):
378378
'resource_type': {'key': 'resourceType', 'type': 'str'},
379379
'resource_id': {'key': 'resourceId', 'type': 'str'},
380380
'key': {'key': 'key', 'type': 'str'},
381-
'binding_parameters': {'key': 'bindingParameters', 'type': '{object}'},
381+
'binding_parameters': {'key': 'bindingParameters', 'type': '{str}'},
382382
'generated_properties': {'key': 'generatedProperties', 'type': 'str'},
383383
'created_at': {'key': 'createdAt', 'type': 'str'},
384384
'updated_at': {'key': 'updatedAt', 'type': 'str'},
@@ -389,7 +389,7 @@ def __init__(
389389
*,
390390
resource_id: Optional[str] = None,
391391
key: Optional[str] = None,
392-
binding_parameters: Optional[Dict[str, object]] = None,
392+
binding_parameters: Optional[Dict[str, str]] = None,
393393
**kwargs
394394
):
395395
super(BindingResourceProperties, self).__init__(**kwargs)
@@ -1120,7 +1120,7 @@ class DeploymentSettings(msrest.serialization.Model):
11201120
:param environment_variables: Collection of environment variables.
11211121
:type environment_variables: dict[str, str]
11221122
:param runtime_version: Runtime version. Possible values include: "Java_8", "Java_11",
1123-
"NetCore_31".
1123+
"NetCore_31". Default value: "Java_8".
11241124
:type runtime_version: str or ~azure.mgmt.appplatform.v2019_05_01_preview.models.RuntimeVersion
11251125
"""
11261126

@@ -1143,7 +1143,7 @@ def __init__(
11431143
net_core_main_entry_path: Optional[str] = None,
11441144
instance_count: Optional[int] = 1,
11451145
environment_variables: Optional[Dict[str, str]] = None,
1146-
runtime_version: Optional[Union[str, "RuntimeVersion"]] = None,
1146+
runtime_version: Optional[Union[str, "RuntimeVersion"]] = "Java_8",
11471147
**kwargs
11481148
):
11491149
super(DeploymentSettings, self).__init__(**kwargs)
@@ -2459,8 +2459,8 @@ class UserSourceInfo(msrest.serialization.Model):
24592459
:type relative_path: str
24602460
:param version: Version of the source.
24612461
:type version: str
2462-
:param artifact_selector: Selector for the artifact to be used for the deployment for multi-
2463-
module projects. This should be
2462+
:param artifact_selector: Selector for the artifact to be used for the deployment for
2463+
multi-module projects. This should be
24642464
the relative path to the target module/project.
24652465
:type artifact_selector: str
24662466
"""

sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/v2020_07_01/_app_platform_management_client.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
from typing import Any, Optional
1717

1818
from azure.core.credentials import TokenCredential
19+
from azure.core.pipeline.transport import HttpRequest, HttpResponse
1920

2021
from ._configuration import AppPlatformManagementClientConfiguration
2122
from .operations import ServicesOperations
@@ -106,6 +107,24 @@ def __init__(
106107
self.skus = SkusOperations(
107108
self._client, self._config, self._serialize, self._deserialize)
108109

110+
def _send_request(self, http_request, **kwargs):
111+
# type: (HttpRequest, Any) -> HttpResponse
112+
"""Runs the network request through the client's chained policies.
113+
114+
:param http_request: The network request you want to make. Required.
115+
:type http_request: ~azure.core.pipeline.transport.HttpRequest
116+
:keyword bool stream: Whether the response payload will be streamed. Defaults to True.
117+
:return: The response of your network call. Does not do error handling on your response.
118+
:rtype: ~azure.core.pipeline.transport.HttpResponse
119+
"""
120+
path_format_arguments = {
121+
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
122+
}
123+
http_request.url = self._client.format_url(http_request.url, **path_format_arguments)
124+
stream = kwargs.pop("stream", True)
125+
pipeline_response = self._client._pipeline.run(http_request, stream=stream, **kwargs)
126+
return pipeline_response.http_response
127+
109128
def close(self):
110129
# type: () -> None
111130
self._client.close()

sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/v2020_07_01/_metadata.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"azure_arm": true,
1111
"has_lro_operations": true,
1212
"client_side_validation": false,
13-
"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\"]}}}",
14-
"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\"]}}}"
13+
"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\"]}}}",
14+
"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\"]}}}"
1515
},
1616
"global_parameters": {
1717
"sync": {
@@ -109,11 +109,5 @@
109109
"operations": "Operations",
110110
"runtime_versions": "RuntimeVersionsOperations",
111111
"skus": "SkusOperations"
112-
},
113-
"operation_mixins": {
114-
"sync_imports": "None",
115-
"async_imports": "None",
116-
"operations": {
117-
}
118112
}
119113
}

0 commit comments

Comments
 (0)