diff --git a/sdk/impactreporting/azure-mgmt-impactreporting/_meta.json b/sdk/impactreporting/azure-mgmt-impactreporting/_meta.json
index 4caffc2c4bcf..a7419679cc86 100644
--- a/sdk/impactreporting/azure-mgmt-impactreporting/_meta.json
+++ b/sdk/impactreporting/azure-mgmt-impactreporting/_meta.json
@@ -1,6 +1,6 @@
{
- "commit": "2ed1d371e3519553cd527c1f9f2c316f9ed58f47",
+ "commit": "bb720b097f7c7afa6cdc8246f6fb654ef390993a",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"typespec_src": "specification/impact/Impact.Management",
- "@azure-tools/typespec-python": "0.38.4"
+ "@azure-tools/typespec-python": "0.40.0"
}
\ No newline at end of file
diff --git a/sdk/impactreporting/azure-mgmt-impactreporting/azure/mgmt/impactreporting/_serialization.py b/sdk/impactreporting/azure-mgmt-impactreporting/azure/mgmt/impactreporting/_serialization.py
index e2a20b1d534c..7a0232de5ddc 100644
--- a/sdk/impactreporting/azure-mgmt-impactreporting/azure/mgmt/impactreporting/_serialization.py
+++ b/sdk/impactreporting/azure-mgmt-impactreporting/azure/mgmt/impactreporting/_serialization.py
@@ -411,7 +411,7 @@ def from_dict(
:param function key_extractors: A key extractor function.
:param str content_type: JSON by default, set application/xml if XML.
:returns: An instance of this model
- :raises: DeserializationError if something went wrong
+ :raises DeserializationError: if something went wrong
:rtype: Self
"""
deserializer = Deserializer(cls._infer_class_models())
diff --git a/sdk/impactreporting/azure-mgmt-impactreporting/azure/mgmt/impactreporting/aio/operations/_operations.py b/sdk/impactreporting/azure-mgmt-impactreporting/azure/mgmt/impactreporting/aio/operations/_operations.py
index 2250b7f9282e..6b0c9851721f 100644
--- a/sdk/impactreporting/azure-mgmt-impactreporting/azure/mgmt/impactreporting/aio/operations/_operations.py
+++ b/sdk/impactreporting/azure-mgmt-impactreporting/azure/mgmt/impactreporting/aio/operations/_operations.py
@@ -142,7 +142,7 @@ def prepare_request(next_link=None):
async def extract_data(pipeline_response):
deserialized = pipeline_response.http_response.json()
- list_of_elem = _deserialize(List[_models.Operation], deserialized["value"])
+ list_of_elem = _deserialize(List[_models.Operation], deserialized.get("value", []))
if cls:
list_of_elem = cls(list_of_elem) # type: ignore
return deserialized.get("nextLink") or None, AsyncList(list_of_elem)
@@ -554,7 +554,7 @@ def prepare_request(next_link=None):
async def extract_data(pipeline_response):
deserialized = pipeline_response.http_response.json()
- list_of_elem = _deserialize(List[_models.WorkloadImpact], deserialized["value"])
+ list_of_elem = _deserialize(List[_models.WorkloadImpact], deserialized.get("value", []))
if cls:
list_of_elem = cls(list_of_elem) # type: ignore
return deserialized.get("nextLink") or None, AsyncList(list_of_elem)
@@ -727,7 +727,7 @@ def prepare_request(next_link=None):
async def extract_data(pipeline_response):
deserialized = pipeline_response.http_response.json()
- list_of_elem = _deserialize(List[_models.ImpactCategory], deserialized["value"])
+ list_of_elem = _deserialize(List[_models.ImpactCategory], deserialized.get("value", []))
if cls:
list_of_elem = cls(list_of_elem) # type: ignore
return deserialized.get("nextLink") or None, AsyncList(list_of_elem)
@@ -897,7 +897,7 @@ def prepare_request(next_link=None):
async def extract_data(pipeline_response):
deserialized = pipeline_response.http_response.json()
- list_of_elem = _deserialize(List[_models.Insight], deserialized["value"])
+ list_of_elem = _deserialize(List[_models.Insight], deserialized.get("value", []))
if cls:
list_of_elem = cls(list_of_elem) # type: ignore
return deserialized.get("nextLink") or None, AsyncList(list_of_elem)
@@ -1654,7 +1654,7 @@ def prepare_request(next_link=None):
async def extract_data(pipeline_response):
deserialized = pipeline_response.http_response.json()
- list_of_elem = _deserialize(List[_models.Connector], deserialized["value"])
+ list_of_elem = _deserialize(List[_models.Connector], deserialized.get("value", []))
if cls:
list_of_elem = cls(list_of_elem) # type: ignore
return deserialized.get("nextLink") or None, AsyncList(list_of_elem)
diff --git a/sdk/impactreporting/azure-mgmt-impactreporting/azure/mgmt/impactreporting/models/_models.py b/sdk/impactreporting/azure-mgmt-impactreporting/azure/mgmt/impactreporting/models/_models.py
index 3adb9bcdef97..efc6c8f171d2 100644
--- a/sdk/impactreporting/azure-mgmt-impactreporting/azure/mgmt/impactreporting/models/_models.py
+++ b/sdk/impactreporting/azure-mgmt-impactreporting/azure/mgmt/impactreporting/models/_models.py
@@ -112,8 +112,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
class Resource(_model_base.Model):
"""Common fields that are returned in the response for all Azure Resource Manager resources.
- Readonly variables are only populated by the server, and will be ignored when sending a request.
-
:ivar id: Fully qualified resource ID for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
:vartype id: str
@@ -143,8 +141,6 @@ class ProxyResource(Resource):
"""The resource model definition for a Azure Resource Manager proxy resource. It will not have
tags and a location.
- Readonly variables are only populated by the server, and will be ignored when sending a request.
-
:ivar id: Fully qualified resource ID for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
:vartype id: str
@@ -163,8 +159,6 @@ class Connector(ProxyResource):
"""A connector is a resource that can be used to proactively report impacts against workloads in
Azure to Microsoft.
- Readonly variables are only populated by the server, and will be ignored when sending a request.
-
:ivar id: Fully qualified resource ID for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
:vartype id: str
@@ -206,9 +200,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
class ConnectorProperties(_model_base.Model):
"""Details of the Connector.
- Readonly variables are only populated by the server, and will be ignored when sending a request.
-
-
:ivar provisioning_state: Resource provisioning state. Known values are: "Succeeded", "Failed",
and "Canceled".
:vartype provisioning_state: str or ~azure.mgmt.impactreporting.models.ProvisioningState
@@ -318,7 +309,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
class Content(_model_base.Model):
"""Article details of the insight like title, description etc.
-
:ivar title: Title of the insight. Required.
:vartype title: str
:ivar description: Description of the insight. Required.
@@ -352,8 +342,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
class ErrorAdditionalInfo(_model_base.Model):
"""The resource management error additional info.
- Readonly variables are only populated by the server, and will be ignored when sending a request.
-
:ivar type: The additional info type.
:vartype type: str
:ivar info: The additional info.
@@ -369,8 +357,6 @@ class ErrorAdditionalInfo(_model_base.Model):
class ErrorDetail(_model_base.Model):
"""The error detail.
- Readonly variables are only populated by the server, and will be ignored when sending a request.
-
:ivar code: The error code.
:vartype code: str
:ivar message: The error message.
@@ -464,7 +450,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
class ExpectedValueRange(_model_base.Model):
"""Max and Min Threshold values for the metric.
-
:ivar min: Min threshold value for the metric. Required.
:vartype min: float
:ivar max: Max threshold value for the metric. Required.
@@ -498,8 +483,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
class ImpactCategory(ProxyResource):
"""ImpactCategory resource.
- Readonly variables are only populated by the server, and will be ignored when sending a request.
-
:ivar id: Fully qualified resource ID for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
:vartype id: str
@@ -541,9 +524,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
class ImpactCategoryProperties(_model_base.Model):
"""Impact category properties.
- Readonly variables are only populated by the server, and will be ignored when sending a request.
-
-
:ivar provisioning_state: Resource provisioning state. Known values are: "Succeeded", "Failed",
and "Canceled".
:vartype provisioning_state: str or ~azure.mgmt.impactreporting.models.ProvisioningState
@@ -600,7 +580,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
class ImpactDetails(_model_base.Model):
"""details of of the impact for which insight has been generated.
-
:ivar impacted_resource_id: List of impacted Azure resources. Required.
:vartype impacted_resource_id: str
:ivar start_time: Time at which impact was started according to reported impact. Required.
@@ -650,8 +629,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
class Insight(ProxyResource):
"""Insight resource.
- Readonly variables are only populated by the server, and will be ignored when sending a request.
-
:ivar id: Fully qualified resource ID for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
:vartype id: str
@@ -693,9 +670,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
class InsightProperties(_model_base.Model):
"""Impact category properties.
- Readonly variables are only populated by the server, and will be ignored when sending a request.
-
-
:ivar provisioning_state: Resource provisioning state. Known values are: "Succeeded", "Failed",
and "Canceled".
:vartype provisioning_state: str or ~azure.mgmt.impactreporting.models.ProvisioningState
@@ -779,8 +753,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
class Operation(_model_base.Model):
"""Details of a REST API operation, returned from the Resource Provider Operations API.
- Readonly variables are only populated by the server, and will be ignored when sending a request.
-
:ivar name: The name of the operation, as per Resource-Based Access Control (RBAC). Examples:
"Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action".
:vartype name: str
@@ -838,8 +810,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
class OperationDisplay(_model_base.Model):
"""Localized display information for and operation.
- Readonly variables are only populated by the server, and will be ignored when sending a request.
-
:ivar provider: The localized friendly form of the resource provider name, e.g. "Microsoft
Monitoring Insights" or "Microsoft Compute".
:vartype provider: str
@@ -933,7 +903,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
class RequiredImpactProperties(_model_base.Model):
"""Required impact properties.
-
:ivar name: Name of the property. Required.
:vartype name: str
:ivar allowed_values: Allowed values values for the property.
@@ -1105,8 +1074,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
class WorkloadImpact(ProxyResource):
"""Workload Impact properties.
- Readonly variables are only populated by the server, and will be ignored when sending a request.
-
:ivar id: Fully qualified resource ID for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
:vartype id: str
@@ -1148,9 +1115,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
class WorkloadImpactProperties(_model_base.Model):
"""Workload impact properties.
- Readonly variables are only populated by the server, and will be ignored when sending a request.
-
-
:ivar provisioning_state: Resource provisioning state. Known values are: "Succeeded", "Failed",
and "Canceled".
:vartype provisioning_state: str or ~azure.mgmt.impactreporting.models.ProvisioningState
diff --git a/sdk/impactreporting/azure-mgmt-impactreporting/azure/mgmt/impactreporting/operations/_operations.py b/sdk/impactreporting/azure-mgmt-impactreporting/azure/mgmt/impactreporting/operations/_operations.py
index abde1505d85c..4c11f6c66d8d 100644
--- a/sdk/impactreporting/azure-mgmt-impactreporting/azure/mgmt/impactreporting/operations/_operations.py
+++ b/sdk/impactreporting/azure-mgmt-impactreporting/azure/mgmt/impactreporting/operations/_operations.py
@@ -555,7 +555,7 @@ def prepare_request(next_link=None):
def extract_data(pipeline_response):
deserialized = pipeline_response.http_response.json()
- list_of_elem = _deserialize(List[_models.Operation], deserialized["value"])
+ list_of_elem = _deserialize(List[_models.Operation], deserialized.get("value", []))
if cls:
list_of_elem = cls(list_of_elem) # type: ignore
return deserialized.get("nextLink") or None, iter(list_of_elem)
@@ -968,7 +968,7 @@ def prepare_request(next_link=None):
def extract_data(pipeline_response):
deserialized = pipeline_response.http_response.json()
- list_of_elem = _deserialize(List[_models.WorkloadImpact], deserialized["value"])
+ list_of_elem = _deserialize(List[_models.WorkloadImpact], deserialized.get("value", []))
if cls:
list_of_elem = cls(list_of_elem) # type: ignore
return deserialized.get("nextLink") or None, iter(list_of_elem)
@@ -1140,7 +1140,7 @@ def prepare_request(next_link=None):
def extract_data(pipeline_response):
deserialized = pipeline_response.http_response.json()
- list_of_elem = _deserialize(List[_models.ImpactCategory], deserialized["value"])
+ list_of_elem = _deserialize(List[_models.ImpactCategory], deserialized.get("value", []))
if cls:
list_of_elem = cls(list_of_elem) # type: ignore
return deserialized.get("nextLink") or None, iter(list_of_elem)
@@ -1310,7 +1310,7 @@ def prepare_request(next_link=None):
def extract_data(pipeline_response):
deserialized = pipeline_response.http_response.json()
- list_of_elem = _deserialize(List[_models.Insight], deserialized["value"])
+ list_of_elem = _deserialize(List[_models.Insight], deserialized.get("value", []))
if cls:
list_of_elem = cls(list_of_elem) # type: ignore
return deserialized.get("nextLink") or None, iter(list_of_elem)
@@ -2069,7 +2069,7 @@ def prepare_request(next_link=None):
def extract_data(pipeline_response):
deserialized = pipeline_response.http_response.json()
- list_of_elem = _deserialize(List[_models.Connector], deserialized["value"])
+ list_of_elem = _deserialize(List[_models.Connector], deserialized.get("value", []))
if cls:
list_of_elem = cls(list_of_elem) # type: ignore
return deserialized.get("nextLink") or None, iter(list_of_elem)
diff --git a/sdk/impactreporting/azure-mgmt-impactreporting/generated_samples/insights_create.py b/sdk/impactreporting/azure-mgmt-impactreporting/generated_samples/insights_create.py
index 939a95aded2e..0c78a7adbbdd 100644
--- a/sdk/impactreporting/azure-mgmt-impactreporting/generated_samples/insights_create.py
+++ b/sdk/impactreporting/azure-mgmt-impactreporting/generated_samples/insights_create.py
@@ -38,7 +38,7 @@ def main():
"properties": {
"category": "repair",
"content": {
- "description": 'At 2018-11-08T00:00:00Z UTC, your services dependent on these resources :code:`VM1` may have experienced an issue. :code:`
`\\ :code:`