Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR track2_azure-mgmt-containerservice] Fix abort location url in example #2007

Closed
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions sdk/containerservice/azure-mgmt-containerservice/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"commit": "fdd4e5c9b9225698c7f26c75c4b26be5c57e60f8",
"commit": "dd956a13574685a7e987182c9d21d435f283381b",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.9.2",
"use": [
"@autorest/python@6.1.11",
"@autorest/python@6.2.1",
"@autorest/modelerfour@4.24.3"
],
"autorest_command": "autorest specification/containerservice/resource-manager/readme.md --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.1.11 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False",
"autorest_command": "autorest specification/containerservice/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.2.1 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False",
"readme": "specification/containerservice/resource-manager/readme.md"
}

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
_patch_all = []
from ._patch import patch_sdk as _patch_sdk

__all__ = ["ContainerServiceClient"]
__all__ = [
"ContainerServiceClient",
]
__all__.extend([p for p in _patch_all if p not in __all__])

_patch_sdk()
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,4 @@
"operation_groups": {
"container_services": "ContainerServicesOperations"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "20.6.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
_patch_all = []
from ._patch import patch_sdk as _patch_sdk

__all__ = ["ContainerServiceClient"]
__all__ = [
"ContainerServiceClient",
]
__all__.extend([p for p in _patch_all if p not in __all__])

_patch_sdk()
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
import sys
from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload

from azure.core.async_paging import AsyncItemPaged, AsyncList
Expand Down Expand Up @@ -38,6 +39,10 @@
build_list_request,
)

if sys.version_info >= (3, 8):
from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports
else:
from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports
T = TypeVar("T")
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]

Expand Down Expand Up @@ -78,7 +83,7 @@ def list(self, **kwargs: Any) -> AsyncIterable["_models.ContainerService"]:
_headers = kwargs.pop("headers", {}) or {}
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version = kwargs.pop("api_version", _params.pop("api-version", "2017-07-01")) # type: str
api_version = kwargs.pop("api_version", _params.pop("api-version", "2017-07-01")) # type: Literal["2017-07-01"]
cls = kwargs.pop("cls", None) # type: ClsType[_models.ContainerServiceListResult]

error_map = {
Expand Down Expand Up @@ -152,7 +157,7 @@ async def _create_or_update_initial(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version = kwargs.pop("api_version", _params.pop("api-version", "2017-07-01")) # type: str
api_version = kwargs.pop("api_version", _params.pop("api-version", "2017-07-01")) # type: Literal["2017-07-01"]
content_type = kwargs.pop("content_type", _headers.pop("Content-Type", None)) # type: Optional[str]
cls = kwargs.pop("cls", None) # type: ClsType[_models.ContainerService]

Expand Down Expand Up @@ -328,7 +333,7 @@ async def begin_create_or_update(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version = kwargs.pop("api_version", _params.pop("api-version", "2017-07-01")) # type: str
api_version = kwargs.pop("api_version", _params.pop("api-version", "2017-07-01")) # type: Literal["2017-07-01"]
content_type = kwargs.pop("content_type", _headers.pop("Content-Type", None)) # type: Optional[str]
cls = kwargs.pop("cls", None) # type: ClsType[_models.ContainerService]
polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod]
Expand Down Expand Up @@ -402,7 +407,7 @@ async def get(
_headers = kwargs.pop("headers", {}) or {}
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version = kwargs.pop("api_version", _params.pop("api-version", "2017-07-01")) # type: str
api_version = kwargs.pop("api_version", _params.pop("api-version", "2017-07-01")) # type: Literal["2017-07-01"]
cls = kwargs.pop("cls", None) # type: ClsType[_models.ContainerService]

request = build_get_request(
Expand Down Expand Up @@ -450,7 +455,7 @@ async def _delete_initial( # pylint: disable=inconsistent-return-statements
_headers = kwargs.pop("headers", {}) or {}
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version = kwargs.pop("api_version", _params.pop("api-version", "2017-07-01")) # type: str
api_version = kwargs.pop("api_version", _params.pop("api-version", "2017-07-01")) # type: Literal["2017-07-01"]
cls = kwargs.pop("cls", None) # type: ClsType[None]

request = build_delete_request(
Expand Down Expand Up @@ -511,7 +516,7 @@ async def begin_delete(
_headers = kwargs.pop("headers", {}) or {}
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version = kwargs.pop("api_version", _params.pop("api-version", "2017-07-01")) # type: str
api_version = kwargs.pop("api_version", _params.pop("api-version", "2017-07-01")) # type: Literal["2017-07-01"]
cls = kwargs.pop("cls", None) # type: ClsType[None]
polling = kwargs.pop("polling", True) # type: Union[bool, AsyncPollingMethod]
lro_delay = kwargs.pop("polling_interval", self._config.polling_interval)
Expand Down Expand Up @@ -570,7 +575,7 @@ def list_by_resource_group(
_headers = kwargs.pop("headers", {}) or {}
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version = kwargs.pop("api_version", _params.pop("api-version", "2017-07-01")) # type: str
api_version = kwargs.pop("api_version", _params.pop("api-version", "2017-07-01")) # type: Literal["2017-07-01"]
cls = kwargs.pop("cls", None) # type: ClsType[_models.ContainerServiceListResult]

error_map = {
Expand Down Expand Up @@ -658,7 +663,7 @@ async def list_orchestrators(
_headers = kwargs.pop("headers", {}) or {}
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version = kwargs.pop("api_version", _params.pop("api-version", "2019-04-01")) # type: str
api_version = kwargs.pop("api_version", _params.pop("api-version", "2019-04-01")) # type: Literal["2019-04-01"]
cls = kwargs.pop("cls", None) # type: ClsType[_models.OrchestratorVersionProfileListResult]

request = build_list_orchestrators_request(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
import sys
from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload

from azure.core.exceptions import (
Expand All @@ -30,6 +31,10 @@
from ..._serialization import Serializer
from .._vendor import _convert_request, _format_url_section

if sys.version_info >= (3, 8):
from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports
else:
from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports
T = TypeVar("T")
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]]

Expand All @@ -41,7 +46,7 @@ def build_list_request(subscription_id: str, **kwargs: Any) -> HttpRequest:
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version = kwargs.pop("api_version", _params.pop("api-version", "2017-07-01")) # type: str
api_version = kwargs.pop("api_version", _params.pop("api-version", "2017-07-01")) # type: Literal["2017-07-01"]
accept = _headers.pop("Accept", "application/json")

# Construct URL
Expand Down Expand Up @@ -69,7 +74,7 @@ def build_create_or_update_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version = kwargs.pop("api_version", _params.pop("api-version", "2017-07-01")) # type: str
api_version = kwargs.pop("api_version", _params.pop("api-version", "2017-07-01")) # type: Literal["2017-07-01"]
content_type = kwargs.pop("content_type", _headers.pop("Content-Type", None)) # type: Optional[str]
accept = _headers.pop("Accept", "application/json")

Expand Down Expand Up @@ -103,7 +108,7 @@ def build_get_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version = kwargs.pop("api_version", _params.pop("api-version", "2017-07-01")) # type: str
api_version = kwargs.pop("api_version", _params.pop("api-version", "2017-07-01")) # type: Literal["2017-07-01"]
accept = _headers.pop("Accept", "application/json")

# Construct URL
Expand Down Expand Up @@ -133,7 +138,7 @@ def build_delete_request(
) -> HttpRequest:
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version = kwargs.pop("api_version", _params.pop("api-version", "2017-07-01")) # type: str
api_version = kwargs.pop("api_version", _params.pop("api-version", "2017-07-01")) # type: Literal["2017-07-01"]
# Construct URL
_url = kwargs.pop(
"template_url",
Expand All @@ -157,7 +162,7 @@ def build_list_by_resource_group_request(resource_group_name: str, subscription_
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version = kwargs.pop("api_version", _params.pop("api-version", "2017-07-01")) # type: str
api_version = kwargs.pop("api_version", _params.pop("api-version", "2017-07-01")) # type: Literal["2017-07-01"]
accept = _headers.pop("Accept", "application/json")

# Construct URL
Expand Down Expand Up @@ -187,7 +192,7 @@ def build_list_orchestrators_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version = kwargs.pop("api_version", _params.pop("api-version", "2019-04-01")) # type: str
api_version = kwargs.pop("api_version", _params.pop("api-version", "2019-04-01")) # type: Literal["2019-04-01"]
accept = _headers.pop("Accept", "application/json")

# Construct URL
Expand Down Expand Up @@ -249,7 +254,7 @@ def list(self, **kwargs: Any) -> Iterable["_models.ContainerService"]:
_headers = kwargs.pop("headers", {}) or {}
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version = kwargs.pop("api_version", _params.pop("api-version", "2017-07-01")) # type: str
api_version = kwargs.pop("api_version", _params.pop("api-version", "2017-07-01")) # type: Literal["2017-07-01"]
cls = kwargs.pop("cls", None) # type: ClsType[_models.ContainerServiceListResult]

error_map = {
Expand Down Expand Up @@ -323,7 +328,7 @@ def _create_or_update_initial(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version = kwargs.pop("api_version", _params.pop("api-version", "2017-07-01")) # type: str
api_version = kwargs.pop("api_version", _params.pop("api-version", "2017-07-01")) # type: Literal["2017-07-01"]
content_type = kwargs.pop("content_type", _headers.pop("Content-Type", None)) # type: Optional[str]
cls = kwargs.pop("cls", None) # type: ClsType[_models.ContainerService]

Expand Down Expand Up @@ -499,7 +504,7 @@ def begin_create_or_update(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version = kwargs.pop("api_version", _params.pop("api-version", "2017-07-01")) # type: str
api_version = kwargs.pop("api_version", _params.pop("api-version", "2017-07-01")) # type: Literal["2017-07-01"]
content_type = kwargs.pop("content_type", _headers.pop("Content-Type", None)) # type: Optional[str]
cls = kwargs.pop("cls", None) # type: ClsType[_models.ContainerService]
polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod]
Expand Down Expand Up @@ -571,7 +576,7 @@ def get(self, resource_group_name: str, container_service_name: str, **kwargs: A
_headers = kwargs.pop("headers", {}) or {}
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version = kwargs.pop("api_version", _params.pop("api-version", "2017-07-01")) # type: str
api_version = kwargs.pop("api_version", _params.pop("api-version", "2017-07-01")) # type: Literal["2017-07-01"]
cls = kwargs.pop("cls", None) # type: ClsType[_models.ContainerService]

request = build_get_request(
Expand Down Expand Up @@ -619,7 +624,7 @@ def _delete_initial( # pylint: disable=inconsistent-return-statements
_headers = kwargs.pop("headers", {}) or {}
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version = kwargs.pop("api_version", _params.pop("api-version", "2017-07-01")) # type: str
api_version = kwargs.pop("api_version", _params.pop("api-version", "2017-07-01")) # type: Literal["2017-07-01"]
cls = kwargs.pop("cls", None) # type: ClsType[None]

request = build_delete_request(
Expand Down Expand Up @@ -678,7 +683,7 @@ def begin_delete(self, resource_group_name: str, container_service_name: str, **
_headers = kwargs.pop("headers", {}) or {}
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version = kwargs.pop("api_version", _params.pop("api-version", "2017-07-01")) # type: str
api_version = kwargs.pop("api_version", _params.pop("api-version", "2017-07-01")) # type: Literal["2017-07-01"]
cls = kwargs.pop("cls", None) # type: ClsType[None]
polling = kwargs.pop("polling", True) # type: Union[bool, PollingMethod]
lro_delay = kwargs.pop("polling_interval", self._config.polling_interval)
Expand Down Expand Up @@ -735,7 +740,7 @@ def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> Ite
_headers = kwargs.pop("headers", {}) or {}
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version = kwargs.pop("api_version", _params.pop("api-version", "2017-07-01")) # type: str
api_version = kwargs.pop("api_version", _params.pop("api-version", "2017-07-01")) # type: Literal["2017-07-01"]
cls = kwargs.pop("cls", None) # type: ClsType[_models.ContainerServiceListResult]

error_map = {
Expand Down Expand Up @@ -823,7 +828,7 @@ def list_orchestrators(
_headers = kwargs.pop("headers", {}) or {}
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})

api_version = kwargs.pop("api_version", _params.pop("api-version", "2019-04-01")) # type: str
api_version = kwargs.pop("api_version", _params.pop("api-version", "2019-04-01")) # type: Literal["2019-04-01"]
cls = kwargs.pop("cls", None) # type: ClsType[_models.OrchestratorVersionProfileListResult]

request = build_list_orchestrators_request(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
_patch_all = []
from ._patch import patch_sdk as _patch_sdk

__all__ = ["ContainerServiceClient"]
__all__ = [
"ContainerServiceClient",
]
__all__.extend([p for p in _patch_all if p not in __all__])

_patch_sdk()
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

import sys
from typing import Any, TYPE_CHECKING

from azure.core.configuration import Configuration
Expand All @@ -14,6 +15,11 @@

from ._version import VERSION

if sys.version_info >= (3, 8):
from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports
else:
from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from azure.core.credentials import TokenCredential
Expand All @@ -37,7 +43,7 @@ class ContainerServiceClientConfiguration(Configuration): # pylint: disable=too

def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
super(ContainerServiceClientConfiguration, self).__init__(**kwargs)
api_version = kwargs.pop("api_version", "2018-03-31") # type: str
api_version = kwargs.pop("api_version", "2018-03-31") # type: Literal["2018-03-31"]

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,4 @@
"operations": "Operations",
"managed_clusters": "ManagedClustersOperations"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "20.6.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
_patch_all = []
from ._patch import patch_sdk as _patch_sdk

__all__ = ["ContainerServiceClient"]
__all__ = [
"ContainerServiceClient",
]
__all__.extend([p for p in _patch_all if p not in __all__])

_patch_sdk()
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

import sys
from typing import Any, TYPE_CHECKING

from azure.core.configuration import Configuration
Expand All @@ -14,6 +15,11 @@

from .._version import VERSION

if sys.version_info >= (3, 8):
from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports
else:
from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from azure.core.credentials_async import AsyncTokenCredential
Expand All @@ -37,7 +43,7 @@ class ContainerServiceClientConfiguration(Configuration): # pylint: disable=too

def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None:
super(ContainerServiceClientConfiguration, self).__init__(**kwargs)
api_version = kwargs.pop("api_version", "2018-03-31") # type: str
api_version = kwargs.pop("api_version", "2018-03-31") # type: Literal["2018-03-31"]

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