Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
6b9fb8c
Generated from c0def97e9fc1e839db7727fd31c2f583f6cf04d6 (#2486)
AutorestCI Apr 27, 2018
f434626
Generated from 8fe96075f82faeec0c0e316e0dd1a1c0ee77e376 (#2501)
AutorestCI May 2, 2018
755e121
[AutoPR compute/resource-manager] added autoOSUpgradePolicy to Upgrad…
AutorestCI May 8, 2018
eee2ad2
Generated from 87e0684ac67bc015bf82c1f1227093265c2e1233 (#2562)
AutorestCI May 17, 2018
85f3a39
Generated from 7014b952af241255afcf4e2b620cfd40737a3ea1 (#2580)
AutorestCI May 21, 2018
7404489
[AutoPR compute/resource-manager] Added the swagger file for the new …
AutorestCI May 23, 2018
6d22b90
Generated from 4abedb1c096796557fdd029401f3d317f99c7f61 (#2664)
AutorestCI May 31, 2018
e54191c
Generated from a2f275e122829ab63c18494dbaae5a1e9ef6e81c (#2673)
AutorestCI Jun 1, 2018
2bcc242
[AutoPR compute/resource-manager] [Compute] Fix List VM Extension API…
AutorestCI Jun 2, 2018
9c49b8d
Rebuild by https://github.com/Azure/azure-sdk-for-python/pull/2487
AutorestCI Jun 4, 2018
f1235da
Generated from 41175e4e605bb5ed0329cdfa91ae14cfbd6a6739 (#2829)
AutorestCI Jun 30, 2018
2ce5c7e
Generated from 0a9ee3a2db06dff212c23f80c8b7bf1eec31613a (#2858)
AutorestCI Jul 2, 2018
946d5dc
Generated from c34f1fdacb2efacd4dccdd69213e83e4800ab76a (#2859)
AutorestCI Jul 2, 2018
15479ef
Generated from d4e9a10c23b602709da6ec04f970c7802ca60af3 (#2886)
AutorestCI Jul 6, 2018
82c4f0b
Rebuild by https://github.com/Azure/azure-sdk-for-python/pull/2487
AutorestCI Jul 6, 2018
c2f5dce
Update version.py
lmazuel Jul 6, 2018
d75f3b0
Generated from 0e3b2e2f19773ecc8bb676f2d40cff4119b2a357 (#2890)
AutorestCI Jul 9, 2018
4c7955b
[AutoPR compute/resource-manager] Update RunCommand operation output …
AutorestCI Jul 10, 2018
595c28a
Generated from ac9f623bcc6d676360abc57b52b6ee8b0341ea18 (#2914)
AutorestCI Jul 11, 2018
1d5ff49
[AutoPR compute/resource-manager] Update VMSS planned maintenance des…
AutorestCI Jul 11, 2018
663e409
Generated from cb39de62c1bac51455eaf7ad3fbe8ac9ec84df58 (#2918)
AutorestCI Jul 13, 2018
8175b81
Generated from b59db77683f3a9c65d0edec17b5f05e458a68897 (#2942)
AutorestCI Jul 18, 2018
2a6625e
[AutoPR compute/resource-manager] RunCommands 2018-06-01 (#2935)
AutorestCI Jul 19, 2018
219480c
Generated from 8f17cd0bc03fad3ed3a5259ec37e9add84ff73a7 (#2965)
AutorestCI Jul 20, 2018
d26c3a1
Fix multi api client
lmazuel Jul 20, 2018
b45ffbe
Update Autorest min version for Compute
lmazuel Jul 20, 2018
b6c3396
Fixing tests for latest Compute
lmazuel Jul 20, 2018
dfcc1a5
Make it stable
lmazuel Jul 20, 2018
1ccf250
ChangeLog
lmazuel Jul 20, 2018
1321efb
Merge branch 'master' into restapi_auto_compute/resource-manager
lmazuel Jul 20, 2018
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
Next Next commit
Generated from c0def97e9fc1e839db7727fd31c2f583f6cf04d6 (#2486)
updated OS Upgrade History API

(cherry picked from commit e784ecac207c88dda10fa0986609907486994913)
  • Loading branch information
AutorestCI committed Jul 6, 2018
commit 6b9fb8c0a4cef142ea19dcf04fc04e449b30d8d7
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