Skip to content
Closed
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
6 changes: 6 additions & 0 deletions sdk/weightsandbiases/azure-mgmt-weightsandbiases/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Release History

## 1.0.0 (2025-05-09)

### Features Added

- Method `InstanceProperties.__init__` has a new overload `def __init__(self: None, marketplace: _models.MarketplaceDetails, user: _models.UserDetails, partner_properties: _models.PartnerProperties, single_sign_on_properties: Optional[_models.SingleSignOnPropertiesV2])`

## 1.0.0b1 (2025-03-31)

### Other Changes
Expand Down
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.8+.
This package has been tested with Python 3.9+.
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.8+ is required to use this package.
- Python 3.9+ is required to use this package.
- [Azure subscription](https://azure.microsoft.com/free/)

### Install the package
Expand Down
4 changes: 2 additions & 2 deletions sdk/weightsandbiases/azure-mgmt-weightsandbiases/_meta.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"commit": "1b47f62ee9da78db7e011c709c48ecd700095a5a",
"commit": "85751d3c78d7ac6d5308c3bf9403bce6e761294d",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"typespec_src": "specification/liftrweightsandbiases/Liftr.WeightsAndBiases.Management",
"@azure-tools/typespec-python": "0.41.0"
"@azure-tools/typespec-python": "0.44.2"
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,19 @@
"azure.mgmt.weightsandbiases.models.SingleSignOnType": "LiftrBase.SingleSignOnType",
"azure.mgmt.weightsandbiases.models.SingleSignOnStates": "LiftrBase.SingleSignOnStates",
"azure.mgmt.weightsandbiases.models.ManagedServiceIdentityType": "Azure.ResourceManager.CommonTypes.ManagedServiceIdentityType",
"azure.mgmt.weightsandbiases.WeightsAndBiasesMgmtClient.operations.list": "Azure.ResourceManager.Operations.list",
"azure.mgmt.weightsandbiases.WeightsAndBiasesMgmtClient.instances.get": "Microsoft.WeightsAndBiases.Instances.get",
"azure.mgmt.weightsandbiases.WeightsAndBiasesMgmtClient.instances.begin_create_or_update": "Microsoft.WeightsAndBiases.Instances.createOrUpdate",
"azure.mgmt.weightsandbiases.WeightsAndBiasesMgmtClient.instances.update": "Microsoft.WeightsAndBiases.Instances.update",
"azure.mgmt.weightsandbiases.WeightsAndBiasesMgmtClient.instances.begin_delete": "Microsoft.WeightsAndBiases.Instances.delete",
"azure.mgmt.weightsandbiases.WeightsAndBiasesMgmtClient.instances.list_by_resource_group": "Microsoft.WeightsAndBiases.Instances.listByResourceGroup",
"azure.mgmt.weightsandbiases.WeightsAndBiasesMgmtClient.instances.list_by_subscription": "Microsoft.WeightsAndBiases.Instances.listBySubscription"
"azure.mgmt.weightsandbiases.operations.Operations.list": "Azure.ResourceManager.Operations.list",
"azure.mgmt.weightsandbiases.aio.operations.Operations.list": "Azure.ResourceManager.Operations.list",
"azure.mgmt.weightsandbiases.operations.InstancesOperations.get": "Microsoft.WeightsAndBiases.Instances.get",
"azure.mgmt.weightsandbiases.aio.operations.InstancesOperations.get": "Microsoft.WeightsAndBiases.Instances.get",
"azure.mgmt.weightsandbiases.operations.InstancesOperations.begin_create_or_update": "Microsoft.WeightsAndBiases.Instances.createOrUpdate",
"azure.mgmt.weightsandbiases.aio.operations.InstancesOperations.begin_create_or_update": "Microsoft.WeightsAndBiases.Instances.createOrUpdate",
"azure.mgmt.weightsandbiases.operations.InstancesOperations.update": "Microsoft.WeightsAndBiases.Instances.update",
"azure.mgmt.weightsandbiases.aio.operations.InstancesOperations.update": "Microsoft.WeightsAndBiases.Instances.update",
"azure.mgmt.weightsandbiases.operations.InstancesOperations.begin_delete": "Microsoft.WeightsAndBiases.Instances.delete",
"azure.mgmt.weightsandbiases.aio.operations.InstancesOperations.begin_delete": "Microsoft.WeightsAndBiases.Instances.delete",
"azure.mgmt.weightsandbiases.operations.InstancesOperations.list_by_resource_group": "Microsoft.WeightsAndBiases.Instances.listByResourceGroup",
"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"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,18 @@
# --------------------------------------------------------------------------

from copy import deepcopy
from typing import Any, TYPE_CHECKING
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
from azure.core.settings import settings
from azure.mgmt.core import ARMPipelineClient
from azure.mgmt.core.policies import ARMAutoResourceProviderRegistrationPolicy
from azure.mgmt.core.tools import get_arm_endpoints

from ._configuration import WeightsAndBiasesMgmtClientConfiguration
from ._serialization import Deserializer, Serializer
from ._utils.serialization import Deserializer, Serializer
from .operations import InstancesOperations, Operations

if TYPE_CHECKING:
Expand All @@ -34,27 +36,32 @@ class WeightsAndBiasesMgmtClient:
:type credential: ~azure.core.credentials.TokenCredential
: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".
: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-preview". Note that overriding this default value may result in unsupported
behavior.
:keyword api_version: The API version to use for this operation. Default value is "2024-09-18".
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: str = "https://management.azure.com",
**kwargs: Any
self, credential: "TokenCredential", subscription_id: str, base_url: Optional[str] = None, **kwargs: Any
) -> None:
_endpoint = "{endpoint}"
_cloud = kwargs.pop("cloud_setting", None) or settings.current.azure_cloud # type: ignore
_endpoints = get_arm_endpoints(_cloud)
if not base_url:
base_url = _endpoints["resource_manager"]
credential_scopes = kwargs.pop("credential_scopes", _endpoints["credential_scopes"])
self._config = WeightsAndBiasesMgmtClientConfiguration(
credential=credential, subscription_id=subscription_id, base_url=base_url, **kwargs
credential=credential,
subscription_id=subscription_id,
base_url=cast(str, base_url),
credential_scopes=credential_scopes,
**kwargs
)

_policies = kwargs.pop("policies", None)
if _policies is None:
_policies = [
Expand All @@ -73,7 +80,7 @@ def __init__(
policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None,
self._config.http_logging_policy,
]
self._client: ARMPipelineClient = ARMPipelineClient(base_url=_endpoint, policies=_policies, **kwargs)
self._client: ARMPipelineClient = ARMPipelineClient(base_url=cast(str, _endpoint), policies=_policies, **kwargs)

self._serialize = Serializer()
self._deserialize = Deserializer()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,8 @@ 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-preview". Note that overriding this default value may result in unsupported
behavior.
:keyword api_version: The API version to use for this operation. Default value is "2024-09-18".
Note that overriding this default value may result in unsupported behavior.
:paramtype api_version: str
"""

Expand All @@ -42,7 +41,7 @@ def __init__(
base_url: str = "https://management.azure.com",
**kwargs: Any
) -> None:
api_version: str = kwargs.pop("api_version", "2024-09-18-preview")
api_version: str = kwargs.pop("api_version", "2024-09-18")

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +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) Python Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
Loading