Skip to content
Open
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Release History

## 1.0.0b2 (2026-05-19)

### Features Added

- Client `WeightsAndBiasesMgmtClient` added parameter `cloud_setting` in method `__init__`

## 1.0.0 (2025-05-12)

### Other Changes
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
include _meta.json
recursive-include tests *.py *.json
recursive-include samples *.py *.md
include *.md
include azure/__init__.py
include azure/mgmt/__init__.py
include LICENSE
include azure/mgmt/weightsandbiases/py.typed
recursive-include tests *.py
recursive-include samples *.py *.md
include azure/__init__.py
include azure/mgmt/__init__.py
4 changes: 2 additions & 2 deletions sdk/weightsandbiases/azure-mgmt-weightsandbiases/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Microsoft Azure SDK for Python

This is the Microsoft Azure Weightsandbiases Management Client Library.
This package has been tested with Python 3.9+.
This package has been tested with Python 3.10+.
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).

## _Disclaimer_
Expand All @@ -12,7 +12,7 @@ _Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For

### Prerequisites

- Python 3.9+ is required to use this package.
- Python 3.10+ is required to use this package.
- [Azure subscription](https://azure.microsoft.com/free/)

### Install the package
Expand Down
6 changes: 0 additions & 6 deletions sdk/weightsandbiases/azure-mgmt-weightsandbiases/_meta.json

This file was deleted.

10 changes: 10 additions & 0 deletions sdk/weightsandbiases/azure-mgmt-weightsandbiases/_metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"apiVersion": "2024-09-18",
"apiVersions": {
"Microsoft.WeightsAndBiases": "2024-09-18"
},
"commit": "b373ded4a6c77a9f541ca8f020fd2072db632751",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"typespec_src": "specification/liftrweightsandbiases/Liftr.WeightsAndBiases.Management",
"emitterVersion": "0.62.1"
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,6 @@
"azure.mgmt.weightsandbiases.aio.operations.InstancesOperations.list_by_resource_group": "Microsoft.WeightsAndBiases.Instances.listByResourceGroup",
"azure.mgmt.weightsandbiases.operations.InstancesOperations.list_by_subscription": "Microsoft.WeightsAndBiases.Instances.listBySubscription",
"azure.mgmt.weightsandbiases.aio.operations.InstancesOperations.list_by_subscription": "Microsoft.WeightsAndBiases.Instances.listBySubscription"
}
},
"CrossLanguageVersion": "e203df9f2451"
}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
# --------------------------------------------------------------------------

from copy import deepcopy
import sys
from typing import Any, Optional, TYPE_CHECKING, cast
from typing_extensions import Self

from azure.core.pipeline import policies
from azure.core.rest import HttpRequest, HttpResponse
Expand All @@ -21,7 +21,13 @@
from ._utils.serialization import Deserializer, Serializer
from .operations import InstancesOperations, Operations

if sys.version_info >= (3, 11):
from typing import Self
else:
from typing_extensions import Self # type: ignore

if TYPE_CHECKING:
from azure.core import AzureClouds
from azure.core.credentials import TokenCredential


Expand All @@ -38,18 +44,28 @@ class WeightsAndBiasesMgmtClient:
:type subscription_id: str
:param base_url: Service host. Default value is None.
:type base_url: str
:keyword api_version: The API version to use for this operation. Default value is "2024-09-18".
:keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is
None.
:paramtype cloud_setting: ~azure.core.AzureClouds
:keyword api_version: The API version to use for this operation. Known values are "2024-09-18"
and None. Default value is None. If not set, the operation's default API version will be used.
Note that overriding this default value may result in unsupported behavior.
:paramtype api_version: str
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
Retry-After header is present.
"""

def __init__(
self, credential: "TokenCredential", subscription_id: str, base_url: Optional[str] = None, **kwargs: Any
self,
credential: "TokenCredential",
subscription_id: str,
base_url: Optional[str] = None,
*,
cloud_setting: Optional["AzureClouds"] = None,
**kwargs: Any
) -> None:
_endpoint = "{endpoint}"
_cloud = kwargs.pop("cloud_setting", None) or settings.current.azure_cloud # type: ignore
_cloud = cloud_setting or settings.current.azure_cloud # type: ignore
_endpoints = get_arm_endpoints(_cloud)
if not base_url:
base_url = _endpoints["resource_manager"]
Expand All @@ -58,6 +74,7 @@ def __init__(
credential=credential,
subscription_id=subscription_id,
base_url=cast(str, base_url),
cloud_setting=cloud_setting,
credential_scopes=credential_scopes,
**kwargs
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

from typing import Any, TYPE_CHECKING
from typing import Any, Optional, TYPE_CHECKING

from azure.core.pipeline import policies
from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy

from ._version import VERSION

if TYPE_CHECKING:
from azure.core import AzureClouds
from azure.core.credentials import TokenCredential


Expand All @@ -29,7 +30,11 @@ class WeightsAndBiasesMgmtClientConfiguration: # pylint: disable=too-many-insta
:type subscription_id: str
:param base_url: Service host. Default value is "https://management.azure.com".
:type base_url: str
:keyword api_version: The API version to use for this operation. Default value is "2024-09-18".
: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. Known values are "2024-09-18"
and None. Default value is None. If not set, the operation's default API version will be used.
Note that overriding this default value may result in unsupported behavior.
Comment on lines +36 to 38
:paramtype api_version: str
"""
Expand All @@ -39,6 +44,7 @@ def __init__(
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", "2024-09-18")
Expand All @@ -51,6 +57,7 @@ def __init__(
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-weightsandbiases/{}".format(VERSION))
Expand Down
Loading