Skip to content

Commit 889ed0f

Browse files
author
SDKAuto
committed
CodeGen from PR 3426 in test-repo-billy/azure-rest-api-specs
Merge 8bccee0a3743b150c13ceed41768417041adc96e into c9327ee12bede16737ba6881e54d1d72ccbaca5c
1 parent 2bf9936 commit 889ed0f

File tree

6 files changed

+13
-47
lines changed

6 files changed

+13
-47
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"commit": "c1cea38fb7e5cec9afe223a2ed15cbe2fbeecbdb",
3-
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
2+
"commit": "536b844b64c9dbf1afde72233ba9ebba39825c0e",
3+
"repository_url": "https://github.com/test-repo-billy/azure-rest-api-specs",
44
"typespec_src": "specification/azurefleet/AzureFleet.Management",
5-
"@azure-tools/typespec-python": "0.26.0"
5+
"@azure-tools/typespec-python": "0.27.0"
66
}

sdk/computefleet/azure-mgmt-computefleet/azure/mgmt/computefleet/_model_base.py

+1
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,7 @@ def as_dict(self, *, exclude_readonly: bool = False) -> typing.Dict[str, typing.
563563
"""
564564

565565
result = {}
566+
readonly_props = []
566567
if exclude_readonly:
567568
readonly_props = [p._rest_name for p in self._attr_to_rest_field.values() if _is_readonly(p)]
568569
for k, v in self.items():

sdk/computefleet/azure-mgmt-computefleet/azure/mgmt/computefleet/aio/operations/_operations.py

+3-12
Original file line numberDiff line numberDiff line change
@@ -741,13 +741,10 @@ async def _create_or_update_initial(
741741
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
742742

743743
response_headers = {}
744-
if response.status_code == 200:
745-
deserialized = response.iter_bytes()
746-
747744
if response.status_code == 201:
748745
response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After"))
749746

750-
deserialized = response.iter_bytes()
747+
deserialized = response.iter_bytes()
751748

752749
if cls:
753750
return cls(pipeline_response, deserialized, response_headers) # type: ignore
@@ -3546,14 +3543,11 @@ async def _update_initial(
35463543
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
35473544

35483545
response_headers = {}
3549-
if response.status_code == 200:
3550-
deserialized = response.iter_bytes()
3551-
35523546
if response.status_code == 202:
35533547
response_headers["Location"] = self._deserialize("str", response.headers.get("Location"))
35543548
response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After"))
35553549

3556-
deserialized = response.iter_bytes()
3550+
deserialized = response.iter_bytes()
35573551

35583552
if cls:
35593553
return cls(pipeline_response, deserialized, response_headers) # type: ignore
@@ -6310,10 +6304,7 @@ async def _delete_initial(self, resource_group_name: str, fleet_name: str, **kwa
63106304
response_headers["Location"] = self._deserialize("str", response.headers.get("Location"))
63116305
response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After"))
63126306

6313-
deserialized = response.iter_bytes()
6314-
6315-
if response.status_code == 204:
6316-
deserialized = response.iter_bytes()
6307+
deserialized = response.iter_bytes()
63176308

63186309
if cls:
63196310
return cls(pipeline_response, deserialized, response_headers) # type: ignore

sdk/computefleet/azure-mgmt-computefleet/azure/mgmt/computefleet/models/_models.py

-17
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles
467467
class ComputeProfile(_model_base.Model):
468468
"""Compute Profile to use for running user's workloads.
469469
470-
All required parameters must be populated in order to send to server.
471470
472471
:ivar base_virtual_machine_profile: Base Virtual Machine Profile Properties to be specified
473472
according to
@@ -784,7 +783,6 @@ class TrackedResource(Resource):
784783
785784
Readonly variables are only populated by the server, and will be ignored when sending a request.
786785
787-
All required parameters must be populated in order to send to server.
788786
789787
:ivar id: Fully qualified resource ID for the resource. Ex -
790788
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. # pylint: disable=line-too-long
@@ -832,7 +830,6 @@ class Fleet(TrackedResource):
832830
833831
Readonly variables are only populated by the server, and will be ignored when sending a request.
834832
835-
All required parameters must be populated in order to send to server.
836833
837834
:ivar id: Fully qualified resource ID for the resource. Ex -
838835
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. # pylint: disable=line-too-long
@@ -896,7 +893,6 @@ class FleetProperties(_model_base.Model):
896893
897894
Readonly variables are only populated by the server, and will be ignored when sending a request.
898895
899-
All required parameters must be populated in order to send to server.
900896
901897
:ivar provisioning_state: The status of the last operation. Known values are: "Succeeded",
902898
"Failed", "Canceled", "Creating", "Updating", "Deleting", and "Migrating".
@@ -1131,7 +1127,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles
11311127
class KeyVaultSecretReference(_model_base.Model):
11321128
"""Describes a reference to Key Vault Secret.
11331129
1134-
All required parameters must be populated in order to send to server.
11351130
11361131
:ivar secret_url: The URL referencing a secret in a Key Vault. Required.
11371132
:vartype secret_url: str
@@ -1343,7 +1338,6 @@ class ManagedServiceIdentity(_model_base.Model):
13431338
13441339
Readonly variables are only populated by the server, and will be ignored when sending a request.
13451340
1346-
All required parameters must be populated in order to send to server.
13471341
13481342
:ivar principal_id: The service principal ID of the system assigned identity. This property
13491343
will only be provided for a system assigned identity.
@@ -1654,7 +1648,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles
16541648
class Plan(_model_base.Model):
16551649
"""Plan for the resource.
16561650
1657-
All required parameters must be populated in order to send to server.
16581651
16591652
:ivar name: A user defined name of the 3rd Party Artifact that is being procured. Required.
16601653
:vartype name: str
@@ -2545,7 +2538,6 @@ class VirtualMachineScaleSet(_model_base.Model):
25452538
25462539
Readonly variables are only populated by the server, and will be ignored when sending a request.
25472540
2548-
All required parameters must be populated in order to send to server.
25492541
25502542
:ivar id: The compute RP resource id of the virtualMachineScaleSet
25512543
"subscriptions/{subId}/resourceGroups/{rgName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmssName}".
@@ -2578,7 +2570,6 @@ class VirtualMachineScaleSet(_model_base.Model):
25782570
class VirtualMachineScaleSetDataDisk(_model_base.Model):
25792571
"""Describes a virtual machine scale set data disk.
25802572
2581-
All required parameters must be populated in order to send to server.
25822573
25832574
:ivar name: The disk name.
25842575
:vartype name: str
@@ -2929,7 +2920,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles
29292920
class VirtualMachineScaleSetIPConfiguration(_model_base.Model):
29302921
"""Describes a virtual machine scale set network profile's IP configuration.
29312922
2932-
All required parameters must be populated in order to send to server.
29332923
29342924
:ivar name: The IP configuration name. Required.
29352925
:vartype name: str
@@ -3147,7 +3137,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles
31473137
class VirtualMachineScaleSetNetworkConfiguration(_model_base.Model): # pylint: disable=name-too-long
31483138
"""Describes a virtual machine scale set network profile's network configurations.
31493139
3150-
All required parameters must be populated in order to send to server.
31513140
31523141
:ivar name: The network configuration name. Required.
31533142
:vartype name: str
@@ -3213,7 +3202,6 @@ class VirtualMachineScaleSetNetworkConfigurationProperties(
32133202
): # pylint: disable=too-many-instance-attributes,name-too-long
32143203
"""Describes a virtual machine scale set network profile's IP configuration.
32153204
3216-
All required parameters must be populated in order to send to server.
32173205
32183206
:ivar primary: Specifies the primary network interface in case the virtual machine has more
32193207
than 1 network interface.
@@ -3357,7 +3345,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles
33573345
class VirtualMachineScaleSetOSDisk(_model_base.Model): # pylint: disable=too-many-instance-attributes
33583346
"""Describes a virtual machine scale set operating system disk.
33593347
3360-
All required parameters must be populated in order to send to server.
33613348
33623349
:ivar name: The disk name.
33633350
:vartype name: str
@@ -3641,7 +3628,6 @@ class VirtualMachineScaleSetPublicIPAddressConfiguration(_model_base.Model): #
36413628
"""Describes a virtual machines scale set IP Configuration's PublicIPAddress
36423629
configuration.
36433630
3644-
All required parameters must be populated in order to send to server.
36453631
36463632
:ivar name: The publicIP address configuration name. Required.
36473633
:vartype name: str
@@ -3686,7 +3672,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles
36863672
class VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings(_model_base.Model): # pylint: disable=name-too-long
36873673
"""Describes a virtual machines scale sets network configuration's DNS settings.
36883674
3689-
All required parameters must be populated in order to send to server.
36903675
36913676
:ivar domain_name_label: The Domain name label.The concatenation of the domain name label and
36923677
vm index
@@ -3920,7 +3905,6 @@ class VMGalleryApplication(_model_base.Model):
39203905
"""Specifies the required information to reference a compute gallery application
39213906
version.
39223907
3923-
All required parameters must be populated in order to send to server.
39243908
39253909
:ivar tags: Optional, Specifies a passthrough value for more generic context.
39263910
:vartype tags: str
@@ -3989,7 +3973,6 @@ class VmSizeProfile(_model_base.Model):
39893973
"""Specifications about a VM Size. This will also contain the corresponding rank and weight in
39903974
future.
39913975
3992-
All required parameters must be populated in order to send to server.
39933976
39943977
:ivar name: The Sku name (e.g. 'Standard_DS1_v2'). Required.
39953978
:vartype name: str

sdk/computefleet/azure-mgmt-computefleet/azure/mgmt/computefleet/operations/_operations.py

+3-12
Original file line numberDiff line numberDiff line change
@@ -938,13 +938,10 @@ def _create_or_update_initial(
938938
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
939939

940940
response_headers = {}
941-
if response.status_code == 200:
942-
deserialized = response.iter_bytes()
943-
944941
if response.status_code == 201:
945942
response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After"))
946943

947-
deserialized = response.iter_bytes()
944+
deserialized = response.iter_bytes()
948945

949946
if cls:
950947
return cls(pipeline_response, deserialized, response_headers) # type: ignore
@@ -3743,14 +3740,11 @@ def _update_initial(
37433740
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
37443741

37453742
response_headers = {}
3746-
if response.status_code == 200:
3747-
deserialized = response.iter_bytes()
3748-
37493743
if response.status_code == 202:
37503744
response_headers["Location"] = self._deserialize("str", response.headers.get("Location"))
37513745
response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After"))
37523746

3753-
deserialized = response.iter_bytes()
3747+
deserialized = response.iter_bytes()
37543748

37553749
if cls:
37563750
return cls(pipeline_response, deserialized, response_headers) # type: ignore
@@ -6507,10 +6501,7 @@ def _delete_initial(self, resource_group_name: str, fleet_name: str, **kwargs: A
65076501
response_headers["Location"] = self._deserialize("str", response.headers.get("Location"))
65086502
response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After"))
65096503

6510-
deserialized = response.iter_bytes()
6511-
6512-
if response.status_code == 204:
6513-
deserialized = response.iter_bytes()
6504+
deserialized = response.iter_bytes()
65146505

65156506
if cls:
65166507
return cls(pipeline_response, deserialized, response_headers) # type: ignore
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
directory: specification/azurefleet/AzureFleet.Management
2-
commit: c1cea38fb7e5cec9afe223a2ed15cbe2fbeecbdb
3-
repo: Azure/azure-rest-api-specs
4-
additionalDirectories:
2+
commit: 536b844b64c9dbf1afde72233ba9ebba39825c0e
3+
repo: test-repo-billy/azure-rest-api-specs
4+
additionalDirectories:

0 commit comments

Comments
 (0)