diff --git a/sdk/storagecache/arm-storagecache/LICENSE.txt b/sdk/storagecache/arm-storagecache/LICENSE.txt index b73b4a1293c3..ea8fb1516028 100644 --- a/sdk/storagecache/arm-storagecache/LICENSE.txt +++ b/sdk/storagecache/arm-storagecache/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2019 Microsoft +Copyright (c) 2020 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/storagecache/arm-storagecache/src/models/index.ts b/sdk/storagecache/arm-storagecache/src/models/index.ts index bbf65c8327db..0c94a5902c2b 100644 --- a/sdk/storagecache/arm-storagecache/src/models/index.ts +++ b/sdk/storagecache/arm-storagecache/src/models/index.ts @@ -727,31 +727,6 @@ export type CachesListByResourceGroupResponse = CachesListResult & { }; }; -/** - * Contains response data for the deleteMethod operation. - */ -export type CachesDeleteMethodResponse = { - /** - * The parsed response body. - */ - body: any; - - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: any; - }; -}; - /** * Contains response data for the get operation. */ @@ -812,131 +787,6 @@ export type CachesUpdateResponse = Cache & { }; }; -/** - * Contains response data for the flush operation. - */ -export type CachesFlushResponse = { - /** - * The parsed response body. - */ - body: any; - - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: any; - }; -}; - -/** - * Contains response data for the start operation. - */ -export type CachesStartResponse = { - /** - * The parsed response body. - */ - body: any; - - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: any; - }; -}; - -/** - * Contains response data for the stop operation. - */ -export type CachesStopResponse = { - /** - * The parsed response body. - */ - body: any; - - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: any; - }; -}; - -/** - * Contains response data for the upgradeFirmware operation. - */ -export type CachesUpgradeFirmwareResponse = { - /** - * The parsed response body. - */ - body: any; - - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: any; - }; -}; - -/** - * Contains response data for the beginDeleteMethod operation. - */ -export type CachesBeginDeleteMethodResponse = { - /** - * The parsed response body. - */ - body: any; - - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: any; - }; -}; - /** * Contains response data for the beginCreateOrUpdate operation. */ @@ -957,106 +807,6 @@ export type CachesBeginCreateOrUpdateResponse = Cache & { }; }; -/** - * Contains response data for the beginFlush operation. - */ -export type CachesBeginFlushResponse = { - /** - * The parsed response body. - */ - body: any; - - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: any; - }; -}; - -/** - * Contains response data for the beginStart operation. - */ -export type CachesBeginStartResponse = { - /** - * The parsed response body. - */ - body: any; - - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: any; - }; -}; - -/** - * Contains response data for the beginStop operation. - */ -export type CachesBeginStopResponse = { - /** - * The parsed response body. - */ - body: any; - - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: any; - }; -}; - -/** - * Contains response data for the beginUpgradeFirmware operation. - */ -export type CachesBeginUpgradeFirmwareResponse = { - /** - * The parsed response body. - */ - body: any; - - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: any; - }; -}; - /** * Contains response data for the listNext operation. */ @@ -1117,31 +867,6 @@ export type StorageTargetsListByCacheResponse = StorageTargetsResult & { }; }; -/** - * Contains response data for the deleteMethod operation. - */ -export type StorageTargetsDeleteMethodResponse = { - /** - * The parsed response body. - */ - body: any; - - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: any; - }; -}; - /** * Contains response data for the get operation. */ @@ -1182,31 +907,6 @@ export type StorageTargetsCreateOrUpdateResponse = StorageTarget & { }; }; -/** - * Contains response data for the beginDeleteMethod operation. - */ -export type StorageTargetsBeginDeleteMethodResponse = { - /** - * The parsed response body. - */ - body: any; - - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: any; - }; -}; - /** * Contains response data for the beginCreateOrUpdate operation. */ diff --git a/sdk/storagecache/arm-storagecache/src/operations/caches.ts b/sdk/storagecache/arm-storagecache/src/operations/caches.ts index 5e7f325983e6..3b96be15f7eb 100644 --- a/sdk/storagecache/arm-storagecache/src/operations/caches.ts +++ b/sdk/storagecache/arm-storagecache/src/operations/caches.ts @@ -84,11 +84,11 @@ export class Caches { * @param resourceGroupName Target resource group. * @param cacheName Name of Cache. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - deleteMethod(resourceGroupName: string, cacheName: string, options?: msRest.RequestOptionsBase): Promise { + deleteMethod(resourceGroupName: string, cacheName: string, options?: msRest.RequestOptionsBase): Promise { return this.beginDeleteMethod(resourceGroupName,cacheName,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -173,11 +173,11 @@ export class Caches { * @param resourceGroupName Target resource group. * @param cacheName Name of Cache. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - flush(resourceGroupName: string, cacheName: string, options?: msRest.RequestOptionsBase): Promise { + flush(resourceGroupName: string, cacheName: string, options?: msRest.RequestOptionsBase): Promise { return this.beginFlush(resourceGroupName,cacheName,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -185,11 +185,11 @@ export class Caches { * @param resourceGroupName Target resource group. * @param cacheName Name of Cache. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - start(resourceGroupName: string, cacheName: string, options?: msRest.RequestOptionsBase): Promise { + start(resourceGroupName: string, cacheName: string, options?: msRest.RequestOptionsBase): Promise { return this.beginStart(resourceGroupName,cacheName,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -197,11 +197,11 @@ export class Caches { * @param resourceGroupName Target resource group. * @param cacheName Name of Cache. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - stop(resourceGroupName: string, cacheName: string, options?: msRest.RequestOptionsBase): Promise { + stop(resourceGroupName: string, cacheName: string, options?: msRest.RequestOptionsBase): Promise { return this.beginStop(resourceGroupName,cacheName,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -210,11 +210,11 @@ export class Caches { * @param resourceGroupName Target resource group. * @param cacheName Name of Cache. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - upgradeFirmware(resourceGroupName: string, cacheName: string, options?: msRest.RequestOptionsBase): Promise { + upgradeFirmware(resourceGroupName: string, cacheName: string, options?: msRest.RequestOptionsBase): Promise { return this.beginUpgradeFirmware(resourceGroupName,cacheName,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -505,30 +505,9 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.acceptLanguage ], responses: { - 200: { - bodyMapper: { - serializedName: "parsedResponse", - type: { - name: "Object" - } - } - }, - 202: { - bodyMapper: { - serializedName: "parsedResponse", - type: { - name: "Object" - } - } - }, - 204: { - bodyMapper: { - serializedName: "parsedResponse", - type: { - name: "Object" - } - } - }, + 200: {}, + 202: {}, + 204: {}, default: { bodyMapper: Mappers.CloudError } @@ -586,30 +565,9 @@ const beginFlushOperationSpec: msRest.OperationSpec = { Parameters.acceptLanguage ], responses: { - 200: { - bodyMapper: { - serializedName: "parsedResponse", - type: { - name: "Object" - } - } - }, - 202: { - bodyMapper: { - serializedName: "parsedResponse", - type: { - name: "Object" - } - } - }, - 204: { - bodyMapper: { - serializedName: "parsedResponse", - type: { - name: "Object" - } - } - }, + 200: {}, + 202: {}, + 204: {}, default: { bodyMapper: Mappers.CloudError } @@ -632,30 +590,9 @@ const beginStartOperationSpec: msRest.OperationSpec = { Parameters.acceptLanguage ], responses: { - 200: { - bodyMapper: { - serializedName: "parsedResponse", - type: { - name: "Object" - } - } - }, - 202: { - bodyMapper: { - serializedName: "parsedResponse", - type: { - name: "Object" - } - } - }, - 204: { - bodyMapper: { - serializedName: "parsedResponse", - type: { - name: "Object" - } - } - }, + 200: {}, + 202: {}, + 204: {}, default: { bodyMapper: Mappers.CloudError } @@ -678,30 +615,9 @@ const beginStopOperationSpec: msRest.OperationSpec = { Parameters.acceptLanguage ], responses: { - 200: { - bodyMapper: { - serializedName: "parsedResponse", - type: { - name: "Object" - } - } - }, - 202: { - bodyMapper: { - serializedName: "parsedResponse", - type: { - name: "Object" - } - } - }, - 204: { - bodyMapper: { - serializedName: "parsedResponse", - type: { - name: "Object" - } - } - }, + 200: {}, + 202: {}, + 204: {}, default: { bodyMapper: Mappers.CloudError } @@ -724,30 +640,9 @@ const beginUpgradeFirmwareOperationSpec: msRest.OperationSpec = { Parameters.acceptLanguage ], responses: { - 201: { - bodyMapper: { - serializedName: "parsedResponse", - type: { - name: "Object" - } - } - }, - 202: { - bodyMapper: { - serializedName: "parsedResponse", - type: { - name: "Object" - } - } - }, - 204: { - bodyMapper: { - serializedName: "parsedResponse", - type: { - name: "Object" - } - } - }, + 201: {}, + 202: {}, + 204: {}, default: { bodyMapper: Mappers.CloudError } diff --git a/sdk/storagecache/arm-storagecache/src/operations/storageTargets.ts b/sdk/storagecache/arm-storagecache/src/operations/storageTargets.ts index 1ddfa9e9befd..b7d7e4b6c420 100644 --- a/sdk/storagecache/arm-storagecache/src/operations/storageTargets.ts +++ b/sdk/storagecache/arm-storagecache/src/operations/storageTargets.ts @@ -68,11 +68,11 @@ export class StorageTargets { * @param cacheName Name of Cache. * @param storageTargetName Name of Storage Target. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - deleteMethod(resourceGroupName: string, cacheName: string, storageTargetName: string, options?: msRest.RequestOptionsBase): Promise { + deleteMethod(resourceGroupName: string, cacheName: string, storageTargetName: string, options?: msRest.RequestOptionsBase): Promise { return this.beginDeleteMethod(resourceGroupName,cacheName,storageTargetName,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -269,30 +269,9 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.acceptLanguage ], responses: { - 200: { - bodyMapper: { - serializedName: "parsedResponse", - type: { - name: "Object" - } - } - }, - 202: { - bodyMapper: { - serializedName: "parsedResponse", - type: { - name: "Object" - } - } - }, - 204: { - bodyMapper: { - serializedName: "parsedResponse", - type: { - name: "Object" - } - } - }, + 200: {}, + 202: {}, + 204: {}, default: { bodyMapper: Mappers.CloudError }