Skip to content

Commit 57e91f7

Browse files
manojprasad-msAjit Navasare (MINDTREE LIMITED)
authored andcommitted
TLS Picker Feature - Swagger Changes For Service Bus (Azure#17967)
* Copied latest base api-version * TLS Picker Swagger changes for SB * Changed the degault tag for Readme * updated all enums to "modelAsString": true Co-authored-by: Ajit Navasare (MINDTREE LIMITED) <[email protected]>
1 parent 424a032 commit 57e91f7

File tree

80 files changed

+8723
-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.

80 files changed

+8723
-1
lines changed

specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/AuthorizationRules.json

Lines changed: 1256 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,185 @@
1+
{
2+
"swagger": "2.0",
3+
"info": {
4+
"title": "ServiceBusManagementClient",
5+
"description": "Azure Service Bus client",
6+
"version": "2022-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}/providers/Microsoft.ServiceBus/CheckNameAvailability": {
38+
"post": {
39+
"tags": [
40+
"Namespaces"
41+
],
42+
"operationId": "Namespaces_CheckNameAvailability",
43+
"x-ms-examples": {
44+
"NameSpaceCheckNameAvailability": {
45+
"$ref": "./examples/NameSpaces/SBNameSpaceCheckNameAvailability.json"
46+
}
47+
},
48+
"description": "Check the give namespace name availability.",
49+
"parameters": [
50+
{
51+
"$ref": "../../../common/v1/definitions.json#/parameters/ApiVersionParameter"
52+
},
53+
{
54+
"$ref": "../../../common/v1/definitions.json#/parameters/SubscriptionIdParameter"
55+
},
56+
{
57+
"name": "parameters",
58+
"in": "body",
59+
"required": true,
60+
"schema": {
61+
"$ref": "#/definitions/CheckNameAvailability"
62+
},
63+
"description": "Parameters to check availability of the given namespace name"
64+
}
65+
],
66+
"responses": {
67+
"200": {
68+
"description": "check availability returned successfully.",
69+
"schema": {
70+
"$ref": "#/definitions/CheckNameAvailabilityResult"
71+
}
72+
},
73+
"default": {
74+
"description": "ServiceBus error response describing why the operation failed.",
75+
"schema": {
76+
"$ref": "../../../common/v1/definitions.json#/definitions/ErrorResponse"
77+
}
78+
}
79+
}
80+
}
81+
},
82+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/disasterRecoveryConfigs/CheckNameAvailability": {
83+
"post": {
84+
"tags": [
85+
"DisasterRecoveryConfigs"
86+
],
87+
"operationId": "DisasterRecoveryConfigs_CheckNameAvailability",
88+
"x-ms-examples": {
89+
"AliasNameAvailability": {
90+
"$ref": "./examples/disasterRecoveryConfigs/SBAliasCheckNameAvailability.json"
91+
}
92+
},
93+
"description": "Check the give namespace name availability.",
94+
"parameters": [
95+
{
96+
"$ref": "../../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter"
97+
},
98+
{
99+
"$ref": "../../../common/v1/definitions.json#/parameters/NamespaceNameParameter"
100+
},
101+
{
102+
"$ref": "../../../common/v1/definitions.json#/parameters/ApiVersionParameter"
103+
},
104+
{
105+
"$ref": "../../../common/v1/definitions.json#/parameters/SubscriptionIdParameter"
106+
},
107+
{
108+
"name": "parameters",
109+
"in": "body",
110+
"required": true,
111+
"schema": {
112+
"$ref": "#/definitions/CheckNameAvailability"
113+
},
114+
"description": "Parameters to check availability of the given namespace name"
115+
}
116+
],
117+
"responses": {
118+
"200": {
119+
"description": "check availability returned successfully.",
120+
"schema": {
121+
"$ref": "#/definitions/CheckNameAvailabilityResult"
122+
}
123+
},
124+
"default": {
125+
"description": "ServiceBus error response describing why the operation failed.",
126+
"schema": {
127+
"$ref": "../../../common/v1/definitions.json#/definitions/ErrorResponse"
128+
}
129+
}
130+
}
131+
}
132+
}
133+
},
134+
"definitions": {
135+
"CheckNameAvailability": {
136+
"type": "object",
137+
"properties": {
138+
"name": {
139+
"type": "string",
140+
"description": "The Name to check the namespace name availability and The namespace name can contain only letters, numbers, and hyphens. The namespace must start with a letter, and it must end with a letter or number."
141+
}
142+
},
143+
"required": [
144+
"name"
145+
],
146+
"description": "Description of a Check Name availability request properties."
147+
},
148+
"CheckNameAvailabilityResult": {
149+
"type": "object",
150+
"properties": {
151+
"message": {
152+
"readOnly": true,
153+
"type": "string",
154+
"description": "The detailed info regarding the reason associated with the namespace."
155+
},
156+
"nameAvailable": {
157+
"type": "boolean",
158+
"description": "Value indicating namespace is availability, true if the namespace is available; otherwise, false."
159+
},
160+
"reason": {
161+
"$ref": "#/definitions/UnavailableReason",
162+
"description": "The reason for unavailability of a namespace."
163+
}
164+
},
165+
"description": "Description of a Check Name availability request properties."
166+
},
167+
"UnavailableReason": {
168+
"type": "string",
169+
"enum": [
170+
"None",
171+
"InvalidName",
172+
"SubscriptionIsDisabled",
173+
"NameInUse",
174+
"NameInLockdown",
175+
"TooManyNamespaceInCurrentSubscription"
176+
],
177+
"x-ms-enum": {
178+
"name": "UnavailableReason",
179+
"modelAsString": true
180+
},
181+
"description": "Specifies the reason for the unavailability of the service."
182+
}
183+
},
184+
"parameters": {}
185+
}

0 commit comments

Comments
 (0)