Skip to content
Merged
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
4 changes: 4 additions & 0 deletions src/devcenter/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

Release History
===============
4.0.1
++++++
* Update due to bug in API swagger causing missing API version

4.0.0
++++++
* Update control plane API to v2023-10-01-preview
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1991,7 +1991,9 @@ def build_environments_patch_environment_request(
project_name: str, environment_name: str, user_id: str = "me", **kwargs: Any
) -> HttpRequest:
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-10-01-preview"))
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
accept = _headers.pop("Accept", "application/json")

Expand Down Expand Up @@ -2027,11 +2029,12 @@ def build_environments_patch_environment_request(
_url: str = _url.format(**path_format_arguments) # type: ignore

# Construct headers
_params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
if content_type is not None:
_headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")

return HttpRequest(method="PATCH", url=_url, headers=_headers, **kwargs)
return HttpRequest(method="PATCH", url=_url, params=_params, headers=_headers, **kwargs)


def build_environments_get_outputs_request(
Expand Down
2 changes: 1 addition & 1 deletion src/devcenter/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from setuptools import setup, find_packages

# HISTORY.rst entry.
VERSION = '4.0.0'
VERSION = '4.0.1'
try:
from azext_devcenter.manual.version import VERSION
except ImportError:
Expand Down