Skip to content

Commit 2a53041

Browse files
authored
Add missing Opt-in APIs S360 (#16362)
* add missing APIs S360 * fix json validation error * revert casing change * fix validation errors * run prettier
1 parent 01c6e5b commit 2a53041

File tree

5 files changed

+152
-1
lines changed

5 files changed

+152
-1
lines changed

custom-words.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1403,6 +1403,7 @@ operationsmanagement
14031403
operationstatuses
14041404
opid
14051405
oplog
1406+
Optedin
14061407
Optimised
14071408
Optimiser
14081409
Optimisers

specification/customerlockbox/resource-manager/Microsoft.CustomerLockbox/preview/2018-02-28-preview/customerlockbox.json

Lines changed: 122 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,102 @@
5252
}
5353
}
5454
},
55+
"/providers/Microsoft.CustomerLockbox/tenantOptedIn/{tenantId}": {
56+
"get": {
57+
"tags": [
58+
"Requests"
59+
],
60+
"description": "Get Customer Lockbox request",
61+
"operationId": "Get_TenantOptedIn",
62+
"x-ms-examples": {
63+
"check if a TenantId is Optedin": {
64+
"$ref": "./examples/TenantOptedIn.json"
65+
}
66+
},
67+
"parameters": [
68+
{
69+
"$ref": "#/parameters/TenantIdParameter"
70+
},
71+
{
72+
"$ref": "#/parameters/ApiVersionParameter"
73+
}
74+
],
75+
"responses": {
76+
"200": {
77+
"description": "Retrieval of Opt-in status for Tenant successful.",
78+
"schema": {
79+
"$ref": "#/definitions/TenantOptInResponse"
80+
}
81+
},
82+
"default": {
83+
"description": "Error response describing why the operation failed.",
84+
"schema": {
85+
"$ref": "#/definitions/ErrorResponse"
86+
}
87+
}
88+
}
89+
}
90+
},
91+
"/providers/Microsoft.CustomerLockbox/enableLockbox": {
92+
"post": {
93+
"tags": [
94+
"Requests"
95+
],
96+
"description": "Enable Tenant for Lockbox ",
97+
"operationId": "Post_EnableLockbox",
98+
"x-ms-examples": {
99+
"Enable Tenant in Lockbox": {
100+
"$ref": "./examples/EnableLockbox.json"
101+
}
102+
},
103+
"parameters": [
104+
{
105+
"$ref": "#/parameters/ApiVersionParameter"
106+
}
107+
],
108+
"responses": {
109+
"200": {
110+
"description": "Enabling Tenant for Lockbox successful"
111+
},
112+
"default": {
113+
"description": "Error response describing why the operation failed.",
114+
"schema": {
115+
"$ref": "#/definitions/ErrorResponse"
116+
}
117+
}
118+
}
119+
}
120+
},
121+
"/providers/Microsoft.CustomerLockbox/disableLockbox": {
122+
"post": {
123+
"tags": [
124+
"Requests"
125+
],
126+
"description": "Disable Tenant for Lockbox ",
127+
"operationId": "Post_DisableLockbox",
128+
"x-ms-examples": {
129+
"Disable a tenant in Lockbox": {
130+
"$ref": "./examples/DisableLockbox.json"
131+
}
132+
},
133+
"parameters": [
134+
{
135+
"$ref": "#/parameters/ApiVersionParameter"
136+
}
137+
],
138+
"responses": {
139+
"200": {
140+
"description": "Disabling Tenant for Lockbox successful"
141+
},
142+
"default": {
143+
"description": "Error response describing why the operation failed.",
144+
"schema": {
145+
"$ref": "#/definitions/ErrorResponse"
146+
}
147+
}
148+
}
149+
}
150+
},
55151
"/subscriptions/{subscriptionId}/providers/Microsoft.CustomerLockbox/requests/{requestId}": {
56152
"get": {
57153
"tags": [
@@ -91,7 +187,7 @@
91187
}
92188
}
93189
},
94-
"/subscriptions/{subscriptionId}/providers/Microsoft.CustomerLockbox/requests/{requestId}/UpdateApproval": {
190+
"/subscriptions/{subscriptionId}/providers/Microsoft.CustomerLockbox/requests/{requestId}/updateApproval": {
95191
"post": {
96192
"tags": [
97193
"Requests"
@@ -189,6 +285,7 @@
189285
"definitions": {
190286
"OperationListResult": {
191287
"description": "Result of the request to list Customer Lockbox operations. It contains a list of operations.",
288+
"type": "object",
192289
"properties": {
193290
"value": {
194291
"description": "List of Customer Lockbox operations supported by the Microsoft.StreamAnalytics resource provider.",
@@ -222,6 +319,7 @@
222319
},
223320
"display": {
224321
"description": "Contains the localized display information for this particular operation / action.",
322+
"type": "object",
225323
"readOnly": true,
226324
"properties": {
227325
"provider": {
@@ -258,8 +356,20 @@
258356
}
259357
}
260358
},
359+
"TenantOptInResponse": {
360+
"description": "TenantOptIn Response object",
361+
"type": "object",
362+
"properties": {
363+
"isOptedIn": {
364+
"type": "boolean",
365+
"description": "True if tenant is opted in, false otherwise ",
366+
"readOnly": true
367+
}
368+
}
369+
},
261370
"RequestListResult": {
262371
"description": "Object containing a list of streaming jobs.",
372+
"type": "object",
263373
"properties": {
264374
"value": {
265375
"type": "array",
@@ -416,6 +526,7 @@
416526
"ErrorResponse": {
417527
"x-ms-external": true,
418528
"description": "An error response from the Lockbox service.",
529+
"type": "object",
419530
"properties": {
420531
"error": {
421532
"$ref": "#/definitions/ErrorBody",
@@ -426,6 +537,7 @@
426537
"ErrorBody": {
427538
"x-ms-external": true,
428539
"description": "An error response body from the Lockbox service.",
540+
"type": "object",
429541
"properties": {
430542
"code": {
431543
"type": "string",
@@ -451,6 +563,7 @@
451563
"ErrorAdditionalInfo": {
452564
"x-ms-external": true,
453565
"description": "An error additional info for the Lockbox service.",
566+
"type": "object",
454567
"properties": {
455568
"type": {
456569
"type": "string",
@@ -478,6 +591,14 @@
478591
"type": "string",
479592
"x-ms-parameter-location": "method"
480593
},
594+
"TenantIdParameter": {
595+
"name": "tenantId",
596+
"in": "path",
597+
"description": "The Azure tenant ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000)",
598+
"required": true,
599+
"type": "string",
600+
"x-ms-parameter-location": "method"
601+
},
481602
"ApiVersionParameter": {
482603
"name": "api-version",
483604
"in": "query",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"parameters": {
3+
"api-version": "2018-10-11-preview"
4+
},
5+
"responses": {
6+
"200": {}
7+
}
8+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"parameters": {
3+
"api-version": "2018-10-11-preview"
4+
},
5+
"responses": {
6+
"200": {}
7+
}
8+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"parameters": {
3+
"tenantId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
4+
"api-version": "2018-10-11-preview"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"isOptedIn": true
10+
}
11+
}
12+
}
13+
}

0 commit comments

Comments
 (0)