Skip to content

Commit

Permalink
[AutoPR eventhub/resource-manager] Adding Create, Delete and List Nam…
Browse files Browse the repository at this point in the history
…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
AutorestCI authored Apr 29, 2019
1 parent ce1d8da commit 4c8c023
Show file tree
Hide file tree
Showing 8 changed files with 475 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,13 @@
from .operation_py3 import Operation
from .cluster_sku_py3 import ClusterSku
from .cluster_py3 import Cluster
from .available_clusters_list_py3 import AvailableClustersList
from .cluster_quota_configuration_properties_py3 import ClusterQuotaConfigurationProperties
from .error_response_py3 import ErrorResponse, ErrorResponseException
from .tracked_resource_py3 import TrackedResource
from .resource_py3 import Resource
from .eh_namespace_id_container_py3 import EHNamespaceIdContainer
from .eh_namespace_id_list_result_py3 import EHNamespaceIdListResult
from .sku_py3 import Sku
from .eh_namespace_py3 import EHNamespace
from .ip_filter_rule_py3 import IpFilterRule
Expand All @@ -31,10 +34,13 @@
from .operation import Operation
from .cluster_sku import ClusterSku
from .cluster import Cluster
from .available_clusters_list import AvailableClustersList
from .cluster_quota_configuration_properties import ClusterQuotaConfigurationProperties
from .error_response import ErrorResponse, ErrorResponseException
from .tracked_resource import TrackedResource
from .resource import Resource
from .eh_namespace_id_container import EHNamespaceIdContainer
from .eh_namespace_id_list_result import EHNamespaceIdListResult
from .sku import Sku
from .eh_namespace import EHNamespace
from .ip_filter_rule import IpFilterRule
Expand All @@ -61,10 +67,13 @@
'Operation',
'ClusterSku',
'Cluster',
'AvailableClustersList',
'ClusterQuotaConfigurationProperties',
'ErrorResponse', 'ErrorResponseException',
'TrackedResource',
'Resource',
'EHNamespaceIdContainer',
'EHNamespaceIdListResult',
'Sku',
'EHNamespace',
'IpFilterRule',
Expand Down
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)
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
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)
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
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)
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
Loading

0 comments on commit 4c8c023

Please sign in to comment.