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
2 changes: 1 addition & 1 deletion sdk/loadtesting/azure-developer-loadtesting/MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ include azure/developer/loadtesting/py.typed
recursive-include tests *.py
recursive-include samples *.py *.md
include azure/__init__.py
include azure/developer/__init__.py
include azure/developer/__init__.py
3 changes: 3 additions & 0 deletions sdk/loadtesting/azure-developer-loadtesting/_metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"apiVersion": "2025-11-01-preview"
}
193 changes: 193 additions & 0 deletions sdk/loadtesting/azure-developer-loadtesting/apiview-properties.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -15,29 +15,32 @@
from azure.core.rest import HttpRequest, HttpResponse

from ._configuration import LoadTestAdministrationClientConfiguration, LoadTestRunClientConfiguration
from ._operations import LoadTestAdministrationClientOperationsMixin, LoadTestRunClientOperationsMixin
from ._serialization import Deserializer, Serializer
from ._operations import _LoadTestAdministrationClientOperationsMixin, _LoadTestRunClientOperationsMixin
from ._utils.serialization import Deserializer, Serializer

if TYPE_CHECKING:
from azure.core.credentials import TokenCredential


class LoadTestAdministrationClient(LoadTestAdministrationClientOperationsMixin):
class LoadTestAdministrationClient(_LoadTestAdministrationClientOperationsMixin):
"""LoadTestAdministrationClient.

:param endpoint: Required.
:type endpoint: str
:param credential: Credential used to authenticate requests to the service. Required.
:type credential: ~azure.core.credentials.TokenCredential
:keyword api_version: The API version to use for this operation. Default value is
"2024-12-01-preview". Note that overriding this default value may result in unsupported
"2025-11-01-preview". 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, endpoint: str, credential: "TokenCredential", **kwargs: Any) -> None:
_endpoint = "https://{endpoint}"
self._config = LoadTestAdministrationClientConfiguration(endpoint=endpoint, credential=credential, **kwargs)

_policies = kwargs.pop("policies", None)
if _policies is None:
_policies = [
Expand Down Expand Up @@ -98,22 +101,25 @@ def __exit__(self, *exc_details: Any) -> None:
self._client.__exit__(*exc_details)


class LoadTestRunClient(LoadTestRunClientOperationsMixin):
class LoadTestRunClient(_LoadTestRunClientOperationsMixin):
"""LoadTestRunClient.

:param endpoint: Required.
:type endpoint: str
:param credential: Credential used to authenticate requests to the service. Required.
:type credential: ~azure.core.credentials.TokenCredential
:keyword api_version: The API version to use for this operation. Default value is
"2024-12-01-preview". Note that overriding this default value may result in unsupported
"2025-11-01-preview". 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, endpoint: str, credential: "TokenCredential", **kwargs: Any) -> None:
_endpoint = "https://{endpoint}"
self._config = LoadTestRunClientConfiguration(endpoint=endpoint, credential=credential, **kwargs)

_policies = kwargs.pop("policies", None)
if _policies is None:
_policies = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ class LoadTestAdministrationClientConfiguration: # pylint: disable=too-many-ins
:param credential: Credential used to authenticate requests to the service. Required.
:type credential: ~azure.core.credentials.TokenCredential
:keyword api_version: The API version to use for this operation. Default value is
"2024-12-01-preview". Note that overriding this default value may result in unsupported
"2025-11-01-preview". Note that overriding this default value may result in unsupported
behavior.
:paramtype api_version: str
"""

def __init__(self, endpoint: str, credential: "TokenCredential", **kwargs: Any) -> None:
api_version: str = kwargs.pop("api_version", "2024-12-01-preview")
api_version: str = kwargs.pop("api_version", "2025-11-01-preview")

if endpoint is None:
raise ValueError("Parameter 'endpoint' must not be None.")
Expand Down Expand Up @@ -75,13 +75,13 @@ class LoadTestRunClientConfiguration: # pylint: disable=too-many-instance-attri
:param credential: Credential used to authenticate requests to the service. Required.
:type credential: ~azure.core.credentials.TokenCredential
:keyword api_version: The API version to use for this operation. Default value is
"2024-12-01-preview". Note that overriding this default value may result in unsupported
"2025-11-01-preview". Note that overriding this default value may result in unsupported
behavior.
:paramtype api_version: str
"""

def __init__(self, endpoint: str, credential: "TokenCredential", **kwargs: Any) -> None:
api_version: str = kwargs.pop("api_version", "2024-12-01-preview")
api_version: str = kwargs.pop("api_version", "2025-11-01-preview")

if endpoint is None:
raise ValueError("Parameter 'endpoint' must not be None.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,13 @@
if TYPE_CHECKING:
from ._patch import * # pylint: disable=unused-wildcard-import

from ._operations import LoadTestAdministrationClientOperationsMixin # type: ignore
from ._operations import LoadTestRunClientOperationsMixin # type: ignore
from ._operations import _LoadTestAdministrationClientOperationsMixin # type: ignore # pylint: disable=unused-import
from ._operations import _LoadTestRunClientOperationsMixin # type: ignore # pylint: disable=unused-import

from ._patch import __all__ as _patch_all
from ._patch import *
from ._patch import patch_sdk as _patch_sdk

__all__ = [
"LoadTestAdministrationClientOperationsMixin",
"LoadTestRunClientOperationsMixin",
]
__all__ = []
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
_patch_sdk()
Loading
Loading