Skip to content

Commit

Permalink
Generated from 68020731992b40daddd7079bdd14e57e29d4a0cf
Browse files Browse the repository at this point in the history
override vmware client name to AVSClient
  • Loading branch information
SDK Automation committed Jun 17, 2020
1 parent 141a989 commit adabbf9
Show file tree
Hide file tree
Showing 10 changed files with 38 additions and 38 deletions.
10 changes: 5 additions & 5 deletions sdk/vmware/arm-vmware/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Azure AzureVMwareSolutionAPI SDK for JavaScript
## Azure AVSClient SDK for JavaScript

This package contains an isomorphic SDK for AzureVMwareSolutionAPI.
This package contains an isomorphic SDK for AVSClient.

### Currently supported environments

Expand Down Expand Up @@ -30,11 +30,11 @@ npm install @azure/ms-rest-nodeauth@"^3.0.0"
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 { AzureVMwareSolutionAPI, AzureVMwareSolutionAPIModels, AzureVMwareSolutionAPIMappers } from "@azure/arm-vmware";
import { AVSClient, AVSModels, AVSMappers } from "@azure/arm-vmware";
const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];

msRestNodeAuth.interactiveLogin().then((creds) => {
const client = new AzureVMwareSolutionAPI(creds, subscriptionId);
const client = new AVSClient(creds, subscriptionId);
client.operations.list().then((result) => {
console.log("The result is:");
console.log(result);
Expand Down Expand Up @@ -77,7 +77,7 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
// may cause redirects
authManager.login();
}
const client = new Azure.ArmVmware.AzureVMwareSolutionAPI(res.creds, subscriptionId);
const client = new Azure.ArmVmware.AVSClient(res.creds, subscriptionId);
client.operations.list().then((result) => {
console.log("The result is:");
console.log(result);
Expand Down
6 changes: 3 additions & 3 deletions sdk/vmware/arm-vmware/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@azure/arm-vmware",
"author": "Microsoft Corporation",
"description": "AzureVMwareSolutionAPI Library with typescript type definitions for node.js and browser.",
"description": "AVSClient Library with typescript type definitions for node.js and browser.",
"version": "0.1.0",
"dependencies": {
"@azure/ms-rest-azure-js": "^2.0.1",
Expand All @@ -17,8 +17,8 @@
],
"license": "MIT",
"main": "./dist/arm-vmware.js",
"module": "./esm/azureVMwareSolutionAPI.js",
"types": "./esm/azureVMwareSolutionAPI.d.ts",
"module": "./esm/aVSClient.js",
"types": "./esm/aVSClient.d.ts",
"devDependencies": {
"typescript": "^3.5.3",
"rollup": "^1.18.0",
Expand Down
2 changes: 1 addition & 1 deletion sdk/vmware/arm-vmware/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import sourcemaps from "rollup-plugin-sourcemaps";
* @type {rollup.RollupFileOptions}
*/
const config = {
input: "./esm/azureVMwareSolutionAPI.js",
input: "./esm/aVSClient.js",
external: [
"@azure/ms-rest-js",
"@azure/ms-rest-azure-js"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,23 @@ import * as msRest from "@azure/ms-rest-js";
import * as Models from "./models";
import * as Mappers from "./models/mappers";
import * as operations from "./operations";
import { AzureVMwareSolutionAPIContext } from "./azureVMwareSolutionAPIContext";
import { AVSClientContext } from "./aVSClientContext";


class AzureVMwareSolutionAPI extends AzureVMwareSolutionAPIContext {
class AVSClient extends AVSClientContext {
// Operation groups
operations: operations.Operations;
locations: operations.Locations;
privateClouds: operations.PrivateClouds;
clusters: operations.Clusters;

/**
* Initializes a new instance of the AzureVMwareSolutionAPI class.
* Initializes a new instance of the AVSClient class.
* @param credentials Credentials needed for the client to connect to Azure.
* @param subscriptionId Unique identifier for the Azure subscription
* @param [options] The parameter options
*/
constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.AzureVMwareSolutionAPIOptions) {
constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.AVSClientOptions) {
super(credentials, subscriptionId, options);
this.operations = new operations.Operations(this);
this.locations = new operations.Locations(this);
Expand All @@ -40,9 +40,9 @@ class AzureVMwareSolutionAPI extends AzureVMwareSolutionAPIContext {
// Operation Specifications

export {
AzureVMwareSolutionAPI,
AzureVMwareSolutionAPIContext,
Models as AzureVMwareSolutionAPIModels,
Mappers as AzureVMwareSolutionAPIMappers
AVSClient,
AVSClientContext,
Models as AVSModels,
Mappers as AVSMappers
};
export * from "./operations";
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@ import * as msRestAzure from "@azure/ms-rest-azure-js";
const packageName = "@azure/arm-vmware";
const packageVersion = "0.1.0";

export class AzureVMwareSolutionAPIContext extends msRestAzure.AzureServiceClient {
export class AVSClientContext extends msRestAzure.AzureServiceClient {
credentials: msRest.ServiceClientCredentials;
subscriptionId: string;
apiVersion?: string;

/**
* Initializes a new instance of the AzureVMwareSolutionAPI class.
* Initializes a new instance of the AVSClient class.
* @param credentials Credentials needed for the client to connect to Azure.
* @param subscriptionId Unique identifier for the Azure subscription
* @param [options] The parameter options
*/
constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.AzureVMwareSolutionAPIOptions) {
constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.AVSClientOptions) {
if (credentials == undefined) {
throw new Error('\'credentials\' cannot be null.');
}
Expand Down
4 changes: 2 additions & 2 deletions sdk/vmware/arm-vmware/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -469,9 +469,9 @@ export interface ClustersBeginUpdateOptionalParams extends msRest.RequestOptions
}

/**
* An interface representing AzureVMwareSolutionAPIOptions.
* An interface representing AVSClientOptions.
*/
export interface AzureVMwareSolutionAPIOptions extends AzureServiceClientOptions {
export interface AVSClientOptions extends AzureServiceClientOptions {
baseUri?: string;
}

Expand Down
8 changes: 4 additions & 4 deletions sdk/vmware/arm-vmware/src/operations/clusters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ import * as msRestAzure from "@azure/ms-rest-azure-js";
import * as Models from "../models";
import * as Mappers from "../models/clustersMappers";
import * as Parameters from "../models/parameters";
import { AzureVMwareSolutionAPIContext } from "../azureVMwareSolutionAPIContext";
import { AVSClientContext } from "../aVSClientContext";

/** Class representing a Clusters. */
export class Clusters {
private readonly client: AzureVMwareSolutionAPIContext;
private readonly client: AVSClientContext;

/**
* Create a Clusters.
* @param {AzureVMwareSolutionAPIContext} client Reference to the service client.
* @param {AVSClientContext} client Reference to the service client.
*/
constructor(client: AzureVMwareSolutionAPIContext) {
constructor(client: AVSClientContext) {
this.client = client;
}

Expand Down
8 changes: 4 additions & 4 deletions sdk/vmware/arm-vmware/src/operations/locations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ import * as msRest from "@azure/ms-rest-js";
import * as Models from "../models";
import * as Mappers from "../models/locationsMappers";
import * as Parameters from "../models/parameters";
import { AzureVMwareSolutionAPIContext } from "../azureVMwareSolutionAPIContext";
import { AVSClientContext } from "../aVSClientContext";

/** Class representing a Locations. */
export class Locations {
private readonly client: AzureVMwareSolutionAPIContext;
private readonly client: AVSClientContext;

/**
* Create a Locations.
* @param {AzureVMwareSolutionAPIContext} client Reference to the service client.
* @param {AVSClientContext} client Reference to the service client.
*/
constructor(client: AzureVMwareSolutionAPIContext) {
constructor(client: AVSClientContext) {
this.client = client;
}

Expand Down
8 changes: 4 additions & 4 deletions sdk/vmware/arm-vmware/src/operations/operations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ import * as msRest from "@azure/ms-rest-js";
import * as Models from "../models";
import * as Mappers from "../models/operationsMappers";
import * as Parameters from "../models/parameters";
import { AzureVMwareSolutionAPIContext } from "../azureVMwareSolutionAPIContext";
import { AVSClientContext } from "../aVSClientContext";

/** Class representing a Operations. */
export class Operations {
private readonly client: AzureVMwareSolutionAPIContext;
private readonly client: AVSClientContext;

/**
* Create a Operations.
* @param {AzureVMwareSolutionAPIContext} client Reference to the service client.
* @param {AVSClientContext} client Reference to the service client.
*/
constructor(client: AzureVMwareSolutionAPIContext) {
constructor(client: AVSClientContext) {
this.client = client;
}

Expand Down
8 changes: 4 additions & 4 deletions sdk/vmware/arm-vmware/src/operations/privateClouds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ import * as msRestAzure from "@azure/ms-rest-azure-js";
import * as Models from "../models";
import * as Mappers from "../models/privateCloudsMappers";
import * as Parameters from "../models/parameters";
import { AzureVMwareSolutionAPIContext } from "../azureVMwareSolutionAPIContext";
import { AVSClientContext } from "../aVSClientContext";

/** Class representing a PrivateClouds. */
export class PrivateClouds {
private readonly client: AzureVMwareSolutionAPIContext;
private readonly client: AVSClientContext;

/**
* Create a PrivateClouds.
* @param {AzureVMwareSolutionAPIContext} client Reference to the service client.
* @param {AVSClientContext} client Reference to the service client.
*/
constructor(client: AzureVMwareSolutionAPIContext) {
constructor(client: AVSClientContext) {
this.client = client;
}

Expand Down

0 comments on commit adabbf9

Please sign in to comment.