Skip to content

Commit c9992af

Browse files
Ajit Navasarev-ajnava
andauthored
EventHub: Added missing Cluster API in 2021-06-01-preview (#15979)
* Added missing Cluster APIs to 2021-01-01-preview * added cluster API in 2021-06-01-preview * updated lint errors * update 1 * added listbysubscription * fixed ModelValidation Co-authored-by: v-ajnava <[email protected]>
1 parent ca93e24 commit c9992af

14 files changed

+1070
-1
lines changed
Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
{
2+
"swagger": "2.0",
3+
"info": {
4+
"title": "EventHubManagementClient",
5+
"description": "Azure Event Hubs client for managing Event Hubs Cluster, IPFilter Rules and VirtualNetworkRules resources.",
6+
"version": "2021-06-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}/providers/Microsoft.EventHub/availableClusterRegions": {
38+
"get": {
39+
"tags": [
40+
"Event Hubs Clusters AvailableClusterRegions"
41+
],
42+
"operationId": "Clusters_ListAvailableClusterRegion",
43+
"x-ms-examples": {
44+
"ListAvailableClusters": {
45+
"$ref": "./examples/Clusters/ListAvailableClustersGet.json"
46+
}
47+
},
48+
"description": "List the quantity of available pre-provisioned Event Hubs Clusters, indexed by Azure region.",
49+
"parameters": [
50+
{
51+
"$ref": "../../../common/v1/definitions.json#/parameters/SubscriptionIdParameter"
52+
},
53+
{
54+
"$ref": "../../../common/v1/definitions.json#/parameters/ApiVersionParameter"
55+
}
56+
],
57+
"responses": {
58+
"200": {
59+
"description": "Available clusters listed successfully.",
60+
"schema": {
61+
"$ref": "#/definitions/AvailableClustersList"
62+
}
63+
},
64+
"default": {
65+
"description": "Error response describing why available clusters could not be successfully listed.",
66+
"schema": {
67+
"$ref": "../../../common/v1/definitions.json#/definitions/ErrorResponse"
68+
}
69+
}
70+
}
71+
}
72+
}
73+
},
74+
"definitions": {
75+
"AvailableClustersList": {
76+
"type": "object",
77+
"properties": {
78+
"value": {
79+
"type": "array",
80+
"items": {
81+
"$ref": "#/definitions/AvailableCluster"
82+
},
83+
"description": "The count of readily available and pre-provisioned Event Hubs Clusters per region."
84+
}
85+
},
86+
"description": "The response of the List Available Clusters operation."
87+
},
88+
"AvailableCluster": {
89+
"type": "object",
90+
"properties": {
91+
"location": {
92+
"type": "string",
93+
"description": "Location fo the Available Cluster"
94+
}
95+
},
96+
"description": "Pre-provisioned and readily available Event Hubs Cluster count per region."
97+
}
98+
},
99+
"parameters": {}
100+
}

0 commit comments

Comments
 (0)