Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR eventhub/resource-manager] Eventhub: Added skipEmptyArchives to Eventhub CaptureDescription #4252

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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