diff --git a/packages/@azure/arm-recoveryservices/LICENSE.txt b/packages/@azure/arm-recoveryservices/LICENSE.txt
index a70e8cf66038..8f3d856145c5 100644
--- a/packages/@azure/arm-recoveryservices/LICENSE.txt
+++ b/packages/@azure/arm-recoveryservices/LICENSE.txt
@@ -1,21 +1,21 @@
-The MIT License (MIT)
-
-Copyright (c) 2018 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
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
+The MIT License (MIT)
+
+Copyright (c) 2019 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
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/packages/@azure/arm-recoveryservices/README.md b/packages/@azure/arm-recoveryservices/README.md
index 76e1b9172e45..80b5b47aa7ec 100644
--- a/packages/@azure/arm-recoveryservices/README.md
+++ b/packages/@azure/arm-recoveryservices/README.md
@@ -1,103 +1,100 @@
-## Azure RecoveryServicesClient SDK for JavaScript
-
-This package contains an isomorphic SDK for RecoveryServicesClient.
-
-### Currently supported environments
-
-- Node.js version 6.x.x or higher
-- Browser JavaScript
-
-### How to Install
-
-```
-npm install @azure/arm-recoveryservices
-```
-
-### How to use
-
-#### nodejs - Authentication, client creation and list replicationUsages as an example written in TypeScript.
-
-##### Install @azure/ms-rest-nodeauth
-
-```
-npm install @azure/ms-rest-nodeauth
-```
-
-##### Sample code
-
-```ts
-import * as msRest from "@azure/ms-rest-js";
-import * as msRestAzure from "@azure/ms-rest-azure-js";
-import * as msRestNodeAuth from "@azure/ms-rest-nodeauth";
-import { RecoveryServicesClient, RecoveryServicesModels, RecoveryServicesMappers } from "@azure/arm-recoveryservices";
-const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
-
-msRestNodeAuth.interactiveLogin().then((creds) => {
- const client = new RecoveryServicesClient(creds, subscriptionId);
- const resourceGroupName = "testresourceGroupName";
- const vaultName = "testvaultName";
- client.replicationUsages.list(resourceGroupName, vaultName).then((result) => {
- console.log("The result is:");
- console.log(result);
- });
-}).catch((err) => {
- console.error(err);
-});
-```
-
-#### browser - Authentication, client creation and list replicationUsages as an example written in JavaScript.
-
-##### Install @azure/ms-rest-browserauth
-
-```
-npm install @azure/ms-rest-browserauth
-```
-
-##### Sample code
-
-See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser.
-
-- index.html
-```html
-
-
-
- @azure/arm-recoveryservices sample
-
-
-
-
-
-
-
-
-```
-
-## Related projects
-
-- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
-
-
-![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fpackages%2F%40azure%2Farm-recoveryservices%2FREADME.png)
+## Azure RecoveryServicesClient SDK for JavaScript
+
+This package contains an isomorphic SDK for RecoveryServicesClient.
+
+### Currently supported environments
+
+- Node.js version 6.x.x or higher
+- Browser JavaScript
+
+### How to Install
+
+```bash
+npm install @azure/arm-recoveryservices
+```
+
+### How to use
+
+#### nodejs - Authentication, client creation and list replicationUsages as an example written in TypeScript.
+
+##### Install @azure/ms-rest-nodeauth
+
+```bash
+npm install @azure/ms-rest-nodeauth
+```
+
+##### Sample code
+
+```typescript
+import * as msRest from "@azure/ms-rest-js";
+import * as msRestAzure from "@azure/ms-rest-azure-js";
+import * as msRestNodeAuth from "@azure/ms-rest-nodeauth";
+import { RecoveryServicesClient, RecoveryServicesModels, RecoveryServicesMappers } from "@azure/arm-recoveryservices";
+const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
+
+msRestNodeAuth.interactiveLogin().then((creds) => {
+ const client = new RecoveryServicesClient(creds, subscriptionId);
+ const resourceGroupName = "testresourceGroupName";
+ const vaultName = "testvaultName";
+ client.replicationUsages.list(resourceGroupName, vaultName).then((result) => {
+ console.log("The result is:");
+ console.log(result);
+ });
+}).catch((err) => {
+ console.error(err);
+});
+```
+
+#### browser - Authentication, client creation and list replicationUsages as an example written in JavaScript.
+
+##### Install @azure/ms-rest-browserauth
+
+```bash
+npm install @azure/ms-rest-browserauth
+```
+
+##### Sample code
+
+See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser.
+
+- index.html
+```html
+
+
+
+ @azure/arm-recoveryservices sample
+
+
+
+
+
+
+
+
+```
+
+## Related projects
+
+- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
diff --git a/packages/@azure/arm-recoveryservices/lib/models/index.ts b/packages/@azure/arm-recoveryservices/lib/models/index.ts
index 1ed26b202ce2..07b10499fce1 100644
--- a/packages/@azure/arm-recoveryservices/lib/models/index.ts
+++ b/packages/@azure/arm-recoveryservices/lib/models/index.ts
@@ -69,7 +69,7 @@ export interface ResourceCertificateDetails {
*/
certificate?: Uint8Array;
/**
- * @member {string} [friendlyName] Certificate friendlyname.
+ * @member {string} [friendlyName] Certificate friendly name.
*/
friendlyName?: string;
/**
@@ -115,7 +115,7 @@ export interface ResourceCertificateAndAadDetails {
*/
certificate?: Uint8Array;
/**
- * @member {string} [friendlyName] Certificate friendlyname.
+ * @member {string} [friendlyName] Certificate friendly name.
*/
friendlyName?: string;
/**
@@ -182,7 +182,7 @@ export interface ResourceCertificateAndAcsDetails {
*/
certificate?: Uint8Array;
/**
- * @member {string} [friendlyName] Certificate friendlyname.
+ * @member {string} [friendlyName] Certificate friendly name.
*/
friendlyName?: string;
/**
@@ -356,6 +356,98 @@ export interface ReplicationUsage {
recoveryServicesProviderAuthType?: number;
}
+/**
+ * @interface
+ * An interface representing CheckNameAvailabilityParameters.
+ * Resource Name availability input parameters - Resource type and resource
+ * name
+ *
+ */
+export interface CheckNameAvailabilityParameters {
+ /**
+ * @member {string} [type] Describes the Resource type:
+ * Microsoft.RecoveryServices/Vaults
+ */
+ type?: string;
+ /**
+ * @member {string} [name] Resource name for which availability needs to be
+ * checked
+ */
+ name?: string;
+}
+
+/**
+ * @interface
+ * An interface representing CheckNameAvailabilityResult.
+ * Response for check name availability API. Resource provider will set
+ * availability as true | false.
+ *
+ */
+export interface CheckNameAvailabilityResult {
+ /**
+ * @member {boolean} [nameAvailable]
+ */
+ nameAvailable?: boolean;
+ /**
+ * @member {string} [reason]
+ */
+ reason?: string;
+ /**
+ * @member {string} [message]
+ */
+ message?: string;
+}
+
+/**
+ * @interface
+ * An interface representing Resource.
+ * ARM Resource.
+ *
+ * @extends BaseResource
+ */
+export interface Resource extends BaseResource {
+ /**
+ * @member {string} [id] Resource Id represents the complete path to the
+ * resource.
+ * **NOTE: This property will not be serialized. It can only be populated by
+ * the server.**
+ */
+ readonly id?: string;
+ /**
+ * @member {string} [name] Resource name associated with the resource.
+ * **NOTE: This property will not be serialized. It can only be populated by
+ * the server.**
+ */
+ readonly name?: string;
+ /**
+ * @member {string} [type] Resource type represents the complete path of the
+ * form Namespace/ResourceType/ResourceType/...
+ * **NOTE: This property will not be serialized. It can only be populated by
+ * the server.**
+ */
+ readonly type?: string;
+ /**
+ * @member {string} [eTag] Optional ETag.
+ */
+ eTag?: string;
+}
+
+/**
+ * @interface
+ * An interface representing CheckNameAvailabilityResultResource.
+ * Response for check name availability API. Resource provider will set
+ * availability as true | false.
+ *
+ * @extends Resource
+ */
+export interface CheckNameAvailabilityResultResource extends Resource {
+ /**
+ * @member {CheckNameAvailabilityResult} [properties]
+ * CheckNameAvailabilityResultResource properties
+ */
+ properties?: CheckNameAvailabilityResult;
+}
+
/**
* @interface
* An interface representing ClientDiscoveryDisplay.
@@ -461,40 +553,6 @@ export interface ClientDiscoveryValueForSingleApi {
properties?: ClientDiscoveryForProperties;
}
-/**
- * @interface
- * An interface representing Resource.
- * ARM Resource.
- *
- * @extends BaseResource
- */
-export interface Resource extends BaseResource {
- /**
- * @member {string} [id] Resource Id represents the complete path to the
- * resource.
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
- */
- readonly id?: string;
- /**
- * @member {string} [name] Resource name associated with the resource.
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
- */
- readonly name?: string;
- /**
- * @member {string} [type] Resource type represents the complete path of the
- * form Namespace/ResourceType/ResourceType/...
- * **NOTE: This property will not be serialized. It can only be populated by
- * the server.**
- */
- readonly type?: string;
- /**
- * @member {string} [eTag] Optional ETag.
- */
- eTag?: string;
-}
-
/**
* @interface
* An interface representing Sku.
@@ -595,7 +653,7 @@ export interface UpgradeDetails {
*/
readonly message?: string;
/**
- * @member {TriggerType} [triggerType] The way the vault upgradation was
+ * @member {TriggerType} [triggerType] The way the vault upgrade was
* triggered. Possible values include: 'UserTriggered', 'ForcedUpgrade'
* **NOTE: This property will not be serialized. It can only be populated by
* the server.**
@@ -889,6 +947,25 @@ export type ReplicationUsagesListResponse = ReplicationUsageList & {
};
};
+/**
+ * Contains response data for the checkNameAvailability operation.
+ */
+export type RecoveryServicesCheckNameAvailabilityResponse = CheckNameAvailabilityResultResource & {
+ /**
+ * 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: CheckNameAvailabilityResultResource;
+ };
+};
+
/**
* Contains response data for the listBySubscriptionId operation.
*/
diff --git a/packages/@azure/arm-recoveryservices/lib/models/mappers.ts b/packages/@azure/arm-recoveryservices/lib/models/mappers.ts
index bc573004b464..33acf1ce3103 100644
--- a/packages/@azure/arm-recoveryservices/lib/models/mappers.ts
+++ b/packages/@azure/arm-recoveryservices/lib/models/mappers.ts
@@ -365,6 +365,111 @@ export const ReplicationUsage: msRest.CompositeMapper = {
}
};
+export const CheckNameAvailabilityParameters: msRest.CompositeMapper = {
+ serializedName: "CheckNameAvailabilityParameters",
+ type: {
+ name: "Composite",
+ className: "CheckNameAvailabilityParameters",
+ modelProperties: {
+ type: {
+ serializedName: "type",
+ type: {
+ name: "String"
+ }
+ },
+ name: {
+ serializedName: "name",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const CheckNameAvailabilityResult: msRest.CompositeMapper = {
+ serializedName: "CheckNameAvailabilityResult",
+ type: {
+ name: "Composite",
+ className: "CheckNameAvailabilityResult",
+ modelProperties: {
+ nameAvailable: {
+ serializedName: "nameAvailable",
+ type: {
+ name: "Boolean"
+ }
+ },
+ reason: {
+ serializedName: "reason",
+ type: {
+ name: "String"
+ }
+ },
+ message: {
+ serializedName: "message",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const Resource: msRest.CompositeMapper = {
+ serializedName: "Resource",
+ type: {
+ name: "Composite",
+ className: "Resource",
+ modelProperties: {
+ id: {
+ readOnly: true,
+ serializedName: "id",
+ type: {
+ name: "String"
+ }
+ },
+ name: {
+ readOnly: true,
+ serializedName: "name",
+ type: {
+ name: "String"
+ }
+ },
+ type: {
+ readOnly: true,
+ serializedName: "type",
+ type: {
+ name: "String"
+ }
+ },
+ eTag: {
+ serializedName: "eTag",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const CheckNameAvailabilityResultResource: msRest.CompositeMapper = {
+ serializedName: "CheckNameAvailabilityResultResource",
+ type: {
+ name: "Composite",
+ className: "CheckNameAvailabilityResultResource",
+ modelProperties: {
+ ...Resource.type.modelProperties,
+ properties: {
+ serializedName: "properties",
+ type: {
+ name: "Composite",
+ className: "CheckNameAvailabilityResult"
+ }
+ }
+ }
+ }
+};
+
export const ClientDiscoveryDisplay: msRest.CompositeMapper = {
serializedName: "ClientDiscoveryDisplay",
type: {
@@ -502,43 +607,6 @@ export const ClientDiscoveryValueForSingleApi: msRest.CompositeMapper = {
}
};
-export const Resource: msRest.CompositeMapper = {
- serializedName: "Resource",
- type: {
- name: "Composite",
- className: "Resource",
- modelProperties: {
- id: {
- readOnly: true,
- serializedName: "id",
- type: {
- name: "String"
- }
- },
- name: {
- readOnly: true,
- serializedName: "name",
- type: {
- name: "String"
- }
- },
- type: {
- readOnly: true,
- serializedName: "type",
- type: {
- name: "String"
- }
- },
- eTag: {
- serializedName: "eTag",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
export const Sku: msRest.CompositeMapper = {
serializedName: "Sku",
type: {
diff --git a/packages/@azure/arm-recoveryservices/lib/models/parameters.ts b/packages/@azure/arm-recoveryservices/lib/models/parameters.ts
index 33aa1d93df9a..2918e5899f4d 100644
--- a/packages/@azure/arm-recoveryservices/lib/models/parameters.ts
+++ b/packages/@azure/arm-recoveryservices/lib/models/parameters.ts
@@ -50,6 +50,16 @@ export const identityName: msRest.OperationURLParameter = {
}
}
};
+export const location: msRest.OperationURLParameter = {
+ parameterPath: "location",
+ mapper: {
+ required: true,
+ serializedName: "location",
+ type: {
+ name: "String"
+ }
+ }
+};
export const nextPageLink: msRest.OperationURLParameter = {
parameterPath: "nextPageLink",
mapper: {
diff --git a/packages/@azure/arm-recoveryservices/lib/models/recoveryServicesMappers.ts b/packages/@azure/arm-recoveryservices/lib/models/recoveryServicesMappers.ts
new file mode 100644
index 000000000000..0de77e206fcc
--- /dev/null
+++ b/packages/@azure/arm-recoveryservices/lib/models/recoveryServicesMappers.ts
@@ -0,0 +1,32 @@
+/*
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is
+ * regenerated.
+ */
+
+export {
+ discriminators,
+ CheckNameAvailabilityParameters,
+ CheckNameAvailabilityResultResource,
+ Resource,
+ BaseResource,
+ CheckNameAvailabilityResult,
+ CloudError,
+ VaultCertificateResponse,
+ ResourceCertificateDetails,
+ TrackedResource,
+ PatchTrackedResource,
+ Vault,
+ VaultProperties,
+ UpgradeDetails,
+ Sku,
+ PatchVault,
+ VaultExtendedInfoResource,
+ ResourceCertificateAndAadDetails,
+ ResourceCertificateAndAcsDetails
+} from "../models/mappers";
+
diff --git a/packages/@azure/arm-recoveryservices/lib/models/vaultCertificatesMappers.ts b/packages/@azure/arm-recoveryservices/lib/models/vaultCertificatesMappers.ts
index 1d8791b81030..350bf05534f3 100644
--- a/packages/@azure/arm-recoveryservices/lib/models/vaultCertificatesMappers.ts
+++ b/packages/@azure/arm-recoveryservices/lib/models/vaultCertificatesMappers.ts
@@ -26,6 +26,8 @@ export {
UpgradeDetails,
Sku,
PatchVault,
- VaultExtendedInfoResource
+ VaultExtendedInfoResource,
+ CheckNameAvailabilityResultResource,
+ CheckNameAvailabilityResult
} from "../models/mappers";
diff --git a/packages/@azure/arm-recoveryservices/lib/models/vaultExtendedInfoOperationsMappers.ts b/packages/@azure/arm-recoveryservices/lib/models/vaultExtendedInfoOperationsMappers.ts
index bcd0558f638c..5e6c1f0b57d5 100644
--- a/packages/@azure/arm-recoveryservices/lib/models/vaultExtendedInfoOperationsMappers.ts
+++ b/packages/@azure/arm-recoveryservices/lib/models/vaultExtendedInfoOperationsMappers.ts
@@ -16,6 +16,8 @@ export {
CloudError,
VaultCertificateResponse,
ResourceCertificateDetails,
+ CheckNameAvailabilityResultResource,
+ CheckNameAvailabilityResult,
TrackedResource,
PatchTrackedResource,
Vault,
diff --git a/packages/@azure/arm-recoveryservices/lib/models/vaultsMappers.ts b/packages/@azure/arm-recoveryservices/lib/models/vaultsMappers.ts
index 6018159ee528..ac4d55415e28 100644
--- a/packages/@azure/arm-recoveryservices/lib/models/vaultsMappers.ts
+++ b/packages/@azure/arm-recoveryservices/lib/models/vaultsMappers.ts
@@ -23,6 +23,8 @@ export {
PatchTrackedResource,
VaultCertificateResponse,
ResourceCertificateDetails,
+ CheckNameAvailabilityResultResource,
+ CheckNameAvailabilityResult,
VaultExtendedInfoResource,
ResourceCertificateAndAadDetails,
ResourceCertificateAndAcsDetails
diff --git a/packages/@azure/arm-recoveryservices/lib/operations/index.ts b/packages/@azure/arm-recoveryservices/lib/operations/index.ts
index d3153e26f3fd..033b3f50c301 100644
--- a/packages/@azure/arm-recoveryservices/lib/operations/index.ts
+++ b/packages/@azure/arm-recoveryservices/lib/operations/index.ts
@@ -11,6 +11,7 @@
export * from "./vaultCertificates";
export * from "./registeredIdentities";
export * from "./replicationUsages";
+export * from "./recoveryServices";
export * from "./vaults";
export * from "./operations";
export * from "./vaultExtendedInfoOperations";
diff --git a/packages/@azure/arm-recoveryservices/lib/operations/recoveryServices.ts b/packages/@azure/arm-recoveryservices/lib/operations/recoveryServices.ts
new file mode 100644
index 000000000000..0dae8807e1f4
--- /dev/null
+++ b/packages/@azure/arm-recoveryservices/lib/operations/recoveryServices.ts
@@ -0,0 +1,105 @@
+/*
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for
+ * license information.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is
+ * regenerated.
+ */
+
+import * as msRest from "@azure/ms-rest-js";
+import * as Models from "../models";
+import * as Mappers from "../models/recoveryServicesMappers";
+import * as Parameters from "../models/parameters";
+import { RecoveryServicesClientContext } from "../recoveryServicesClientContext";
+
+/** Class representing a RecoveryServices. */
+export class RecoveryServices {
+ private readonly client: RecoveryServicesClientContext;
+
+ /**
+ * Create a RecoveryServices.
+ * @param {RecoveryServicesClientContext} client Reference to the service client.
+ */
+ constructor(client: RecoveryServicesClientContext) {
+ this.client = client;
+ }
+
+ /**
+ * @summary API to check for resource name availability.
+ * A name is available if no other resource exists that has the same SubscriptionId, Resource Name
+ * and Type
+ * or if one or more such resources exist, each of these must be GC'd and their time of deletion be
+ * more than 24 Hours Ago
+ * @param resourceGroupName The name of the resource group where the recovery services vault is
+ * present.
+ * @param location Location of the resource
+ * @param input Contains information about Resource type and Resource name
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ checkNameAvailability(resourceGroupName: string, location: string, input: Models.CheckNameAvailabilityParameters, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param resourceGroupName The name of the resource group where the recovery services vault is
+ * present.
+ * @param location Location of the resource
+ * @param input Contains information about Resource type and Resource name
+ * @param callback The callback
+ */
+ checkNameAvailability(resourceGroupName: string, location: string, input: Models.CheckNameAvailabilityParameters, callback: msRest.ServiceCallback): void;
+ /**
+ * @param resourceGroupName The name of the resource group where the recovery services vault is
+ * present.
+ * @param location Location of the resource
+ * @param input Contains information about Resource type and Resource name
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ checkNameAvailability(resourceGroupName: string, location: string, input: Models.CheckNameAvailabilityParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ checkNameAvailability(resourceGroupName: string, location: string, input: Models.CheckNameAvailabilityParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ resourceGroupName,
+ location,
+ input,
+ options
+ },
+ checkNameAvailabilityOperationSpec,
+ callback) as Promise;
+ }
+}
+
+// Operation Specifications
+const serializer = new msRest.Serializer(Mappers);
+const checkNameAvailabilityOperationSpec: msRest.OperationSpec = {
+ httpMethod: "POST",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/locations/{location}/checkNameAvailability",
+ urlParameters: [
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.location
+ ],
+ queryParameters: [
+ Parameters.apiVersion
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ requestBody: {
+ parameterPath: "input",
+ mapper: {
+ ...Mappers.CheckNameAvailabilityParameters,
+ required: true
+ }
+ },
+ responses: {
+ 200: {
+ bodyMapper: Mappers.CheckNameAvailabilityResultResource
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
diff --git a/packages/@azure/arm-recoveryservices/lib/recoveryServicesClient.ts b/packages/@azure/arm-recoveryservices/lib/recoveryServicesClient.ts
index a3d0f4d3ce81..6d46f7b794c0 100644
--- a/packages/@azure/arm-recoveryservices/lib/recoveryServicesClient.ts
+++ b/packages/@azure/arm-recoveryservices/lib/recoveryServicesClient.ts
@@ -20,6 +20,7 @@ class RecoveryServicesClient extends RecoveryServicesClientContext {
vaultCertificates: operations.VaultCertificates;
registeredIdentities: operations.RegisteredIdentities;
replicationUsages: operations.ReplicationUsages;
+ recoveryServices: operations.RecoveryServices;
vaults: operations.Vaults;
operations: operations.Operations;
vaultExtendedInfo: operations.VaultExtendedInfoOperations;
@@ -36,6 +37,7 @@ class RecoveryServicesClient extends RecoveryServicesClientContext {
this.vaultCertificates = new operations.VaultCertificates(this);
this.registeredIdentities = new operations.RegisteredIdentities(this);
this.replicationUsages = new operations.ReplicationUsages(this);
+ this.recoveryServices = new operations.RecoveryServices(this);
this.vaults = new operations.Vaults(this);
this.operations = new operations.Operations(this);
this.vaultExtendedInfo = new operations.VaultExtendedInfoOperations(this);
diff --git a/packages/@azure/arm-recoveryservices/lib/recoveryServicesClientContext.ts b/packages/@azure/arm-recoveryservices/lib/recoveryServicesClientContext.ts
index 0d09938f2d15..28480a528a35 100644
--- a/packages/@azure/arm-recoveryservices/lib/recoveryServicesClientContext.ts
+++ b/packages/@azure/arm-recoveryservices/lib/recoveryServicesClientContext.ts
@@ -13,7 +13,7 @@ import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-azure-js";
const packageName = "@azure/arm-recoveryservices";
-const packageVersion = "0.1.0";
+const packageVersion = "2.1.0";
export class RecoveryServicesClientContext extends msRestAzure.AzureServiceClient {
credentials: msRest.ServiceClientCredentials;
diff --git a/packages/@azure/arm-recoveryservices/package.json b/packages/@azure/arm-recoveryservices/package.json
index 7c39636aa79b..e4f3049a3689 100644
--- a/packages/@azure/arm-recoveryservices/package.json
+++ b/packages/@azure/arm-recoveryservices/package.json
@@ -4,8 +4,8 @@
"description": "RecoveryServicesClient Library with typescript type definitions for node.js and browser.",
"version": "2.1.0",
"dependencies": {
- "@azure/ms-rest-azure-js": "^1.1.0",
- "@azure/ms-rest-js": "^1.1.0",
+ "@azure/ms-rest-azure-js": "^1.2.0",
+ "@azure/ms-rest-js": "^1.2.0",
"tslib": "^1.9.3"
},
"keywords": [
@@ -23,6 +23,7 @@
"typescript": "^3.1.1",
"rollup": "^0.66.2",
"rollup-plugin-node-resolve": "^3.4.0",
+ "rollup-plugin-sourcemaps": "^0.4.2",
"uglify-js": "^3.4.9"
},
"homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/packages/@azure/arm-recoveryservices",
@@ -51,6 +52,5 @@
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-recoveryservices.js.map'\" -o ./dist/arm-recoveryservices.min.js ./dist/arm-recoveryservices.js",
"prepack": "npm install && npm run build"
},
- "sideEffects": false,
- "authPublish": true
+ "sideEffects": false
}
diff --git a/packages/@azure/arm-recoveryservices/rollup.config.js b/packages/@azure/arm-recoveryservices/rollup.config.js
index a2f166c698c9..c52644bf9518 100644
--- a/packages/@azure/arm-recoveryservices/rollup.config.js
+++ b/packages/@azure/arm-recoveryservices/rollup.config.js
@@ -1,10 +1,16 @@
+import rollup from "rollup";
import nodeResolve from "rollup-plugin-node-resolve";
+import sourcemaps from "rollup-plugin-sourcemaps";
+
/**
- * @type {import('rollup').RollupFileOptions}
+ * @type {rollup.RollupFileOptions}
*/
const config = {
- input: './esm/recoveryServicesClient.js',
- external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"],
+ input: "./esm/recoveryServicesClient.js",
+ external: [
+ "@azure/ms-rest-js",
+ "@azure/ms-rest-azure-js"
+ ],
output: {
file: "./dist/arm-recoveryservices.js",
format: "umd",
@@ -16,16 +22,16 @@ const config = {
},
banner: `/*
* Copyright (c) Microsoft Corporation. All rights reserved.
- * Licensed under the MIT License. See License.txt in the project root for
- * license information.
+ * Licensed under the MIT License. See License.txt in the project root for license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/`
},
plugins: [
- nodeResolve({ module: true })
+ nodeResolve({ module: true }),
+ sourcemaps()
]
};
+
export default config;