Skip to content

Commit 01ae995

Browse files
dsouzaarunarundsouzadamodaravadhaniAjit Maruti Navasare (MINDTREE LIMITED)v-Ajnava
authored
Event Hub Geo DR - New API version 2023-01-01-preview (#21994)
* Base Checkin * Replace API version with 2022-10-01-preview * Adding settings for Compaction * Fixed examples * Adding new api version to README.md * Getting PolicyRetention enum to be modelled as string * Adding latest api as default * Fixing LintDiff * Fixing Model Validation * updated readme files * Splitting the RetentionTimein Hours into two seperate properties. * lint fix * fixed typo * Revert "fixed typo" This reverts commit 2387ca3. * Revert "lint fix" This reverts commit 2c77503. * Revert "Splitting the RetentionTimein Hours into two seperate properties." This reverts commit caf5d9e. * Fixing examples * removed the supperssion * added headers - azure-asyncoperation * fixing the CI failures * Revert "added headers - azure-asyncoperation" This reverts commit 2d60d5c. * updated CI fixes * headers fix for cluster catch * Base Checkin * replace API versions with 2023-01-01-preview * Added Swagger representation and the examples for namespace Geo DR operations * Added namespace with Geo DR create sample * CI fixes * CI fixes * CI fixes 3 * CI fixes * pattern fix * lint diff warning fixes * Adding parameter for maximumGracePeriodInMins on Failover operations * Added descriptions and examples for Capture MSI * avocado fix * fixes * fix * prettier fix * try remove pattern * Contract changes to fix pipelines * fix * fix * fix * fix * fix * nesting failover properties * contract fixes * contract fixes * fix * Rename cleanup policy from Compaction to Compact * eventhubs updates * description added for schema registry * Prettier check correction * Prettier check correction2 * Prettier again * Updating the eventhubs example file * updates * Cluster Provisioning state updates * Cluster Provisioning state updates2 * base version * 2023-01-01-preview * Regex removed * regex added * 202 response added * typo fixed * Revert "reverting bad commit" This reverts commit ea146e1. qa! * UPdates * Update package.json * UPdates * Removing schema from fail over payload * Update EHNamespaceFailover.json * add 200 code * Update examples * Update description * NSP api additions * fixes * fixes * Changing error response type * Reverting the package.json * Reverting the package.json * Update readme.md * Update EHNamespaceFailover.json * Update readme.md * Update readme.md * Update namespaces-preview.json * Update EHNameSpaceCreate.json * Prettier fix --------- Co-authored-by: REDMOND\ardsouza <[email protected]> Co-authored-by: davadhani <[email protected]> Co-authored-by: Ajit Maruti Navasare (MINDTREE LIMITED) <[email protected]> Co-authored-by: Ajit Navasare <[email protected]> Co-authored-by: Shubham Chaudhari <[email protected]> Co-authored-by: schaudhari6254888 <[email protected]> Co-authored-by: damodaravadhani <[email protected]>
1 parent 895c9c9 commit 01ae995

File tree

83 files changed

+8686
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+8686
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,347 @@
1+
{
2+
"swagger": "2.0",
3+
"info": {
4+
"title": "EventHubManagementClient",
5+
"description": "Azure Event Hubs client",
6+
"version": "2023-01-01-preview"
7+
},
8+
"host": "management.azure.com",
9+
"schemes": [
10+
"https"
11+
],
12+
"consumes": [
13+
"application/json"
14+
],
15+
"produces": [
16+
"application/json"
17+
],
18+
"security": [
19+
{
20+
"azure_auth": [
21+
"user_impersonation"
22+
]
23+
}
24+
],
25+
"securityDefinitions": {
26+
"azure_auth": {
27+
"type": "oauth2",
28+
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
29+
"flow": "implicit",
30+
"description": "Azure Active Directory OAuth2 Flow",
31+
"scopes": {
32+
"user_impersonation": "impersonate your user account"
33+
}
34+
}
35+
},
36+
"paths": {
37+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/applicationGroups": {
38+
"get": {
39+
"tags": [
40+
"ApplicationGroup"
41+
],
42+
"operationId": "ApplicationGroup_ListByNamespace",
43+
"x-ms-examples": {
44+
"ListApplicationGroups": {
45+
"$ref": "./examples/ApplicationGroup/ApplicationGroupListByNamespace.json"
46+
}
47+
},
48+
"description": "Gets a list of application groups for a Namespace.",
49+
"parameters": [
50+
{
51+
"$ref": "../../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter"
52+
},
53+
{
54+
"$ref": "../../../common/v1/definitions.json#/parameters/NamespaceNameParameter"
55+
},
56+
{
57+
"$ref": "../../../common/v1/definitions.json#/parameters/ApiVersionParameter"
58+
},
59+
{
60+
"$ref": "../../../common/v1/definitions.json#/parameters/SubscriptionIdParameter"
61+
}
62+
],
63+
"responses": {
64+
"200": {
65+
"description": "Namespace ApplicationGroups successfully returned.",
66+
"schema": {
67+
"$ref": "#/definitions/ApplicationGroupListResult"
68+
}
69+
},
70+
"default": {
71+
"description": "Eventhub error response describing why the operation failed.",
72+
"schema": {
73+
"$ref": "../../../common/v2/definitions.json#/definitions/ErrorResponse"
74+
}
75+
}
76+
},
77+
"x-ms-pageable": {
78+
"nextLinkName": "nextLink"
79+
}
80+
}
81+
},
82+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/applicationGroups/{applicationGroupName}": {
83+
"put": {
84+
"tags": [
85+
"ApplicationGroup"
86+
],
87+
"operationId": "ApplicationGroup_CreateOrUpdateApplicationGroup",
88+
"x-ms-azure-resource": true,
89+
"x-ms-examples": {
90+
"ApplicationGroupCreate": {
91+
"$ref": "./examples/ApplicationGroup/ApplicationGroupCreate.json"
92+
}
93+
},
94+
"description": "Creates or updates an ApplicationGroup for a Namespace.",
95+
"parameters": [
96+
{
97+
"$ref": "../../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter"
98+
},
99+
{
100+
"$ref": "../../../common/v1/definitions.json#/parameters/NamespaceNameParameter"
101+
},
102+
{
103+
"$ref": "../../../common/v2/definitions.json#/parameters/ApplicationGroupNameParameter"
104+
},
105+
{
106+
"name": "parameters",
107+
"in": "body",
108+
"required": true,
109+
"schema": {
110+
"$ref": "#/definitions/ApplicationGroup"
111+
},
112+
"description": "The ApplicationGroup."
113+
},
114+
{
115+
"$ref": "../../../common/v1/definitions.json#/parameters/ApiVersionParameter"
116+
},
117+
{
118+
"$ref": "../../../common/v1/definitions.json#/parameters/SubscriptionIdParameter"
119+
}
120+
],
121+
"responses": {
122+
"200": {
123+
"description": "ApplicationGroup successfully created.",
124+
"schema": {
125+
"$ref": "#/definitions/ApplicationGroup"
126+
}
127+
},
128+
"default": {
129+
"description": "Eventhub error response describing why the operation failed.",
130+
"schema": {
131+
"$ref": "../../../common/v2/definitions.json#/definitions/ErrorResponse"
132+
}
133+
}
134+
}
135+
},
136+
"delete": {
137+
"tags": [
138+
"ApplicationGroup"
139+
],
140+
"operationId": "ApplicationGroup_Delete",
141+
"x-ms-examples": {
142+
"ApplicationGroupDelete": {
143+
"$ref": "./examples/ApplicationGroup/ApplicationGroupDelete.json"
144+
}
145+
},
146+
"description": "Deletes an ApplicationGroup for a Namespace.",
147+
"parameters": [
148+
{
149+
"$ref": "../../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter"
150+
},
151+
{
152+
"$ref": "../../../common/v1/definitions.json#/parameters/NamespaceNameParameter"
153+
},
154+
{
155+
"$ref": "../../../common/v2/definitions.json#/parameters/ApplicationGroupNameParameter"
156+
},
157+
{
158+
"$ref": "../../../common/v1/definitions.json#/parameters/ApiVersionParameter"
159+
},
160+
{
161+
"$ref": "../../../common/v1/definitions.json#/parameters/SubscriptionIdParameter"
162+
}
163+
],
164+
"responses": {
165+
"200": {
166+
"description": "ApplicationGroup successfully deleted."
167+
},
168+
"204": {
169+
"description": "No content."
170+
},
171+
"default": {
172+
"description": "Eventhub error response describing why the operation failed.",
173+
"schema": {
174+
"$ref": "../../../common/v2/definitions.json#/definitions/ErrorResponse"
175+
}
176+
}
177+
}
178+
},
179+
"get": {
180+
"tags": [
181+
"ApplicationGroup"
182+
],
183+
"operationId": "ApplicationGroup_Get",
184+
"x-ms-examples": {
185+
"ApplicationGroupGet": {
186+
"$ref": "./examples/ApplicationGroup/ApplicationGroupGet.json"
187+
}
188+
},
189+
"description": "Gets an ApplicationGroup for a Namespace.",
190+
"parameters": [
191+
{
192+
"$ref": "../../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter"
193+
},
194+
{
195+
"$ref": "../../../common/v1/definitions.json#/parameters/NamespaceNameParameter"
196+
},
197+
{
198+
"$ref": "../../../common/v2/definitions.json#/parameters/ApplicationGroupNameParameter"
199+
},
200+
{
201+
"$ref": "../../../common/v1/definitions.json#/parameters/ApiVersionParameter"
202+
},
203+
{
204+
"$ref": "../../../common/v1/definitions.json#/parameters/SubscriptionIdParameter"
205+
}
206+
],
207+
"responses": {
208+
"200": {
209+
"description": "Namespace ApplicationGroup returned successfully.",
210+
"schema": {
211+
"$ref": "#/definitions/ApplicationGroup"
212+
}
213+
},
214+
"default": {
215+
"description": "Eventhub error response describing why the operation failed.",
216+
"schema": {
217+
"$ref": "../../../common/v2/definitions.json#/definitions/ErrorResponse"
218+
}
219+
}
220+
}
221+
}
222+
}
223+
},
224+
"definitions": {
225+
"ApplicationGroupListResult": {
226+
"type": "object",
227+
"properties": {
228+
"value": {
229+
"type": "array",
230+
"items": {
231+
"$ref": "#/definitions/ApplicationGroup"
232+
},
233+
"description": "Result of the List Application Groups operation."
234+
},
235+
"nextLink": {
236+
"readOnly": true,
237+
"type": "string",
238+
"description": "Link to the next set of results. Not empty if Value contains an incomplete list of Authorization Rules"
239+
}
240+
},
241+
"description": "The response from the List Application Groups operation."
242+
},
243+
"ApplicationGroup": {
244+
"type": "object",
245+
"properties": {
246+
"properties": {
247+
"type": "object",
248+
"x-ms-client-flatten": true,
249+
"properties": {
250+
"isEnabled": {
251+
"type": "boolean",
252+
"description": "Determines if Application Group is allowed to create connection with namespace or not. Once the isEnabled is set to false, all the existing connections of application group gets dropped and no new connections will be allowed"
253+
},
254+
"clientAppGroupIdentifier": {
255+
"type": "string",
256+
"description": "The Unique identifier for application group.Supports SAS(SASKeyName=KeyName) or AAD(AADAppID=Guid)"
257+
},
258+
"policies": {
259+
"type": "array",
260+
"items": {
261+
"$ref": "#/definitions/ApplicationGroupPolicy"
262+
},
263+
"x-ms-identifiers": [],
264+
"description": "List of group policies that define the behavior of application group. The policies can support resource governance scenarios such as limiting ingress or egress traffic."
265+
}
266+
},
267+
"required": [
268+
"clientAppGroupIdentifier"
269+
]
270+
},
271+
"systemData": {
272+
"readOnly": true,
273+
"description": "The system meta data relating to this resource.",
274+
"$ref": "../../../common/v1/definitions.json#/definitions/systemData"
275+
}
276+
},
277+
"allOf": [
278+
{
279+
"$ref": "../../../common/v2/definitions.json#/definitions/ProxyResource"
280+
}
281+
],
282+
"description": "The Application Group object"
283+
},
284+
"ApplicationGroupPolicy": {
285+
"type": "object",
286+
"discriminator": "type",
287+
"description": "Properties of the Application Group policy",
288+
"properties": {
289+
"name": {
290+
"type": "string",
291+
"description": "The Name of this policy"
292+
},
293+
"type": {
294+
"type": "string",
295+
"enum": [
296+
"ThrottlingPolicy"
297+
],
298+
"x-ms-enum": {
299+
"name": "ApplicationGroupPolicyType",
300+
"modelAsString": true
301+
},
302+
"description": "Application Group Policy types"
303+
}
304+
},
305+
"required": [
306+
"name",
307+
"type"
308+
]
309+
},
310+
"ThrottlingPolicy": {
311+
"type": "object",
312+
"x-ms-discriminator-value": "ThrottlingPolicy",
313+
"description": "Properties of the throttling policy",
314+
"properties": {
315+
"rateLimitThreshold": {
316+
"format": "int64",
317+
"type": "integer",
318+
"description": "The Threshold limit above which the application group will be throttled.Rate limit is always per second."
319+
},
320+
"metricId": {
321+
"type": "string",
322+
"description": "Metric Id on which the throttle limit should be set, MetricId can be discovered by hovering over Metric in the Metrics section of Event Hub Namespace inside Azure Portal",
323+
"enum": [
324+
"IncomingBytes",
325+
"OutgoingBytes",
326+
"IncomingMessages",
327+
"OutgoingMessages"
328+
],
329+
"x-ms-enum": {
330+
"name": "MetricId",
331+
"modelAsString": true
332+
}
333+
}
334+
},
335+
"required": [
336+
"rateLimitThreshold",
337+
"metricId"
338+
],
339+
"allOf": [
340+
{
341+
"$ref": "#/definitions/ApplicationGroupPolicy"
342+
}
343+
]
344+
}
345+
},
346+
"parameters": {}
347+
}

0 commit comments

Comments
 (0)