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
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
6 changes: 6 additions & 0 deletions sdk/loadtesting/azure-developer-loadtesting/_meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"commit": "2ad82511706dc035660b16b4754eb4232a9fc4dc",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"typespec_src": "specification/loadtestservice/LoadTestService",
"@azure-tools/typespec-python": "0.44.1"
}
182 changes: 182 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 @@ -16,7 +16,7 @@

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

if TYPE_CHECKING:
from azure.core.credentials import TokenCredential
Expand All @@ -30,14 +30,17 @@ class LoadTestAdministrationClient(LoadTestAdministrationClientOperationsMixin):
: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-03-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 @@ -106,14 +109,15 @@ class LoadTestRunClient(LoadTestRunClientOperationsMixin):
: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-03-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:
_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-03-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-03-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-03-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-03-01-preview")

if endpoint is None:
raise ValueError("Parameter 'endpoint' must not be None.")
Expand Down
Loading