From e07b41bbacbf5ed866774c457c8d7425f4ffec9c Mon Sep 17 00:00:00 2001 From: Calvin Date: Mon, 29 Nov 2021 18:09:59 -0800 Subject: [PATCH] Remove unused api (#16720) * Remove unused api * Remove unused example files --- .../stable/2020-09-01/ResourceProvider.json | 40 ------------------- ...ithubAccessTokenForAppserviceCLIAsync.json | 22 ---------- .../stable/2020-10-01/ResourceProvider.json | 40 ------------------- ...ithubAccessTokenForAppserviceCLIAsync.json | 22 ---------- .../stable/2020-12-01/ResourceProvider.json | 40 ------------------- ...ithubAccessTokenForAppserviceCLIAsync.json | 22 ---------- .../stable/2021-01-01/ResourceProvider.json | 40 ------------------- ...ithubAccessTokenForAppserviceCLIAsync.json | 22 ---------- .../stable/2021-01-15/ResourceProvider.json | 40 ------------------- ...ithubAccessTokenForAppserviceCLIAsync.json | 22 ---------- .../stable/2021-02-01/ResourceProvider.json | 40 ------------------- ...ithubAccessTokenForAppserviceCLIAsync.json | 22 ---------- 12 files changed, 372 deletions(-) delete mode 100644 specification/web/resource-manager/Microsoft.Web/stable/2020-09-01/examples/GenerateGithubAccessTokenForAppserviceCLIAsync.json delete mode 100644 specification/web/resource-manager/Microsoft.Web/stable/2020-10-01/examples/GenerateGithubAccessTokenForAppserviceCLIAsync.json delete mode 100644 specification/web/resource-manager/Microsoft.Web/stable/2020-12-01/examples/GenerateGithubAccessTokenForAppserviceCLIAsync.json delete mode 100644 specification/web/resource-manager/Microsoft.Web/stable/2021-01-01/examples/GenerateGithubAccessTokenForAppserviceCLIAsync.json delete mode 100644 specification/web/resource-manager/Microsoft.Web/stable/2021-01-15/examples/GenerateGithubAccessTokenForAppserviceCLIAsync.json delete mode 100644 specification/web/resource-manager/Microsoft.Web/stable/2021-02-01/examples/GenerateGithubAccessTokenForAppserviceCLIAsync.json diff --git a/specification/web/resource-manager/Microsoft.Web/stable/2020-09-01/ResourceProvider.json b/specification/web/resource-manager/Microsoft.Web/stable/2020-09-01/ResourceProvider.json index 1230f8118fe6..1d5439559953 100644 --- a/specification/web/resource-manager/Microsoft.Web/stable/2020-09-01/ResourceProvider.json +++ b/specification/web/resource-manager/Microsoft.Web/stable/2020-09-01/ResourceProvider.json @@ -15,46 +15,6 @@ "application/json" ], "paths": { - "/providers/Microsoft.Web/generateGithubAccessTokenForAppserviceCLI": { - "post": { - "summary": "Exchange code for GitHub access token for AppService CLI", - "description": "Description for Exchange code for GitHub access token for AppService CLI", - "operationId": "GenerateGithubAccessTokenForAppserviceCLIAsync", - "parameters": [ - { - "name": "request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AppserviceGithubTokenRequest" - }, - "x-ms-client-flatten": true - }, - { - "$ref": "#/parameters/apiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AppserviceGithubToken" - } - }, - "default": { - "description": "App Service error response.", - "schema": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" - } - } - }, - "x-ms-examples": { - "Generate Github Access Token For AppService CLI": { - "$ref": "./examples/GenerateGithubAccessTokenForAppserviceCLIAsync.json" - } - } - } - }, "/providers/Microsoft.Web/publishingUsers/web": { "get": { "summary": "Gets publishing user", diff --git a/specification/web/resource-manager/Microsoft.Web/stable/2020-09-01/examples/GenerateGithubAccessTokenForAppserviceCLIAsync.json b/specification/web/resource-manager/Microsoft.Web/stable/2020-09-01/examples/GenerateGithubAccessTokenForAppserviceCLIAsync.json deleted file mode 100644 index 6c0aa6f6fb7c..000000000000 --- a/specification/web/resource-manager/Microsoft.Web/stable/2020-09-01/examples/GenerateGithubAccessTokenForAppserviceCLIAsync.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "parameters": { - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "api-version": "2020-09-01", - "request": { - "code": "somecode", - "state": "somestate" - } - }, - "responses": { - "200": { - "headers": {}, - "body": { - "accessToken": "githubaccesstoken", - "scope": "repo", - "tokenType": "bearer", - "gotToken": false, - "errorMessage": "The code passed is incorrect or expired." - } - } - } -} diff --git a/specification/web/resource-manager/Microsoft.Web/stable/2020-10-01/ResourceProvider.json b/specification/web/resource-manager/Microsoft.Web/stable/2020-10-01/ResourceProvider.json index 2e724a3a2c1e..784e34b0034c 100644 --- a/specification/web/resource-manager/Microsoft.Web/stable/2020-10-01/ResourceProvider.json +++ b/specification/web/resource-manager/Microsoft.Web/stable/2020-10-01/ResourceProvider.json @@ -15,46 +15,6 @@ "application/json" ], "paths": { - "/providers/Microsoft.Web/generateGithubAccessTokenForAppserviceCLI": { - "post": { - "summary": "Exchange code for GitHub access token for AppService CLI", - "description": "Description for Exchange code for GitHub access token for AppService CLI", - "operationId": "GenerateGithubAccessTokenForAppserviceCLIAsync", - "parameters": [ - { - "name": "request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AppserviceGithubTokenRequest" - }, - "x-ms-client-flatten": true - }, - { - "$ref": "#/parameters/apiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AppserviceGithubToken" - } - }, - "default": { - "description": "App Service error response.", - "schema": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" - } - } - }, - "x-ms-examples": { - "Generate Github Access Token For AppService CLI": { - "$ref": "./examples/GenerateGithubAccessTokenForAppserviceCLIAsync.json" - } - } - } - }, "/providers/Microsoft.Web/publishingUsers/web": { "get": { "summary": "Gets publishing user", diff --git a/specification/web/resource-manager/Microsoft.Web/stable/2020-10-01/examples/GenerateGithubAccessTokenForAppserviceCLIAsync.json b/specification/web/resource-manager/Microsoft.Web/stable/2020-10-01/examples/GenerateGithubAccessTokenForAppserviceCLIAsync.json deleted file mode 100644 index b85d733b1830..000000000000 --- a/specification/web/resource-manager/Microsoft.Web/stable/2020-10-01/examples/GenerateGithubAccessTokenForAppserviceCLIAsync.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "parameters": { - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "api-version": "2020-10-01", - "request": { - "code": "somecode", - "state": "somestate" - } - }, - "responses": { - "200": { - "headers": {}, - "body": { - "accessToken": "githubaccesstoken", - "scope": "repo", - "tokenType": "bearer", - "gotToken": false, - "errorMessage": "The code passed is incorrect or expired." - } - } - } -} diff --git a/specification/web/resource-manager/Microsoft.Web/stable/2020-12-01/ResourceProvider.json b/specification/web/resource-manager/Microsoft.Web/stable/2020-12-01/ResourceProvider.json index e766e5a2519e..8225fbfbd03e 100644 --- a/specification/web/resource-manager/Microsoft.Web/stable/2020-12-01/ResourceProvider.json +++ b/specification/web/resource-manager/Microsoft.Web/stable/2020-12-01/ResourceProvider.json @@ -15,46 +15,6 @@ "application/json" ], "paths": { - "/providers/Microsoft.Web/generateGithubAccessTokenForAppserviceCLI": { - "post": { - "summary": "Exchange code for GitHub access token for AppService CLI", - "description": "Description for Exchange code for GitHub access token for AppService CLI", - "operationId": "GenerateGithubAccessTokenForAppserviceCLIAsync", - "parameters": [ - { - "name": "request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AppserviceGithubTokenRequest" - }, - "x-ms-client-flatten": true - }, - { - "$ref": "#/parameters/apiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AppserviceGithubToken" - } - }, - "default": { - "description": "App Service error response.", - "schema": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" - } - } - }, - "x-ms-examples": { - "Generate Github Access Token For AppService CLI": { - "$ref": "./examples/GenerateGithubAccessTokenForAppserviceCLIAsync.json" - } - } - } - }, "/providers/Microsoft.Web/publishingUsers/web": { "get": { "summary": "Gets publishing user", diff --git a/specification/web/resource-manager/Microsoft.Web/stable/2020-12-01/examples/GenerateGithubAccessTokenForAppserviceCLIAsync.json b/specification/web/resource-manager/Microsoft.Web/stable/2020-12-01/examples/GenerateGithubAccessTokenForAppserviceCLIAsync.json deleted file mode 100644 index b6570eed38a5..000000000000 --- a/specification/web/resource-manager/Microsoft.Web/stable/2020-12-01/examples/GenerateGithubAccessTokenForAppserviceCLIAsync.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "parameters": { - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "api-version": "2020-12-01", - "request": { - "code": "somecode", - "state": "somestate" - } - }, - "responses": { - "200": { - "headers": {}, - "body": { - "accessToken": "githubaccesstoken", - "scope": "repo", - "tokenType": "bearer", - "gotToken": false, - "errorMessage": "The code passed is incorrect or expired." - } - } - } -} diff --git a/specification/web/resource-manager/Microsoft.Web/stable/2021-01-01/ResourceProvider.json b/specification/web/resource-manager/Microsoft.Web/stable/2021-01-01/ResourceProvider.json index 7b3f599d52f3..eb0656b6f4b2 100644 --- a/specification/web/resource-manager/Microsoft.Web/stable/2021-01-01/ResourceProvider.json +++ b/specification/web/resource-manager/Microsoft.Web/stable/2021-01-01/ResourceProvider.json @@ -15,46 +15,6 @@ "application/json" ], "paths": { - "/providers/Microsoft.Web/generateGithubAccessTokenForAppserviceCLI": { - "post": { - "summary": "Exchange code for GitHub access token for AppService CLI", - "description": "Description for Exchange code for GitHub access token for AppService CLI", - "operationId": "GenerateGithubAccessTokenForAppserviceCLIAsync", - "parameters": [ - { - "name": "request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AppserviceGithubTokenRequest" - }, - "x-ms-client-flatten": true - }, - { - "$ref": "#/parameters/apiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AppserviceGithubToken" - } - }, - "default": { - "description": "App Service error response.", - "schema": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" - } - } - }, - "x-ms-examples": { - "Generate Github Access Token For AppService CLI": { - "$ref": "./examples/GenerateGithubAccessTokenForAppserviceCLIAsync.json" - } - } - } - }, "/providers/Microsoft.Web/publishingUsers/web": { "get": { "summary": "Gets publishing user", diff --git a/specification/web/resource-manager/Microsoft.Web/stable/2021-01-01/examples/GenerateGithubAccessTokenForAppserviceCLIAsync.json b/specification/web/resource-manager/Microsoft.Web/stable/2021-01-01/examples/GenerateGithubAccessTokenForAppserviceCLIAsync.json deleted file mode 100644 index d7dc20c4fedd..000000000000 --- a/specification/web/resource-manager/Microsoft.Web/stable/2021-01-01/examples/GenerateGithubAccessTokenForAppserviceCLIAsync.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "parameters": { - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "api-version": "2021-01-01", - "request": { - "code": "somecode", - "state": "somestate" - } - }, - "responses": { - "200": { - "headers": {}, - "body": { - "accessToken": "githubaccesstoken", - "scope": "repo", - "tokenType": "bearer", - "gotToken": false, - "errorMessage": "The code passed is incorrect or expired." - } - } - } -} diff --git a/specification/web/resource-manager/Microsoft.Web/stable/2021-01-15/ResourceProvider.json b/specification/web/resource-manager/Microsoft.Web/stable/2021-01-15/ResourceProvider.json index 43dd4062862e..3d1b946a7c7b 100644 --- a/specification/web/resource-manager/Microsoft.Web/stable/2021-01-15/ResourceProvider.json +++ b/specification/web/resource-manager/Microsoft.Web/stable/2021-01-15/ResourceProvider.json @@ -15,46 +15,6 @@ "application/json" ], "paths": { - "/providers/Microsoft.Web/generateGithubAccessTokenForAppserviceCLI": { - "post": { - "summary": "Exchange code for GitHub access token for AppService CLI", - "description": "Description for Exchange code for GitHub access token for AppService CLI", - "operationId": "GenerateGithubAccessTokenForAppserviceCLIAsync", - "parameters": [ - { - "name": "request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AppserviceGithubTokenRequest" - }, - "x-ms-client-flatten": true - }, - { - "$ref": "#/parameters/apiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AppserviceGithubToken" - } - }, - "default": { - "description": "App Service error response.", - "schema": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" - } - } - }, - "x-ms-examples": { - "Generate Github Access Token For AppService CLI": { - "$ref": "./examples/GenerateGithubAccessTokenForAppserviceCLIAsync.json" - } - } - } - }, "/providers/Microsoft.Web/publishingUsers/web": { "get": { "summary": "Gets publishing user", diff --git a/specification/web/resource-manager/Microsoft.Web/stable/2021-01-15/examples/GenerateGithubAccessTokenForAppserviceCLIAsync.json b/specification/web/resource-manager/Microsoft.Web/stable/2021-01-15/examples/GenerateGithubAccessTokenForAppserviceCLIAsync.json deleted file mode 100644 index edbcb113b86d..000000000000 --- a/specification/web/resource-manager/Microsoft.Web/stable/2021-01-15/examples/GenerateGithubAccessTokenForAppserviceCLIAsync.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "parameters": { - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "api-version": "2021-01-15", - "request": { - "code": "somecode", - "state": "somestate" - } - }, - "responses": { - "200": { - "headers": {}, - "body": { - "accessToken": "githubaccesstoken", - "scope": "repo", - "tokenType": "bearer", - "gotToken": false, - "errorMessage": "The code passed is incorrect or expired." - } - } - } -} diff --git a/specification/web/resource-manager/Microsoft.Web/stable/2021-02-01/ResourceProvider.json b/specification/web/resource-manager/Microsoft.Web/stable/2021-02-01/ResourceProvider.json index 04b39f38cfd7..bef6b6b76057 100644 --- a/specification/web/resource-manager/Microsoft.Web/stable/2021-02-01/ResourceProvider.json +++ b/specification/web/resource-manager/Microsoft.Web/stable/2021-02-01/ResourceProvider.json @@ -15,46 +15,6 @@ "application/json" ], "paths": { - "/providers/Microsoft.Web/generateGithubAccessTokenForAppserviceCLI": { - "post": { - "summary": "Exchange code for GitHub access token for AppService CLI", - "description": "Description for Exchange code for GitHub access token for AppService CLI", - "operationId": "GenerateGithubAccessTokenForAppserviceCLIAsync", - "parameters": [ - { - "name": "request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AppserviceGithubTokenRequest" - }, - "x-ms-client-flatten": true - }, - { - "$ref": "#/parameters/apiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AppserviceGithubToken" - } - }, - "default": { - "description": "App Service error response.", - "schema": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" - } - } - }, - "x-ms-examples": { - "Generate Github Access Token For AppService CLI": { - "$ref": "./examples/GenerateGithubAccessTokenForAppserviceCLIAsync.json" - } - } - } - }, "/providers/Microsoft.Web/publishingUsers/web": { "get": { "summary": "Gets publishing user", diff --git a/specification/web/resource-manager/Microsoft.Web/stable/2021-02-01/examples/GenerateGithubAccessTokenForAppserviceCLIAsync.json b/specification/web/resource-manager/Microsoft.Web/stable/2021-02-01/examples/GenerateGithubAccessTokenForAppserviceCLIAsync.json deleted file mode 100644 index 14aebadad5bd..000000000000 --- a/specification/web/resource-manager/Microsoft.Web/stable/2021-02-01/examples/GenerateGithubAccessTokenForAppserviceCLIAsync.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "parameters": { - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "api-version": "2021-02-01", - "request": { - "code": "somecode", - "state": "somestate" - } - }, - "responses": { - "200": { - "headers": {}, - "body": { - "accessToken": "githubaccesstoken", - "scope": "repo", - "tokenType": "bearer", - "gotToken": false, - "errorMessage": "The code passed is incorrect or expired." - } - } - } -}