зеркало из
1
0
Форкнуть 0

[AutoRelease] t2-fabric-2024-09-03-40346(can only be merged by SDK owner) (#37177)

* code and test

* Delete sdk/fabric/azure-mgmt-fabric/CHANGELOG.md

---------

Co-authored-by: azure-sdk <PythonSdkPipelines>
Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com>
This commit is contained in:
Azure SDK Bot 2024-09-02 23:43:06 -07:00 коммит произвёл GitHub
Родитель 441707c07e
Коммит 3c2c8eaabf
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
22 изменённых файлов: 56 добавлений и 1212 удалений

Просмотреть файл

@ -1,7 +0,0 @@
# Release History
## 1.0.0b1 (2024-09-22)
### Other Changes
- Initial version

Просмотреть файл

@ -1,6 +1,6 @@
{
"commit": "d9238c052c5eb82013e0ee5f34293bb4a3fb99e8",
"commit": "28c5000054bf2e8112b5543025a519fa60902503",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"typespec_src": "specification/fabric/Microsoft.Fabric.Management",
"@azure-tools/typespec-python": "0.28.0"
"@azure-tools/typespec-python": "0.29.0"
}

Просмотреть файл

@ -476,6 +476,9 @@ def _create_value(rf: typing.Optional["_RestField"], value: typing.Any) -> typin
class Model(_MyMutableMapping):
_is_model = True
# label whether current class's _attr_to_rest_field has been calculated
# could not see _attr_to_rest_field directly because subclass inherits it from parent class
_calculated: typing.Set[str] = set()
def __init__(self, *args: typing.Any, **kwargs: typing.Any) -> None:
class_name = self.__class__.__name__
@ -508,24 +511,27 @@ class Model(_MyMutableMapping):
return Model(self.__dict__)
def __new__(cls, *args: typing.Any, **kwargs: typing.Any) -> Self: # pylint: disable=unused-argument
# we know the last three classes in mro are going to be 'Model', 'dict', and 'object'
mros = cls.__mro__[:-3][::-1] # ignore model, dict, and object parents, and reverse the mro order
attr_to_rest_field: typing.Dict[str, _RestField] = { # map attribute name to rest_field property
k: v for mro_class in mros for k, v in mro_class.__dict__.items() if k[0] != "_" and hasattr(v, "_type")
}
annotations = {
k: v
for mro_class in mros
if hasattr(mro_class, "__annotations__") # pylint: disable=no-member
for k, v in mro_class.__annotations__.items() # pylint: disable=no-member
}
for attr, rf in attr_to_rest_field.items():
rf._module = cls.__module__
if not rf._type:
rf._type = rf._get_deserialize_callable_from_annotation(annotations.get(attr, None))
if not rf._rest_name_input:
rf._rest_name_input = attr
cls._attr_to_rest_field: typing.Dict[str, _RestField] = dict(attr_to_rest_field.items())
if f"{cls.__module__}.{cls.__qualname__}" not in cls._calculated:
# we know the last nine classes in mro are going to be 'Model', '_MyMutableMapping', 'MutableMapping',
# 'Mapping', 'Collection', 'Sized', 'Iterable', 'Container' and 'object'
mros = cls.__mro__[:-9][::-1] # ignore parents, and reverse the mro order
attr_to_rest_field: typing.Dict[str, _RestField] = { # map attribute name to rest_field property
k: v for mro_class in mros for k, v in mro_class.__dict__.items() if k[0] != "_" and hasattr(v, "_type")
}
annotations = {
k: v
for mro_class in mros
if hasattr(mro_class, "__annotations__") # pylint: disable=no-member
for k, v in mro_class.__annotations__.items() # pylint: disable=no-member
}
for attr, rf in attr_to_rest_field.items():
rf._module = cls.__module__
if not rf._type:
rf._type = rf._get_deserialize_callable_from_annotation(annotations.get(attr, None))
if not rf._rest_name_input:
rf._rest_name_input = attr
cls._attr_to_rest_field: typing.Dict[str, _RestField] = dict(attr_to_rest_field.items())
cls._calculated.add(f"{cls.__module__}.{cls.__qualname__}")
return super().__new__(cls) # pylint: disable=no-value-for-parameter

Просмотреть файл

@ -102,41 +102,6 @@ class FabricCapacitiesOperations:
:return: FabricCapacity. The FabricCapacity is compatible with MutableMapping
:rtype: ~azure.mgmt.fabric.models.FabricCapacity
:raises ~azure.core.exceptions.HttpResponseError:
Example:
.. code-block:: python
# response body for status code(s): 200
response == {
"location": "str",
"properties": {
"administration": {
"members": [
"str"
]
},
"provisioningState": "str",
"state": "str"
},
"sku": {
"name": "str",
"tier": "str"
},
"id": "str",
"name": "str",
"systemData": {
"createdAt": "2020-02-20 00:00:00",
"createdBy": "str",
"createdByType": "str",
"lastModifiedAt": "2020-02-20 00:00:00",
"lastModifiedBy": "str",
"lastModifiedByType": "str"
},
"tags": {
"str": "str"
},
"type": "str"
}
"""
error_map: MutableMapping[int, Type[HttpResponseError]] = {
401: ClientAuthenticationError,
@ -291,73 +256,6 @@ class FabricCapacitiesOperations:
compatible with MutableMapping
:rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.fabric.models.FabricCapacity]
:raises ~azure.core.exceptions.HttpResponseError:
Example:
.. code-block:: python
# JSON input template you can fill out and use as your body input.
resource = {
"location": "str",
"properties": {
"administration": {
"members": [
"str"
]
},
"provisioningState": "str",
"state": "str"
},
"sku": {
"name": "str",
"tier": "str"
},
"id": "str",
"name": "str",
"systemData": {
"createdAt": "2020-02-20 00:00:00",
"createdBy": "str",
"createdByType": "str",
"lastModifiedAt": "2020-02-20 00:00:00",
"lastModifiedBy": "str",
"lastModifiedByType": "str"
},
"tags": {
"str": "str"
},
"type": "str"
}
# response body for status code(s): 200, 201
response == {
"location": "str",
"properties": {
"administration": {
"members": [
"str"
]
},
"provisioningState": "str",
"state": "str"
},
"sku": {
"name": "str",
"tier": "str"
},
"id": "str",
"name": "str",
"systemData": {
"createdAt": "2020-02-20 00:00:00",
"createdBy": "str",
"createdByType": "str",
"lastModifiedAt": "2020-02-20 00:00:00",
"lastModifiedBy": "str",
"lastModifiedByType": "str"
},
"tags": {
"str": "str"
},
"type": "str"
}
"""
@overload
@ -387,41 +285,6 @@ class FabricCapacitiesOperations:
compatible with MutableMapping
:rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.fabric.models.FabricCapacity]
:raises ~azure.core.exceptions.HttpResponseError:
Example:
.. code-block:: python
# response body for status code(s): 200, 201
response == {
"location": "str",
"properties": {
"administration": {
"members": [
"str"
]
},
"provisioningState": "str",
"state": "str"
},
"sku": {
"name": "str",
"tier": "str"
},
"id": "str",
"name": "str",
"systemData": {
"createdAt": "2020-02-20 00:00:00",
"createdBy": "str",
"createdByType": "str",
"lastModifiedAt": "2020-02-20 00:00:00",
"lastModifiedBy": "str",
"lastModifiedByType": "str"
},
"tags": {
"str": "str"
},
"type": "str"
}
"""
@overload
@ -451,41 +314,6 @@ class FabricCapacitiesOperations:
compatible with MutableMapping
:rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.fabric.models.FabricCapacity]
:raises ~azure.core.exceptions.HttpResponseError:
Example:
.. code-block:: python
# response body for status code(s): 200, 201
response == {
"location": "str",
"properties": {
"administration": {
"members": [
"str"
]
},
"provisioningState": "str",
"state": "str"
},
"sku": {
"name": "str",
"tier": "str"
},
"id": "str",
"name": "str",
"systemData": {
"createdAt": "2020-02-20 00:00:00",
"createdBy": "str",
"createdByType": "str",
"lastModifiedAt": "2020-02-20 00:00:00",
"lastModifiedBy": "str",
"lastModifiedByType": "str"
},
"tags": {
"str": "str"
},
"type": "str"
}
"""
@distributed_trace_async
@ -511,73 +339,6 @@ class FabricCapacitiesOperations:
compatible with MutableMapping
:rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.fabric.models.FabricCapacity]
:raises ~azure.core.exceptions.HttpResponseError:
Example:
.. code-block:: python
# JSON input template you can fill out and use as your body input.
resource = {
"location": "str",
"properties": {
"administration": {
"members": [
"str"
]
},
"provisioningState": "str",
"state": "str"
},
"sku": {
"name": "str",
"tier": "str"
},
"id": "str",
"name": "str",
"systemData": {
"createdAt": "2020-02-20 00:00:00",
"createdBy": "str",
"createdByType": "str",
"lastModifiedAt": "2020-02-20 00:00:00",
"lastModifiedBy": "str",
"lastModifiedByType": "str"
},
"tags": {
"str": "str"
},
"type": "str"
}
# response body for status code(s): 200, 201
response == {
"location": "str",
"properties": {
"administration": {
"members": [
"str"
]
},
"provisioningState": "str",
"state": "str"
},
"sku": {
"name": "str",
"tier": "str"
},
"id": "str",
"name": "str",
"systemData": {
"createdAt": "2020-02-20 00:00:00",
"createdBy": "str",
"createdByType": "str",
"lastModifiedAt": "2020-02-20 00:00:00",
"lastModifiedBy": "str",
"lastModifiedByType": "str"
},
"tags": {
"str": "str"
},
"type": "str"
}
"""
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = kwargs.pop("params", {}) or {}
@ -729,59 +490,6 @@ class FabricCapacitiesOperations:
compatible with MutableMapping
:rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.fabric.models.FabricCapacity]
:raises ~azure.core.exceptions.HttpResponseError:
Example:
.. code-block:: python
# JSON input template you can fill out and use as your body input.
properties = {
"properties": {
"administration": {
"members": [
"str"
]
}
},
"sku": {
"name": "str",
"tier": "str"
},
"tags": {
"str": "str"
}
}
# response body for status code(s): 200, 202
response == {
"location": "str",
"properties": {
"administration": {
"members": [
"str"
]
},
"provisioningState": "str",
"state": "str"
},
"sku": {
"name": "str",
"tier": "str"
},
"id": "str",
"name": "str",
"systemData": {
"createdAt": "2020-02-20 00:00:00",
"createdBy": "str",
"createdByType": "str",
"lastModifiedAt": "2020-02-20 00:00:00",
"lastModifiedBy": "str",
"lastModifiedByType": "str"
},
"tags": {
"str": "str"
},
"type": "str"
}
"""
@overload
@ -811,41 +519,6 @@ class FabricCapacitiesOperations:
compatible with MutableMapping
:rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.fabric.models.FabricCapacity]
:raises ~azure.core.exceptions.HttpResponseError:
Example:
.. code-block:: python
# response body for status code(s): 200, 202
response == {
"location": "str",
"properties": {
"administration": {
"members": [
"str"
]
},
"provisioningState": "str",
"state": "str"
},
"sku": {
"name": "str",
"tier": "str"
},
"id": "str",
"name": "str",
"systemData": {
"createdAt": "2020-02-20 00:00:00",
"createdBy": "str",
"createdByType": "str",
"lastModifiedAt": "2020-02-20 00:00:00",
"lastModifiedBy": "str",
"lastModifiedByType": "str"
},
"tags": {
"str": "str"
},
"type": "str"
}
"""
@overload
@ -875,41 +548,6 @@ class FabricCapacitiesOperations:
compatible with MutableMapping
:rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.fabric.models.FabricCapacity]
:raises ~azure.core.exceptions.HttpResponseError:
Example:
.. code-block:: python
# response body for status code(s): 200, 202
response == {
"location": "str",
"properties": {
"administration": {
"members": [
"str"
]
},
"provisioningState": "str",
"state": "str"
},
"sku": {
"name": "str",
"tier": "str"
},
"id": "str",
"name": "str",
"systemData": {
"createdAt": "2020-02-20 00:00:00",
"createdBy": "str",
"createdByType": "str",
"lastModifiedAt": "2020-02-20 00:00:00",
"lastModifiedBy": "str",
"lastModifiedByType": "str"
},
"tags": {
"str": "str"
},
"type": "str"
}
"""
@distributed_trace_async
@ -935,59 +573,6 @@ class FabricCapacitiesOperations:
compatible with MutableMapping
:rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.fabric.models.FabricCapacity]
:raises ~azure.core.exceptions.HttpResponseError:
Example:
.. code-block:: python
# JSON input template you can fill out and use as your body input.
properties = {
"properties": {
"administration": {
"members": [
"str"
]
}
},
"sku": {
"name": "str",
"tier": "str"
},
"tags": {
"str": "str"
}
}
# response body for status code(s): 200, 202
response == {
"location": "str",
"properties": {
"administration": {
"members": [
"str"
]
},
"provisioningState": "str",
"state": "str"
},
"sku": {
"name": "str",
"tier": "str"
},
"id": "str",
"name": "str",
"systemData": {
"createdAt": "2020-02-20 00:00:00",
"createdBy": "str",
"createdByType": "str",
"lastModifiedAt": "2020-02-20 00:00:00",
"lastModifiedBy": "str",
"lastModifiedByType": "str"
},
"tags": {
"str": "str"
},
"type": "str"
}
"""
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = kwargs.pop("params", {}) or {}
@ -1168,41 +753,6 @@ class FabricCapacitiesOperations:
:return: An iterator like instance of FabricCapacity
:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.fabric.models.FabricCapacity]
:raises ~azure.core.exceptions.HttpResponseError:
Example:
.. code-block:: python
# response body for status code(s): 200
response == {
"location": "str",
"properties": {
"administration": {
"members": [
"str"
]
},
"provisioningState": "str",
"state": "str"
},
"sku": {
"name": "str",
"tier": "str"
},
"id": "str",
"name": "str",
"systemData": {
"createdAt": "2020-02-20 00:00:00",
"createdBy": "str",
"createdByType": "str",
"lastModifiedAt": "2020-02-20 00:00:00",
"lastModifiedBy": "str",
"lastModifiedByType": "str"
},
"tags": {
"str": "str"
},
"type": "str"
}
"""
_headers = kwargs.pop("headers", {}) or {}
_params = kwargs.pop("params", {}) or {}
@ -1288,41 +838,6 @@ class FabricCapacitiesOperations:
:return: An iterator like instance of FabricCapacity
:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.fabric.models.FabricCapacity]
:raises ~azure.core.exceptions.HttpResponseError:
Example:
.. code-block:: python
# response body for status code(s): 200
response == {
"location": "str",
"properties": {
"administration": {
"members": [
"str"
]
},
"provisioningState": "str",
"state": "str"
},
"sku": {
"name": "str",
"tier": "str"
},
"id": "str",
"name": "str",
"systemData": {
"createdAt": "2020-02-20 00:00:00",
"createdBy": "str",
"createdByType": "str",
"lastModifiedAt": "2020-02-20 00:00:00",
"lastModifiedBy": "str",
"lastModifiedByType": "str"
},
"tags": {
"str": "str"
},
"type": "str"
}
"""
_headers = kwargs.pop("headers", {}) or {}
_params = kwargs.pop("params", {}) or {}
@ -1436,7 +951,7 @@ class FabricCapacitiesOperations:
response = pipeline_response.http_response
if response.status_code not in [202]:
if response.status_code not in [200, 202]:
try:
await response.read() # Load the body in memory and close the socket
except (StreamConsumedError, StreamClosedError):
@ -1446,8 +961,9 @@ class FabricCapacitiesOperations:
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
response_headers = {}
response_headers["Location"] = self._deserialize("str", response.headers.get("Location"))
response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After"))
if response.status_code == 202:
response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After"))
response_headers["Location"] = self._deserialize("str", response.headers.get("Location"))
deserialized = response.iter_bytes()
@ -1550,7 +1066,7 @@ class FabricCapacitiesOperations:
response = pipeline_response.http_response
if response.status_code not in [202]:
if response.status_code not in [200, 202]:
try:
await response.read() # Load the body in memory and close the socket
except (StreamConsumedError, StreamClosedError):
@ -1560,8 +1076,9 @@ class FabricCapacitiesOperations:
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
response_headers = {}
response_headers["Location"] = self._deserialize("str", response.headers.get("Location"))
response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After"))
if response.status_code == 202:
response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After"))
response_headers["Location"] = self._deserialize("str", response.headers.get("Location"))
deserialized = response.iter_bytes()
@ -1650,22 +1167,6 @@ class FabricCapacitiesOperations:
MutableMapping
:rtype: ~azure.mgmt.fabric.models.CheckNameAvailabilityResponse
:raises ~azure.core.exceptions.HttpResponseError:
Example:
.. code-block:: python
# JSON input template you can fill out and use as your body input.
body = {
"name": "str",
"type": "str"
}
# response body for status code(s): 200
response == {
"message": "str",
"nameAvailable": bool,
"reason": "str"
}
"""
@overload
@ -1685,16 +1186,6 @@ class FabricCapacitiesOperations:
MutableMapping
:rtype: ~azure.mgmt.fabric.models.CheckNameAvailabilityResponse
:raises ~azure.core.exceptions.HttpResponseError:
Example:
.. code-block:: python
# response body for status code(s): 200
response == {
"message": "str",
"nameAvailable": bool,
"reason": "str"
}
"""
@overload
@ -1714,16 +1205,6 @@ class FabricCapacitiesOperations:
MutableMapping
:rtype: ~azure.mgmt.fabric.models.CheckNameAvailabilityResponse
:raises ~azure.core.exceptions.HttpResponseError:
Example:
.. code-block:: python
# response body for status code(s): 200
response == {
"message": "str",
"nameAvailable": bool,
"reason": "str"
}
"""
@distributed_trace_async
@ -1741,22 +1222,6 @@ class FabricCapacitiesOperations:
MutableMapping
:rtype: ~azure.mgmt.fabric.models.CheckNameAvailabilityResponse
:raises ~azure.core.exceptions.HttpResponseError:
Example:
.. code-block:: python
# JSON input template you can fill out and use as your body input.
body = {
"name": "str",
"type": "str"
}
# response body for status code(s): 200
response == {
"message": "str",
"nameAvailable": bool,
"reason": "str"
}
"""
error_map: MutableMapping[int, Type[HttpResponseError]] = {
401: ClientAuthenticationError,
@ -1835,18 +1300,6 @@ class FabricCapacitiesOperations:
:rtype:
~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.fabric.models.RpSkuDetailsForExistingResource]
:raises ~azure.core.exceptions.HttpResponseError:
Example:
.. code-block:: python
# response body for status code(s): 200
response == {
"resourceType": "str",
"sku": {
"name": "str",
"tier": "str"
}
}
"""
_headers = kwargs.pop("headers", {}) or {}
_params = kwargs.pop("params", {}) or {}
@ -1934,18 +1387,6 @@ class FabricCapacitiesOperations:
:rtype:
~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.fabric.models.RpSkuDetailsForNewResource]
:raises ~azure.core.exceptions.HttpResponseError:
Example:
.. code-block:: python
# response body for status code(s): 200
response == {
"locations": [
"str"
],
"name": "str",
"resourceType": "str"
}
"""
_headers = kwargs.pop("headers", {}) or {}
_params = kwargs.pop("params", {}) or {}
@ -2048,23 +1489,6 @@ class Operations:
:return: An iterator like instance of Operation
:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.fabric.models.Operation]
:raises ~azure.core.exceptions.HttpResponseError:
Example:
.. code-block:: python
# response body for status code(s): 200
response == {
"actionType": "str",
"display": {
"description": "str",
"operation": "str",
"provider": "str",
"resource": "str"
},
"isDataAction": bool,
"name": "str",
"origin": "str"
}
"""
_headers = kwargs.pop("headers", {}) or {}
_params = kwargs.pop("params", {}) or {}

Просмотреть файл

@ -407,41 +407,6 @@ class FabricCapacitiesOperations:
:return: FabricCapacity. The FabricCapacity is compatible with MutableMapping
:rtype: ~azure.mgmt.fabric.models.FabricCapacity
:raises ~azure.core.exceptions.HttpResponseError:
Example:
.. code-block:: python
# response body for status code(s): 200
response == {
"location": "str",
"properties": {
"administration": {
"members": [
"str"
]
},
"provisioningState": "str",
"state": "str"
},
"sku": {
"name": "str",
"tier": "str"
},
"id": "str",
"name": "str",
"systemData": {
"createdAt": "2020-02-20 00:00:00",
"createdBy": "str",
"createdByType": "str",
"lastModifiedAt": "2020-02-20 00:00:00",
"lastModifiedBy": "str",
"lastModifiedByType": "str"
},
"tags": {
"str": "str"
},
"type": "str"
}
"""
error_map: MutableMapping[int, Type[HttpResponseError]] = {
401: ClientAuthenticationError,
@ -596,73 +561,6 @@ class FabricCapacitiesOperations:
with MutableMapping
:rtype: ~azure.core.polling.LROPoller[~azure.mgmt.fabric.models.FabricCapacity]
:raises ~azure.core.exceptions.HttpResponseError:
Example:
.. code-block:: python
# JSON input template you can fill out and use as your body input.
resource = {
"location": "str",
"properties": {
"administration": {
"members": [
"str"
]
},
"provisioningState": "str",
"state": "str"
},
"sku": {
"name": "str",
"tier": "str"
},
"id": "str",
"name": "str",
"systemData": {
"createdAt": "2020-02-20 00:00:00",
"createdBy": "str",
"createdByType": "str",
"lastModifiedAt": "2020-02-20 00:00:00",
"lastModifiedBy": "str",
"lastModifiedByType": "str"
},
"tags": {
"str": "str"
},
"type": "str"
}
# response body for status code(s): 200, 201
response == {
"location": "str",
"properties": {
"administration": {
"members": [
"str"
]
},
"provisioningState": "str",
"state": "str"
},
"sku": {
"name": "str",
"tier": "str"
},
"id": "str",
"name": "str",
"systemData": {
"createdAt": "2020-02-20 00:00:00",
"createdBy": "str",
"createdByType": "str",
"lastModifiedAt": "2020-02-20 00:00:00",
"lastModifiedBy": "str",
"lastModifiedByType": "str"
},
"tags": {
"str": "str"
},
"type": "str"
}
"""
@overload
@ -692,41 +590,6 @@ class FabricCapacitiesOperations:
with MutableMapping
:rtype: ~azure.core.polling.LROPoller[~azure.mgmt.fabric.models.FabricCapacity]
:raises ~azure.core.exceptions.HttpResponseError:
Example:
.. code-block:: python
# response body for status code(s): 200, 201
response == {
"location": "str",
"properties": {
"administration": {
"members": [
"str"
]
},
"provisioningState": "str",
"state": "str"
},
"sku": {
"name": "str",
"tier": "str"
},
"id": "str",
"name": "str",
"systemData": {
"createdAt": "2020-02-20 00:00:00",
"createdBy": "str",
"createdByType": "str",
"lastModifiedAt": "2020-02-20 00:00:00",
"lastModifiedBy": "str",
"lastModifiedByType": "str"
},
"tags": {
"str": "str"
},
"type": "str"
}
"""
@overload
@ -756,41 +619,6 @@ class FabricCapacitiesOperations:
with MutableMapping
:rtype: ~azure.core.polling.LROPoller[~azure.mgmt.fabric.models.FabricCapacity]
:raises ~azure.core.exceptions.HttpResponseError:
Example:
.. code-block:: python
# response body for status code(s): 200, 201
response == {
"location": "str",
"properties": {
"administration": {
"members": [
"str"
]
},
"provisioningState": "str",
"state": "str"
},
"sku": {
"name": "str",
"tier": "str"
},
"id": "str",
"name": "str",
"systemData": {
"createdAt": "2020-02-20 00:00:00",
"createdBy": "str",
"createdByType": "str",
"lastModifiedAt": "2020-02-20 00:00:00",
"lastModifiedBy": "str",
"lastModifiedByType": "str"
},
"tags": {
"str": "str"
},
"type": "str"
}
"""
@distributed_trace
@ -816,73 +644,6 @@ class FabricCapacitiesOperations:
with MutableMapping
:rtype: ~azure.core.polling.LROPoller[~azure.mgmt.fabric.models.FabricCapacity]
:raises ~azure.core.exceptions.HttpResponseError:
Example:
.. code-block:: python
# JSON input template you can fill out and use as your body input.
resource = {
"location": "str",
"properties": {
"administration": {
"members": [
"str"
]
},
"provisioningState": "str",
"state": "str"
},
"sku": {
"name": "str",
"tier": "str"
},
"id": "str",
"name": "str",
"systemData": {
"createdAt": "2020-02-20 00:00:00",
"createdBy": "str",
"createdByType": "str",
"lastModifiedAt": "2020-02-20 00:00:00",
"lastModifiedBy": "str",
"lastModifiedByType": "str"
},
"tags": {
"str": "str"
},
"type": "str"
}
# response body for status code(s): 200, 201
response == {
"location": "str",
"properties": {
"administration": {
"members": [
"str"
]
},
"provisioningState": "str",
"state": "str"
},
"sku": {
"name": "str",
"tier": "str"
},
"id": "str",
"name": "str",
"systemData": {
"createdAt": "2020-02-20 00:00:00",
"createdBy": "str",
"createdByType": "str",
"lastModifiedAt": "2020-02-20 00:00:00",
"lastModifiedBy": "str",
"lastModifiedByType": "str"
},
"tags": {
"str": "str"
},
"type": "str"
}
"""
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = kwargs.pop("params", {}) or {}
@ -1034,59 +795,6 @@ class FabricCapacitiesOperations:
with MutableMapping
:rtype: ~azure.core.polling.LROPoller[~azure.mgmt.fabric.models.FabricCapacity]
:raises ~azure.core.exceptions.HttpResponseError:
Example:
.. code-block:: python
# JSON input template you can fill out and use as your body input.
properties = {
"properties": {
"administration": {
"members": [
"str"
]
}
},
"sku": {
"name": "str",
"tier": "str"
},
"tags": {
"str": "str"
}
}
# response body for status code(s): 200, 202
response == {
"location": "str",
"properties": {
"administration": {
"members": [
"str"
]
},
"provisioningState": "str",
"state": "str"
},
"sku": {
"name": "str",
"tier": "str"
},
"id": "str",
"name": "str",
"systemData": {
"createdAt": "2020-02-20 00:00:00",
"createdBy": "str",
"createdByType": "str",
"lastModifiedAt": "2020-02-20 00:00:00",
"lastModifiedBy": "str",
"lastModifiedByType": "str"
},
"tags": {
"str": "str"
},
"type": "str"
}
"""
@overload
@ -1116,41 +824,6 @@ class FabricCapacitiesOperations:
with MutableMapping
:rtype: ~azure.core.polling.LROPoller[~azure.mgmt.fabric.models.FabricCapacity]
:raises ~azure.core.exceptions.HttpResponseError:
Example:
.. code-block:: python
# response body for status code(s): 200, 202
response == {
"location": "str",
"properties": {
"administration": {
"members": [
"str"
]
},
"provisioningState": "str",
"state": "str"
},
"sku": {
"name": "str",
"tier": "str"
},
"id": "str",
"name": "str",
"systemData": {
"createdAt": "2020-02-20 00:00:00",
"createdBy": "str",
"createdByType": "str",
"lastModifiedAt": "2020-02-20 00:00:00",
"lastModifiedBy": "str",
"lastModifiedByType": "str"
},
"tags": {
"str": "str"
},
"type": "str"
}
"""
@overload
@ -1180,41 +853,6 @@ class FabricCapacitiesOperations:
with MutableMapping
:rtype: ~azure.core.polling.LROPoller[~azure.mgmt.fabric.models.FabricCapacity]
:raises ~azure.core.exceptions.HttpResponseError:
Example:
.. code-block:: python
# response body for status code(s): 200, 202
response == {
"location": "str",
"properties": {
"administration": {
"members": [
"str"
]
},
"provisioningState": "str",
"state": "str"
},
"sku": {
"name": "str",
"tier": "str"
},
"id": "str",
"name": "str",
"systemData": {
"createdAt": "2020-02-20 00:00:00",
"createdBy": "str",
"createdByType": "str",
"lastModifiedAt": "2020-02-20 00:00:00",
"lastModifiedBy": "str",
"lastModifiedByType": "str"
},
"tags": {
"str": "str"
},
"type": "str"
}
"""
@distributed_trace
@ -1240,59 +878,6 @@ class FabricCapacitiesOperations:
with MutableMapping
:rtype: ~azure.core.polling.LROPoller[~azure.mgmt.fabric.models.FabricCapacity]
:raises ~azure.core.exceptions.HttpResponseError:
Example:
.. code-block:: python
# JSON input template you can fill out and use as your body input.
properties = {
"properties": {
"administration": {
"members": [
"str"
]
}
},
"sku": {
"name": "str",
"tier": "str"
},
"tags": {
"str": "str"
}
}
# response body for status code(s): 200, 202
response == {
"location": "str",
"properties": {
"administration": {
"members": [
"str"
]
},
"provisioningState": "str",
"state": "str"
},
"sku": {
"name": "str",
"tier": "str"
},
"id": "str",
"name": "str",
"systemData": {
"createdAt": "2020-02-20 00:00:00",
"createdBy": "str",
"createdByType": "str",
"lastModifiedAt": "2020-02-20 00:00:00",
"lastModifiedBy": "str",
"lastModifiedByType": "str"
},
"tags": {
"str": "str"
},
"type": "str"
}
"""
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = kwargs.pop("params", {}) or {}
@ -1469,41 +1054,6 @@ class FabricCapacitiesOperations:
:return: An iterator like instance of FabricCapacity
:rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.fabric.models.FabricCapacity]
:raises ~azure.core.exceptions.HttpResponseError:
Example:
.. code-block:: python
# response body for status code(s): 200
response == {
"location": "str",
"properties": {
"administration": {
"members": [
"str"
]
},
"provisioningState": "str",
"state": "str"
},
"sku": {
"name": "str",
"tier": "str"
},
"id": "str",
"name": "str",
"systemData": {
"createdAt": "2020-02-20 00:00:00",
"createdBy": "str",
"createdByType": "str",
"lastModifiedAt": "2020-02-20 00:00:00",
"lastModifiedBy": "str",
"lastModifiedByType": "str"
},
"tags": {
"str": "str"
},
"type": "str"
}
"""
_headers = kwargs.pop("headers", {}) or {}
_params = kwargs.pop("params", {}) or {}
@ -1589,41 +1139,6 @@ class FabricCapacitiesOperations:
:return: An iterator like instance of FabricCapacity
:rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.fabric.models.FabricCapacity]
:raises ~azure.core.exceptions.HttpResponseError:
Example:
.. code-block:: python
# response body for status code(s): 200
response == {
"location": "str",
"properties": {
"administration": {
"members": [
"str"
]
},
"provisioningState": "str",
"state": "str"
},
"sku": {
"name": "str",
"tier": "str"
},
"id": "str",
"name": "str",
"systemData": {
"createdAt": "2020-02-20 00:00:00",
"createdBy": "str",
"createdByType": "str",
"lastModifiedAt": "2020-02-20 00:00:00",
"lastModifiedBy": "str",
"lastModifiedByType": "str"
},
"tags": {
"str": "str"
},
"type": "str"
}
"""
_headers = kwargs.pop("headers", {}) or {}
_params = kwargs.pop("params", {}) or {}
@ -1735,7 +1250,7 @@ class FabricCapacitiesOperations:
response = pipeline_response.http_response
if response.status_code not in [202]:
if response.status_code not in [200, 202]:
try:
response.read() # Load the body in memory and close the socket
except (StreamConsumedError, StreamClosedError):
@ -1745,8 +1260,9 @@ class FabricCapacitiesOperations:
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
response_headers = {}
response_headers["Location"] = self._deserialize("str", response.headers.get("Location"))
response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After"))
if response.status_code == 202:
response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After"))
response_headers["Location"] = self._deserialize("str", response.headers.get("Location"))
deserialized = response.iter_bytes()
@ -1847,7 +1363,7 @@ class FabricCapacitiesOperations:
response = pipeline_response.http_response
if response.status_code not in [202]:
if response.status_code not in [200, 202]:
try:
response.read() # Load the body in memory and close the socket
except (StreamConsumedError, StreamClosedError):
@ -1857,8 +1373,9 @@ class FabricCapacitiesOperations:
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
response_headers = {}
response_headers["Location"] = self._deserialize("str", response.headers.get("Location"))
response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After"))
if response.status_code == 202:
response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After"))
response_headers["Location"] = self._deserialize("str", response.headers.get("Location"))
deserialized = response.iter_bytes()
@ -1947,22 +1464,6 @@ class FabricCapacitiesOperations:
MutableMapping
:rtype: ~azure.mgmt.fabric.models.CheckNameAvailabilityResponse
:raises ~azure.core.exceptions.HttpResponseError:
Example:
.. code-block:: python
# JSON input template you can fill out and use as your body input.
body = {
"name": "str",
"type": "str"
}
# response body for status code(s): 200
response == {
"message": "str",
"nameAvailable": bool,
"reason": "str"
}
"""
@overload
@ -1982,16 +1483,6 @@ class FabricCapacitiesOperations:
MutableMapping
:rtype: ~azure.mgmt.fabric.models.CheckNameAvailabilityResponse
:raises ~azure.core.exceptions.HttpResponseError:
Example:
.. code-block:: python
# response body for status code(s): 200
response == {
"message": "str",
"nameAvailable": bool,
"reason": "str"
}
"""
@overload
@ -2011,16 +1502,6 @@ class FabricCapacitiesOperations:
MutableMapping
:rtype: ~azure.mgmt.fabric.models.CheckNameAvailabilityResponse
:raises ~azure.core.exceptions.HttpResponseError:
Example:
.. code-block:: python
# response body for status code(s): 200
response == {
"message": "str",
"nameAvailable": bool,
"reason": "str"
}
"""
@distributed_trace
@ -2038,22 +1519,6 @@ class FabricCapacitiesOperations:
MutableMapping
:rtype: ~azure.mgmt.fabric.models.CheckNameAvailabilityResponse
:raises ~azure.core.exceptions.HttpResponseError:
Example:
.. code-block:: python
# JSON input template you can fill out and use as your body input.
body = {
"name": "str",
"type": "str"
}
# response body for status code(s): 200
response == {
"message": "str",
"nameAvailable": bool,
"reason": "str"
}
"""
error_map: MutableMapping[int, Type[HttpResponseError]] = {
401: ClientAuthenticationError,
@ -2131,18 +1596,6 @@ class FabricCapacitiesOperations:
:return: An iterator like instance of RpSkuDetailsForExistingResource
:rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.fabric.models.RpSkuDetailsForExistingResource]
:raises ~azure.core.exceptions.HttpResponseError:
Example:
.. code-block:: python
# response body for status code(s): 200
response == {
"resourceType": "str",
"sku": {
"name": "str",
"tier": "str"
}
}
"""
_headers = kwargs.pop("headers", {}) or {}
_params = kwargs.pop("params", {}) or {}
@ -2229,18 +1682,6 @@ class FabricCapacitiesOperations:
:return: An iterator like instance of RpSkuDetailsForNewResource
:rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.fabric.models.RpSkuDetailsForNewResource]
:raises ~azure.core.exceptions.HttpResponseError:
Example:
.. code-block:: python
# response body for status code(s): 200
response == {
"locations": [
"str"
],
"name": "str",
"resourceType": "str"
}
"""
_headers = kwargs.pop("headers", {}) or {}
_params = kwargs.pop("params", {}) or {}
@ -2343,23 +1784,6 @@ class Operations:
:return: An iterator like instance of Operation
:rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.fabric.models.Operation]
:raises ~azure.core.exceptions.HttpResponseError:
Example:
.. code-block:: python
# response body for status code(s): 200
response == {
"actionType": "str",
"display": {
"description": "str",
"operation": "str",
"provider": "str",
"resource": "str"
},
"isDataAction": bool,
"name": "str",
"origin": "str"
}
"""
_headers = kwargs.pop("headers", {}) or {}
_params = kwargs.pop("params", {}) or {}

Просмотреть файл

@ -27,7 +27,7 @@ from azure.mgmt.fabric import FabricMgmtClient
def main():
client = FabricMgmtClient(
credential=DefaultAzureCredential(),
subscription_id="548B7FB7-3B2A-4F46-BB02-66473F1FC22C",
subscription_id="SUBSCRIPTION_ID",
)
response = client.fabric_capacities.check_name_availability(

Просмотреть файл

@ -27,7 +27,7 @@ from azure.mgmt.fabric import FabricMgmtClient
def main():
client = FabricMgmtClient(
credential=DefaultAzureCredential(),
subscription_id="548B7FB7-3B2A-4F46-BB02-66473F1FC22C",
subscription_id="SUBSCRIPTION_ID",
)
response = client.fabric_capacities.begin_create_or_update(

Просмотреть файл

@ -27,7 +27,7 @@ from azure.mgmt.fabric import FabricMgmtClient
def main():
client = FabricMgmtClient(
credential=DefaultAzureCredential(),
subscription_id="548B7FB7-3B2A-4F46-BB02-66473F1FC22C",
subscription_id="SUBSCRIPTION_ID",
)
client.fabric_capacities.begin_delete(

Просмотреть файл

@ -27,7 +27,7 @@ from azure.mgmt.fabric import FabricMgmtClient
def main():
client = FabricMgmtClient(
credential=DefaultAzureCredential(),
subscription_id="548B7FB7-3B2A-4F46-BB02-66473F1FC22C",
subscription_id="SUBSCRIPTION_ID",
)
response = client.fabric_capacities.get(

Просмотреть файл

@ -27,7 +27,7 @@ from azure.mgmt.fabric import FabricMgmtClient
def main():
client = FabricMgmtClient(
credential=DefaultAzureCredential(),
subscription_id="548B7FB7-3B2A-4F46-BB02-66473F1FC22C",
subscription_id="SUBSCRIPTION_ID",
)
response = client.fabric_capacities.list_by_resource_group(

Просмотреть файл

@ -27,7 +27,7 @@ from azure.mgmt.fabric import FabricMgmtClient
def main():
client = FabricMgmtClient(
credential=DefaultAzureCredential(),
subscription_id="548B7FB7-3B2A-4F46-BB02-66473F1FC22C",
subscription_id="SUBSCRIPTION_ID",
)
response = client.fabric_capacities.list_by_subscription()

Просмотреть файл

@ -27,7 +27,7 @@ from azure.mgmt.fabric import FabricMgmtClient
def main():
client = FabricMgmtClient(
credential=DefaultAzureCredential(),
subscription_id="548B7FB7-3B2A-4F46-BB02-66473F1FC22C",
subscription_id="SUBSCRIPTION_ID",
)
response = client.fabric_capacities.list_skus()

Просмотреть файл

@ -27,7 +27,7 @@ from azure.mgmt.fabric import FabricMgmtClient
def main():
client = FabricMgmtClient(
credential=DefaultAzureCredential(),
subscription_id="548B7FB7-3B2A-4F46-BB02-66473F1FC22C",
subscription_id="SUBSCRIPTION_ID",
)
response = client.fabric_capacities.list_skus_for_capacity(

Просмотреть файл

@ -27,7 +27,7 @@ from azure.mgmt.fabric import FabricMgmtClient
def main():
client = FabricMgmtClient(
credential=DefaultAzureCredential(),
subscription_id="548B7FB7-3B2A-4F46-BB02-66473F1FC22C",
subscription_id="SUBSCRIPTION_ID",
)
client.fabric_capacities.begin_resume(

Просмотреть файл

@ -27,7 +27,7 @@ from azure.mgmt.fabric import FabricMgmtClient
def main():
client = FabricMgmtClient(
credential=DefaultAzureCredential(),
subscription_id="548B7FB7-3B2A-4F46-BB02-66473F1FC22C",
subscription_id="SUBSCRIPTION_ID",
)
client.fabric_capacities.begin_suspend(

Просмотреть файл

@ -27,7 +27,7 @@ from azure.mgmt.fabric import FabricMgmtClient
def main():
client = FabricMgmtClient(
credential=DefaultAzureCredential(),
subscription_id="548B7FB7-3B2A-4F46-BB02-66473F1FC22C",
subscription_id="SUBSCRIPTION_ID",
)
response = client.fabric_capacities.begin_update(

Просмотреть файл

@ -27,4 +27,3 @@ class TestFabricMgmtFabricCapacitiesOperationsAsync(AzureMgmtRecordedTestCase):
)
result = [r async for r in response]
assert result == []

Просмотреть файл

@ -16,7 +16,7 @@ AZURE_LOCATION = "eastus"
@pytest.mark.live_test_only
class TestFabricMgmtFabricCapacitiesOperations(AzureMgmtRecordedTestCase):
def setup_method(self, method):
self.client = self.create_mgmt_client(FabricMgmtClient)
self.client = self.create_mgmt_client(FabricMgmtClient)
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy

Просмотреть файл

@ -25,4 +25,3 @@ class TestFabricMgmtOperationsAsync(AzureMgmtRecordedTestCase):
response = self.client.operations.list()
result = [r async for r in response]
assert result

Просмотреть файл

@ -24,4 +24,3 @@ class TestFabricMgmtOperations(AzureMgmtRecordedTestCase):
response = self.client.operations.list()
result = [r for r in response]
assert result

Просмотреть файл

@ -1,4 +1,4 @@
directory: specification/fabric/Microsoft.Fabric.Management
commit: d9238c052c5eb82013e0ee5f34293bb4a3fb99e8
commit: 28c5000054bf2e8112b5543025a519fa60902503
repo: Azure/azure-rest-api-specs
additionalDirectories:
additionalDirectories: