-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated from 661409da4d2789164dfb43b5afc29e796a180795 (#4895)
Added back ProximityPlaceGroup APIs which are missing in 2019-03-01
- Loading branch information
1 parent
ed77d0f
commit e4eeb28
Showing
22 changed files
with
770 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
79 changes: 79 additions & 0 deletions
79
azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/proximity_placement_group.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
# 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 .resource import Resource | ||
|
||
|
||
class ProximityPlacementGroup(Resource): | ||
"""Specifies information about the proximity placement group. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
All required parameters must be populated in order to send to Azure. | ||
:ivar id: Resource Id | ||
:vartype id: str | ||
:ivar name: Resource name | ||
:vartype name: str | ||
:ivar type: Resource type | ||
:vartype type: str | ||
:param location: Required. Resource location | ||
:type location: str | ||
:param tags: Resource tags | ||
:type tags: dict[str, str] | ||
:param proximity_placement_group_type: Specifies the type of the proximity | ||
placement group. <br><br> Possible values are: <br><br> **Standard** | ||
<br><br> **Ultra**. Possible values include: 'Standard', 'Ultra' | ||
:type proximity_placement_group_type: str or | ||
~azure.mgmt.compute.v2019_03_01.models.ProximityPlacementGroupType | ||
:ivar virtual_machines: A list of references to all virtual machines in | ||
the proximity placement group. | ||
:vartype virtual_machines: | ||
list[~azure.mgmt.compute.v2019_03_01.models.SubResource] | ||
:ivar virtual_machine_scale_sets: A list of references to all virtual | ||
machine scale sets in the proximity placement group. | ||
:vartype virtual_machine_scale_sets: | ||
list[~azure.mgmt.compute.v2019_03_01.models.SubResource] | ||
:ivar availability_sets: A list of references to all availability sets in | ||
the proximity placement group. | ||
:vartype availability_sets: | ||
list[~azure.mgmt.compute.v2019_03_01.models.SubResource] | ||
""" | ||
|
||
_validation = { | ||
'id': {'readonly': True}, | ||
'name': {'readonly': True}, | ||
'type': {'readonly': True}, | ||
'location': {'required': True}, | ||
'virtual_machines': {'readonly': True}, | ||
'virtual_machine_scale_sets': {'readonly': True}, | ||
'availability_sets': {'readonly': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'id': {'key': 'id', 'type': 'str'}, | ||
'name': {'key': 'name', 'type': 'str'}, | ||
'type': {'key': 'type', 'type': 'str'}, | ||
'location': {'key': 'location', 'type': 'str'}, | ||
'tags': {'key': 'tags', 'type': '{str}'}, | ||
'proximity_placement_group_type': {'key': 'properties.proximityPlacementGroupType', 'type': 'str'}, | ||
'virtual_machines': {'key': 'properties.virtualMachines', 'type': '[SubResource]'}, | ||
'virtual_machine_scale_sets': {'key': 'properties.virtualMachineScaleSets', 'type': '[SubResource]'}, | ||
'availability_sets': {'key': 'properties.availabilitySets', 'type': '[SubResource]'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(ProximityPlacementGroup, self).__init__(**kwargs) | ||
self.proximity_placement_group_type = kwargs.get('proximity_placement_group_type', None) | ||
self.virtual_machines = None | ||
self.virtual_machine_scale_sets = None | ||
self.availability_sets = None |
27 changes: 27 additions & 0 deletions
27
azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/proximity_placement_group_paged.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ProximityPlacementGroupPaged(Paged): | ||
""" | ||
A paging container for iterating over a list of :class:`ProximityPlacementGroup <azure.mgmt.compute.v2019_03_01.models.ProximityPlacementGroup>` object | ||
""" | ||
|
||
_attribute_map = { | ||
'next_link': {'key': 'nextLink', 'type': 'str'}, | ||
'current_page': {'key': 'value', 'type': '[ProximityPlacementGroup]'} | ||
} | ||
|
||
def __init__(self, *args, **kwargs): | ||
|
||
super(ProximityPlacementGroupPaged, self).__init__(*args, **kwargs) |
Oops, something went wrong.