diff --git a/packages/@azure/arm-containerservice/LICENSE.txt b/packages/@azure/arm-containerservice/LICENSE.txt index 5431ba98b936..8f3d856145c5 100644 --- a/packages/@azure/arm-containerservice/LICENSE.txt +++ b/packages/@azure/arm-containerservice/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2018 Microsoft +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 diff --git a/packages/@azure/arm-containerservice/README.md b/packages/@azure/arm-containerservice/README.md index f946aee45080..ac0088a68cb8 100644 --- a/packages/@azure/arm-containerservice/README.md +++ b/packages/@azure/arm-containerservice/README.md @@ -9,23 +9,23 @@ This package contains an isomorphic SDK for ContainerServiceClient. ### How to Install -``` +```bash npm install @azure/arm-containerservice ``` ### How to use -#### nodejs - Authentication, client creation and get openShiftManagedClusters as an example written in TypeScript. +#### nodejs - Authentication, client creation and list openShiftManagedClusters as an example written in TypeScript. ##### Install @azure/ms-rest-nodeauth -``` +```bash npm install @azure/ms-rest-nodeauth ``` ##### Sample code -```ts +```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"; @@ -34,9 +34,7 @@ const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; msRestNodeAuth.interactiveLogin().then((creds) => { const client = new ContainerServiceClient(creds, subscriptionId); - const resourceGroupName = "testresourceGroupName"; - const resourceName = "testresourceName"; - client.openShiftManagedClusters.get(resourceGroupName, resourceName).then((result) => { + client.openShiftManagedClusters.list().then((result) => { console.log("The result is:"); console.log(result); }); @@ -45,11 +43,11 @@ msRestNodeAuth.interactiveLogin().then((creds) => { }); ``` -#### browser - Authentication, client creation and get openShiftManagedClusters as an example written in JavaScript. +#### browser - Authentication, client creation and list openShiftManagedClusters as an example written in JavaScript. ##### Install @azure/ms-rest-browserauth -``` +```bash npm install @azure/ms-rest-browserauth ``` @@ -79,9 +77,7 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to authManager.login(); } const client = new Azure.ArmContainerservice.ContainerServiceClient(res.creds, subscriptionId); - const resourceGroupName = "testresourceGroupName"; - const resourceName = "testresourceName"; - client.openShiftManagedClusters.get(resourceGroupName, resourceName).then((result) => { + client.openShiftManagedClusters.list().then((result) => { console.log("The result is:"); console.log(result); }).catch((err) => { diff --git a/packages/@azure/arm-containerservice/lib/models/index.ts b/packages/@azure/arm-containerservice/lib/models/index.ts index 323e74eef506..a552aca6f9c0 100644 --- a/packages/@azure/arm-containerservice/lib/models/index.ts +++ b/packages/@azure/arm-containerservice/lib/models/index.ts @@ -90,7 +90,7 @@ export interface OpenShiftRouterProfile { */ name?: string; /** - * @member {string} [publicSubdomain] DNS subdomain for openshift router. + * @member {string} [publicSubdomain] DNS subdomain for OpenShift router. */ publicSubdomain?: string; /** @@ -134,12 +134,22 @@ export interface OpenShiftManagedClusterMasterPoolProfile { name?: string; /** * @member {number} count Number of masters (VMs) to host docker containers. - * The default value is 3. Default value: 3 . + * The default value is 3. */ count: number; /** * @member {OpenShiftContainerServiceVMSize} vmSize Size of agent VMs. - * Possible values include: 'Standard_D2s_v3', 'Standard_D4s_v3' + * Possible values include: 'Standard_D2s_v3', 'Standard_D4s_v3', + * 'Standard_D8s_v3', 'Standard_D16s_v3', 'Standard_D32s_v3', + * 'Standard_D64s_v3', 'Standard_DS4_v2', 'Standard_DS5_v2', + * 'Standard_F8s_v2', 'Standard_F16s_v2', 'Standard_F32s_v2', + * 'Standard_F64s_v2', 'Standard_F72s_v2', 'Standard_F8s', 'Standard_F16s', + * 'Standard_E4s_v3', 'Standard_E8s_v3', 'Standard_E16s_v3', + * 'Standard_E20s_v3', 'Standard_E32s_v3', 'Standard_E64s_v3', + * 'Standard_GS2', 'Standard_GS3', 'Standard_GS4', 'Standard_GS5', + * 'Standard_DS12_v2', 'Standard_DS13_v2', 'Standard_DS14_v2', + * 'Standard_DS15_v2', 'Standard_L4s', 'Standard_L8s', 'Standard_L16s', + * 'Standard_L32s' */ vmSize: OpenShiftContainerServiceVMSize; /** @@ -168,13 +178,21 @@ export interface OpenShiftManagedClusterAgentPoolProfile { name: string; /** * @member {number} count Number of agents (VMs) to host docker containers. - * Allowed values must be in the range of 1 to 5 (inclusive). The default - * value is 2. . Default value: 2 . */ count: number; /** * @member {OpenShiftContainerServiceVMSize} vmSize Size of agent VMs. - * Possible values include: 'Standard_D2s_v3', 'Standard_D4s_v3' + * Possible values include: 'Standard_D2s_v3', 'Standard_D4s_v3', + * 'Standard_D8s_v3', 'Standard_D16s_v3', 'Standard_D32s_v3', + * 'Standard_D64s_v3', 'Standard_DS4_v2', 'Standard_DS5_v2', + * 'Standard_F8s_v2', 'Standard_F16s_v2', 'Standard_F32s_v2', + * 'Standard_F64s_v2', 'Standard_F72s_v2', 'Standard_F8s', 'Standard_F16s', + * 'Standard_E4s_v3', 'Standard_E8s_v3', 'Standard_E16s_v3', + * 'Standard_E20s_v3', 'Standard_E32s_v3', 'Standard_E64s_v3', + * 'Standard_GS2', 'Standard_GS3', 'Standard_GS4', 'Standard_GS5', + * 'Standard_DS12_v2', 'Standard_DS13_v2', 'Standard_DS14_v2', + * 'Standard_DS15_v2', 'Standard_L4s', 'Standard_L8s', 'Standard_L16s', + * 'Standard_L32s' */ vmSize: OpenShiftContainerServiceVMSize; /** @@ -510,7 +528,7 @@ export interface ContainerServiceMasterProfile { */ osDiskSizeGB?: number; /** - * @member {string} [vnetSubnetID] VNet SubnetID specifies the vnet's subnet + * @member {string} [vnetSubnetID] VNet SubnetID specifies the VNet's subnet * identifier. */ vnetSubnetID?: string; @@ -528,7 +546,7 @@ export interface ContainerServiceMasterProfile { */ storageProfile?: ContainerServiceStorageProfileTypes; /** - * @member {string} [fqdn] FDQN for the master pool. + * @member {string} [fqdn] FQDN for the master pool. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ @@ -621,7 +639,7 @@ export interface ContainerServiceAgentPoolProfile { */ dnsPrefix?: string; /** - * @member {string} [fqdn] FDQN for the agent pool. + * @member {string} [fqdn] FQDN for the agent pool. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ @@ -641,7 +659,7 @@ export interface ContainerServiceAgentPoolProfile { */ storageProfile?: ContainerServiceStorageProfileTypes; /** - * @member {string} [vnetSubnetID] VNet SubnetID specifies the vnet's subnet + * @member {string} [vnetSubnetID] VNet SubnetID specifies the VNet's subnet * identifier. */ vnetSubnetID?: string; @@ -961,7 +979,7 @@ export interface ManagedClusterAgentPoolProfile { */ osDiskSizeGB?: number; /** - * @member {string} [vnetSubnetID] VNet SubnetID specifies the vnet's subnet + * @member {string} [vnetSubnetID] VNet SubnetID specifies the VNet's subnet * identifier. */ vnetSubnetID?: string; @@ -988,8 +1006,8 @@ export interface ManagedClusterAgentPoolProfile { */ enableAutoScaling?: boolean; /** - * @member {AgentPoolType} [type] AgentPoolType represents types of - * agentpool. Possible values include: 'VirtualMachineScaleSets', + * @member {AgentPoolType} [type] AgentPoolType represents types of an agent + * pool. Possible values include: 'VirtualMachineScaleSets', * 'AvailabilitySet' */ type?: AgentPoolType; @@ -1108,7 +1126,7 @@ export interface ManagedCluster extends Resource { */ dnsPrefix?: string; /** - * @member {string} [fqdn] FDQN for the master pool. + * @member {string} [fqdn] FQDN for the master pool. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ @@ -1286,8 +1304,10 @@ export interface CredentialResult { */ export interface CredentialResults { /** - * @member {CredentialResult[]} [kubeconfigs] **NOTE: This property will not - * be serialized. It can only be populated by the server.** + * @member {CredentialResult[]} [kubeconfigs] Base64-encoded Kubernetes + * configuration file. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly kubeconfigs?: CredentialResult[]; } @@ -1382,6 +1402,23 @@ export interface ContainerServiceClientOptions extends AzureServiceClientOptions } +/** + * @interface + * An interface representing the OpenShiftManagedClusterListResult. + * The response from the List OpenShift Managed Clusters operation. + * + * @extends Array + */ +export interface OpenShiftManagedClusterListResult extends Array { + /** + * @member {string} [nextLink] The URL to get the next set of OpenShift + * managed cluster results. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + /** * @interface * An interface representing the ContainerServiceListResult. @@ -1436,11 +1473,18 @@ export type OSType = 'Linux' | 'Windows'; /** * Defines values for OpenShiftContainerServiceVMSize. - * Possible values include: 'Standard_D2s_v3', 'Standard_D4s_v3' + * Possible values include: 'Standard_D2s_v3', 'Standard_D4s_v3', 'Standard_D8s_v3', + * 'Standard_D16s_v3', 'Standard_D32s_v3', 'Standard_D64s_v3', 'Standard_DS4_v2', + * 'Standard_DS5_v2', 'Standard_F8s_v2', 'Standard_F16s_v2', 'Standard_F32s_v2', + * 'Standard_F64s_v2', 'Standard_F72s_v2', 'Standard_F8s', 'Standard_F16s', 'Standard_E4s_v3', + * 'Standard_E8s_v3', 'Standard_E16s_v3', 'Standard_E20s_v3', 'Standard_E32s_v3', + * 'Standard_E64s_v3', 'Standard_GS2', 'Standard_GS3', 'Standard_GS4', 'Standard_GS5', + * 'Standard_DS12_v2', 'Standard_DS13_v2', 'Standard_DS14_v2', 'Standard_DS15_v2', 'Standard_L4s', + * 'Standard_L8s', 'Standard_L16s', 'Standard_L32s' * @readonly * @enum {string} */ -export type OpenShiftContainerServiceVMSize = 'Standard_D2s_v3' | 'Standard_D4s_v3'; +export type OpenShiftContainerServiceVMSize = 'Standard_D2s_v3' | 'Standard_D4s_v3' | 'Standard_D8s_v3' | 'Standard_D16s_v3' | 'Standard_D32s_v3' | 'Standard_D64s_v3' | 'Standard_DS4_v2' | 'Standard_DS5_v2' | 'Standard_F8s_v2' | 'Standard_F16s_v2' | 'Standard_F32s_v2' | 'Standard_F64s_v2' | 'Standard_F72s_v2' | 'Standard_F8s' | 'Standard_F16s' | 'Standard_E4s_v3' | 'Standard_E8s_v3' | 'Standard_E16s_v3' | 'Standard_E20s_v3' | 'Standard_E32s_v3' | 'Standard_E64s_v3' | 'Standard_GS2' | 'Standard_GS3' | 'Standard_GS4' | 'Standard_GS5' | 'Standard_DS12_v2' | 'Standard_DS13_v2' | 'Standard_DS14_v2' | 'Standard_DS15_v2' | 'Standard_L4s' | 'Standard_L8s' | 'Standard_L16s' | 'Standard_L32s'; /** * Defines values for OpenShiftAgentPoolProfileRole. @@ -1535,6 +1579,44 @@ export type NetworkPlugin = 'azure' | 'kubenet'; */ export type NetworkPolicy = 'calico'; +/** + * Contains response data for the list operation. + */ +export type OpenShiftManagedClustersListResponse = OpenShiftManagedClusterListResult & { + /** + * 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: OpenShiftManagedClusterListResult; + }; +}; + +/** + * Contains response data for the listByResourceGroup operation. + */ +export type OpenShiftManagedClustersListByResourceGroupResponse = OpenShiftManagedClusterListResult & { + /** + * 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: OpenShiftManagedClusterListResult; + }; +}; + /** * Contains response data for the get operation. */ @@ -1630,6 +1712,44 @@ export type OpenShiftManagedClustersBeginUpdateTagsResponse = OpenShiftManagedCl }; }; +/** + * Contains response data for the listNext operation. + */ +export type OpenShiftManagedClustersListNextResponse = OpenShiftManagedClusterListResult & { + /** + * 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: OpenShiftManagedClusterListResult; + }; +}; + +/** + * Contains response data for the listByResourceGroupNext operation. + */ +export type OpenShiftManagedClustersListByResourceGroupNextResponse = OpenShiftManagedClusterListResult & { + /** + * 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: OpenShiftManagedClusterListResult; + }; +}; + /** * Contains response data for the list operation. */ diff --git a/packages/@azure/arm-containerservice/lib/models/mappers.ts b/packages/@azure/arm-containerservice/lib/models/mappers.ts index 9364677ba065..3c126ff84a24 100644 --- a/packages/@azure/arm-containerservice/lib/models/mappers.ts +++ b/packages/@azure/arm-containerservice/lib/models/mappers.ts @@ -164,11 +164,6 @@ export const OpenShiftManagedClusterMasterPoolProfile: msRest.CompositeMapper = count: { required: true, serializedName: "count", - defaultValue: 3, - constraints: { - InclusiveMaximum: 10, - InclusiveMinimum: 1 - }, type: { name: "Number" } @@ -213,11 +208,6 @@ export const OpenShiftManagedClusterAgentPoolProfile: msRest.CompositeMapper = { count: { required: true, serializedName: "count", - defaultValue: 2, - constraints: { - InclusiveMaximum: 5, - InclusiveMinimum: 1 - }, type: { name: "Number" } @@ -1589,6 +1579,35 @@ export const OrchestratorVersionProfileListResult: msRest.CompositeMapper = { } }; +export const OpenShiftManagedClusterListResult: msRest.CompositeMapper = { + serializedName: "OpenShiftManagedClusterListResult", + type: { + name: "Composite", + className: "OpenShiftManagedClusterListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OpenShiftManagedCluster" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + export const ContainerServiceListResult: msRest.CompositeMapper = { serializedName: "ContainerServiceListResult", type: { diff --git a/packages/@azure/arm-containerservice/lib/models/openShiftManagedClustersMappers.ts b/packages/@azure/arm-containerservice/lib/models/openShiftManagedClustersMappers.ts index 5a4e00b5a41d..9efb41bb145f 100644 --- a/packages/@azure/arm-containerservice/lib/models/openShiftManagedClustersMappers.ts +++ b/packages/@azure/arm-containerservice/lib/models/openShiftManagedClustersMappers.ts @@ -10,6 +10,7 @@ export { discriminators, + OpenShiftManagedClusterListResult, OpenShiftManagedCluster, Resource, BaseResource, diff --git a/packages/@azure/arm-containerservice/lib/models/parameters.ts b/packages/@azure/arm-containerservice/lib/models/parameters.ts index dce5d04185f0..438a37b9639a 100644 --- a/packages/@azure/arm-containerservice/lib/models/parameters.ts +++ b/packages/@azure/arm-containerservice/lib/models/parameters.ts @@ -99,7 +99,20 @@ export const nextPageLink: msRest.OperationURLParameter = { }, skipEncoding: true }; -export const resourceGroupName: msRest.OperationURLParameter = { +export const resourceGroupName0: msRest.OperationURLParameter = { + parameterPath: "resourceGroupName", + mapper: { + required: true, + serializedName: "resourceGroupName", + constraints: { + MinLength: 1 + }, + type: { + name: "String" + } + } +}; +export const resourceGroupName1: msRest.OperationURLParameter = { parameterPath: "resourceGroupName", mapper: { required: true, diff --git a/packages/@azure/arm-containerservice/lib/operations/containerServices.ts b/packages/@azure/arm-containerservice/lib/operations/containerServices.ts index cbaad988a792..732f0d25f119 100644 --- a/packages/@azure/arm-containerservice/lib/operations/containerServices.ts +++ b/packages/@azure/arm-containerservice/lib/operations/containerServices.ts @@ -33,16 +33,19 @@ export class ContainerServices { * agents, and FQDNs of masters and agents. * @summary Gets a list of container services in the specified subscription. * @param [options] The optional parameters + * @deprecated This operation is deprecated. Please do not use it any longer. * @returns Promise */ list(options?: msRest.RequestOptionsBase): Promise; /** * @param callback The callback + * @deprecated This operation is deprecated. Please do not use it any longer. */ list(callback: msRest.ServiceCallback): void; /** * @param options The optional parameters * @param callback The callback + * @deprecated This operation is deprecated. Please do not use it any longer. */ list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { @@ -79,6 +82,7 @@ export class ContainerServices { * @param containerServiceName The name of the container service in the specified subscription and * resource group. * @param [options] The optional parameters + * @deprecated This operation is deprecated. Please do not use it any longer. * @returns Promise */ get(resourceGroupName: string, containerServiceName: string, options?: msRest.RequestOptionsBase): Promise; @@ -87,6 +91,7 @@ export class ContainerServices { * @param containerServiceName The name of the container service in the specified subscription and * resource group. * @param callback The callback + * @deprecated This operation is deprecated. Please do not use it any longer. */ get(resourceGroupName: string, containerServiceName: string, callback: msRest.ServiceCallback): void; /** @@ -95,6 +100,7 @@ export class ContainerServices { * resource group. * @param options The optional parameters * @param callback The callback + * @deprecated This operation is deprecated. Please do not use it any longer. */ get(resourceGroupName: string, containerServiceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; get(resourceGroupName: string, containerServiceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { @@ -132,18 +138,21 @@ export class ContainerServices { * @summary Gets a list of container services in the specified resource group. * @param resourceGroupName The name of the resource group. * @param [options] The optional parameters + * @deprecated This operation is deprecated. Please do not use it any longer. * @returns Promise */ listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param callback The callback + * @deprecated This operation is deprecated. Please do not use it any longer. */ listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param options The optional parameters * @param callback The callback + * @deprecated This operation is deprecated. Please do not use it any longer. */ listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { @@ -158,7 +167,7 @@ export class ContainerServices { /** * Gets a list of supported orchestrators in the specified subscription. The operation returns - * properties of each orchestrator including verison and available upgrades. + * properties of each orchestrator including version and available upgrades. * @summary Gets a list of supported orchestrators in the specified subscription. * @param location The name of a supported Azure region. * @param [options] The optional parameters @@ -239,18 +248,21 @@ export class ContainerServices { * @summary Gets a list of container services in the specified subscription. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters + * @deprecated This operation is deprecated. Please do not use it any longer. * @returns Promise */ listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback + * @deprecated This operation is deprecated. Please do not use it any longer. */ listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback + * @deprecated This operation is deprecated. Please do not use it any longer. */ listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { @@ -270,18 +282,21 @@ export class ContainerServices { * @summary Gets a list of container services in the specified resource group. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters + * @deprecated This operation is deprecated. Please do not use it any longer. * @returns Promise */ listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback + * @deprecated This operation is deprecated. Please do not use it any longer. */ listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback + * @deprecated This operation is deprecated. Please do not use it any longer. */ listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { @@ -324,7 +339,7 @@ const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/containerServices/{containerServiceName}", urlParameters: [ - Parameters.resourceGroupName, + Parameters.resourceGroupName1, Parameters.containerServiceName, Parameters.subscriptionId ], @@ -349,7 +364,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/containerServices", urlParameters: [ - Parameters.resourceGroupName, + Parameters.resourceGroupName1, Parameters.subscriptionId ], queryParameters: [ @@ -398,7 +413,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/containerServices/{containerServiceName}", urlParameters: [ - Parameters.resourceGroupName, + Parameters.resourceGroupName1, Parameters.containerServiceName, Parameters.subscriptionId ], @@ -436,7 +451,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/containerServices/{containerServiceName}", urlParameters: [ - Parameters.resourceGroupName, + Parameters.resourceGroupName1, Parameters.containerServiceName, Parameters.subscriptionId ], diff --git a/packages/@azure/arm-containerservice/lib/operations/managedClusters.ts b/packages/@azure/arm-containerservice/lib/operations/managedClusters.ts index c1e1f95eecb3..31cb5bfd718e 100644 --- a/packages/@azure/arm-containerservice/lib/operations/managedClusters.ts +++ b/packages/@azure/arm-containerservice/lib/operations/managedClusters.ts @@ -156,8 +156,8 @@ export class ManagedClusters { } /** - * Gets clusteradmin credential of the managed cluster with a specified resource group and name. - * @summary Gets clusteradmin credential of a managed cluster. + * Gets cluster admin credential of the managed cluster with a specified resource group and name. + * @summary Gets cluster admin credential of a managed cluster. * @param resourceGroupName The name of the resource group. * @param resourceName The name of the managed cluster resource. * @param [options] The optional parameters @@ -189,8 +189,8 @@ export class ManagedClusters { } /** - * Gets clusteruser credential of the managed cluster with a specified resource group and name. - * @summary Gets clusteruser credential of a managed cluster. + * Gets cluster user credential of the managed cluster with a specified resource group and name. + * @summary Gets cluster user credential of a managed cluster. * @param resourceGroupName The name of the resource group. * @param resourceName The name of the managed cluster resource. * @param [options] The optional parameters @@ -296,6 +296,35 @@ export class ManagedClusters { .then(lroPoller => lroPoller.pollUntilFinished()); } + /** + * Update the service principal Profile for a managed cluster. + * @summary Reset Service Principal Profile of a managed cluster. + * @param resourceGroupName The name of the resource group. + * @param resourceName The name of the managed cluster resource. + * @param parameters Parameters supplied to the Reset Service Principal Profile operation for a + * Managed Cluster. + * @param [options] The optional parameters + * @returns Promise + */ + resetServicePrincipalProfile(resourceGroupName: string, resourceName: string, parameters: Models.ManagedClusterServicePrincipalProfile, options?: msRest.RequestOptionsBase): Promise { + return this.beginResetServicePrincipalProfile(resourceGroupName,resourceName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Update the AAD Profile for a managed cluster. + * @summary Reset AAD Profile of a managed cluster. + * @param resourceGroupName The name of the resource group. + * @param resourceName The name of the managed cluster resource. + * @param parameters Parameters supplied to the Reset AAD Profile operation for a Managed Cluster. + * @param [options] The optional parameters + * @returns Promise + */ + resetAADProfile(resourceGroupName: string, resourceName: string, parameters: Models.ManagedClusterAADProfile, options?: msRest.RequestOptionsBase): Promise { + return this.beginResetAADProfile(resourceGroupName,resourceName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + /** * Creates or updates a managed cluster with the specified configuration for agents and Kubernetes * version. @@ -358,6 +387,49 @@ export class ManagedClusters { options); } + /** + * Update the service principal Profile for a managed cluster. + * @summary Reset Service Principal Profile of a managed cluster. + * @param resourceGroupName The name of the resource group. + * @param resourceName The name of the managed cluster resource. + * @param parameters Parameters supplied to the Reset Service Principal Profile operation for a + * Managed Cluster. + * @param [options] The optional parameters + * @returns Promise + */ + beginResetServicePrincipalProfile(resourceGroupName: string, resourceName: string, parameters: Models.ManagedClusterServicePrincipalProfile, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + resourceName, + parameters, + options + }, + beginResetServicePrincipalProfileOperationSpec, + options); + } + + /** + * Update the AAD Profile for a managed cluster. + * @summary Reset AAD Profile of a managed cluster. + * @param resourceGroupName The name of the resource group. + * @param resourceName The name of the managed cluster resource. + * @param parameters Parameters supplied to the Reset AAD Profile operation for a Managed Cluster. + * @param [options] The optional parameters + * @returns Promise + */ + beginResetAADProfile(resourceGroupName: string, resourceName: string, parameters: Models.ManagedClusterAADProfile, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + resourceName, + parameters, + options + }, + beginResetAADProfileOperationSpec, + options); + } + /** * Gets a list of managed clusters in the specified subscription. The operation returns properties * of each managed cluster. @@ -449,7 +521,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters", urlParameters: [ Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName0 ], queryParameters: [ Parameters.apiVersion3 @@ -473,7 +545,7 @@ const getUpgradeProfileOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/upgradeProfiles/default", urlParameters: [ Parameters.subscriptionId, - Parameters.resourceGroupName, + Parameters.resourceGroupName0, Parameters.resourceName ], queryParameters: [ @@ -498,7 +570,7 @@ const getAccessProfileOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/accessProfiles/{roleName}/listCredential", urlParameters: [ Parameters.subscriptionId, - Parameters.resourceGroupName, + Parameters.resourceGroupName0, Parameters.resourceName, Parameters.roleName ], @@ -524,7 +596,7 @@ const listClusterAdminCredentialsOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/listClusterAdminCredential", urlParameters: [ Parameters.subscriptionId, - Parameters.resourceGroupName, + Parameters.resourceGroupName0, Parameters.resourceName ], queryParameters: [ @@ -549,7 +621,7 @@ const listClusterUserCredentialsOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/listClusterUserCredential", urlParameters: [ Parameters.subscriptionId, - Parameters.resourceGroupName, + Parameters.resourceGroupName0, Parameters.resourceName ], queryParameters: [ @@ -574,7 +646,7 @@ const getOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}", urlParameters: [ Parameters.subscriptionId, - Parameters.resourceGroupName, + Parameters.resourceGroupName0, Parameters.resourceName ], queryParameters: [ @@ -599,7 +671,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}", urlParameters: [ Parameters.subscriptionId, - Parameters.resourceGroupName, + Parameters.resourceGroupName0, Parameters.resourceName ], queryParameters: [ @@ -634,7 +706,7 @@ const beginUpdateTagsOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}", urlParameters: [ Parameters.subscriptionId, - Parameters.resourceGroupName, + Parameters.resourceGroupName0, Parameters.resourceName ], queryParameters: [ @@ -666,7 +738,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}", urlParameters: [ Parameters.subscriptionId, - Parameters.resourceGroupName, + Parameters.resourceGroupName0, Parameters.resourceName ], queryParameters: [ @@ -685,6 +757,68 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { serializer }; +const beginResetServicePrincipalProfileOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/resetServicePrincipalProfile", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName0, + Parameters.resourceName + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.ManagedClusterServicePrincipalProfile, + required: true + } + }, + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginResetAADProfileOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/resetAADProfile", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName0, + Parameters.resourceName + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.ManagedClusterAADProfile, + required: true + } + }, + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", diff --git a/packages/@azure/arm-containerservice/lib/operations/openShiftManagedClusters.ts b/packages/@azure/arm-containerservice/lib/operations/openShiftManagedClusters.ts index 17565ba683c3..c461f30efb7b 100644 --- a/packages/@azure/arm-containerservice/lib/operations/openShiftManagedClusters.ts +++ b/packages/@azure/arm-containerservice/lib/operations/openShiftManagedClusters.ts @@ -28,23 +28,79 @@ export class OpenShiftManagedClusters { } /** - * Gets the details of the managed openshift cluster with a specified resource group and name. - * @summary Gets a openshift managed cluster. + * Gets a list of OpenShift managed clusters in the specified subscription. The operation returns + * properties of each OpenShift managed cluster. + * @summary Gets a list of OpenShift managed clusters in the specified subscription. + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Lists OpenShift managed clusters in the specified subscription and resource group. The operation + * returns properties of each OpenShift managed cluster. + * @summary Lists OpenShift managed clusters in the specified subscription and resource group. + * @param resourceGroupName The name of the resource group. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + options + }, + listByResourceGroupOperationSpec, + callback) as Promise; + } + + /** + * Gets the details of the managed OpenShift cluster with a specified resource group and name. + * @summary Gets a OpenShift managed cluster. * @param resourceGroupName The name of the resource group. - * @param resourceName The name of the openshift managed cluster resource. + * @param resourceName The name of the OpenShift managed cluster resource. * @param [options] The optional parameters * @returns Promise */ get(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. - * @param resourceName The name of the openshift managed cluster resource. + * @param resourceName The name of the OpenShift managed cluster resource. * @param callback The callback */ get(resourceGroupName: string, resourceName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. - * @param resourceName The name of the openshift managed cluster resource. + * @param resourceName The name of the OpenShift managed cluster resource. * @param options The optional parameters * @param callback The callback */ @@ -61,11 +117,11 @@ export class OpenShiftManagedClusters { } /** - * Creates or updates a openshift managed cluster with the specified configuration for agents and + * Creates or updates a OpenShift managed cluster with the specified configuration for agents and * OpenShift version. - * @summary Creates or updates an openshift managed cluster. + * @summary Creates or updates an OpenShift managed cluster. * @param resourceGroupName The name of the resource group. - * @param resourceName The name of the openshift managed cluster resource. + * @param resourceName The name of the OpenShift managed cluster resource. * @param parameters Parameters supplied to the Create or Update an OpenShift Managed Cluster * operation. * @param [options] The optional parameters @@ -77,10 +133,10 @@ export class OpenShiftManagedClusters { } /** - * Updates an openshift managed cluster with the specified tags. - * @summary Updates tags on an openshift managed cluster. + * Updates an OpenShift managed cluster with the specified tags. + * @summary Updates tags on an OpenShift managed cluster. * @param resourceGroupName The name of the resource group. - * @param resourceName The name of the openshift managed cluster resource. + * @param resourceName The name of the OpenShift managed cluster resource. * @param parameters Parameters supplied to the Update OpenShift Managed Cluster Tags operation. * @param [options] The optional parameters * @returns Promise @@ -91,10 +147,10 @@ export class OpenShiftManagedClusters { } /** - * Deletes the openshift managed cluster with a specified resource group and name. - * @summary Deletes an openshift managed cluster. + * Deletes the OpenShift managed cluster with a specified resource group and name. + * @summary Deletes an OpenShift managed cluster. * @param resourceGroupName The name of the resource group. - * @param resourceName The name of the openshift managed cluster resource. + * @param resourceName The name of the OpenShift managed cluster resource. * @param [options] The optional parameters * @returns Promise */ @@ -104,11 +160,11 @@ export class OpenShiftManagedClusters { } /** - * Creates or updates a openshift managed cluster with the specified configuration for agents and + * Creates or updates a OpenShift managed cluster with the specified configuration for agents and * OpenShift version. - * @summary Creates or updates an openshift managed cluster. + * @summary Creates or updates an OpenShift managed cluster. * @param resourceGroupName The name of the resource group. - * @param resourceName The name of the openshift managed cluster resource. + * @param resourceName The name of the OpenShift managed cluster resource. * @param parameters Parameters supplied to the Create or Update an OpenShift Managed Cluster * operation. * @param [options] The optional parameters @@ -127,10 +183,10 @@ export class OpenShiftManagedClusters { } /** - * Updates an openshift managed cluster with the specified tags. - * @summary Updates tags on an openshift managed cluster. + * Updates an OpenShift managed cluster with the specified tags. + * @summary Updates tags on an OpenShift managed cluster. * @param resourceGroupName The name of the resource group. - * @param resourceName The name of the openshift managed cluster resource. + * @param resourceName The name of the OpenShift managed cluster resource. * @param parameters Parameters supplied to the Update OpenShift Managed Cluster Tags operation. * @param [options] The optional parameters * @returns Promise @@ -148,10 +204,10 @@ export class OpenShiftManagedClusters { } /** - * Deletes the openshift managed cluster with a specified resource group and name. - * @summary Deletes an openshift managed cluster. + * Deletes the OpenShift managed cluster with a specified resource group and name. + * @summary Deletes an OpenShift managed cluster. * @param resourceGroupName The name of the resource group. - * @param resourceName The name of the openshift managed cluster resource. + * @param resourceName The name of the OpenShift managed cluster resource. * @param [options] The optional parameters * @returns Promise */ @@ -165,16 +221,123 @@ export class OpenShiftManagedClusters { beginDeleteMethodOperationSpec, options); } + + /** + * Gets a list of OpenShift managed clusters in the specified subscription. The operation returns + * properties of each OpenShift managed cluster. + * @summary Gets a list of OpenShift managed clusters in the specified subscription. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } + + /** + * Lists OpenShift managed clusters in the specified subscription and resource group. The operation + * returns properties of each OpenShift managed cluster. + * @summary Lists OpenShift managed clusters in the specified subscription and resource group. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByResourceGroupNextOperationSpec, + callback) as Promise; + } } // Operation Specifications const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/openShiftManagedClusters", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OpenShiftManagedClusterListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByResourceGroupOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/openShiftManagedClusters", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName0 + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OpenShiftManagedClusterListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/openShiftManagedClusters/{resourceName}", urlParameters: [ Parameters.subscriptionId, - Parameters.resourceGroupName, + Parameters.resourceGroupName0, Parameters.resourceName ], queryParameters: [ @@ -199,7 +362,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/openShiftManagedClusters/{resourceName}", urlParameters: [ Parameters.subscriptionId, - Parameters.resourceGroupName, + Parameters.resourceGroupName0, Parameters.resourceName ], queryParameters: [ @@ -234,7 +397,7 @@ const beginUpdateTagsOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/openShiftManagedClusters/{resourceName}", urlParameters: [ Parameters.subscriptionId, - Parameters.resourceGroupName, + Parameters.resourceGroupName0, Parameters.resourceName ], queryParameters: [ @@ -266,7 +429,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/openShiftManagedClusters/{resourceName}", urlParameters: [ Parameters.subscriptionId, - Parameters.resourceGroupName, + Parameters.resourceGroupName0, Parameters.resourceName ], queryParameters: [ @@ -284,3 +447,45 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { }, serializer }; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OpenShiftManagedClusterListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OpenShiftManagedClusterListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/packages/@azure/arm-containerservice/package.json b/packages/@azure/arm-containerservice/package.json index 18ace67aca59..cc55292431a8 100644 --- a/packages/@azure/arm-containerservice/package.json +++ b/packages/@azure/arm-containerservice/package.json @@ -4,8 +4,8 @@ "description": "ContainerServiceClient Library with typescript type definitions for node.js and browser.", "version": "0.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-containerservice", diff --git a/packages/@azure/arm-containerservice/rollup.config.js b/packages/@azure/arm-containerservice/rollup.config.js index c1380ed7226c..f6c2bd8e3d16 100644 --- a/packages/@azure/arm-containerservice/rollup.config.js +++ b/packages/@azure/arm-containerservice/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/containerServiceClient.js', - external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"], + input: "./esm/containerServiceClient.js", + external: [ + "@azure/ms-rest-js", + "@azure/ms-rest-azure-js" + ], output: { file: "./dist/arm-containerservice.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;