Skip to content

Commit 4c8c023

Browse files
authored
[AutoPR eventhub/resource-manager] Adding Create, Delete and List Namespaces 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 <[email protected]> * 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
1 parent ce1d8da commit 4c8c023

8 files changed

+475
-0
lines changed

azure-mgmt-eventhub/azure/mgmt/eventhub/v2018_01_01_preview/models/__init__.py

+9
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,13 @@
1414
from .operation_py3 import Operation
1515
from .cluster_sku_py3 import ClusterSku
1616
from .cluster_py3 import Cluster
17+
from .available_clusters_list_py3 import AvailableClustersList
1718
from .cluster_quota_configuration_properties_py3 import ClusterQuotaConfigurationProperties
1819
from .error_response_py3 import ErrorResponse, ErrorResponseException
1920
from .tracked_resource_py3 import TrackedResource
2021
from .resource_py3 import Resource
22+
from .eh_namespace_id_container_py3 import EHNamespaceIdContainer
23+
from .eh_namespace_id_list_result_py3 import EHNamespaceIdListResult
2124
from .sku_py3 import Sku
2225
from .eh_namespace_py3 import EHNamespace
2326
from .ip_filter_rule_py3 import IpFilterRule
@@ -31,10 +34,13 @@
3134
from .operation import Operation
3235
from .cluster_sku import ClusterSku
3336
from .cluster import Cluster
37+
from .available_clusters_list import AvailableClustersList
3438
from .cluster_quota_configuration_properties import ClusterQuotaConfigurationProperties
3539
from .error_response import ErrorResponse, ErrorResponseException
3640
from .tracked_resource import TrackedResource
3741
from .resource import Resource
42+
from .eh_namespace_id_container import EHNamespaceIdContainer
43+
from .eh_namespace_id_list_result import EHNamespaceIdListResult
3844
from .sku import Sku
3945
from .eh_namespace import EHNamespace
4046
from .ip_filter_rule import IpFilterRule
@@ -61,10 +67,13 @@
6167
'Operation',
6268
'ClusterSku',
6369
'Cluster',
70+
'AvailableClustersList',
6471
'ClusterQuotaConfigurationProperties',
6572
'ErrorResponse', 'ErrorResponseException',
6673
'TrackedResource',
6774
'Resource',
75+
'EHNamespaceIdContainer',
76+
'EHNamespaceIdListResult',
6877
'Sku',
6978
'EHNamespace',
7079
'IpFilterRule',
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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.serialization import Model
13+
14+
15+
class AvailableClustersList(Model):
16+
"""The response of the List Available Clusters operation.
17+
18+
:param value: The count of readily available and pre-provisioned Event
19+
Hubs Clusters per region.
20+
:type value: list[dict[str, int]]
21+
"""
22+
23+
_attribute_map = {
24+
'value': {'key': 'value', 'type': '[{int}]'},
25+
}
26+
27+
def __init__(self, **kwargs):
28+
super(AvailableClustersList, self).__init__(**kwargs)
29+
self.value = kwargs.get('value', None)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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.serialization import Model
13+
14+
15+
class AvailableClustersList(Model):
16+
"""The response of the List Available Clusters operation.
17+
18+
:param value: The count of readily available and pre-provisioned Event
19+
Hubs Clusters per region.
20+
:type value: list[dict[str, int]]
21+
"""
22+
23+
_attribute_map = {
24+
'value': {'key': 'value', 'type': '[{int}]'},
25+
}
26+
27+
def __init__(self, *, value=None, **kwargs) -> None:
28+
super(AvailableClustersList, self).__init__(**kwargs)
29+
self.value = value
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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.serialization import Model
13+
14+
15+
class EHNamespaceIdContainer(Model):
16+
"""The full ARM ID of an Event Hubs Namespace.
17+
18+
:param id:
19+
:type id: str
20+
"""
21+
22+
_attribute_map = {
23+
'id': {'key': 'id', 'type': 'str'},
24+
}
25+
26+
def __init__(self, **kwargs):
27+
super(EHNamespaceIdContainer, self).__init__(**kwargs)
28+
self.id = kwargs.get('id', None)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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.serialization import Model
13+
14+
15+
class EHNamespaceIdContainer(Model):
16+
"""The full ARM ID of an Event Hubs Namespace.
17+
18+
:param id:
19+
:type id: str
20+
"""
21+
22+
_attribute_map = {
23+
'id': {'key': 'id', 'type': 'str'},
24+
}
25+
26+
def __init__(self, *, id: str=None, **kwargs) -> None:
27+
super(EHNamespaceIdContainer, self).__init__(**kwargs)
28+
self.id = id
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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.serialization import Model
13+
14+
15+
class EHNamespaceIdListResult(Model):
16+
"""The response of the List Namespace IDs operation.
17+
18+
:param value: Result of the List Namespace IDs operation
19+
:type value:
20+
list[~azure.mgmt.eventhub.v2018_01_01_preview.models.EHNamespaceIdContainer]
21+
"""
22+
23+
_attribute_map = {
24+
'value': {'key': 'value', 'type': '[EHNamespaceIdContainer]'},
25+
}
26+
27+
def __init__(self, **kwargs):
28+
super(EHNamespaceIdListResult, self).__init__(**kwargs)
29+
self.value = kwargs.get('value', None)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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.serialization import Model
13+
14+
15+
class EHNamespaceIdListResult(Model):
16+
"""The response of the List Namespace IDs operation.
17+
18+
:param value: Result of the List Namespace IDs operation
19+
:type value:
20+
list[~azure.mgmt.eventhub.v2018_01_01_preview.models.EHNamespaceIdContainer]
21+
"""
22+
23+
_attribute_map = {
24+
'value': {'key': 'value', 'type': '[EHNamespaceIdContainer]'},
25+
}
26+
27+
def __init__(self, *, value=None, **kwargs) -> None:
28+
super(EHNamespaceIdListResult, self).__init__(**kwargs)
29+
self.value = value

0 commit comments

Comments
 (0)