Skip to content

Commit

Permalink
CodeGen from PR 18581 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 9214bd53b4d315a9e6be4f4e3aad291559c2f7dd into 50d1185cc9f4ac7f8fee0adfd5fac3e0ac8a2f3e
  • Loading branch information
SDKAuto committed Apr 7, 2022
1 parent 451c63a commit 3c03bb2
Show file tree
Hide file tree
Showing 59 changed files with 251 additions and 126 deletions.
4 changes: 2 additions & 2 deletions sdk/compute/azure-mgmt-compute/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"@autorest/[email protected]",
"@autorest/[email protected]"
],
"commit": "0105ac02e25089e55a7d4126f8fd303f9415b115",
"commit": "58a268d1765ac49fdd99d69d465ed206f6e5f41b",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/compute/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --python3-only --track2 --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.7.2",
"autorest_command": "autorest specification/compute/resource-manager/readme.md --multiapi --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --python3-only --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.7.2",
"readme": "specification/compute/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "26.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "26.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "26.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "26.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "26.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "26.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "26.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "26.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "26.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "26.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "26.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "26.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "26.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "26.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "26.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@ class OrchestrationServiceNames(with_metaclass(CaseInsensitiveEnumMeta, str, Enu
"""

AUTOMATIC_REPAIRS = "AutomaticRepairs"
DUMMY_ORCHESTRATION_SERVICE_NAME = "DummyOrchestrationServiceName"

class OrchestrationServiceState(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
"""The current state of the service.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4963,7 +4963,7 @@ class OrchestrationServiceStateInput(msrest.serialization.Model):
All required parameters must be populated in order to send to Azure.

:ivar service_name: Required. The name of the service. Possible values include:
"AutomaticRepairs", "DummyOrchestrationServiceName".
"AutomaticRepairs".
:vartype service_name: str or ~azure.mgmt.compute.v2019_12_01.models.OrchestrationServiceNames
:ivar action: Required. The action to be performed. Possible values include: "Resume",
"Suspend".
Expand All @@ -4989,7 +4989,7 @@ def __init__(
):
"""
:keyword service_name: Required. The name of the service. Possible values include:
"AutomaticRepairs", "DummyOrchestrationServiceName".
"AutomaticRepairs".
:paramtype service_name: str or
~azure.mgmt.compute.v2019_12_01.models.OrchestrationServiceNames
:keyword action: Required. The action to be performed. Possible values include: "Resume",
Expand All @@ -5007,8 +5007,7 @@ class OrchestrationServiceSummary(msrest.serialization.Model):

Variables are only populated by the server, and will be ignored when sending a request.

:ivar service_name: The name of the service. Possible values include: "AutomaticRepairs",
"DummyOrchestrationServiceName".
:ivar service_name: The name of the service. Possible values include: "AutomaticRepairs".
:vartype service_name: str or ~azure.mgmt.compute.v2019_12_01.models.OrchestrationServiceNames
:ivar service_state: The current state of the service. Possible values include: "NotRunning",
"Running", "Suspended".
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "26.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "26.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ class OrchestrationServiceNames(with_metaclass(CaseInsensitiveEnumMeta, str, Enu
"""

AUTOMATIC_REPAIRS = "AutomaticRepairs"
DUMMY_ORCHESTRATION_SERVICE_NAME = "DummyOrchestrationServiceName"

class OrchestrationServiceState(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
"""The current state of the service.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3373,7 +3373,7 @@ class OrchestrationServiceStateInput(msrest.serialization.Model):
All required parameters must be populated in order to send to Azure.

:ivar service_name: Required. The name of the service. Possible values include:
"AutomaticRepairs", "DummyOrchestrationServiceName".
"AutomaticRepairs".
:vartype service_name: str or ~azure.mgmt.compute.v2020_06_01.models.OrchestrationServiceNames
:ivar action: Required. The action to be performed. Possible values include: "Resume",
"Suspend".
Expand All @@ -3399,7 +3399,7 @@ def __init__(
):
"""
:keyword service_name: Required. The name of the service. Possible values include:
"AutomaticRepairs", "DummyOrchestrationServiceName".
"AutomaticRepairs".
:paramtype service_name: str or
~azure.mgmt.compute.v2020_06_01.models.OrchestrationServiceNames
:keyword action: Required. The action to be performed. Possible values include: "Resume",
Expand All @@ -3417,8 +3417,7 @@ class OrchestrationServiceSummary(msrest.serialization.Model):

Variables are only populated by the server, and will be ignored when sending a request.

:ivar service_name: The name of the service. Possible values include: "AutomaticRepairs",
"DummyOrchestrationServiceName".
:ivar service_name: The name of the service. Possible values include: "AutomaticRepairs".
:vartype service_name: str or ~azure.mgmt.compute.v2020_06_01.models.OrchestrationServiceNames
:ivar service_state: The current state of the service. Possible values include: "NotRunning",
"Running", "Suspended".
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "26.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "26.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "26.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "26.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,6 @@ class OrchestrationServiceNames(with_metaclass(CaseInsensitiveEnumMeta, str, Enu
"""

AUTOMATIC_REPAIRS = "AutomaticRepairs"
DUMMY_ORCHESTRATION_SERVICE_NAME = "DummyOrchestrationServiceName"

class OrchestrationServiceState(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
"""The current state of the service.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5140,7 +5140,7 @@ class OrchestrationServiceStateInput(msrest.serialization.Model):
All required parameters must be populated in order to send to Azure.

:ivar service_name: Required. The name of the service. Possible values include:
"AutomaticRepairs", "DummyOrchestrationServiceName".
"AutomaticRepairs".
:vartype service_name: str or ~azure.mgmt.compute.v2020_12_01.models.OrchestrationServiceNames
:ivar action: Required. The action to be performed. Possible values include: "Resume",
"Suspend".
Expand All @@ -5166,7 +5166,7 @@ def __init__(
):
"""
:keyword service_name: Required. The name of the service. Possible values include:
"AutomaticRepairs", "DummyOrchestrationServiceName".
"AutomaticRepairs".
:paramtype service_name: str or
~azure.mgmt.compute.v2020_12_01.models.OrchestrationServiceNames
:keyword action: Required. The action to be performed. Possible values include: "Resume",
Expand All @@ -5184,8 +5184,7 @@ class OrchestrationServiceSummary(msrest.serialization.Model):

Variables are only populated by the server, and will be ignored when sending a request.

:ivar service_name: The name of the service. Possible values include: "AutomaticRepairs",
"DummyOrchestrationServiceName".
:ivar service_name: The name of the service. Possible values include: "AutomaticRepairs".
:vartype service_name: str or ~azure.mgmt.compute.v2020_12_01.models.OrchestrationServiceNames
:ivar service_state: The current state of the service. Possible values include: "NotRunning",
"Running", "Suspended".
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "26.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,6 @@ class OrchestrationServiceNames(with_metaclass(CaseInsensitiveEnumMeta, str, Enu
"""

AUTOMATIC_REPAIRS = "AutomaticRepairs"
DUMMY_ORCHESTRATION_SERVICE_NAME = "DummyOrchestrationServiceName"

class OrchestrationServiceState(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
"""The current state of the service.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4877,7 +4877,7 @@ class OrchestrationServiceStateInput(msrest.serialization.Model):
All required parameters must be populated in order to send to Azure.

:ivar service_name: Required. The name of the service. Possible values include:
"AutomaticRepairs", "DummyOrchestrationServiceName".
"AutomaticRepairs".
:vartype service_name: str or ~azure.mgmt.compute.v2021_03_01.models.OrchestrationServiceNames
:ivar action: Required. The action to be performed. Possible values include: "Resume",
"Suspend".
Expand All @@ -4903,7 +4903,7 @@ def __init__(
):
"""
:keyword service_name: Required. The name of the service. Possible values include:
"AutomaticRepairs", "DummyOrchestrationServiceName".
"AutomaticRepairs".
:paramtype service_name: str or
~azure.mgmt.compute.v2021_03_01.models.OrchestrationServiceNames
:keyword action: Required. The action to be performed. Possible values include: "Resume",
Expand All @@ -4921,8 +4921,7 @@ class OrchestrationServiceSummary(msrest.serialization.Model):

Variables are only populated by the server, and will be ignored when sending a request.

:ivar service_name: The name of the service. Possible values include: "AutomaticRepairs",
"DummyOrchestrationServiceName".
:ivar service_name: The name of the service. Possible values include: "AutomaticRepairs".
:vartype service_name: str or ~azure.mgmt.compute.v2021_03_01.models.OrchestrationServiceNames
:ivar service_state: The current state of the service. Possible values include: "NotRunning",
"Running", "Suspended".
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "26.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,6 @@ class OrchestrationServiceNames(with_metaclass(CaseInsensitiveEnumMeta, str, Enu
"""

AUTOMATIC_REPAIRS = "AutomaticRepairs"
DUMMY_ORCHESTRATION_SERVICE_NAME = "DummyOrchestrationServiceName"

class OrchestrationServiceState(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)):
"""The current state of the service.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5880,7 +5880,7 @@ class OrchestrationServiceStateInput(msrest.serialization.Model):
All required parameters must be populated in order to send to Azure.

:ivar service_name: Required. The name of the service. Possible values include:
"AutomaticRepairs", "DummyOrchestrationServiceName".
"AutomaticRepairs".
:vartype service_name: str or ~azure.mgmt.compute.v2021_04_01.models.OrchestrationServiceNames
:ivar action: Required. The action to be performed. Possible values include: "Resume",
"Suspend".
Expand All @@ -5906,7 +5906,7 @@ def __init__(
):
"""
:keyword service_name: Required. The name of the service. Possible values include:
"AutomaticRepairs", "DummyOrchestrationServiceName".
"AutomaticRepairs".
:paramtype service_name: str or
~azure.mgmt.compute.v2021_04_01.models.OrchestrationServiceNames
:keyword action: Required. The action to be performed. Possible values include: "Resume",
Expand All @@ -5924,8 +5924,7 @@ class OrchestrationServiceSummary(msrest.serialization.Model):

Variables are only populated by the server, and will be ignored when sending a request.

:ivar service_name: The name of the service. Possible values include: "AutomaticRepairs",
"DummyOrchestrationServiceName".
:ivar service_name: The name of the service. Possible values include: "AutomaticRepairs".
:vartype service_name: str or ~azure.mgmt.compute.v2021_04_01.models.OrchestrationServiceNames
:ivar service_state: The current state of the service. Possible values include: "NotRunning",
"Running", "Suspended".
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "26.1.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ async def get(

if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response, error_format=ARMErrorFormat)
error = self._deserialize.failsafe_deserialize(_models.CloudErrorAutoGenerated2, pipeline_response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)

deserialized = self._deserialize('CommunityGallery', pipeline_response)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ async def get(

if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response, error_format=ARMErrorFormat)
error = self._deserialize.failsafe_deserialize(_models.CloudErrorAutoGenerated2, pipeline_response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)

deserialized = self._deserialize('CommunityGalleryImageVersion', pipeline_response)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ async def get(

if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response, error_format=ARMErrorFormat)
error = self._deserialize.failsafe_deserialize(_models.CloudErrorAutoGenerated2, pipeline_response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)

deserialized = self._deserialize('CommunityGalleryImage', pipeline_response)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ async def get_next(next_link=None):

if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response, error_format=ARMErrorFormat)
error = self._deserialize.failsafe_deserialize(_models.CloudErrorAutoGenerated, pipeline_response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)

return pipeline_response

Expand Down Expand Up @@ -160,7 +161,8 @@ async def get(

if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response, error_format=ARMErrorFormat)
error = self._deserialize.failsafe_deserialize(_models.CloudErrorAutoGenerated, pipeline_response)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)

deserialized = self._deserialize('SharedGallery', pipeline_response)

Expand Down
Loading

0 comments on commit 3c03bb2

Please sign in to comment.