@@ -162,7 +162,7 @@ def prepare_request(next_link=None):
162
162
163
163
async def extract_data (pipeline_response ):
164
164
deserialized = pipeline_response .http_response .json ()
165
- list_of_elem = _deserialize (List [_models .Operation ], deserialized [ "value" ] )
165
+ list_of_elem = _deserialize (List [_models .Operation ], deserialized . get ( "value" , []) )
166
166
if cls :
167
167
list_of_elem = cls (list_of_elem ) # type: ignore
168
168
return deserialized .get ("nextLink" ) or None , AsyncList (list_of_elem )
@@ -720,7 +720,7 @@ def prepare_request(next_link=None):
720
720
721
721
async def extract_data (pipeline_response ):
722
722
deserialized = pipeline_response .http_response .json ()
723
- list_of_elem = _deserialize (List [_models .EndpointResource ], deserialized [ "value" ] )
723
+ list_of_elem = _deserialize (List [_models .EndpointResource ], deserialized . get ( "value" , []) )
724
724
if cls :
725
725
list_of_elem = cls (list_of_elem ) # type: ignore
726
726
return deserialized .get ("nextLink" ) or None , AsyncList (list_of_elem )
@@ -1879,7 +1879,7 @@ def prepare_request(next_link=None):
1879
1879
1880
1880
async def extract_data (pipeline_response ):
1881
1881
deserialized = pipeline_response .http_response .json ()
1882
- list_of_elem = _deserialize (List [_models .ServiceConfigurationResource ], deserialized [ "value" ] )
1882
+ list_of_elem = _deserialize (List [_models .ServiceConfigurationResource ], deserialized . get ( "value" , []) )
1883
1883
if cls :
1884
1884
list_of_elem = cls (list_of_elem ) # type: ignore
1885
1885
return deserialized .get ("nextLink" ) or None , AsyncList (list_of_elem )
@@ -2383,7 +2383,7 @@ async def update(
2383
2383
self ,
2384
2384
resource_group_name : str ,
2385
2385
public_cloud_connector : str ,
2386
- properties : _models .PublicCloudConnector ,
2386
+ properties : _models .PublicCloudConnectorUpdate ,
2387
2387
* ,
2388
2388
content_type : str = "application/json" ,
2389
2389
** kwargs : Any
@@ -2396,7 +2396,7 @@ async def update(
2396
2396
:param public_cloud_connector: Represent public cloud connectors resource. Required.
2397
2397
:type public_cloud_connector: str
2398
2398
:param properties: The resource properties to be updated. Required.
2399
- :type properties: ~azure.mgmt.hybridconnectivity.models.PublicCloudConnector
2399
+ :type properties: ~azure.mgmt.hybridconnectivity.models.PublicCloudConnectorUpdate
2400
2400
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
2401
2401
Default value is "application/json".
2402
2402
:paramtype content_type: str
@@ -2464,7 +2464,7 @@ async def update(
2464
2464
self ,
2465
2465
resource_group_name : str ,
2466
2466
public_cloud_connector : str ,
2467
- properties : Union [_models .PublicCloudConnector , JSON , IO [bytes ]],
2467
+ properties : Union [_models .PublicCloudConnectorUpdate , JSON , IO [bytes ]],
2468
2468
** kwargs : Any
2469
2469
) -> _models .PublicCloudConnector :
2470
2470
"""Update a PublicCloudConnector.
@@ -2475,8 +2475,8 @@ async def update(
2475
2475
:param public_cloud_connector: Represent public cloud connectors resource. Required.
2476
2476
:type public_cloud_connector: str
2477
2477
:param properties: The resource properties to be updated. Is one of the following types:
2478
- PublicCloudConnector , JSON, IO[bytes] Required.
2479
- :type properties: ~azure.mgmt.hybridconnectivity.models.PublicCloudConnector or JSON or
2478
+ PublicCloudConnectorUpdate , JSON, IO[bytes] Required.
2479
+ :type properties: ~azure.mgmt.hybridconnectivity.models.PublicCloudConnectorUpdate or JSON or
2480
2480
IO[bytes]
2481
2481
:return: PublicCloudConnector. The PublicCloudConnector is compatible with MutableMapping
2482
2482
:rtype: ~azure.mgmt.hybridconnectivity.models.PublicCloudConnector
@@ -2667,7 +2667,7 @@ def prepare_request(next_link=None):
2667
2667
2668
2668
async def extract_data (pipeline_response ):
2669
2669
deserialized = pipeline_response .http_response .json ()
2670
- list_of_elem = _deserialize (List [_models .PublicCloudConnector ], deserialized [ "value" ] )
2670
+ list_of_elem = _deserialize (List [_models .PublicCloudConnector ], deserialized . get ( "value" , []) )
2671
2671
if cls :
2672
2672
list_of_elem = cls (list_of_elem ) # type: ignore
2673
2673
return deserialized .get ("nextLink" ) or None , AsyncList (list_of_elem )
@@ -2752,7 +2752,7 @@ def prepare_request(next_link=None):
2752
2752
2753
2753
async def extract_data (pipeline_response ):
2754
2754
deserialized = pipeline_response .http_response .json ()
2755
- list_of_elem = _deserialize (List [_models .PublicCloudConnector ], deserialized [ "value" ] )
2755
+ list_of_elem = _deserialize (List [_models .PublicCloudConnector ], deserialized . get ( "value" , []) )
2756
2756
if cls :
2757
2757
list_of_elem = cls (list_of_elem ) # type: ignore
2758
2758
return deserialized .get ("nextLink" ) or None , AsyncList (list_of_elem )
@@ -3158,7 +3158,7 @@ async def update(
3158
3158
self ,
3159
3159
resource_uri : str ,
3160
3160
solution_configuration : str ,
3161
- properties : _models .SolutionConfiguration ,
3161
+ properties : _models .SolutionConfigurationUpdate ,
3162
3162
* ,
3163
3163
content_type : str = "application/json" ,
3164
3164
** kwargs : Any
@@ -3171,7 +3171,7 @@ async def update(
3171
3171
:param solution_configuration: Represent Solution Configuration Resource. Required.
3172
3172
:type solution_configuration: str
3173
3173
:param properties: The resource properties to be updated. Required.
3174
- :type properties: ~azure.mgmt.hybridconnectivity.models.SolutionConfiguration
3174
+ :type properties: ~azure.mgmt.hybridconnectivity.models.SolutionConfigurationUpdate
3175
3175
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
3176
3176
Default value is "application/json".
3177
3177
:paramtype content_type: str
@@ -3239,7 +3239,7 @@ async def update(
3239
3239
self ,
3240
3240
resource_uri : str ,
3241
3241
solution_configuration : str ,
3242
- properties : Union [_models .SolutionConfiguration , JSON , IO [bytes ]],
3242
+ properties : Union [_models .SolutionConfigurationUpdate , JSON , IO [bytes ]],
3243
3243
** kwargs : Any
3244
3244
) -> _models .SolutionConfiguration :
3245
3245
"""Update a SolutionConfiguration.
@@ -3250,8 +3250,8 @@ async def update(
3250
3250
:param solution_configuration: Represent Solution Configuration Resource. Required.
3251
3251
:type solution_configuration: str
3252
3252
:param properties: The resource properties to be updated. Is one of the following types:
3253
- SolutionConfiguration , JSON, IO[bytes] Required.
3254
- :type properties: ~azure.mgmt.hybridconnectivity.models.SolutionConfiguration or JSON or
3253
+ SolutionConfigurationUpdate , JSON, IO[bytes] Required.
3254
+ :type properties: ~azure.mgmt.hybridconnectivity.models.SolutionConfigurationUpdate or JSON or
3255
3255
IO[bytes]
3256
3256
:return: SolutionConfiguration. The SolutionConfiguration is compatible with MutableMapping
3257
3257
:rtype: ~azure.mgmt.hybridconnectivity.models.SolutionConfiguration
@@ -3437,7 +3437,7 @@ def prepare_request(next_link=None):
3437
3437
3438
3438
async def extract_data (pipeline_response ):
3439
3439
deserialized = pipeline_response .http_response .json ()
3440
- list_of_elem = _deserialize (List [_models .SolutionConfiguration ], deserialized [ "value" ] )
3440
+ list_of_elem = _deserialize (List [_models .SolutionConfiguration ], deserialized . get ( "value" , []) )
3441
3441
if cls :
3442
3442
list_of_elem = cls (list_of_elem ) # type: ignore
3443
3443
return deserialized .get ("nextLink" ) or None , AsyncList (list_of_elem )
@@ -3746,7 +3746,7 @@ def prepare_request(next_link=None):
3746
3746
3747
3747
async def extract_data (pipeline_response ):
3748
3748
deserialized = pipeline_response .http_response .json ()
3749
- list_of_elem = _deserialize (List [_models .InventoryResource ], deserialized [ "value" ] )
3749
+ list_of_elem = _deserialize (List [_models .InventoryResource ], deserialized . get ( "value" , []) )
3750
3750
if cls :
3751
3751
list_of_elem = cls (list_of_elem ) # type: ignore
3752
3752
return deserialized .get ("nextLink" ) or None , AsyncList (list_of_elem )
@@ -3923,7 +3923,7 @@ def prepare_request(next_link=None):
3923
3923
3924
3924
async def extract_data (pipeline_response ):
3925
3925
deserialized = pipeline_response .http_response .json ()
3926
- list_of_elem = _deserialize (List [_models .SolutionTypeResource ], deserialized [ "value" ] )
3926
+ list_of_elem = _deserialize (List [_models .SolutionTypeResource ], deserialized . get ( "value" , []) )
3927
3927
if cls :
3928
3928
list_of_elem = cls (list_of_elem ) # type: ignore
3929
3929
return deserialized .get ("nextLink" ) or None , AsyncList (list_of_elem )
@@ -4008,7 +4008,7 @@ def prepare_request(next_link=None):
4008
4008
4009
4009
async def extract_data (pipeline_response ):
4010
4010
deserialized = pipeline_response .http_response .json ()
4011
- list_of_elem = _deserialize (List [_models .SolutionTypeResource ], deserialized [ "value" ] )
4011
+ list_of_elem = _deserialize (List [_models .SolutionTypeResource ], deserialized . get ( "value" , []) )
4012
4012
if cls :
4013
4013
list_of_elem = cls (list_of_elem ) # type: ignore
4014
4014
return deserialized .get ("nextLink" ) or None , AsyncList (list_of_elem )
0 commit comments