-
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.
[AutoPR eventhub/resource-manager] Adding Create, Delete and List Nam…
…espaces Endpoints for Event Hubs Cluster Resource (#4823) * Generated from e71f68ed3742748809be56268abd685f2efbc1ce Update specification/eventhub/resource-manager/Microsoft.EventHub/preview/2018-01-01-preview/EventHub-preview.json Co-Authored-By: FBettati <franco.d.bettati@gmail.com> * Generated from ee9ddc961f6d6ebea5af98299f6659b762efeb8a Merge pull request #1 from FBettati/AvailableRegions Adding Available Regions API * Generated from 2f8c68e56c5c458fb5619cd0060512bf56efed48 Modifying response in AvailableClusterList * Generated from 437b61a0f4527d5adf932d648c587f09872c3a70 Merge pull request #2 from FBettati/frbettat-clusters Move POSTs to GETs for namespace enumeration and available cluster enumeration * Generated from de66598d5b247c2309c05d25f06af83dd2d306b1 Merge pull request #3 from FBettati/availableClusterCollection Modify availableClusters API to have a valid ARM collection response * Generated from 98a19e0024ab5bc5bb422ddbfb96bfed85bf984c Updating /cluster/namespaces and /availableClusters calls
- Loading branch information
1 parent
ce1d8da
commit 4c8c023
Showing
8 changed files
with
475 additions
and
0 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
29 changes: 29 additions & 0 deletions
29
...e-mgmt-eventhub/azure/mgmt/eventhub/v2018_01_01_preview/models/available_clusters_list.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,29 @@ | ||
# 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 AvailableClustersList(Model): | ||
"""The response of the List Available Clusters operation. | ||
:param value: The count of readily available and pre-provisioned Event | ||
Hubs Clusters per region. | ||
:type value: list[dict[str, int]] | ||
""" | ||
|
||
_attribute_map = { | ||
'value': {'key': 'value', 'type': '[{int}]'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(AvailableClustersList, self).__init__(**kwargs) | ||
self.value = kwargs.get('value', None) |
29 changes: 29 additions & 0 deletions
29
...mt-eventhub/azure/mgmt/eventhub/v2018_01_01_preview/models/available_clusters_list_py3.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,29 @@ | ||
# 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 AvailableClustersList(Model): | ||
"""The response of the List Available Clusters operation. | ||
:param value: The count of readily available and pre-provisioned Event | ||
Hubs Clusters per region. | ||
:type value: list[dict[str, int]] | ||
""" | ||
|
||
_attribute_map = { | ||
'value': {'key': 'value', 'type': '[{int}]'}, | ||
} | ||
|
||
def __init__(self, *, value=None, **kwargs) -> None: | ||
super(AvailableClustersList, self).__init__(**kwargs) | ||
self.value = value |
28 changes: 28 additions & 0 deletions
28
...mgmt-eventhub/azure/mgmt/eventhub/v2018_01_01_preview/models/eh_namespace_id_container.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,28 @@ | ||
# 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 EHNamespaceIdContainer(Model): | ||
"""The full ARM ID of an Event Hubs Namespace. | ||
:param id: | ||
:type id: str | ||
""" | ||
|
||
_attribute_map = { | ||
'id': {'key': 'id', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(EHNamespaceIdContainer, self).__init__(**kwargs) | ||
self.id = kwargs.get('id', None) |
28 changes: 28 additions & 0 deletions
28
...-eventhub/azure/mgmt/eventhub/v2018_01_01_preview/models/eh_namespace_id_container_py3.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,28 @@ | ||
# 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 EHNamespaceIdContainer(Model): | ||
"""The full ARM ID of an Event Hubs Namespace. | ||
:param id: | ||
:type id: str | ||
""" | ||
|
||
_attribute_map = { | ||
'id': {'key': 'id', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, *, id: str=None, **kwargs) -> None: | ||
super(EHNamespaceIdContainer, self).__init__(**kwargs) | ||
self.id = id |
29 changes: 29 additions & 0 deletions
29
...mt-eventhub/azure/mgmt/eventhub/v2018_01_01_preview/models/eh_namespace_id_list_result.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,29 @@ | ||
# 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 EHNamespaceIdListResult(Model): | ||
"""The response of the List Namespace IDs operation. | ||
:param value: Result of the List Namespace IDs operation | ||
:type value: | ||
list[~azure.mgmt.eventhub.v2018_01_01_preview.models.EHNamespaceIdContainer] | ||
""" | ||
|
||
_attribute_map = { | ||
'value': {'key': 'value', 'type': '[EHNamespaceIdContainer]'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(EHNamespaceIdListResult, self).__init__(**kwargs) | ||
self.value = kwargs.get('value', None) |
29 changes: 29 additions & 0 deletions
29
...venthub/azure/mgmt/eventhub/v2018_01_01_preview/models/eh_namespace_id_list_result_py3.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,29 @@ | ||
# 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 EHNamespaceIdListResult(Model): | ||
"""The response of the List Namespace IDs operation. | ||
:param value: Result of the List Namespace IDs operation | ||
:type value: | ||
list[~azure.mgmt.eventhub.v2018_01_01_preview.models.EHNamespaceIdContainer] | ||
""" | ||
|
||
_attribute_map = { | ||
'value': {'key': 'value', 'type': '[EHNamespaceIdContainer]'}, | ||
} | ||
|
||
def __init__(self, *, value=None, **kwargs) -> None: | ||
super(EHNamespaceIdListResult, self).__init__(**kwargs) | ||
self.value = value |
Oops, something went wrong.