Skip to content

Commit dc457f4

Browse files
Azure CLI BotSDKAutomsyycRAY-316
authored
[AutoRelease] t2-hdinsight-2021-06-03-89174 (Azure#19070)
* CodeGen from PR 14604 in Azure/azure-rest-api-specs Hdinsight t2 config (Azure#14604) * sql t2 readme config * readme config * Update readme.python.md * conflient resolve * readme t2 config * modelerfour config * Update readme.python.md Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com> * version,CHANGELOG * test * test config Co-authored-by: SDKAuto <sdkautomation@microsoft.com> Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com> Co-authored-by: PythonSdkPipelines <PythonSdkPipelines> Co-authored-by: Zed Lei <59104634+RAY-316@users.noreply.github.com> Co-authored-by: Zed <601306339@qq.com>
1 parent 83ea4d1 commit dc457f4

File tree

44 files changed

+3955
-17850
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+3955
-17850
lines changed

sdk/hdinsight/azure-mgmt-hdinsight/CHANGELOG.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,50 @@
11
# Release History
22

3+
## 8.0.0 (2021-06-03)
4+
5+
**Features**
6+
7+
- Model Role has a new parameter encrypt_data_disks
8+
- Model Role has a new parameter vm_group_name
9+
- Model VmSizeCompatibilityFilter has a new parameter esp_applied
10+
- Model VmSizeCompatibilityFilter has a new parameter os_type
11+
- Model VmSizeCompatibilityFilter has a new parameter vm_sizes
12+
- Model VmSizeCompatibilityFilter has a new parameter compute_isolation_supported
13+
- Model ClusterGetProperties has a new parameter cluster_hdp_version
14+
- Model ClusterGetProperties has a new parameter excluded_services_config
15+
- Model ClusterGetProperties has a new parameter storage_profile
16+
- Model Operation has a new parameter properties
17+
- Model StorageAccount has a new parameter saskey
18+
- Model StorageAccount has a new parameter fileshare
19+
- Model CapabilitiesResult has a new parameter vmsizes
20+
- Model CapabilitiesResult has a new parameter vmsize_filters
21+
- Model ConnectivityEndpoint has a new parameter private_ip_address
22+
- Model ApplicationGetEndpoint has a new parameter private_ip_address
23+
- Model BillingResponseListResult has a new parameter vm_sizes_with_encryption_at_host
24+
- Model BillingResponseListResult has a new parameter vm_size_properties
25+
- Model OperationDisplay has a new parameter description
26+
- Model ApplicationGetHttpsEndpoint has a new parameter private_ip_address
27+
- Model ComponentsC51Ht8SchemasClusteridentityPropertiesUserassignedidentitiesAdditionalproperties has a new parameter tenant_id
28+
- Model KafkaRestProperties has a new parameter configuration_override
29+
- Added operation VirtualMachinesOperations.get_async_operation_status
30+
- Added operation ApplicationsOperations.get_azure_async_operation_status
31+
- Added operation LocationsOperations.get_azure_async_operation_status
32+
- Added operation LocationsOperations.check_name_availability
33+
- Added operation LocationsOperations.validate_cluster_create_request
34+
- Added operation ExtensionsOperations.get_azure_async_operation_status
35+
- Added operation ExtensionsOperations.get_azure_monitor_status
36+
- Added operation ExtensionsOperations.begin_disable_azure_monitor
37+
- Added operation ExtensionsOperations.begin_enable_azure_monitor
38+
- Added operation ClustersOperations.get_azure_async_operation_status
39+
- Added operation ClustersOperations.begin_update_identity_certificate
40+
- Added operation ScriptActionsOperations.get_execution_async_operation_status
41+
42+
**Breaking changes**
43+
44+
- Model VmSizeCompatibilityFilter no longer has parameter vmsizes
45+
- Model CapabilitiesResult no longer has parameter vm_size_filters
46+
- Model CapabilitiesResult no longer has parameter vm_sizes
47+
348
## 7.0.0 (2020-12-18)
449

550
**Features**

sdk/hdinsight/azure-mgmt-hdinsight/MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
include _meta.json
12
recursive-include tests *.py *.yaml
23
include *.md
34
include azure/__init__.py
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"autorest": "3.4.2",
3+
"use": [
4+
"@autorest/python@5.8.0",
5+
"@autorest/modelerfour@4.19.2"
6+
],
7+
"commit": "6a38cb16662cd02a3659665f9242d5ce011e032e",
8+
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
9+
"autorest_command": "autorest specification/hdinsight/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.0 --use=@autorest/modelerfour@4.19.2 --version=3.4.2",
10+
"readme": "specification/hdinsight/resource-manager/readme.md"
11+
}

sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/_hd_insight_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 HDInsightManagementClientConfiguration
2122
from .operations import ClustersOperations
@@ -96,6 +97,24 @@ def __init__(
9697
self.virtual_machines = VirtualMachinesOperations(
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()
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
{
2+
"chosen_version": "2018-06-01-preview",
3+
"total_api_version_list": ["2018-06-01-preview"],
4+
"client": {
5+
"name": "HDInsightManagementClient",
6+
"filename": "_hd_insight_management_client",
7+
"description": "HDInsight Management Client.",
8+
"base_url": "\u0027https://management.azure.com\u0027",
9+
"custom_base_url": null,
10+
"azure_arm": true,
11+
"has_lro_operations": true,
12+
"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\": [\"HDInsightManagementClientConfiguration\"]}}, \"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\": [\"HDInsightManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}"
15+
},
16+
"global_parameters": {
17+
"sync": {
18+
"credential": {
19+
"signature": "credential, # type: \"TokenCredential\"",
20+
"description": "Credential needed for the client to connect to Azure.",
21+
"docstring_type": "~azure.core.credentials.TokenCredential",
22+
"required": true
23+
},
24+
"subscription_id": {
25+
"signature": "subscription_id, # type: str",
26+
"description": "The subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.",
27+
"docstring_type": "str",
28+
"required": true
29+
}
30+
},
31+
"async": {
32+
"credential": {
33+
"signature": "credential: \"AsyncTokenCredential\",",
34+
"description": "Credential needed for the client to connect to Azure.",
35+
"docstring_type": "~azure.core.credentials_async.AsyncTokenCredential",
36+
"required": true
37+
},
38+
"subscription_id": {
39+
"signature": "subscription_id: str,",
40+
"description": "The subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.",
41+
"docstring_type": "str",
42+
"required": true
43+
}
44+
},
45+
"constant": {
46+
},
47+
"call": "credential, subscription_id",
48+
"service_client_specific": {
49+
"sync": {
50+
"api_version": {
51+
"signature": "api_version=None, # type: Optional[str]",
52+
"description": "API version to use if no profile is provided, or if missing in profile.",
53+
"docstring_type": "str",
54+
"required": false
55+
},
56+
"base_url": {
57+
"signature": "base_url=None, # type: Optional[str]",
58+
"description": "Service URL",
59+
"docstring_type": "str",
60+
"required": false
61+
},
62+
"profile": {
63+
"signature": "profile=KnownProfiles.default, # type: KnownProfiles",
64+
"description": "A profile definition, from KnownProfiles to dict.",
65+
"docstring_type": "azure.profiles.KnownProfiles",
66+
"required": false
67+
}
68+
},
69+
"async": {
70+
"api_version": {
71+
"signature": "api_version: Optional[str] = None,",
72+
"description": "API version to use if no profile is provided, or if missing in profile.",
73+
"docstring_type": "str",
74+
"required": false
75+
},
76+
"base_url": {
77+
"signature": "base_url: Optional[str] = None,",
78+
"description": "Service URL",
79+
"docstring_type": "str",
80+
"required": false
81+
},
82+
"profile": {
83+
"signature": "profile: KnownProfiles = KnownProfiles.default,",
84+
"description": "A profile definition, from KnownProfiles to dict.",
85+
"docstring_type": "azure.profiles.KnownProfiles",
86+
"required": false
87+
}
88+
}
89+
}
90+
},
91+
"config": {
92+
"credential": true,
93+
"credential_scopes": ["https://management.azure.com/.default"],
94+
"credential_default_policy_type": "BearerTokenCredentialPolicy",
95+
"credential_default_policy_type_has_async_version": true,
96+
"credential_key_header_name": null,
97+
"sync_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMHttpLoggingPolicy\"]}, \"local\": {\"._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}}",
98+
"async_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMHttpLoggingPolicy\"]}, \"local\": {\".._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}}"
99+
},
100+
"operation_groups": {
101+
"clusters": "ClustersOperations",
102+
"applications": "ApplicationsOperations",
103+
"locations": "LocationsOperations",
104+
"configurations": "ConfigurationsOperations",
105+
"extensions": "ExtensionsOperations",
106+
"script_actions": "ScriptActionsOperations",
107+
"script_execution_history": "ScriptExecutionHistoryOperations",
108+
"operations": "Operations",
109+
"virtual_machines": "VirtualMachinesOperations"
110+
}
111+
}

sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "7.0.0"
9+
VERSION = "8.0.0"

sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/aio/_hd_insight_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.virtual_machines = VirtualMachinesOperations(
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

0 commit comments

Comments
 (0)