Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing Opt-in APIs S360 #16362

Merged
merged 5 commits into from
Oct 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1389,6 +1389,7 @@ operationsmanagement
operationstatuses
opid
oplog
Optedin
Optimised
Optimiser
Optimisers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,102 @@
}
}
},
"/providers/Microsoft.CustomerLockbox/tenantOptedIn/{tenantId}": {
"get": {
"tags": [
"Requests"
],
"description": "Get Customer Lockbox request",
"operationId": "Get_TenantOptedIn",
"x-ms-examples": {
"check if a TenantId is Optedin": {
"$ref": "./examples/TenantOptedIn.json"
}
},
"parameters": [
{
"$ref": "#/parameters/TenantIdParameter"
},
{
"$ref": "#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "Retrieval of Opt-in status for Tenant successful.",
"schema": {
"$ref": "#/definitions/TenantOptInResponse"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
}
}
},
"/providers/Microsoft.CustomerLockbox/enableLockbox": {
"post": {
"tags": [
"Requests"
],
"description": "Enable Tenant for Lockbox ",
"operationId": "Post_EnableLockbox",
"x-ms-examples": {
"Enable Tenant in Lockbox": {
"$ref": "./examples/EnableLockbox.json"
}
},
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "Enabling Tenant for Lockbox successful"
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
}
}
},
"/providers/Microsoft.CustomerLockbox/disableLockbox": {
"post": {
"tags": [
"Requests"
],
"description": "Disable Tenant for Lockbox ",
"operationId": "Post_DisableLockbox",
"x-ms-examples": {
"Disable a tenant in Lockbox": {
"$ref": "./examples/DisableLockbox.json"
}
},
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "Disabling Tenant for Lockbox successful"
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.CustomerLockbox/requests/{requestId}": {
"get": {
"tags": [
Expand Down Expand Up @@ -91,7 +187,7 @@
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.CustomerLockbox/requests/{requestId}/UpdateApproval": {
"/subscriptions/{subscriptionId}/providers/Microsoft.CustomerLockbox/requests/{requestId}/updateApproval": {
"post": {
"tags": [
"Requests"
Expand Down Expand Up @@ -189,6 +285,7 @@
"definitions": {
"OperationListResult": {
"description": "Result of the request to list Customer Lockbox operations. It contains a list of operations.",
"type": "object",
"properties": {
"value": {
"description": "List of Customer Lockbox operations supported by the Microsoft.StreamAnalytics resource provider.",
Expand Down Expand Up @@ -222,6 +319,7 @@
},
"display": {
"description": "Contains the localized display information for this particular operation / action.",
"type": "object",
"readOnly": true,
"properties": {
"provider": {
Expand Down Expand Up @@ -258,8 +356,20 @@
}
}
},
"TenantOptInResponse": {
"description": "TenantOptIn Response object",
"type": "object",
"properties": {
"isOptedIn": {
"type": "boolean",
"description": "True if tenant is opted in, false otherwise ",
"readOnly": true
}
}
},
"RequestListResult": {
"description": "Object containing a list of streaming jobs.",
"type": "object",
"properties": {
"value": {
"type": "array",
Expand Down Expand Up @@ -416,6 +526,7 @@
"ErrorResponse": {
"x-ms-external": true,
"description": "An error response from the Lockbox service.",
"type": "object",
"properties": {
"error": {
"$ref": "#/definitions/ErrorBody",
Expand All @@ -426,6 +537,7 @@
"ErrorBody": {
"x-ms-external": true,
"description": "An error response body from the Lockbox service.",
"type": "object",
"properties": {
"code": {
"type": "string",
Expand All @@ -451,6 +563,7 @@
"ErrorAdditionalInfo": {
"x-ms-external": true,
"description": "An error additional info for the Lockbox service.",
"type": "object",
"properties": {
"type": {
"type": "string",
Expand Down Expand Up @@ -478,6 +591,14 @@
"type": "string",
"x-ms-parameter-location": "method"
},
"TenantIdParameter": {
"name": "tenantId",
"in": "path",
"description": "The Azure tenant ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000)",
"required": true,
"type": "string",
"x-ms-parameter-location": "method"
},
"ApiVersionParameter": {
"name": "api-version",
"in": "query",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"parameters": {
"api-version": "2018-10-11-preview"
},
"responses": {
"200": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"parameters": {
"api-version": "2018-10-11-preview"
},
"responses": {
"200": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"parameters": {
"tenantId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"api-version": "2018-10-11-preview"
},
"responses": {
"200": {
"body": {
"isOptedIn": true
}
}
}
}