-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated from eccd0ab7c8d44acd1bbb8413573076ebf3f8b74f (#2045)
Added the missing API discovered in ARM_RP_Fundamentals to the respective API version swagger and review comments
- Loading branch information
1 parent
f746c62
commit 423fe60
Showing
15 changed files
with
493 additions
and
44 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
65 changes: 65 additions & 0 deletions
65
azure-mgmt-eventhub/azure/mgmt/eventhub/models/messaging_plan.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,65 @@ | ||
# 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 .tracked_resource import TrackedResource | ||
|
||
|
||
class MessagingPlan(TrackedResource): | ||
"""Messaging. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
:ivar id: Resource Id | ||
:vartype id: str | ||
:ivar name: Resource name | ||
:vartype name: str | ||
:ivar type: Resource type | ||
:vartype type: str | ||
:param location: Resource location | ||
:type location: str | ||
:param tags: Resource tags | ||
:type tags: dict[str, str] | ||
:param sku: Sku type | ||
:type sku: int | ||
:param selected_event_hub_unit: Selected event hub unit | ||
:type selected_event_hub_unit: int | ||
:ivar updated_at: The exact time the messaging plan was updated. | ||
:vartype updated_at: datetime | ||
:param revision: revision number | ||
:type revision: long | ||
""" | ||
|
||
_validation = { | ||
'id': {'readonly': True}, | ||
'name': {'readonly': True}, | ||
'type': {'readonly': True}, | ||
'updated_at': {'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}'}, | ||
'sku': {'key': 'properties.sku', 'type': 'int'}, | ||
'selected_event_hub_unit': {'key': 'properties.selectedEventHubUnit', 'type': 'int'}, | ||
'updated_at': {'key': 'properties.updatedAt', 'type': 'iso-8601'}, | ||
'revision': {'key': 'properties.revision', 'type': 'long'}, | ||
} | ||
|
||
def __init__(self, location=None, tags=None, sku=None, selected_event_hub_unit=None, revision=None): | ||
super(MessagingPlan, self).__init__(location=location, tags=tags) | ||
self.sku = sku | ||
self.selected_event_hub_unit = selected_event_hub_unit | ||
self.updated_at = None | ||
self.revision = revision |
52 changes: 52 additions & 0 deletions
52
azure-mgmt-eventhub/azure/mgmt/eventhub/models/messaging_regions.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,52 @@ | ||
# 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 .tracked_resource import TrackedResource | ||
|
||
|
||
class MessagingRegions(TrackedResource): | ||
"""Messaging Region. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
:ivar id: Resource Id | ||
:vartype id: str | ||
:ivar name: Resource name | ||
:vartype name: str | ||
:ivar type: Resource type | ||
:vartype type: str | ||
:param location: Resource location | ||
:type location: str | ||
:param tags: Resource tags | ||
:type tags: dict[str, str] | ||
:param properties: | ||
:type properties: ~azure.mgmt.eventhub.models.MessagingRegionsProperties | ||
""" | ||
|
||
_validation = { | ||
'id': {'readonly': True}, | ||
'name': {'readonly': True}, | ||
'type': {'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}'}, | ||
'properties': {'key': 'properties', 'type': 'MessagingRegionsProperties'}, | ||
} | ||
|
||
def __init__(self, location=None, tags=None, properties=None): | ||
super(MessagingRegions, self).__init__(location=location, tags=tags) | ||
self.properties = properties |
27 changes: 27 additions & 0 deletions
27
azure-mgmt-eventhub/azure/mgmt/eventhub/models/messaging_regions_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 MessagingRegionsPaged(Paged): | ||
""" | ||
A paging container for iterating over a list of :class:`MessagingRegions <azure.mgmt.eventhub.models.MessagingRegions>` object | ||
""" | ||
|
||
_attribute_map = { | ||
'next_link': {'key': 'nextLink', 'type': 'str'}, | ||
'current_page': {'key': 'value', 'type': '[MessagingRegions]'} | ||
} | ||
|
||
def __init__(self, *args, **kwargs): | ||
|
||
super(MessagingRegionsPaged, self).__init__(*args, **kwargs) |
40 changes: 40 additions & 0 deletions
40
azure-mgmt-eventhub/azure/mgmt/eventhub/models/messaging_regions_properties.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,40 @@ | ||
# 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 MessagingRegionsProperties(Model): | ||
"""MessagingRegionsProperties. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
:ivar code: Region code | ||
:vartype code: str | ||
:ivar full_name: Full name of the region | ||
:vartype full_name: str | ||
""" | ||
|
||
_validation = { | ||
'code': {'readonly': True}, | ||
'full_name': {'readonly': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'code': {'key': 'code', 'type': 'str'}, | ||
'full_name': {'key': 'fullName', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self): | ||
super(MessagingRegionsProperties, self).__init__() | ||
self.code = None | ||
self.full_name = None |
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
Oops, something went wrong.