Skip to content

Commit c8cbce3

Browse files
AutorestCIlmazuel
authored andcommitted
[AutoPR] compute/resource-manager (#3437)
* Generated from bc9772e8cab8538e646287e7842dbccc968c59c6 (#3436) Typo * Update version.py * Generated from fe7933fcaf05884a7da733e0979f26c42e30c917 (#3450) Compute conf for py 2018-10-01 * Generated from 4927713e353793ac5f22f0c0954e51ba5623034e (#3454) Added VirtualMachineImageProperties.AutomaticOSUpgradeProperties in GET VMImageVersion API Added VirtualMachineImageProperties.AutomaticOSUpgradeProperties in GET VMImageVersion API * Move to 2018-10-01 * ChangeLog 4.3.0
1 parent 8f41f4c commit c8cbce3

File tree

319 files changed

+29813
-7414
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

319 files changed

+29813
-7414
lines changed

azure-mgmt-compute/HISTORY.rst

+11
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@
33
Release History
44
===============
55

6+
4.3.0 (2018-10-02)
7+
++++++++++++++++++
8+
9+
**Note**
10+
11+
- Compute API version default is now 2018-10-01
12+
13+
**Features/BreakingChanges**
14+
15+
- This version updates the access to properties realted to automatic OS upgrade introduced in 4.0.0
16+
617
4.2.0 (2018-09-25)
718
++++++++++++++++++
819

azure-mgmt-compute/azure/mgmt/compute/compute_management_client.py

+52-1
Large diffs are not rendered by default.

azure-mgmt-compute/azure/mgmt/compute/models.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
import warnings
88

99
from .v2017_09_01.models import *
10-
from .v2018_06_01.models import * # Note that this line is overriding some models of 2018-04-01. See link below for details.
10+
from .v2018_06_01.models import *
11+
from .v2018_10_01.models import * # Note that this line is overriding some models of 2018-06-01. See link below for details.
1112

1213
warnings.warn("Import models from this file is deprecated. See https://aka.ms/pysdkmodels",
1314
DeprecationWarning)

azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/image_disk_reference.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class ImageDiskReference(Model):
1717
1818
All required parameters must be populated in order to send to Azure.
1919
20-
:param id: Required. A relative uri containing either a Platform Imgage
20+
:param id: Required. A relative uri containing either a Platform Image
2121
Repository or user image reference.
2222
:type id: str
2323
:param lun: If the disk is created from an image's data disk, this is an

azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/image_disk_reference_py3.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class ImageDiskReference(Model):
1717
1818
All required parameters must be populated in order to send to Azure.
1919
20-
:param id: Required. A relative uri containing either a Platform Imgage
20+
:param id: Required. A relative uri containing either a Platform Image
2121
Repository or user image reference.
2222
:type id: str
2323
:param lun: If the disk is created from an image's data disk, this is an

azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/image_disk_reference.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class ImageDiskReference(Model):
1717
1818
All required parameters must be populated in order to send to Azure.
1919
20-
:param id: Required. A relative uri containing either a Platform Imgage
20+
:param id: Required. A relative uri containing either a Platform Image
2121
Repository or user image reference.
2222
:type id: str
2323
:param lun: If the disk is created from an image's data disk, this is an

azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/models/image_disk_reference_py3.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class ImageDiskReference(Model):
1717
1818
All required parameters must be populated in order to send to Azure.
1919
20-
:param id: Required. A relative uri containing either a Platform Imgage
20+
:param id: Required. A relative uri containing either a Platform Image
2121
Repository or user image reference.
2222
:type id: str
2323
:param lun: If the disk is created from an image's data disk, this is an

azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/image_disk_reference.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class ImageDiskReference(Model):
1717
1818
All required parameters must be populated in order to send to Azure.
1919
20-
:param id: Required. A relative uri containing either a Platform Imgage
20+
:param id: Required. A relative uri containing either a Platform Image
2121
Repository or user image reference.
2222
:type id: str
2323
:param lun: If the disk is created from an image's data disk, this is an

azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/image_disk_reference_py3.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class ImageDiskReference(Model):
1717
1818
All required parameters must be populated in order to send to Azure.
1919
20-
:param id: Required. A relative uri containing either a Platform Imgage
20+
:param id: Required. A relative uri containing either a Platform Image
2121
Repository or user image reference.
2222
:type id: str
2323
:param lun: If the disk is created from an image's data disk, this is an

azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/image_disk_reference.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class ImageDiskReference(Model):
1717
1818
All required parameters must be populated in order to send to Azure.
1919
20-
:param id: Required. A relative uri containing either a Platform Imgage
20+
:param id: Required. A relative uri containing either a Platform Image
2121
Repository or user image reference.
2222
:type id: str
2323
:param lun: If the disk is created from an image's data disk, this is an

azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/models/image_disk_reference_py3.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class ImageDiskReference(Model):
1717
1818
All required parameters must be populated in order to send to Azure.
1919
20-
:param id: Required. A relative uri containing either a Platform Imgage
20+
:param id: Required. A relative uri containing either a Platform Image
2121
Repository or user image reference.
2222
:type id: str
2323
:param lun: If the disk is created from an image's data disk, this is an
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from .compute_management_client import ComputeManagementClient
13+
from .version import VERSION
14+
15+
__all__ = ['ComputeManagementClient']
16+
17+
__version__ = VERSION
18+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,155 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.service_client import SDKClient
13+
from msrest import Serializer, Deserializer
14+
from msrestazure import AzureConfiguration
15+
from .version import VERSION
16+
from .operations.operations import Operations
17+
from .operations.availability_sets_operations import AvailabilitySetsOperations
18+
from .operations.virtual_machine_extension_images_operations import VirtualMachineExtensionImagesOperations
19+
from .operations.virtual_machine_extensions_operations import VirtualMachineExtensionsOperations
20+
from .operations.virtual_machine_images_operations import VirtualMachineImagesOperations
21+
from .operations.usage_operations import UsageOperations
22+
from .operations.virtual_machines_operations import VirtualMachinesOperations
23+
from .operations.virtual_machine_sizes_operations import VirtualMachineSizesOperations
24+
from .operations.images_operations import ImagesOperations
25+
from .operations.virtual_machine_scale_sets_operations import VirtualMachineScaleSetsOperations
26+
from .operations.virtual_machine_scale_set_extensions_operations import VirtualMachineScaleSetExtensionsOperations
27+
from .operations.virtual_machine_scale_set_rolling_upgrades_operations import VirtualMachineScaleSetRollingUpgradesOperations
28+
from .operations.virtual_machine_scale_set_vms_operations import VirtualMachineScaleSetVMsOperations
29+
from .operations.log_analytics_operations import LogAnalyticsOperations
30+
from .operations.virtual_machine_run_commands_operations import VirtualMachineRunCommandsOperations
31+
from . import models
32+
33+
34+
class ComputeManagementClientConfiguration(AzureConfiguration):
35+
"""Configuration for ComputeManagementClient
36+
Note that all parameters used to create this instance are saved as instance
37+
attributes.
38+
39+
:param credentials: Credentials needed for the client to connect to Azure.
40+
:type credentials: :mod:`A msrestazure Credentials
41+
object<msrestazure.azure_active_directory>`
42+
:param subscription_id: Subscription credentials which uniquely identify
43+
Microsoft Azure subscription. The subscription ID forms part of the URI
44+
for every service call.
45+
:type subscription_id: str
46+
:param str base_url: Service URL
47+
"""
48+
49+
def __init__(
50+
self, credentials, subscription_id, base_url=None):
51+
52+
if credentials is None:
53+
raise ValueError("Parameter 'credentials' must not be None.")
54+
if subscription_id is None:
55+
raise ValueError("Parameter 'subscription_id' must not be None.")
56+
if not base_url:
57+
base_url = 'https://management.azure.com'
58+
59+
super(ComputeManagementClientConfiguration, self).__init__(base_url)
60+
61+
self.add_user_agent('azure-mgmt-compute/{}'.format(VERSION))
62+
self.add_user_agent('Azure-SDK-For-Python')
63+
64+
self.credentials = credentials
65+
self.subscription_id = subscription_id
66+
67+
68+
class ComputeManagementClient(SDKClient):
69+
"""Compute Client
70+
71+
:ivar config: Configuration for client.
72+
:vartype config: ComputeManagementClientConfiguration
73+
74+
:ivar operations: Operations operations
75+
:vartype operations: azure.mgmt.compute.v2018_10_01.operations.Operations
76+
:ivar availability_sets: AvailabilitySets operations
77+
:vartype availability_sets: azure.mgmt.compute.v2018_10_01.operations.AvailabilitySetsOperations
78+
:ivar virtual_machine_extension_images: VirtualMachineExtensionImages operations
79+
:vartype virtual_machine_extension_images: azure.mgmt.compute.v2018_10_01.operations.VirtualMachineExtensionImagesOperations
80+
:ivar virtual_machine_extensions: VirtualMachineExtensions operations
81+
:vartype virtual_machine_extensions: azure.mgmt.compute.v2018_10_01.operations.VirtualMachineExtensionsOperations
82+
:ivar virtual_machine_images: VirtualMachineImages operations
83+
:vartype virtual_machine_images: azure.mgmt.compute.v2018_10_01.operations.VirtualMachineImagesOperations
84+
:ivar usage: Usage operations
85+
:vartype usage: azure.mgmt.compute.v2018_10_01.operations.UsageOperations
86+
:ivar virtual_machines: VirtualMachines operations
87+
:vartype virtual_machines: azure.mgmt.compute.v2018_10_01.operations.VirtualMachinesOperations
88+
:ivar virtual_machine_sizes: VirtualMachineSizes operations
89+
:vartype virtual_machine_sizes: azure.mgmt.compute.v2018_10_01.operations.VirtualMachineSizesOperations
90+
:ivar images: Images operations
91+
:vartype images: azure.mgmt.compute.v2018_10_01.operations.ImagesOperations
92+
:ivar virtual_machine_scale_sets: VirtualMachineScaleSets operations
93+
:vartype virtual_machine_scale_sets: azure.mgmt.compute.v2018_10_01.operations.VirtualMachineScaleSetsOperations
94+
:ivar virtual_machine_scale_set_extensions: VirtualMachineScaleSetExtensions operations
95+
:vartype virtual_machine_scale_set_extensions: azure.mgmt.compute.v2018_10_01.operations.VirtualMachineScaleSetExtensionsOperations
96+
:ivar virtual_machine_scale_set_rolling_upgrades: VirtualMachineScaleSetRollingUpgrades operations
97+
:vartype virtual_machine_scale_set_rolling_upgrades: azure.mgmt.compute.v2018_10_01.operations.VirtualMachineScaleSetRollingUpgradesOperations
98+
:ivar virtual_machine_scale_set_vms: VirtualMachineScaleSetVMs operations
99+
:vartype virtual_machine_scale_set_vms: azure.mgmt.compute.v2018_10_01.operations.VirtualMachineScaleSetVMsOperations
100+
:ivar log_analytics: LogAnalytics operations
101+
:vartype log_analytics: azure.mgmt.compute.v2018_10_01.operations.LogAnalyticsOperations
102+
:ivar virtual_machine_run_commands: VirtualMachineRunCommands operations
103+
:vartype virtual_machine_run_commands: azure.mgmt.compute.v2018_10_01.operations.VirtualMachineRunCommandsOperations
104+
105+
:param credentials: Credentials needed for the client to connect to Azure.
106+
:type credentials: :mod:`A msrestazure Credentials
107+
object<msrestazure.azure_active_directory>`
108+
:param subscription_id: Subscription credentials which uniquely identify
109+
Microsoft Azure subscription. The subscription ID forms part of the URI
110+
for every service call.
111+
:type subscription_id: str
112+
:param str base_url: Service URL
113+
"""
114+
115+
def __init__(
116+
self, credentials, subscription_id, base_url=None):
117+
118+
self.config = ComputeManagementClientConfiguration(credentials, subscription_id, base_url)
119+
super(ComputeManagementClient, self).__init__(self.config.credentials, self.config)
120+
121+
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
122+
self.api_version = '2018-10-01'
123+
self._serialize = Serializer(client_models)
124+
self._deserialize = Deserializer(client_models)
125+
126+
self.operations = Operations(
127+
self._client, self.config, self._serialize, self._deserialize)
128+
self.availability_sets = AvailabilitySetsOperations(
129+
self._client, self.config, self._serialize, self._deserialize)
130+
self.virtual_machine_extension_images = VirtualMachineExtensionImagesOperations(
131+
self._client, self.config, self._serialize, self._deserialize)
132+
self.virtual_machine_extensions = VirtualMachineExtensionsOperations(
133+
self._client, self.config, self._serialize, self._deserialize)
134+
self.virtual_machine_images = VirtualMachineImagesOperations(
135+
self._client, self.config, self._serialize, self._deserialize)
136+
self.usage = UsageOperations(
137+
self._client, self.config, self._serialize, self._deserialize)
138+
self.virtual_machines = VirtualMachinesOperations(
139+
self._client, self.config, self._serialize, self._deserialize)
140+
self.virtual_machine_sizes = VirtualMachineSizesOperations(
141+
self._client, self.config, self._serialize, self._deserialize)
142+
self.images = ImagesOperations(
143+
self._client, self.config, self._serialize, self._deserialize)
144+
self.virtual_machine_scale_sets = VirtualMachineScaleSetsOperations(
145+
self._client, self.config, self._serialize, self._deserialize)
146+
self.virtual_machine_scale_set_extensions = VirtualMachineScaleSetExtensionsOperations(
147+
self._client, self.config, self._serialize, self._deserialize)
148+
self.virtual_machine_scale_set_rolling_upgrades = VirtualMachineScaleSetRollingUpgradesOperations(
149+
self._client, self.config, self._serialize, self._deserialize)
150+
self.virtual_machine_scale_set_vms = VirtualMachineScaleSetVMsOperations(
151+
self._client, self.config, self._serialize, self._deserialize)
152+
self.log_analytics = LogAnalyticsOperations(
153+
self._client, self.config, self._serialize, self._deserialize)
154+
self.virtual_machine_run_commands = VirtualMachineRunCommandsOperations(
155+
self._client, self.config, self._serialize, self._deserialize)

0 commit comments

Comments
 (0)