Skip to content

Commit

Permalink
[AutoPR] eventhub/resource-manager (Azure#3873)
Browse files Browse the repository at this point in the history
* Generated from 6353a74b9cd74d3b127bdd51373d3388b3e962b4 (Azure#3867)

typo: eventhub/resource-manager/Microsoft.EventHub/EventHub

- successfuly -> successfully
- vaule -> value
- Autorization -> Authorization
- Regenrate -> Regenerate
- Messagning -> Messaging
- envokes -> Invokes
- neeeds -> needs
- achive -> archive
- anme -> name
- Usermetadata -> User Metadata
- reponse -> response
- pairning -> pairing

* Generated from a5bc337827b704dd39648b1946ce01fc3fc6a6ec (Azure#4252)

updated formating

* Packaging update of azure-mgmt-eventhub

* ChangeLog
  • Loading branch information
AutorestCI authored and lmazuel committed Feb 4, 2019
1 parent 97b71f2 commit 66935c0
Show file tree
Hide file tree
Showing 19 changed files with 34 additions and 36 deletions.
7 changes: 7 additions & 0 deletions azure-mgmt-eventhub/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
Release History
===============

2.3.0 (2019-02-04)
++++++++++++++++++

**Features**

- Model CaptureDescription has a new parameter skip_empty_archives

2.2.0 (2018-10-29)
++++++++++++++++++

Expand Down
19 changes: 0 additions & 19 deletions azure-mgmt-eventhub/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,6 @@ For the older Azure Service Management (ASM) libraries, see
For a more complete set of Azure libraries, see the `azure <https://pypi.python.org/pypi/azure>`__ bundle package.


Compatibility
=============

**IMPORTANT**: If you have an earlier version of the azure package
(version < 1.0), you should uninstall it before installing this package.

You can check the version using pip:

.. code:: shell
pip freeze
If you see azure==0.11.0 (or any version below 1.0), uninstall it first:

.. code:: shell
pip uninstall azure
Usage
=====

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class ArmDisasterRecovery(Resource):
:vartype provisioning_state: str or
~azure.mgmt.eventhub.models.ProvisioningStateDR
:param partner_namespace: ARM Id of the Primary/Secondary eventhub
namespace name, which is part of GEO DR pairning
namespace name, which is part of GEO DR pairing
:type partner_namespace: str
:param alternate_name: Alternate name specified when alias and namespace
names are same.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class ArmDisasterRecovery(Resource):
:vartype provisioning_state: str or
~azure.mgmt.eventhub.models.ProvisioningStateDR
:param partner_namespace: ARM Id of the Primary/Secondary eventhub
namespace name, which is part of GEO DR pairning
namespace name, which is part of GEO DR pairing
:type partner_namespace: str
:param alternate_name: Alternate name specified when alias and namespace
names are same.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ class CaptureDescription(Model):
:param destination: Properties of Destination where capture will be
stored. (Storage Account, Blob Names)
:type destination: ~azure.mgmt.eventhub.models.Destination
:param skip_empty_archives: A value that indicates whether to Skip Empty
Archives
:type skip_empty_archives: bool
"""

_validation = {
Expand All @@ -47,6 +50,7 @@ class CaptureDescription(Model):
'interval_in_seconds': {'key': 'intervalInSeconds', 'type': 'int'},
'size_limit_in_bytes': {'key': 'sizeLimitInBytes', 'type': 'int'},
'destination': {'key': 'destination', 'type': 'Destination'},
'skip_empty_archives': {'key': 'skipEmptyArchives', 'type': 'bool'},
}

def __init__(self, **kwargs):
Expand All @@ -56,3 +60,4 @@ def __init__(self, **kwargs):
self.interval_in_seconds = kwargs.get('interval_in_seconds', None)
self.size_limit_in_bytes = kwargs.get('size_limit_in_bytes', None)
self.destination = kwargs.get('destination', None)
self.skip_empty_archives = kwargs.get('skip_empty_archives', None)
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ class CaptureDescription(Model):
:param destination: Properties of Destination where capture will be
stored. (Storage Account, Blob Names)
:type destination: ~azure.mgmt.eventhub.models.Destination
:param skip_empty_archives: A value that indicates whether to Skip Empty
Archives
:type skip_empty_archives: bool
"""

_validation = {
Expand All @@ -47,12 +50,14 @@ class CaptureDescription(Model):
'interval_in_seconds': {'key': 'intervalInSeconds', 'type': 'int'},
'size_limit_in_bytes': {'key': 'sizeLimitInBytes', 'type': 'int'},
'destination': {'key': 'destination', 'type': 'Destination'},
'skip_empty_archives': {'key': 'skipEmptyArchives', 'type': 'bool'},
}

def __init__(self, *, enabled: bool=None, encoding=None, interval_in_seconds: int=None, size_limit_in_bytes: int=None, destination=None, **kwargs) -> None:
def __init__(self, *, enabled: bool=None, encoding=None, interval_in_seconds: int=None, size_limit_in_bytes: int=None, destination=None, skip_empty_archives: bool=None, **kwargs) -> None:
super(CaptureDescription, self).__init__(**kwargs)
self.enabled = enabled
self.encoding = encoding
self.interval_in_seconds = interval_in_seconds
self.size_limit_in_bytes = size_limit_in_bytes
self.destination = destination
self.skip_empty_archives = skip_empty_archives
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class ConsumerGroup(Resource):
:vartype created_at: datetime
:ivar updated_at: The exact time the message was updated.
:vartype updated_at: datetime
:param user_metadata: Usermetadata is a placeholder to store user-defined
:param user_metadata: User Metadata is a placeholder to store user-defined
string data with maximum length 1024. e.g. it can be used to store
descriptive data, such as list of teams and their contact information also
user-defined configuration settings can be stored.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class ConsumerGroup(Resource):
:vartype created_at: datetime
:ivar updated_at: The exact time the message was updated.
:vartype updated_at: datetime
:param user_metadata: Usermetadata is a placeholder to store user-defined
:param user_metadata: User Metadata is a placeholder to store user-defined
string data with maximum length 1024. e.g. it can be used to store
descriptive data, such as list of teams and their contact information also
user-defined configuration settings can be stored.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class EHNamespace(TrackedResource):
is enabled for eventhub namespace.
:type is_auto_inflate_enabled: bool
:param maximum_throughput_units: Upper limit of throughput units when
AutoInflate is enabled, vaule should be within 0 to 20 throughput units. (
AutoInflate is enabled, value should be within 0 to 20 throughput units. (
'0' if AutoInflateEnabled = true)
:type maximum_throughput_units: int
:param kafka_enabled: Value that indicates whether Kafka is enabled for
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class EHNamespace(TrackedResource):
is enabled for eventhub namespace.
:type is_auto_inflate_enabled: bool
:param maximum_throughput_units: Upper limit of throughput units when
AutoInflate is enabled, vaule should be within 0 to 20 throughput units. (
AutoInflate is enabled, value should be within 0 to 20 throughput units. (
'0' if AutoInflateEnabled = true)
:type maximum_throughput_units: int
:param kafka_enabled: Value that indicates whether Kafka is enabled for
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@


class ErrorResponse(Model):
"""Error reponse indicates EventHub service is not able to process the
"""Error response indicates EventHub service is not able to process the
incoming request. The reason is provided in the error message.
:param code: Error code.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@


class ErrorResponse(Model):
"""Error reponse indicates EventHub service is not able to process the
"""Error response indicates EventHub service is not able to process the
incoming request. The reason is provided in the error message.
:param code: Error code.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

class RegenerateAccessKeyParameters(Model):
"""Parameters supplied to the Regenerate Authorization Rule operation,
specifies which key neeeds to be reset.
specifies which key needs to be reset.
All required parameters must be populated in order to send to Azure.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

class RegenerateAccessKeyParameters(Model):
"""Parameters supplied to the Regenerate Authorization Rule operation,
specifies which key neeeds to be reset.
specifies which key needs to be reset.
All required parameters must be populated in order to send to Azure.
Expand Down
2 changes: 1 addition & 1 deletion azure-mgmt-eventhub/azure/mgmt/eventhub/models/sku.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Sku(Model):
:param tier: The billing tier of this particular SKU. Possible values
include: 'Basic', 'Standard'
:type tier: str or ~azure.mgmt.eventhub.models.SkuTier
:param capacity: The Event Hubs throughput units, vaule should be 0 to 20
:param capacity: The Event Hubs throughput units, value should be 0 to 20
throughput units.
:type capacity: int
"""
Expand Down
2 changes: 1 addition & 1 deletion azure-mgmt-eventhub/azure/mgmt/eventhub/models/sku_py3.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Sku(Model):
:param tier: The billing tier of this particular SKU. Possible values
include: 'Basic', 'Standard'
:type tier: str or ~azure.mgmt.eventhub.models.SkuTier
:param capacity: The Event Hubs throughput units, vaule should be 0 to 20
:param capacity: The Event Hubs throughput units, value should be 0 to 20
throughput units.
:type capacity: int
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def create_or_update(
:type event_hub_name: str
:param consumer_group_name: The consumer group name
:type consumer_group_name: str
:param user_metadata: Usermetadata is a placeholder to store
:param user_metadata: User Metadata is a placeholder to store
user-defined string data with maximum length 1024. e.g. it can be used
to store descriptive data, such as list of teams and their contact
information also user-defined configuration settings can be stored.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def create_or_update(
:param alias: The Disaster Recovery configuration name
:type alias: str
:param partner_namespace: ARM Id of the Primary/Secondary eventhub
namespace name, which is part of GEO DR pairning
namespace name, which is part of GEO DR pairing
:type partner_namespace: str
:param alternate_name: Alternate name specified when alias and
namespace names are same.
Expand Down Expand Up @@ -434,7 +434,7 @@ def break_pairing(

def fail_over(
self, resource_group_name, namespace_name, alias, custom_headers=None, raw=False, **operation_config):
"""envokes GEO DR failover and reconfigure the alias to point to the
"""Invokes GEO DR failover and reconfigure the alias to point to the
secondary namespace.
:param resource_group_name: Name of the resource group within the
Expand Down
2 changes: 1 addition & 1 deletion azure-mgmt-eventhub/azure/mgmt/eventhub/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
# regenerated.
# --------------------------------------------------------------------------

VERSION = "2.2.0"
VERSION = "2.3.0"

0 comments on commit 66935c0

Please sign in to comment.