Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

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

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
2 changes: 1 addition & 1 deletion lib/services/eventHubManagement/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2018 Microsoft
Copyright (c) 2019 Microsoft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ class CaptureDescription {
* {Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}.
* Here all the parameters (Namespace,EventHub .. etc) are mandatory
* irrespective of order
* @property {boolean} [skipEmptyArchives] A value that indicates whether to
* Skip Empty Archives
*/
constructor() {
}
Expand Down Expand Up @@ -102,6 +104,13 @@ class CaptureDescription {
name: 'Composite',
className: 'Destination'
}
},
skipEmptyArchives: {
required: false,
serializedName: 'skipEmptyArchives',
type: {
name: 'Boolean'
}
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions lib/services/eventHubManagement/lib/models/eventhub.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ class Eventhub extends models['Resource'] {
* {Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}.
* Here all the parameters (Namespace,EventHub .. etc) are mandatory
* irrespective of order
* @property {boolean} [captureDescription.skipEmptyArchives] A value that
* indicates whether to Skip Empty Archives
*/
constructor() {
super();
Expand Down
4 changes: 4 additions & 0 deletions lib/services/eventHubManagement/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,10 @@ export interface CaptureDescription {
* Properties of Destination where capture will be stored. (Storage Account, Blob Names)
*/
destination?: Destination;
/**
* A value that indicates whether to Skip Empty Archives
*/
skipEmptyArchives?: boolean;
}

/**
Expand Down
9 changes: 9 additions & 0 deletions lib/services/eventHubManagement/lib/operations/eventHubs.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,9 @@ function _listByNamespace(resourceGroupName, namespaceName, options, callback) {
* Here all the parameters (Namespace,EventHub .. etc) are mandatory
* irrespective of order
*
* @param {boolean} [parameters.captureDescription.skipEmptyArchives] A value
* that indicates whether to Skip Empty Archives
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
Expand Down Expand Up @@ -2422,6 +2425,9 @@ class EventHubs {
* Here all the parameters (Namespace,EventHub .. etc) are mandatory
* irrespective of order
*
* @param {boolean} [parameters.captureDescription.skipEmptyArchives] A value
* that indicates whether to Skip Empty Archives
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
Expand Down Expand Up @@ -2510,6 +2516,9 @@ class EventHubs {
* Here all the parameters (Namespace,EventHub .. etc) are mandatory
* irrespective of order
*
* @param {boolean} [parameters.captureDescription.skipEmptyArchives] A value
* that indicates whether to Skip Empty Archives
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
Expand Down
6 changes: 6 additions & 0 deletions lib/services/eventHubManagement/lib/operations/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2457,6 +2457,9 @@ export interface EventHubs {
* Here all the parameters (Namespace,EventHub .. etc) are mandatory
* irrespective of order
*
* @param {boolean} [parameters.captureDescription.skipEmptyArchives] A value
* that indicates whether to Skip Empty Archives
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
Expand Down Expand Up @@ -2533,6 +2536,9 @@ export interface EventHubs {
* Here all the parameters (Namespace,EventHub .. etc) are mandatory
* irrespective of order
*
* @param {boolean} [parameters.captureDescription.skipEmptyArchives] A value
* that indicates whether to Skip Empty Archives
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
Expand Down