Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR compute/resource-manager] OS History API - Swagger #2264

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,16 @@
from .virtual_machine_scale_set_instance_view_py3 import VirtualMachineScaleSetInstanceView
from .virtual_machine_scale_set_sku_capacity_py3 import VirtualMachineScaleSetSkuCapacity
from .virtual_machine_scale_set_sku_py3 import VirtualMachineScaleSetSku
from .virtual_machine_scale_set_vm_py3 import VirtualMachineScaleSetVM
from .virtual_machine_health_status_py3 import VirtualMachineHealthStatus
from .virtual_machine_scale_set_vm_instance_view_py3 import VirtualMachineScaleSetVMInstanceView
from .platform_image_reference_py3 import PlatformImageReference
from .rolling_upgrade_running_status_py3 import RollingUpgradeRunningStatus
from .rolling_upgrade_progress_info_py3 import RollingUpgradeProgressInfo
from .api_error_base_py3 import ApiErrorBase
from .inner_error_py3 import InnerError
from .api_error_py3 import ApiError
from .virtual_machine_scale_set_os_upgrade_history_py3 import VirtualMachineScaleSetOSUpgradeHistory
from .virtual_machine_scale_set_vm_py3 import VirtualMachineScaleSetVM
from .virtual_machine_health_status_py3 import VirtualMachineHealthStatus
from .virtual_machine_scale_set_vm_instance_view_py3 import VirtualMachineScaleSetVMInstanceView
from .rolling_upgrade_status_info_py3 import RollingUpgradeStatusInfo
from .compute_long_running_operation_properties_py3 import ComputeLongRunningOperationProperties
from .resource_py3 import Resource
Expand Down Expand Up @@ -225,14 +227,16 @@
from .virtual_machine_scale_set_instance_view import VirtualMachineScaleSetInstanceView
from .virtual_machine_scale_set_sku_capacity import VirtualMachineScaleSetSkuCapacity
from .virtual_machine_scale_set_sku import VirtualMachineScaleSetSku
from .virtual_machine_scale_set_vm import VirtualMachineScaleSetVM
from .virtual_machine_health_status import VirtualMachineHealthStatus
from .virtual_machine_scale_set_vm_instance_view import VirtualMachineScaleSetVMInstanceView
from .platform_image_reference import PlatformImageReference
from .rolling_upgrade_running_status import RollingUpgradeRunningStatus
from .rolling_upgrade_progress_info import RollingUpgradeProgressInfo
from .api_error_base import ApiErrorBase
from .inner_error import InnerError
from .api_error import ApiError
from .virtual_machine_scale_set_os_upgrade_history import VirtualMachineScaleSetOSUpgradeHistory
from .virtual_machine_scale_set_vm import VirtualMachineScaleSetVM
from .virtual_machine_health_status import VirtualMachineHealthStatus
from .virtual_machine_scale_set_vm_instance_view import VirtualMachineScaleSetVMInstanceView
from .rolling_upgrade_status_info import RollingUpgradeStatusInfo
from .compute_long_running_operation_properties import ComputeLongRunningOperationProperties
from .resource import Resource
Expand All @@ -259,6 +263,7 @@
from .virtual_machine_paged import VirtualMachinePaged
from .virtual_machine_scale_set_paged import VirtualMachineScaleSetPaged
from .virtual_machine_scale_set_sku_paged import VirtualMachineScaleSetSkuPaged
from .virtual_machine_scale_set_os_upgrade_history_paged import VirtualMachineScaleSetOSUpgradeHistoryPaged
from .virtual_machine_scale_set_extension_paged import VirtualMachineScaleSetExtensionPaged
from .virtual_machine_scale_set_vm_paged import VirtualMachineScaleSetVMPaged
from .run_command_document_base_paged import RunCommandDocumentBasePaged
Expand Down Expand Up @@ -381,14 +386,16 @@
'VirtualMachineScaleSetInstanceView',
'VirtualMachineScaleSetSkuCapacity',
'VirtualMachineScaleSetSku',
'VirtualMachineScaleSetVM',
'VirtualMachineHealthStatus',
'VirtualMachineScaleSetVMInstanceView',
'PlatformImageReference',
'RollingUpgradeRunningStatus',
'RollingUpgradeProgressInfo',
'ApiErrorBase',
'InnerError',
'ApiError',
'VirtualMachineScaleSetOSUpgradeHistory',
'VirtualMachineScaleSetVM',
'VirtualMachineHealthStatus',
'VirtualMachineScaleSetVMInstanceView',
'RollingUpgradeStatusInfo',
'ComputeLongRunningOperationProperties',
'Resource',
Expand All @@ -415,6 +422,7 @@
'VirtualMachinePaged',
'VirtualMachineScaleSetPaged',
'VirtualMachineScaleSetSkuPaged',
'VirtualMachineScaleSetOSUpgradeHistoryPaged',
'VirtualMachineScaleSetExtensionPaged',
'VirtualMachineScaleSetVMPaged',
'RunCommandDocumentBasePaged',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class PlatformImageReference(Model):
"""A reference that identifies a CRP-PIR image or a UserVMImage.

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

:ivar publisher: Publisher
:vartype publisher: str
:ivar offer: Offer
:vartype offer: str
:ivar sku: Sku
:vartype sku: str
:ivar version: Version
:vartype version: str
:ivar uri: Specifies the virtual hard disk's uri.
:vartype uri: str
"""

_validation = {
'publisher': {'readonly': True},
'offer': {'readonly': True},
'sku': {'readonly': True},
'version': {'readonly': True},
'uri': {'readonly': True},
}

_attribute_map = {
'publisher': {'key': 'publisher', 'type': 'str'},
'offer': {'key': 'offer', 'type': 'str'},
'sku': {'key': 'sku', 'type': 'str'},
'version': {'key': 'version', 'type': 'str'},
'uri': {'key': 'uri', 'type': 'str'},
}

def __init__(self, **kwargs):
super(PlatformImageReference, self).__init__(**kwargs)
self.publisher = None
self.offer = None
self.sku = None
self.version = None
self.uri = None
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class PlatformImageReference(Model):
"""A reference that identifies a CRP-PIR image or a UserVMImage.

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

:ivar publisher: Publisher
:vartype publisher: str
:ivar offer: Offer
:vartype offer: str
:ivar sku: Sku
:vartype sku: str
:ivar version: Version
:vartype version: str
:ivar uri: Specifies the virtual hard disk's uri.
:vartype uri: str
"""

_validation = {
'publisher': {'readonly': True},
'offer': {'readonly': True},
'sku': {'readonly': True},
'version': {'readonly': True},
'uri': {'readonly': True},
}

_attribute_map = {
'publisher': {'key': 'publisher', 'type': 'str'},
'offer': {'key': 'offer', 'type': 'str'},
'sku': {'key': 'sku', 'type': 'str'},
'version': {'key': 'version', 'type': 'str'},
'uri': {'key': 'uri', 'type': 'str'},
}

def __init__(self, **kwargs) -> None:
super(PlatformImageReference, self).__init__(**kwargs)
self.publisher = None
self.offer = None
self.sku = None
self.version = None
self.uri = None
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class VirtualMachineScaleSetOSUpgradeHistory(Model):
"""Describes each OS upgrade on the Virtual Machine Scale Set.

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

:ivar running_status: Information about the overall status of the upgrade
operation.
:vartype running_status:
~azure.mgmt.compute.v2017_12_01.models.RollingUpgradeRunningStatus
:ivar progress_info: Counts of the VM's in each state.
:vartype progress_info:
~azure.mgmt.compute.v2017_12_01.models.RollingUpgradeProgressInfo
:ivar error: Error Details for this upgrade if there are any.
:vartype error: ~azure.mgmt.compute.v2017_12_01.models.ApiError
:ivar started_by: Error Details for this upgrade if there are any.
Possible values include: 'Unknown', 'User', 'Platform'
:vartype started_by: str or ~azure.mgmt.compute.v2017_12_01.models.enum
:ivar target_image_reference: Error Details for this upgrade if there are
any.
:vartype target_image_reference:
~azure.mgmt.compute.v2017_12_01.models.PlatformImageReference
"""

_validation = {
'running_status': {'readonly': True},
'progress_info': {'readonly': True},
'error': {'readonly': True},
'started_by': {'readonly': True},
'target_image_reference': {'readonly': True},
}

_attribute_map = {
'running_status': {'key': 'runningStatus', 'type': 'RollingUpgradeRunningStatus'},
'progress_info': {'key': 'progressInfo', 'type': 'RollingUpgradeProgressInfo'},
'error': {'key': 'error', 'type': 'ApiError'},
'started_by': {'key': 'startedBy', 'type': 'str'},
'target_image_reference': {'key': 'targetImageReference', 'type': 'PlatformImageReference'},
}

def __init__(self, **kwargs):
super(VirtualMachineScaleSetOSUpgradeHistory, self).__init__(**kwargs)
self.running_status = None
self.progress_info = None
self.error = None
self.started_by = None
self.target_image_reference = None
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.paging import Paged


class VirtualMachineScaleSetOSUpgradeHistoryPaged(Paged):
"""
A paging container for iterating over a list of :class:`VirtualMachineScaleSetOSUpgradeHistory <azure.mgmt.compute.v2017_12_01.models.VirtualMachineScaleSetOSUpgradeHistory>` object
"""

_attribute_map = {
'next_link': {'key': 'nextLink', 'type': 'str'},
'current_page': {'key': 'value', 'type': '[VirtualMachineScaleSetOSUpgradeHistory]'}
}

def __init__(self, *args, **kwargs):

super(VirtualMachineScaleSetOSUpgradeHistoryPaged, self).__init__(*args, **kwargs)
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class VirtualMachineScaleSetOSUpgradeHistory(Model):
"""Describes each OS upgrade on the Virtual Machine Scale Set.

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

:ivar running_status: Information about the overall status of the upgrade
operation.
:vartype running_status:
~azure.mgmt.compute.v2017_12_01.models.RollingUpgradeRunningStatus
:ivar progress_info: Counts of the VM's in each state.
:vartype progress_info:
~azure.mgmt.compute.v2017_12_01.models.RollingUpgradeProgressInfo
:ivar error: Error Details for this upgrade if there are any.
:vartype error: ~azure.mgmt.compute.v2017_12_01.models.ApiError
:ivar started_by: Error Details for this upgrade if there are any.
Possible values include: 'Unknown', 'User', 'Platform'
:vartype started_by: str or ~azure.mgmt.compute.v2017_12_01.models.enum
:ivar target_image_reference: Error Details for this upgrade if there are
any.
:vartype target_image_reference:
~azure.mgmt.compute.v2017_12_01.models.PlatformImageReference
"""

_validation = {
'running_status': {'readonly': True},
'progress_info': {'readonly': True},
'error': {'readonly': True},
'started_by': {'readonly': True},
'target_image_reference': {'readonly': True},
}

_attribute_map = {
'running_status': {'key': 'runningStatus', 'type': 'RollingUpgradeRunningStatus'},
'progress_info': {'key': 'progressInfo', 'type': 'RollingUpgradeProgressInfo'},
'error': {'key': 'error', 'type': 'ApiError'},
'started_by': {'key': 'startedBy', 'type': 'str'},
'target_image_reference': {'key': 'targetImageReference', 'type': 'PlatformImageReference'},
}

def __init__(self, **kwargs) -> None:
super(VirtualMachineScaleSetOSUpgradeHistory, self).__init__(**kwargs)
self.running_status = None
self.progress_info = None
self.error = None
self.started_by = None
self.target_image_reference = None
Loading