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
10 changes: 5 additions & 5 deletions sdk/devcenter/azure-mgmt-devcenter/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"autorest": "3.8.4",
"autorest": "3.9.2",
"use": [
"@autorest/python@6.0.1",
"@autorest/modelerfour@4.23.5"
"@autorest/python@6.1.9",
"@autorest/modelerfour@4.24.3"
],
"commit": "df70965d3a207eb2a628c96aa6ed935edc6b7911",
"commit": "7d3bcc6f88331e8c5fecdd251dd85d37eb9d8329",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/devcenter/resource-manager/readme.md --models-mode=msrest --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.0.1 --use=@autorest/modelerfour@4.23.5 --version=3.8.4 --version-tolerant=False",
"autorest_command": "autorest specification/devcenter/resource-manager/readme.md --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.1.9 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False",
"readme": "specification/devcenter/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ class DevCenterClientConfiguration(Configuration): # pylint: disable=too-many-i
:param subscription_id: Unique identifier of the Azure subscription. This is a GUID-formatted
string (e.g. 00000000-0000-0000-0000-000000000000). Required.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2022-08-01-preview". Note that overriding
:keyword api_version: Api Version. Default value is "2022-09-01-preview". Note that overriding
this default value may result in unsupported behavior.
:paramtype api_version: str
"""

def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
super(DevCenterClientConfiguration, self).__init__(**kwargs)
api_version = kwargs.pop("api_version", "2022-08-01-preview") # type: str
api_version = kwargs.pop("api_version", "2022-09-01-preview") # type: str

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 @@ -28,6 +28,7 @@
OperationStatusesOperations,
Operations,
PoolsOperations,
ProjectAllowedEnvironmentTypesOperations,
ProjectEnvironmentTypesOperations,
ProjectsOperations,
SchedulesOperations,
Expand Down Expand Up @@ -59,6 +60,9 @@ class DevCenterClient: # pylint: disable=client-accepts-api-version-keyword,too
:vartype catalogs: azure.mgmt.devcenter.operations.CatalogsOperations
:ivar environment_types: EnvironmentTypesOperations operations
:vartype environment_types: azure.mgmt.devcenter.operations.EnvironmentTypesOperations
:ivar project_allowed_environment_types: ProjectAllowedEnvironmentTypesOperations operations
:vartype project_allowed_environment_types:
azure.mgmt.devcenter.operations.ProjectAllowedEnvironmentTypesOperations
:ivar project_environment_types: ProjectEnvironmentTypesOperations operations
:vartype project_environment_types:
azure.mgmt.devcenter.operations.ProjectEnvironmentTypesOperations
Expand All @@ -85,7 +89,7 @@ class DevCenterClient: # pylint: disable=client-accepts-api-version-keyword,too
:type subscription_id: str
:param base_url: Service URL. Default value is "https://management.azure.com".
:type base_url: str
:keyword api_version: Api Version. Default value is "2022-08-01-preview". Note that overriding
:keyword api_version: Api Version. Default value is "2022-09-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
Expand Down Expand Up @@ -118,6 +122,9 @@ def __init__(
self.environment_types = EnvironmentTypesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.project_allowed_environment_types = ProjectAllowedEnvironmentTypesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.project_environment_types = ProjectEnvironmentTypesOperations(
self._client, self._config, self._serialize, self._deserialize
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1505,7 +1505,7 @@ def failsafe_deserialize(self, target_obj, data, content_type=None):
try:
return self(target_obj, data, content_type=content_type)
except:
_LOGGER.warning(
_LOGGER.debug(
"Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True
)
return None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ class DevCenterClientConfiguration(Configuration): # pylint: disable=too-many-i
:param subscription_id: Unique identifier of the Azure subscription. This is a GUID-formatted
string (e.g. 00000000-0000-0000-0000-000000000000). Required.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2022-08-01-preview". Note that overriding
:keyword api_version: Api Version. Default value is "2022-09-01-preview". Note that overriding
this default value may result in unsupported behavior.
:paramtype api_version: str
"""

def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None:
super(DevCenterClientConfiguration, self).__init__(**kwargs)
api_version = kwargs.pop("api_version", "2022-08-01-preview") # type: str
api_version = kwargs.pop("api_version", "2022-09-01-preview") # type: str

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 @@ -28,6 +28,7 @@
OperationStatusesOperations,
Operations,
PoolsOperations,
ProjectAllowedEnvironmentTypesOperations,
ProjectEnvironmentTypesOperations,
ProjectsOperations,
SchedulesOperations,
Expand Down Expand Up @@ -59,6 +60,9 @@ class DevCenterClient: # pylint: disable=client-accepts-api-version-keyword,too
:vartype catalogs: azure.mgmt.devcenter.aio.operations.CatalogsOperations
:ivar environment_types: EnvironmentTypesOperations operations
:vartype environment_types: azure.mgmt.devcenter.aio.operations.EnvironmentTypesOperations
:ivar project_allowed_environment_types: ProjectAllowedEnvironmentTypesOperations operations
:vartype project_allowed_environment_types:
azure.mgmt.devcenter.aio.operations.ProjectAllowedEnvironmentTypesOperations
:ivar project_environment_types: ProjectEnvironmentTypesOperations operations
:vartype project_environment_types:
azure.mgmt.devcenter.aio.operations.ProjectEnvironmentTypesOperations
Expand All @@ -85,7 +89,7 @@ class DevCenterClient: # pylint: disable=client-accepts-api-version-keyword,too
:type subscription_id: str
:param base_url: Service URL. Default value is "https://management.azure.com".
:type base_url: str
:keyword api_version: Api Version. Default value is "2022-08-01-preview". Note that overriding
:keyword api_version: Api Version. Default value is "2022-09-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
Expand Down Expand Up @@ -118,6 +122,9 @@ def __init__(
self.environment_types = EnvironmentTypesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.project_allowed_environment_types = ProjectAllowedEnvironmentTypesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.project_environment_types = ProjectEnvironmentTypesOperations(
self._client, self._config, self._serialize, self._deserialize
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
from ._image_versions_operations import ImageVersionsOperations
from ._catalogs_operations import CatalogsOperations
from ._environment_types_operations import EnvironmentTypesOperations
from ._project_allowed_environment_types_operations import ProjectAllowedEnvironmentTypesOperations
from ._project_environment_types_operations import ProjectEnvironmentTypesOperations
from ._dev_box_definitions_operations import DevBoxDefinitionsOperations
from ._operations import Operations
Expand All @@ -37,6 +38,7 @@
"ImageVersionsOperations",
"CatalogsOperations",
"EnvironmentTypesOperations",
"ProjectAllowedEnvironmentTypesOperations",
"ProjectEnvironmentTypesOperations",
"DevBoxDefinitionsOperations",
"Operations",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
HttpResponseError,
ResourceExistsError,
ResourceNotFoundError,
ResourceNotModifiedError,
map_error,
)
from azure.core.pipeline import PipelineResponse
Expand Down Expand Up @@ -87,7 +88,12 @@ def list_by_project(
api_version = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) # type: str
cls = kwargs.pop("cls", None) # type: ClsType[_models.AttachedNetworkListResult]

error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
error_map = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
304: ResourceNotModifiedError,
}
error_map.update(kwargs.pop("error_map", {}) or {})

def prepare_request(next_link=None):
Expand Down Expand Up @@ -159,7 +165,12 @@ async def get_by_project(
:rtype: ~azure.mgmt.devcenter.models.AttachedNetworkConnection
:raises ~azure.core.exceptions.HttpResponseError:
"""
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
error_map = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
304: ResourceNotModifiedError,
}
error_map.update(kwargs.pop("error_map", {}) or {})

_headers = kwargs.pop("headers", {}) or {}
Expand Down Expand Up @@ -226,7 +237,12 @@ def list_by_dev_center(
api_version = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) # type: str
cls = kwargs.pop("cls", None) # type: ClsType[_models.AttachedNetworkListResult]

error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
error_map = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
304: ResourceNotModifiedError,
}
error_map.update(kwargs.pop("error_map", {}) or {})

def prepare_request(next_link=None):
Expand Down Expand Up @@ -298,7 +314,12 @@ async def get_by_dev_center(
:rtype: ~azure.mgmt.devcenter.models.AttachedNetworkConnection
:raises ~azure.core.exceptions.HttpResponseError:
"""
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
error_map = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
304: ResourceNotModifiedError,
}
error_map.update(kwargs.pop("error_map", {}) or {})

_headers = kwargs.pop("headers", {}) or {}
Expand Down Expand Up @@ -347,7 +368,12 @@ async def _create_or_update_initial(
body: Union[_models.AttachedNetworkConnection, IO],
**kwargs: Any
) -> _models.AttachedNetworkConnection:
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
error_map = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
304: ResourceNotModifiedError,
}
error_map.update(kwargs.pop("error_map", {}) or {})

_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
Expand Down Expand Up @@ -568,7 +594,12 @@ def get_long_running_output(pipeline_response):
async def _delete_initial( # pylint: disable=inconsistent-return-statements
self, resource_group_name: str, dev_center_name: str, attached_network_connection_name: str, **kwargs: Any
) -> None:
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
error_map = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
304: ResourceNotModifiedError,
}
error_map.update(kwargs.pop("error_map", {}) or {})

_headers = kwargs.pop("headers", {}) or {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
HttpResponseError,
ResourceExistsError,
ResourceNotFoundError,
ResourceNotModifiedError,
map_error,
)
from azure.core.pipeline import PipelineResponse
Expand Down Expand Up @@ -85,7 +86,12 @@ def list_by_dev_center(
api_version = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) # type: str
cls = kwargs.pop("cls", None) # type: ClsType[_models.CatalogListResult]

error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
error_map = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
304: ResourceNotModifiedError,
}
error_map.update(kwargs.pop("error_map", {}) or {})

def prepare_request(next_link=None):
Expand Down Expand Up @@ -157,7 +163,12 @@ async def get(
:rtype: ~azure.mgmt.devcenter.models.Catalog
:raises ~azure.core.exceptions.HttpResponseError:
"""
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
error_map = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
304: ResourceNotModifiedError,
}
error_map.update(kwargs.pop("error_map", {}) or {})

_headers = kwargs.pop("headers", {}) or {}
Expand Down Expand Up @@ -206,7 +217,12 @@ async def _create_or_update_initial(
body: Union[_models.Catalog, IO],
**kwargs: Any
) -> _models.Catalog:
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
error_map = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
304: ResourceNotModifiedError,
}
error_map.update(kwargs.pop("error_map", {}) or {})

_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
Expand Down Expand Up @@ -428,7 +444,12 @@ async def _update_initial(
body: Union[_models.CatalogUpdate, IO],
**kwargs: Any
) -> Optional[_models.Catalog]:
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
error_map = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
304: ResourceNotModifiedError,
}
error_map.update(kwargs.pop("error_map", {}) or {})

_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
Expand Down Expand Up @@ -647,7 +668,12 @@ def get_long_running_output(pipeline_response):
async def _delete_initial( # pylint: disable=inconsistent-return-statements
self, resource_group_name: str, dev_center_name: str, catalog_name: str, **kwargs: Any
) -> None:
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
error_map = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
304: ResourceNotModifiedError,
}
error_map.update(kwargs.pop("error_map", {}) or {})

_headers = kwargs.pop("headers", {}) or {}
Expand Down Expand Up @@ -756,7 +782,12 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-
async def _sync_initial( # pylint: disable=inconsistent-return-statements
self, resource_group_name: str, dev_center_name: str, catalog_name: str, **kwargs: Any
) -> None:
error_map = {401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError}
error_map = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
409: ResourceExistsError,
304: ResourceNotModifiedError,
}
error_map.update(kwargs.pop("error_map", {}) or {})

_headers = kwargs.pop("headers", {}) or {}
Expand Down
Loading