Skip to content
Draft
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
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ def main(generate_input, generate_output):
changelog_generation_start_time = time.time()
try:
if data.get("enableChangelog", True):
md_output = execute_func_with_timeout(change_log_func)
md_output = execute_func_with_timeout(change_log_func, timeout=3600)
else:
md_output = "skip changelog generation"
except multiprocessing.TimeoutError:
Expand Down
211 changes: 211 additions & 0 deletions sdk/compute/azure-mgmt-compute/CHANGELOG.md

Large diffs are not rendered by default.

12 changes: 4 additions & 8 deletions sdk/compute/azure-mgmt-compute/_metadata.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
{
"commit": "3ed4c07ba75ceba9b01d5cf2e4bed0ea988d3c52",
"apiVersion": "2025-04-01",
"commit": "0c8dc3a0a993706e0847f04332ea307a8144ae40",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.10.2",
"use": [
"@autorest/python@6.40.0",
"@autorest/modelerfour@4.27.0"
],
"autorest_command": "autorest specification/compute/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --package-mode=azure-mgmt --python --python-sdks-folder=/mnt/vss/_work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.40.0 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False",
"readme": "specification/compute/resource-manager/readme.md"
"typespec_src": "specification/compute/Combine.Management",
"emitterVersion": "0.52.1"
}
2,433 changes: 1,177 additions & 1,256 deletions sdk/compute/azure-mgmt-compute/apiview-properties.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# --------------------------------------------------------------------------
# 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.
# Code generated by Microsoft (R) Python Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
# pylint: disable=wrong-import-position
Expand All @@ -12,7 +12,7 @@
if TYPE_CHECKING:
from ._patch import * # pylint: disable=unused-wildcard-import

from ._compute_management_client import ComputeManagementClient # type: ignore
from ._client import ComputeClient # type: ignore
from ._version import VERSION

__version__ = VERSION
Expand All @@ -25,7 +25,7 @@
from ._patch import patch_sdk as _patch_sdk

__all__ = [
"ComputeManagementClient",
"ComputeClient",
]
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore

Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# --------------------------------------------------------------------------
# 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.
# Code generated by Microsoft (R) Python Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

Expand All @@ -18,36 +18,46 @@
from azure.core.credentials import TokenCredential


class ComputeManagementClientConfiguration: # pylint: disable=too-many-instance-attributes
"""Configuration for ComputeManagementClient.
class ComputeClientConfiguration: # pylint: disable=too-many-instance-attributes
"""Configuration for ComputeClient.

Note that all parameters used to create this instance are saved as instance
attributes.

:param credential: Credential needed for the client to connect to Azure. Required.
:param credential: Credential used to authenticate requests to the service. Required.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription. Required.
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
:type subscription_id: str
:param base_url: Service host. Default value is "https://management.azure.com".
:type base_url: str
:param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is
None.
:type cloud_setting: ~azure.core.AzureClouds
:keyword api_version: The API version to use for this operation. Default value is "2025-04-01".
Note that overriding this default value may result in unsupported behavior.
:paramtype api_version: str
"""

def __init__(
self,
credential: "TokenCredential",
subscription_id: str,
base_url: str = "https://management.azure.com",
cloud_setting: Optional["AzureClouds"] = None,
**kwargs: Any
) -> None:
api_version: str = kwargs.pop("api_version", "2025-04-01")

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")

self.credential = credential
self.subscription_id = subscription_id
self.base_url = base_url
self.cloud_setting = cloud_setting
self.api_version = api_version
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
kwargs.setdefault("sdk_moniker", "mgmt-compute/{}".format(VERSION))
self.polling_interval = kwargs.get("polling_interval", 30)
Expand Down
4 changes: 2 additions & 2 deletions sdk/compute/azure-mgmt-compute/azure/mgmt/compute/_patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
"""
from typing import List

__all__: List[str] = [] # Add all objects you want publicly available to users at this package level

__all__: list[str] = [] # Add all objects you want publicly available to users at this package level


def patch_sdk():
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# --------------------------------------------------------------------------
# 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.
# Code generated by Microsoft (R) Python Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
Loading
Loading