Skip to content

Commit 4087afa

Browse files
dsouzaarunarundsouzadamodaravadhaniAjit Maruti Navasare (MINDTREE LIMITED)v-Ajnava
authored
Event Hub API version 2022-10-01-preview (#20724)
* 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 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]>
1 parent 5a4f766 commit 4087afa

File tree

89 files changed

+8316
-14
lines changed

Some content is hidden

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

89 files changed

+8316
-14
lines changed

specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/ApplicationGroup/ApplicationGroupCreate.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"parameters": {
33
"namespaceName": "contoso-ua-test-eh-system-1",
44
"resourceGroupName": "contosotest",
5-
"api-version": "2022-01-01",
5+
"api-version": "2022-10-01-preview",
66
"subscriptionId": "00000000-0000-0000-0000-000000000000",
77
"applicationGroupName": "appGroup1",
88
"parameters": {

specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/ApplicationGroup/ApplicationGroupDelete.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"parameters": {
33
"namespaceName": "contoso-ua-test-eh-system-1",
44
"resourceGroupName": "contosotest",
5-
"api-version": "2022-01-01",
5+
"api-version": "2022-10-01-preview",
66
"subscriptionId": "00000000-0000-0000-0000-000000000000",
77
"applicationGroupName": "appGroup1"
88
},

specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/ApplicationGroup/ApplicationGroupGet.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"parameters": {
33
"namespaceName": "contoso-ua-test-eh-system-1",
44
"resourceGroupName": "contosotest",
5-
"api-version": "2022-01-01",
5+
"api-version": "2022-10-01-preview",
66
"subscriptionId": "00000000-0000-0000-0000-000000000000",
77
"applicationGroupName": "appGroup1"
88
},

specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/ApplicationGroup/ApplicationGroupListByNamespace.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"parameters": {
33
"namespaceName": "contoso-ua-test-eh-system-1",
44
"resourceGroupName": "contosotest",
5-
"api-version": "2022-01-01",
5+
"api-version": "2022-10-01-preview",
66
"subscriptionId": "00000000-0000-0000-0000-000000000000"
77
},
88
"responses": {

specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-01-01-preview/examples/NameSpaces/PrivateEndPointConnectionDelete.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"resourceGroupName": "ArunMonocle",
55
"privateEndpointConnectionName": "928c44d5-b7c6-423b-b6fa-811e0c27b3e0",
66
"api-version": "2022-01-01-preview",
7-
"subscriptionId": "5f750a97-50d9-4e36-8081-c9ee4c0210d4"
7+
"subscriptionId": "00000000-0000-0000-0000-000000000000"
88
},
99
"responses": {
1010
"200": {},
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": "2022-10-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)