diff --git a/sdk/reservations/arm-reservations/README.md b/sdk/reservations/arm-reservations/README.md index 0e5eb07ebc3c..4ac380d42d46 100644 --- a/sdk/reservations/arm-reservations/README.md +++ b/sdk/reservations/arm-reservations/README.md @@ -1,11 +1,11 @@ ## Azure AzureReservationAPI SDK for JavaScript -This package contains an isomorphic SDK (runs both in Node.js and in browsers) for AzureReservationAPI. +This package contains an isomorphic SDK (runs both in node.js and in browsers) for AzureReservationAPI. ### Currently supported environments - [LTS versions of Node.js](https://nodejs.org/about/releases/) -- Latest versions of Safari, Chrome, Edge, and Firefox. +- Latest versions of Safari, Chrome, Edge and Firefox. ### Prerequisites @@ -21,7 +21,6 @@ Install both packages using the below command: ```bash npm install --save @azure/arm-reservations @azure/identity ``` - > **Note**: You may have used either `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` in the past. These packages are in maintenance mode receiving critical bug fixes, but no new features. If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/), or are writing a client side browser application, we strongly encourage you to upgrade to `@azure/identity` which uses the latest versions of Azure Active Directory and MSAL APIs and provides more authentication options. @@ -37,8 +36,7 @@ If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/ In the below samples, we pass the credential and the Azure subscription id to instantiate the client. Once the client is created, explore the operations on it either in your favorite editor or in our [API reference documentation](https://docs.microsoft.com/javascript/api) to get started. - -#### nodejs - Authentication, client creation, and get quota as an example written in JavaScript. +#### nodejs - Authentication, client creation, and list reservation as an example written in JavaScript. ##### Sample code @@ -51,11 +49,8 @@ const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; // Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. const creds = new DefaultAzureCredential(); const client = new AzureReservationAPI(creds, subscriptionId); -const testSubscriptionId = "testsubscriptionId"; -const providerId = "testproviderId"; -const location = "westus"; -const resourceName = "testresourceName"; -client.quota.get(testSubscriptionId, providerId, location, resourceName).then((result) => { +const reservationOrderId = "testreservationOrderId"; +client.reservation.list(reservationOrderId).then((result) => { console.log("The result is:"); console.log(result); }).catch((err) => { @@ -64,7 +59,7 @@ client.quota.get(testSubscriptionId, providerId, location, resourceName).then((r }); ``` -#### browser - Authentication, client creation, and get quota as an example written in JavaScript. +#### browser - Authentication, client creation, and list reservation as an example written in JavaScript. In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. @@ -89,14 +84,11 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t const credential = new InteractiveBrowserCredential( { clientId: "", - tenantId: "" + tenant: "" }); const client = new Azure.ArmReservations.AzureReservationAPI(creds, subscriptionId); - const testSubscriptionId = "testsubscriptionId"; - const providerId = "testproviderId"; - const location = "westus"; - const resourceName = "testresourceName"; - client.quota.get(testSubscriptionId, providerId, location, resourceName).then((result) => { + const reservationOrderId = "testreservationOrderId"; + client.reservation.list(reservationOrderId).then((result) => { console.log("The result is:"); console.log(result); }).catch((err) => { diff --git a/sdk/reservations/arm-reservations/package.json b/sdk/reservations/arm-reservations/package.json index 1125ed354de3..0e912895b391 100644 --- a/sdk/reservations/arm-reservations/package.json +++ b/sdk/reservations/arm-reservations/package.json @@ -27,7 +27,7 @@ "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.6.0" }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/feature/v4/sdk/reservations/arm-reservations", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/reservations/arm-reservations", "repository": { "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" diff --git a/sdk/reservations/arm-reservations/src/azureReservationAPIContext.ts b/sdk/reservations/arm-reservations/src/azureReservationAPIContext.ts index ae076372daeb..79c2a8f04417 100644 --- a/sdk/reservations/arm-reservations/src/azureReservationAPIContext.ts +++ b/sdk/reservations/arm-reservations/src/azureReservationAPIContext.ts @@ -9,8 +9,8 @@ import * as Models from "./models"; import * as msRest from "@azure/ms-rest-js"; -import { TokenCredential } from "@azure/core-auth"; import * as msRestAzure from "@azure/ms-rest-azure-js"; +import { TokenCredential } from "@azure/core-auth"; const packageName = "@azure/arm-reservations"; const packageVersion = "6.1.1"; diff --git a/sdk/reservations/arm-reservations/src/models/index.ts b/sdk/reservations/arm-reservations/src/models/index.ts index 6d94f9ae195d..bacd4bc6c883 100644 --- a/sdk/reservations/arm-reservations/src/models/index.ts +++ b/sdk/reservations/arm-reservations/src/models/index.ts @@ -1605,16 +1605,16 @@ export type ReservationAvailableScopesResponse = AvailableScopeProperties & { * 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: AvailableScopeProperties; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AvailableScopeProperties; + }; }; /** @@ -1625,16 +1625,16 @@ export type ReservationSplitResponse = Array & { * 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: ReservationResponse[]; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ReservationResponse[]; + }; }; /** @@ -1645,16 +1645,16 @@ export type ReservationMergeResponse = Array & { * 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: ReservationResponse[]; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ReservationResponse[]; + }; }; /** @@ -1665,16 +1665,16 @@ export type ReservationListResponse = ReservationList & { * 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: ReservationList; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ReservationList; + }; }; /** @@ -1685,16 +1685,16 @@ export type ReservationGetResponse = ReservationResponse & { * 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: ReservationResponse; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ReservationResponse; + }; }; /** @@ -1705,16 +1705,16 @@ export type ReservationUpdateResponse = ReservationResponse & { * 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: ReservationResponse; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ReservationResponse; + }; }; /** @@ -1725,16 +1725,16 @@ export type ReservationListRevisionsResponse = ReservationList & { * 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: ReservationList; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ReservationList; + }; }; /** @@ -1745,16 +1745,16 @@ export type ReservationBeginAvailableScopesResponse = AvailableScopeProperties & * 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: AvailableScopeProperties; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AvailableScopeProperties; + }; }; /** @@ -1765,16 +1765,16 @@ export type ReservationBeginSplitResponse = Array & { * 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: ReservationResponse[]; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ReservationResponse[]; + }; }; /** @@ -1785,16 +1785,16 @@ export type ReservationBeginMergeResponse = Array & { * 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: ReservationResponse[]; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ReservationResponse[]; + }; }; /** @@ -1805,16 +1805,16 @@ export type ReservationBeginUpdateResponse = ReservationResponse & { * 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: ReservationResponse; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ReservationResponse; + }; }; /** @@ -1825,16 +1825,16 @@ export type ReservationListNextResponse = ReservationList & { * 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: ReservationList; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ReservationList; + }; }; /** @@ -1845,16 +1845,16 @@ export type ReservationListRevisionsNextResponse = ReservationList & { * 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: ReservationList; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ReservationList; + }; }; /** @@ -1865,16 +1865,16 @@ export type GetCatalogResponse = Array & { * 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: Catalog[]; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Catalog[]; + }; }; /** @@ -1885,16 +1885,16 @@ export type GetAppliedReservationListResponse = AppliedReservations & { * 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: AppliedReservations; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AppliedReservations; + }; }; /** @@ -1905,16 +1905,16 @@ export type ReservationOrderCalculateResponse = CalculatePriceResponse & { * 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: CalculatePriceResponse; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: CalculatePriceResponse; + }; }; /** @@ -1925,16 +1925,16 @@ export type ReservationOrderListResponse = ReservationOrderList & { * 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: ReservationOrderList; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ReservationOrderList; + }; }; /** @@ -1945,16 +1945,16 @@ export type ReservationOrderPurchaseResponse = ReservationOrderResponse & { * 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: ReservationOrderResponse; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ReservationOrderResponse; + }; }; /** @@ -1965,16 +1965,16 @@ export type ReservationOrderGetResponse = ReservationOrderResponse & { * 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: ReservationOrderResponse; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ReservationOrderResponse; + }; }; /** @@ -1985,16 +1985,16 @@ export type ReservationOrderBeginPurchaseResponse = ReservationOrderResponse & { * 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: ReservationOrderResponse; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ReservationOrderResponse; + }; }; /** @@ -2005,16 +2005,16 @@ export type ReservationOrderListNextResponse = ReservationOrderList & { * 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: ReservationOrderList; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ReservationOrderList; + }; }; /** @@ -2025,16 +2025,16 @@ export type OperationListResponse = OperationList & { * 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: OperationList; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationList; + }; }; /** @@ -2045,16 +2045,16 @@ export type OperationListNextResponse = OperationList & { * 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: OperationList; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationList; + }; }; /** @@ -2065,21 +2065,21 @@ export type CalculateExchangePostResponse = CalculateExchangeOperationResultResp * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: CalculateExchangePostHeaders; - - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: CalculateExchangeOperationResultResponse; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: CalculateExchangePostHeaders; + + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: CalculateExchangeOperationResultResponse; + }; }; /** @@ -2090,21 +2090,21 @@ export type ExchangePostResponse = ExchangeOperationResultResponse & ExchangePos * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: ExchangePostHeaders; - - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ExchangeOperationResultResponse; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ExchangePostHeaders; + + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ExchangeOperationResultResponse; + }; }; /** @@ -2115,21 +2115,21 @@ export type QuotaGetResponse = CurrentQuotaLimitBase & QuotaGetHeaders & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: QuotaGetHeaders; - - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: CurrentQuotaLimitBase; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: QuotaGetHeaders; + + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: CurrentQuotaLimitBase; + }; }; /** @@ -2145,16 +2145,16 @@ export type QuotaCreateOrUpdateResponse = { * 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; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: any; + }; }; /** @@ -2170,16 +2170,16 @@ export type QuotaUpdateResponse = { * 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; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: any; + }; }; /** @@ -2190,21 +2190,21 @@ export type QuotaListResponse = QuotaLimits & QuotaListHeaders & { * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: QuotaListHeaders; - - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: QuotaLimits; - }; + /** + * The parsed HTTP response headers. + */ + parsedHeaders: QuotaListHeaders; + + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: QuotaLimits; + }; }; /** @@ -2220,16 +2220,16 @@ export type QuotaBeginCreateOrUpdateResponse = { * 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; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: any; + }; }; /** @@ -2245,16 +2245,16 @@ export type QuotaBeginUpdateResponse = { * 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; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: any; + }; }; /** @@ -2265,16 +2265,16 @@ export type QuotaRequestStatusGetResponse = QuotaRequestDetails & { * 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: QuotaRequestDetails; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: QuotaRequestDetails; + }; }; /** @@ -2285,16 +2285,16 @@ export type QuotaRequestStatusListResponse = QuotaRequestDetailsList & { * 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: QuotaRequestDetailsList; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: QuotaRequestDetailsList; + }; }; /** @@ -2305,14 +2305,14 @@ export type QuotaRequestStatusListNextResponse = QuotaRequestDetailsList & { * 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: QuotaRequestDetailsList; - }; + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: QuotaRequestDetailsList; + }; }; diff --git a/sdk/reservations/arm-reservations/src/operations/quota.ts b/sdk/reservations/arm-reservations/src/operations/quota.ts index 9dd20c907d92..53d4a30471b8 100644 --- a/sdk/reservations/arm-reservations/src/operations/quota.ts +++ b/sdk/reservations/arm-reservations/src/operations/quota.ts @@ -91,7 +91,7 @@ export class Quota { * @returns Promise */ createOrUpdate(subscriptionId: string, providerId: string, location: string, resourceName: string, createQuotaRequest: Models.CurrentQuotaLimitBase, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreateOrUpdate(subscriptionId, providerId, location, resourceName, createQuotaRequest, options) + return this.beginCreateOrUpdate(subscriptionId,providerId,location,resourceName,createQuotaRequest,options) .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } @@ -115,7 +115,7 @@ export class Quota { * @returns Promise */ update(subscriptionId: string, providerId: string, location: string, resourceName: string, createQuotaRequest: Models.CurrentQuotaLimitBase, options?: msRest.RequestOptionsBase): Promise { - return this.beginUpdate(subscriptionId, providerId, location, resourceName, createQuotaRequest, options) + return this.beginUpdate(subscriptionId,providerId,location,resourceName,createQuotaRequest,options) .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } diff --git a/sdk/reservations/arm-reservations/src/operations/reservation.ts b/sdk/reservations/arm-reservations/src/operations/reservation.ts index 6dde501a1860..9fdda2d79ed7 100644 --- a/sdk/reservations/arm-reservations/src/operations/reservation.ts +++ b/sdk/reservations/arm-reservations/src/operations/reservation.ts @@ -36,7 +36,7 @@ export class Reservation { * @returns Promise */ availableScopes(reservationOrderId: string, reservationId: string, body: Models.AvailableScopeRequest, options?: msRest.RequestOptionsBase): Promise { - return this.beginAvailableScopes(reservationOrderId, reservationId, body, options) + return this.beginAvailableScopes(reservationOrderId,reservationId,body,options) .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } @@ -49,7 +49,7 @@ export class Reservation { * @returns Promise */ split(reservationOrderId: string, body: Models.SplitRequest, options?: msRest.RequestOptionsBase): Promise { - return this.beginSplit(reservationOrderId, body, options) + return this.beginSplit(reservationOrderId,body,options) .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } @@ -63,7 +63,7 @@ export class Reservation { * @returns Promise */ merge(reservationOrderId: string, body: Models.MergeRequest, options?: msRest.RequestOptionsBase): Promise { - return this.beginMerge(reservationOrderId, body, options) + return this.beginMerge(reservationOrderId,body,options) .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } @@ -139,7 +139,7 @@ export class Reservation { * @returns Promise */ update(reservationOrderId: string, reservationId: string, parameters: Models.Patch, options?: msRest.RequestOptionsBase): Promise { - return this.beginUpdate(reservationOrderId, reservationId, parameters, options) + return this.beginUpdate(reservationOrderId,reservationId,parameters,options) .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } diff --git a/sdk/reservations/arm-reservations/src/operations/reservationOrder.ts b/sdk/reservations/arm-reservations/src/operations/reservationOrder.ts index 78d274728c65..f25fb3e548fc 100644 --- a/sdk/reservations/arm-reservations/src/operations/reservationOrder.ts +++ b/sdk/reservations/arm-reservations/src/operations/reservationOrder.ts @@ -89,7 +89,7 @@ export class ReservationOrder { * @returns Promise */ purchase(reservationOrderId: string, body: Models.PurchaseRequest, options?: msRest.RequestOptionsBase): Promise { - return this.beginPurchase(reservationOrderId, body, options) + return this.beginPurchase(reservationOrderId,body,options) .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; }