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] Update OS Upgrade History API #2486

Merged
merged 1 commit into from
Apr 27, 2018
Merged
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 @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from msrest.service_client import ServiceClient
from msrest.service_client import SDKClient
from msrest import Serializer, Deserializer
from msrestazure import AzureConfiguration
from .version import VERSION
Expand Down Expand Up @@ -59,7 +59,7 @@ def __init__(
self.subscription_id = subscription_id


class ComputeManagementClient(object):
class ComputeManagementClient(SDKClient):
"""Compute Client

:ivar config: Configuration for client.
Expand Down Expand Up @@ -98,7 +98,7 @@ def __init__(
self, credentials, subscription_id, base_url=None):

self.config = ComputeManagementClientConfiguration(credentials, subscription_id, base_url)
self._client = ServiceClient(self.config.credentials, self.config)
super(ComputeManagementClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2015-06-15'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from msrest.service_client import ServiceClient
from msrest.service_client import SDKClient
from msrest import Serializer, Deserializer
from msrestazure import AzureConfiguration
from .version import VERSION
Expand Down Expand Up @@ -59,7 +59,7 @@ def __init__(
self.subscription_id = subscription_id


class ComputeManagementClient(object):
class ComputeManagementClient(SDKClient):
"""Compute Client

:ivar config: Configuration for client.
Expand Down Expand Up @@ -98,7 +98,7 @@ def __init__(
self, credentials, subscription_id, base_url=None):

self.config = ComputeManagementClientConfiguration(credentials, subscription_id, base_url)
self._client = ServiceClient(self.config.credentials, self.config)
super(ComputeManagementClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2016-03-30'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from msrest.service_client import ServiceClient
from msrest.service_client import SDKClient
from msrest import Serializer, Deserializer
from msrestazure import AzureConfiguration
from .version import VERSION
Expand Down Expand Up @@ -62,7 +62,7 @@ def __init__(
self.subscription_id = subscription_id


class ComputeManagementClient(object):
class ComputeManagementClient(SDKClient):
"""Compute Client

:ivar config: Configuration for client.
Expand Down Expand Up @@ -107,7 +107,7 @@ def __init__(
self, credentials, subscription_id, base_url=None):

self.config = ComputeManagementClientConfiguration(credentials, subscription_id, base_url)
self._client = ServiceClient(self.config.credentials, self.config)
super(ComputeManagementClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2016-04-30-preview'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from msrest.service_client import ServiceClient
from msrest.service_client import SDKClient
from msrest import Serializer, Deserializer
from msrestazure import AzureConfiguration
from .version import VERSION
Expand Down Expand Up @@ -66,7 +66,7 @@ def __init__(
self.subscription_id = subscription_id


class ComputeManagementClient(object):
class ComputeManagementClient(SDKClient):
"""Compute Client

:ivar config: Configuration for client.
Expand Down Expand Up @@ -119,7 +119,7 @@ def __init__(
self, credentials, subscription_id, base_url=None):

self.config = ComputeManagementClientConfiguration(credentials, subscription_id, base_url)
self._client = ServiceClient(self.config.credentials, self.config)
super(ComputeManagementClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2017-03-30'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from msrest.service_client import ServiceClient
from msrest.service_client import SDKClient
from msrest import Serializer, Deserializer
from msrestazure import AzureConfiguration
from .version import VERSION
Expand Down Expand Up @@ -51,7 +51,7 @@ def __init__(
self.subscription_id = subscription_id


class ComputeManagementClient(object):
class ComputeManagementClient(SDKClient):
"""Compute Client

:ivar config: Configuration for client.
Expand All @@ -74,7 +74,7 @@ def __init__(
self, credentials, subscription_id, base_url=None):

self.config = ComputeManagementClientConfiguration(credentials, subscription_id, base_url)
self._client = ServiceClient(self.config.credentials, self.config)
super(ComputeManagementClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2017-09-01'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from msrest.service_client import ServiceClient
from msrest.service_client import SDKClient
from msrest import Serializer, Deserializer
from msrestazure import AzureConfiguration
from .version import VERSION
Expand Down Expand Up @@ -65,7 +65,7 @@ def __init__(
self.subscription_id = subscription_id


class ComputeManagementClient(object):
class ComputeManagementClient(SDKClient):
"""Compute Client

:ivar config: Configuration for client.
Expand Down Expand Up @@ -116,7 +116,7 @@ def __init__(
self, credentials, subscription_id, base_url=None):

self.config = ComputeManagementClientConfiguration(credentials, subscription_id, base_url)
self._client = ServiceClient(self.config.credentials, self.config)
super(ComputeManagementClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2017-12-01'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,12 @@
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 .upgrade_operation_history_status_py3 import UpgradeOperationHistoryStatus
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 .rollback_status_info_py3 import RollbackStatusInfo
from .upgrade_operation_history_status_py3 import UpgradeOperationHistoryStatus
from .rolling_upgrade_progress_info_py3 import RollingUpgradeProgressInfo
from .upgrade_operation_historical_status_info_properties_py3 import UpgradeOperationHistoricalStatusInfoProperties
from .upgrade_operation_historical_status_info_py3 import UpgradeOperationHistoricalStatusInfo
from .virtual_machine_scale_set_vm_py3 import VirtualMachineScaleSetVM
Expand Down Expand Up @@ -232,11 +233,12 @@
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 .upgrade_operation_history_status import UpgradeOperationHistoryStatus
from .rolling_upgrade_progress_info import RollingUpgradeProgressInfo
from .api_error_base import ApiErrorBase
from .inner_error import InnerError
from .api_error import ApiError
from .rollback_status_info import RollbackStatusInfo
from .upgrade_operation_history_status import UpgradeOperationHistoryStatus
from .rolling_upgrade_progress_info import RollingUpgradeProgressInfo
from .upgrade_operation_historical_status_info_properties import UpgradeOperationHistoricalStatusInfoProperties
from .upgrade_operation_historical_status_info import UpgradeOperationHistoricalStatusInfo
from .virtual_machine_scale_set_vm import VirtualMachineScaleSetVM
Expand Down Expand Up @@ -397,11 +399,12 @@
'VirtualMachineScaleSetInstanceView',
'VirtualMachineScaleSetSkuCapacity',
'VirtualMachineScaleSetSku',
'UpgradeOperationHistoryStatus',
'RollingUpgradeProgressInfo',
'ApiErrorBase',
'InnerError',
'ApiError',
'RollbackStatusInfo',
'UpgradeOperationHistoryStatus',
'RollingUpgradeProgressInfo',
'UpgradeOperationHistoricalStatusInfoProperties',
'UpgradeOperationHistoricalStatusInfo',
'VirtualMachineScaleSetVM',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# 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 RollbackStatusInfo(Model):
"""Information about rollback on failed VM instances after a OS Upgrade
operation.

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

:ivar successfully_rolledback_instance_count: The number of instances
which have been successfully rolled back.
:vartype successfully_rolledback_instance_count: int
:ivar failed_rolledback_instance_count: The number of instances which
failed to rollback.
:vartype failed_rolledback_instance_count: int
:ivar rollback_error: Error Details if OS rollback failed.
:vartype rollback_error: ~azure.mgmt.compute.v2017_12_01.models.ApiError
"""

_validation = {
'successfully_rolledback_instance_count': {'readonly': True},
'failed_rolledback_instance_count': {'readonly': True},
'rollback_error': {'readonly': True},
}

_attribute_map = {
'successfully_rolledback_instance_count': {'key': 'successfullyRolledbackInstanceCount', 'type': 'int'},
'failed_rolledback_instance_count': {'key': 'failedRolledbackInstanceCount', 'type': 'int'},
'rollback_error': {'key': 'rollbackError', 'type': 'ApiError'},
}

def __init__(self, **kwargs):
super(RollbackStatusInfo, self).__init__(**kwargs)
self.successfully_rolledback_instance_count = None
self.failed_rolledback_instance_count = None
self.rollback_error = None
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# 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 RollbackStatusInfo(Model):
"""Information about rollback on failed VM instances after a OS Upgrade
operation.

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

:ivar successfully_rolledback_instance_count: The number of instances
which have been successfully rolled back.
:vartype successfully_rolledback_instance_count: int
:ivar failed_rolledback_instance_count: The number of instances which
failed to rollback.
:vartype failed_rolledback_instance_count: int
:ivar rollback_error: Error Details if OS rollback failed.
:vartype rollback_error: ~azure.mgmt.compute.v2017_12_01.models.ApiError
"""

_validation = {
'successfully_rolledback_instance_count': {'readonly': True},
'failed_rolledback_instance_count': {'readonly': True},
'rollback_error': {'readonly': True},
}

_attribute_map = {
'successfully_rolledback_instance_count': {'key': 'successfullyRolledbackInstanceCount', 'type': 'int'},
'failed_rolledback_instance_count': {'key': 'failedRolledbackInstanceCount', 'type': 'int'},
'rollback_error': {'key': 'rollbackError', 'type': 'ApiError'},
}

def __init__(self, **kwargs) -> None:
super(RollbackStatusInfo, self).__init__(**kwargs)
self.successfully_rolledback_instance_count = None
self.failed_rolledback_instance_count = None
self.rollback_error = None
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ class UpgradeOperationHistoricalStatusInfoProperties(Model):
:ivar target_image_reference: Image Reference details
:vartype target_image_reference:
~azure.mgmt.compute.v2017_12_01.models.ImageReference
:ivar rollback_info: Information about OS rollback if performed
:vartype rollback_info:
~azure.mgmt.compute.v2017_12_01.models.RollbackStatusInfo
"""

_validation = {
Expand All @@ -42,6 +45,7 @@ class UpgradeOperationHistoricalStatusInfoProperties(Model):
'error': {'readonly': True},
'started_by': {'readonly': True},
'target_image_reference': {'readonly': True},
'rollback_info': {'readonly': True},
}

_attribute_map = {
Expand All @@ -50,6 +54,7 @@ class UpgradeOperationHistoricalStatusInfoProperties(Model):
'error': {'key': 'error', 'type': 'ApiError'},
'started_by': {'key': 'startedBy', 'type': 'UpgradeOperationInvoker'},
'target_image_reference': {'key': 'targetImageReference', 'type': 'ImageReference'},
'rollback_info': {'key': 'rollbackInfo', 'type': 'RollbackStatusInfo'},
}

def __init__(self, **kwargs):
Expand All @@ -59,3 +64,4 @@ def __init__(self, **kwargs):
self.error = None
self.started_by = None
self.target_image_reference = None
self.rollback_info = None
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ class UpgradeOperationHistoricalStatusInfoProperties(Model):
:ivar target_image_reference: Image Reference details
:vartype target_image_reference:
~azure.mgmt.compute.v2017_12_01.models.ImageReference
:ivar rollback_info: Information about OS rollback if performed
:vartype rollback_info:
~azure.mgmt.compute.v2017_12_01.models.RollbackStatusInfo
"""

_validation = {
Expand All @@ -42,6 +45,7 @@ class UpgradeOperationHistoricalStatusInfoProperties(Model):
'error': {'readonly': True},
'started_by': {'readonly': True},
'target_image_reference': {'readonly': True},
'rollback_info': {'readonly': True},
}

_attribute_map = {
Expand All @@ -50,6 +54,7 @@ class UpgradeOperationHistoricalStatusInfoProperties(Model):
'error': {'key': 'error', 'type': 'ApiError'},
'started_by': {'key': 'startedBy', 'type': 'UpgradeOperationInvoker'},
'target_image_reference': {'key': 'targetImageReference', 'type': 'ImageReference'},
'rollback_info': {'key': 'rollbackInfo', 'type': 'RollbackStatusInfo'},
}

def __init__(self, **kwargs) -> None:
Expand All @@ -59,3 +64,4 @@ def __init__(self, **kwargs) -> None:
self.error = None
self.started_by = None
self.target_image_reference = None
self.rollback_info = None
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from msrest.service_client import ServiceClient
from msrest.service_client import SDKClient
from msrest import Serializer, Deserializer
from msrestazure import AzureConfiguration
from .version import VERSION
Expand Down Expand Up @@ -52,7 +52,7 @@ def __init__(
self.subscription_id = subscription_id


class ComputeManagementClient(object):
class ComputeManagementClient(SDKClient):
"""Compute Client

:ivar config: Configuration for client.
Expand All @@ -77,7 +77,7 @@ def __init__(
self, credentials, subscription_id, base_url=None):

self.config = ComputeManagementClientConfiguration(credentials, subscription_id, base_url)
self._client = ServiceClient(self.config.credentials, self.config)
super(ComputeManagementClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2018-04-01'
Expand Down