diff --git a/sdk/msi/arm-msi/LICENSE.txt b/sdk/msi/arm-msi/LICENSE.txt index a70e8cf66038..b73b4a1293c3 100644 --- a/sdk/msi/arm-msi/LICENSE.txt +++ b/sdk/msi/arm-msi/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/sdk/msi/arm-msi/README.md b/sdk/msi/arm-msi/README.md index d591b3a96853..8cb31a891627 100644 --- a/sdk/msi/arm-msi/README.md +++ b/sdk/msi/arm-msi/README.md @@ -9,7 +9,7 @@ This package contains an isomorphic SDK for ManagedServiceIdentityClient. ### How to Install -``` +```bash npm install @azure/arm-msi ``` @@ -19,13 +19,13 @@ npm install @azure/arm-msi ##### 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"; @@ -47,7 +47,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => { ##### Install @azure/ms-rest-browserauth -``` +```bash npm install @azure/ms-rest-browserauth ``` @@ -94,6 +94,3 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to ## 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/sdk/msi/arm-msi/README.png) diff --git a/sdk/msi/arm-msi/package.json b/sdk/msi/arm-msi/package.json index 04a96e27a6c5..129b5e8975c5 100644 --- a/sdk/msi/arm-msi/package.json +++ b/sdk/msi/arm-msi/package.json @@ -4,8 +4,8 @@ "description": "ManagedServiceIdentityClient Library with typescript type definitions for node.js and browser.", "version": "1.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.1.0", - "@azure/ms-rest-js": "^1.1.0", + "@azure/ms-rest-azure-js": "^1.3.2", + "@azure/ms-rest-js": "^1.8.1", "tslib": "^1.9.3" }, "keywords": [ @@ -23,9 +23,10 @@ "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/sdk/msi/arm-msi", + "homepage": "https://github.com/azure/azure-sdk-for-js", "repository": { "type": "git", "url": "https://github.com/azure/azure-sdk-for-js.git" @@ -43,6 +44,7 @@ "esm/**/*.d.ts", "esm/**/*.d.ts.map", "src/**/*.ts", + "README.md", "rollup.config.js", "tsconfig.json" ], @@ -52,5 +54,5 @@ "prepack": "npm install && npm run build" }, "sideEffects": false, - "authPublish": true + "autoPublish": true } diff --git a/sdk/msi/arm-msi/rollup.config.js b/sdk/msi/arm-msi/rollup.config.js index 9a44f3d82402..6ec4c3af4284 100644 --- a/sdk/msi/arm-msi/rollup.config.js +++ b/sdk/msi/arm-msi/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/managedServiceIdentityClient.js', - external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"], + input: "./esm/managedServiceIdentityClient.js", + external: [ + "@azure/ms-rest-js", + "@azure/ms-rest-azure-js" + ], output: { file: "./dist/arm-msi.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; diff --git a/sdk/msi/arm-msi/src/managedServiceIdentityClientContext.ts b/sdk/msi/arm-msi/src/managedServiceIdentityClientContext.ts index f96cd5df3f4a..b11a37a1cae1 100644 --- a/sdk/msi/arm-msi/src/managedServiceIdentityClientContext.ts +++ b/sdk/msi/arm-msi/src/managedServiceIdentityClientContext.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-msi"; -const packageVersion = "0.1.0"; +const packageVersion = "1.1.0"; export class ManagedServiceIdentityClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials; @@ -44,7 +44,7 @@ export class ManagedServiceIdentityClientContext extends msRestAzure.AzureServic super(credentials, options); - this.apiVersion = '2015-08-31-preview'; + this.apiVersion = '2018-11-30'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; diff --git a/sdk/msi/arm-msi/src/models/index.ts b/sdk/msi/arm-msi/src/models/index.ts index f9a18808eae5..e344dc754e65 100644 --- a/sdk/msi/arm-msi/src/models/index.ts +++ b/sdk/msi/arm-msi/src/models/index.ts @@ -1,11 +1,9 @@ /* * 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. */ import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js"; @@ -13,167 +11,125 @@ import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; - /** - * @interface - * An interface representing Identity. * Describes an identity resource. - * - * @extends BaseResource */ export interface Identity extends BaseResource { /** - * @member {string} [id] The id of the created identity. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The id of the created identity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; /** - * @member {string} [name] The name of the created identity. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The name of the created identity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * @member {string} [location] The Azure region where the identity lives. + * The Azure region where the identity lives. */ location?: string; /** - * @member {{ [propertyName: string]: string }} [tags] Resource tags + * Resource tags */ tags?: { [propertyName: string]: string }; /** - * @member {string} [tenantId] The id of the tenant which the identity - * belongs to. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The id of the tenant which the identity belongs to. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly tenantId?: string; /** - * @member {string} [principalId] The id of the service principal object - * associated with the created identity. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The id of the service principal object associated with the created identity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly principalId?: string; /** - * @member {string} [clientId] The id of the app associated with the - * identity. This is a random generated UUID by MSI. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The id of the app associated with the identity. This is a random generated UUID by MSI. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly clientId?: string; /** - * @member {string} [clientSecretUrl] The ManagedServiceIdentity DataPlane - * URL that can be queried to obtain the identity credentials. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The ManagedServiceIdentity DataPlane URL that can be queried to obtain the identity + * credentials. If identity is user assigned, then the clientSecretUrl will not be present in the + * response, otherwise it will be present. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly clientSecretUrl?: string; /** - * @member {UserAssignedIdentities} [type] The type of resource i.e. - * Microsoft.ManagedIdentity/userAssignedIdentities. Possible values include: - * 'Microsoft.ManagedIdentity/userAssignedIdentities' - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The type of resource i.e. Microsoft.ManagedIdentity/userAssignedIdentities. Possible values + * include: 'Microsoft.ManagedIdentity/userAssignedIdentities' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: UserAssignedIdentities; } /** - * @interface - * An interface representing OperationDisplay. - * @summary Operation Display. - * * The object that describes the operation. - * + * @summary Operation Display. */ export interface OperationDisplay { /** - * @member {string} [provider] Resource Provider Name. Friendly name of the - * resource provider. + * Resource Provider Name. Friendly name of the resource provider. */ provider?: string; /** - * @member {string} [operation] Operation Type. The type of operation. For - * example: read, write, delete. + * Operation Type. The type of operation. For example: read, write, delete. */ operation?: string; /** - * @member {string} [resource] Resource Type. The resource type on which the - * operation is performed. + * Resource Type. The resource type on which the operation is performed. */ resource?: string; /** - * @member {string} [description] Operation description. A description of the - * operation. + * Operation description. A description of the operation. */ description?: string; } /** - * @interface - * An interface representing Operation. - * @summary Microsoft.ManagedIdentity Operation. - * * Operation supported by the Microsoft.ManagedIdentity REST API. - * + * @summary Microsoft.ManagedIdentity Operation. */ export interface Operation { /** - * @member {string} [name] Operation Name. The name of the REST Operation. - * This is of the format {provider}/{resource}/{operation}. + * Operation Name. The name of the REST Operation. This is of the format + * {provider}/{resource}/{operation}. */ name?: string; /** - * @member {OperationDisplay} [display] Operation Display. The object that - * describes the operation. + * Operation Display. The object that describes the operation. */ display?: OperationDisplay; } /** - * @interface * An interface representing ManagedServiceIdentityClientOptions. - * @extends AzureServiceClientOptions */ export interface ManagedServiceIdentityClientOptions extends AzureServiceClientOptions { - /** - * @member {string} [baseUri] - */ baseUri?: string; } - /** * @interface - * An interface representing the OperationListResult. + * A list of operations supported by Microsoft.ManagedIdentity Resource Provider. * @summary Operations List. - * - * A list of operations supported by Microsoft.ManagedIdentity Resource - * Provider. - * * @extends Array */ export interface OperationListResult extends Array { /** - * @member {string} [nextLink] The url to get the next page of results, if - * any. + * The url to get the next page of results, if any. */ nextLink?: string; } /** * @interface - * An interface representing the UserAssignedIdentitiesListResult. * Values returned by the List operation. - * * @extends Array */ export interface UserAssignedIdentitiesListResult extends Array { /** - * @member {string} [nextLink] The url to get the next page of results, if - * any. + * The url to get the next page of results, if any. */ nextLink?: string; } @@ -198,6 +154,7 @@ export type OperationsListResponse = OperationListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -217,6 +174,7 @@ export type OperationsListNextResponse = OperationListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -236,6 +194,7 @@ export type UserAssignedIdentitiesListBySubscriptionResponse = UserAssignedIdent * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -255,6 +214,7 @@ export type UserAssignedIdentitiesListByResourceGroupResponse = UserAssignedIden * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -274,6 +234,7 @@ export type UserAssignedIdentitiesCreateOrUpdateResponse = Identity & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -293,6 +254,7 @@ export type UserAssignedIdentitiesUpdateResponse = Identity & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -312,6 +274,7 @@ export type UserAssignedIdentitiesGetResponse = Identity & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -331,6 +294,7 @@ export type UserAssignedIdentitiesListBySubscriptionNextResponse = UserAssignedI * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -350,6 +314,7 @@ export type UserAssignedIdentitiesListByResourceGroupNextResponse = UserAssigned * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ diff --git a/sdk/msi/arm-msi/src/models/mappers.ts b/sdk/msi/arm-msi/src/models/mappers.ts index dea5dc5be474..7f70f270aa69 100644 --- a/sdk/msi/arm-msi/src/models/mappers.ts +++ b/sdk/msi/arm-msi/src/models/mappers.ts @@ -1,11 +1,9 @@ /* * 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. */ import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js"; diff --git a/sdk/msi/arm-msi/src/models/operationsMappers.ts b/sdk/msi/arm-msi/src/models/operationsMappers.ts index 2edcc577920e..689688180be7 100644 --- a/sdk/msi/arm-msi/src/models/operationsMappers.ts +++ b/sdk/msi/arm-msi/src/models/operationsMappers.ts @@ -1,17 +1,14 @@ /* * 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. */ export { - OperationListResult, + CloudError, Operation, OperationDisplay, - CloudError + OperationListResult } from "../models/mappers"; - diff --git a/sdk/msi/arm-msi/src/models/userAssignedIdentitiesMappers.ts b/sdk/msi/arm-msi/src/models/userAssignedIdentitiesMappers.ts index 27f851e405f7..812f1379e285 100644 --- a/sdk/msi/arm-msi/src/models/userAssignedIdentitiesMappers.ts +++ b/sdk/msi/arm-msi/src/models/userAssignedIdentitiesMappers.ts @@ -1,17 +1,14 @@ /* * 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. */ export { - UserAssignedIdentitiesListResult, - Identity, BaseResource, - CloudError + CloudError, + Identity, + UserAssignedIdentitiesListResult } from "../models/mappers"; -