Skip to content
Merged
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
  •  
  •  
  •  
6 changes: 0 additions & 6 deletions scripts/sdk_process/patch_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,6 @@ def solve_one_model(models_module, output_folder, track2=False):
# Only sort based on the first element in the tuple
models_classes.sort(key=lambda x: x[0])

py2_models_classes = [
(len_mro, path.replace("_py3.py", ".py"), None)
for len_mro, path, _ in models_classes
]

paged_models_classes = [
(inspect.getfile(model_class), model_class) for model_name, model_class in vars(models_module).items()
if model_name[0].isupper() and Paged in model_class.__mro__
Expand All @@ -119,7 +114,6 @@ def solve_one_model(models_module, output_folder, track2=False):
enum_file_module_name = None

write_model_file(Path(output_folder, "models_py3.py"), models_classes, track2=track2)
write_model_file(Path(output_folder, "models.py"), py2_models_classes, track2=track2)
write_paging_file(Path(output_folder, "paged_models.py"), paged_models_classes)
write_init(
Path(output_folder, "__init__.py"),
Expand Down
2 changes: 1 addition & 1 deletion src/azure-cli-core/azure/cli/core/profiles/_shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def default_api_version(self):
AZURE_API_PROFILES = {
'latest': {
ResourceType.MGMT_STORAGE: '2021-01-01',
ResourceType.MGMT_NETWORK: '2020-07-01',
ResourceType.MGMT_NETWORK: '2020-08-01',
ResourceType.MGMT_COMPUTE: SDKProfile('2020-06-01', {
'resource_skus': '2019-04-01',
'disks': '2020-09-30',
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"Color": "Red",
"Region": "West US",
"feature_management": {
"FeatureManagement": {
"Beta": false,
"Percentage": true,
"Timestamp": {
"enabled_for": [
"EnabledFor": [
{
"Name": "Local Tests",
"Parameters": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ interactions:
User-Agent:
- AZURECLI/2.19.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.7.7 (Windows-10-10.0.19041-SP0)
method: PUT
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-nwr000005?api-version=2020-07-01
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-nwr000005?api-version=2020-08-01
response:
body:
string: "{\r\n \"name\": \"cli-vnet-nwr000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-nwr000005\",\r\n
Expand All @@ -707,7 +707,7 @@ interactions:
azure-asyncnotification:
- Enabled
azure-asyncoperation:
- https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/japanwest/operations/b478595c-64f5-4bdb-8f6e-247bc26335b3?api-version=2020-07-01
- https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/japanwest/operations/b478595c-64f5-4bdb-8f6e-247bc26335b3?api-version=2020-08-01
cache-control:
- no-cache
content-length:
Expand Down Expand Up @@ -750,7 +750,7 @@ interactions:
User-Agent:
- AZURECLI/2.19.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.7.7 (Windows-10-10.0.19041-SP0)
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/japanwest/operations/b478595c-64f5-4bdb-8f6e-247bc26335b3?api-version=2020-07-01
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/japanwest/operations/b478595c-64f5-4bdb-8f6e-247bc26335b3?api-version=2020-08-01
response:
body:
string: "{\r\n \"status\": \"Succeeded\"\r\n}"
Expand Down Expand Up @@ -799,7 +799,7 @@ interactions:
User-Agent:
- AZURECLI/2.19.1 azsdk-python-azure-mgmt-network/17.0.0 Python/3.7.7 (Windows-10-10.0.19041-SP0)
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-nwr000005?api-version=2020-07-01
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-nwr000005?api-version=2020-08-01
response:
body:
string: "{\r\n \"name\": \"cli-vnet-nwr000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-nwr000005\",\r\n
Expand Down
Loading