From 79a61e239dd0d4fc137ca69aa01635ea533248cf Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Mon, 24 Feb 2020 23:07:53 +0000 Subject: [PATCH] Generated from 497f37d011e45d90e7a5f190b1326ec89e2719c8 Merge pull request #6 from Khushboo-Baheti/master merge --- .../arm-operations/LICENSE.txt | 2 +- .../arm-operations/README.md | 14 +- .../arm-operations/package.json | 24 +- .../arm-operations/rollup.config.js | 22 +- .../arm-operations/src/models/index.ts | 298 ++++++++---------- .../models/managementAssociationsMappers.ts | 20 +- .../models/managementConfigurationsMappers.ts | 20 +- .../arm-operations/src/models/mappers.ts | 38 ++- .../src/models/operationsMappers.ts | 11 +- .../src/models/solutionsMappers.ts | 22 +- .../src/operations/managementAssociations.ts | 4 +- .../src/operations/solutions.ts | 67 ++++ .../src/operationsManagementClientContext.ts | 2 +- .../arm-operations/tsconfig.json | 2 +- 14 files changed, 304 insertions(+), 242 deletions(-) diff --git a/sdk/operationsmanagement/arm-operations/LICENSE.txt b/sdk/operationsmanagement/arm-operations/LICENSE.txt index a70e8cf66038..ea8fb1516028 100644 --- a/sdk/operationsmanagement/arm-operations/LICENSE.txt +++ b/sdk/operationsmanagement/arm-operations/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2018 Microsoft +Copyright (c) 2020 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/operationsmanagement/arm-operations/README.md b/sdk/operationsmanagement/arm-operations/README.md index b2c9efb3eecc..059e2855da9a 100644 --- a/sdk/operationsmanagement/arm-operations/README.md +++ b/sdk/operationsmanagement/arm-operations/README.md @@ -9,7 +9,7 @@ This package contains an isomorphic SDK for OperationsManagementClient. ### How to Install -``` +```bash npm install @azure/arm-operations ``` @@ -19,13 +19,14 @@ npm install @azure/arm-operations ##### Install @azure/ms-rest-nodeauth -``` -npm install @azure/ms-rest-nodeauth +- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. +```bash +npm install @azure/ms-rest-nodeauth@"^3.0.0" ``` ##### 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"; @@ -49,7 +50,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => { ##### Install @azure/ms-rest-browserauth -``` +```bash npm install @azure/ms-rest-browserauth ``` @@ -99,5 +100,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to - [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%2Fsdk%2Foperationsmanagement%2Farm-operations%2FREADME.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/operationsmanagement/arm-operations/README.png) diff --git a/sdk/operationsmanagement/arm-operations/package.json b/sdk/operationsmanagement/arm-operations/package.json index 3a6e8735e288..9c93add6173a 100644 --- a/sdk/operationsmanagement/arm-operations/package.json +++ b/sdk/operationsmanagement/arm-operations/package.json @@ -4,9 +4,9 @@ "description": "OperationsManagementClient 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", - "tslib": "^1.9.3" + "@azure/ms-rest-azure-js": "^2.0.1", + "@azure/ms-rest-js": "^2.0.4", + "tslib": "^1.10.0" }, "keywords": [ "node", @@ -20,18 +20,19 @@ "module": "./esm/operationsManagementClient.js", "types": "./esm/operationsManagementClient.d.ts", "devDependencies": { - "typescript": "^3.1.1", - "rollup": "^0.66.2", - "rollup-plugin-node-resolve": "^3.4.0", - "uglify-js": "^3.4.9" + "typescript": "^3.5.3", + "rollup": "^1.18.0", + "rollup-plugin-node-resolve": "^5.2.0", + "rollup-plugin-sourcemaps": "^0.4.2", + "uglify-js": "^3.6.0" }, - "homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/sdk/operationsmanagement/arm-operations", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/operationsmanagement/arm-operations", "repository": { "type": "git", - "url": "https://github.com/azure/azure-sdk-for-js.git" + "url": "https://github.com/Azure/azure-sdk-for-js.git" }, "bugs": { - "url": "https://github.com/azure/azure-sdk-for-js/issues" + "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, "files": [ "dist/**/*.js", @@ -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/operationsmanagement/arm-operations/rollup.config.js b/sdk/operationsmanagement/arm-operations/rollup.config.js index faec19d49462..74d0b8ed624d 100644 --- a/sdk/operationsmanagement/arm-operations/rollup.config.js +++ b/sdk/operationsmanagement/arm-operations/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/operationsManagementClient.js', - external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"], + input: "./esm/operationsManagementClient.js", + external: [ + "@azure/ms-rest-js", + "@azure/ms-rest-azure-js" + ], output: { file: "./dist/arm-operations.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({ mainFields: ['module', 'main'] }), + sourcemaps() ] }; + export default config; diff --git a/sdk/operationsmanagement/arm-operations/src/models/index.ts b/sdk/operationsmanagement/arm-operations/src/models/index.ts index 0a14a30ea0bc..e44395d43088 100644 --- a/sdk/operationsmanagement/arm-operations/src/models/index.ts +++ b/sdk/operationsmanagement/arm-operations/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,394 +11,310 @@ import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; - /** - * @interface - * An interface representing OperationDisplay. * Display metadata associated with the operation. - * */ export interface OperationDisplay { /** - * @member {string} [provider] Service provider: Microsoft - * OperationsManagement. + * Service provider: Microsoft OperationsManagement. */ provider?: string; /** - * @member {string} [resource] Resource on which the operation is performed - * etc. + * Resource on which the operation is performed etc. */ resource?: string; /** - * @member {string} [operation] Type of operation: get, read, delete, etc. + * Type of operation: get, read, delete, etc. */ operation?: string; } /** - * @interface - * An interface representing Operation. * Supported operation of OperationsManagement resource provider. - * */ export interface Operation { /** - * @member {string} [name] Operation name: {provider}/{resource}/{operation} + * Operation name: {provider}/{resource}/{operation} */ name?: string; /** - * @member {OperationDisplay} [display] Display metadata associated with the - * operation. + * Display metadata associated with the operation. */ display?: OperationDisplay; } /** - * @interface - * An interface representing SolutionProperties. * Solution properties supported by the OperationsManagement resource provider. - * - * @extends BaseResource */ export interface SolutionProperties extends BaseResource { /** - * @member {string} workspaceResourceId The azure resourceId for the - * workspace where the solution will be deployed/enabled. + * The azure resourceId for the workspace where the solution will be deployed/enabled. */ workspaceResourceId: string; /** - * @member {string} [provisioningState] The provisioning state for the - * solution. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The provisioning state for the solution. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provisioningState?: string; /** - * @member {string[]} [containedResources] The azure resources that will be - * contained within the solutions. They will be locked and gets deleted - * automatically when the solution is deleted. + * The azure resources that will be contained within the solutions. They will be locked and gets + * deleted automatically when the solution is deleted. */ containedResources?: string[]; /** - * @member {string[]} [referencedResources] The resources that will be - * referenced from this solution. Deleting any of those solution out of band - * will break the solution. + * The resources that will be referenced from this solution. Deleting any of those solution out + * of band will break the solution. */ referencedResources?: string[]; } /** - * @interface - * An interface representing ManagementAssociationProperties. - * ManagementAssociation properties supported by the OperationsManagement - * resource provider. - * - * @extends BaseResource + * ManagementAssociation properties supported by the OperationsManagement resource provider. */ export interface ManagementAssociationProperties extends BaseResource { /** - * @member {string} applicationId The applicationId of the appliance for this - * association. + * The applicationId of the appliance for this association. */ applicationId: string; } /** - * @interface - * An interface representing ArmTemplateParameter. * Parameter to pass to ARM template - * */ export interface ArmTemplateParameter { /** - * @member {string} [name] name of the parameter. + * name of the parameter. */ name?: string; /** - * @member {string} [value] value for the parameter. In Jtoken + * value for the parameter. In Jtoken */ value?: string; } /** - * @interface - * An interface representing ManagementConfigurationProperties. - * ManagementConfiguration properties supported by the OperationsManagement - * resource provider. - * - * @extends BaseResource + * ManagementConfiguration properties supported by the OperationsManagement resource provider. */ export interface ManagementConfigurationProperties extends BaseResource { /** - * @member {string} [applicationId] The applicationId of the appliance for - * this Management. + * The applicationId of the appliance for this Management. */ applicationId?: string; /** - * @member {string} parentResourceType The type of the parent resource. + * The type of the parent resource. */ parentResourceType: string; /** - * @member {ArmTemplateParameter[]} parameters Parameters to run the ARM - * template + * Parameters to run the ARM template */ parameters: ArmTemplateParameter[]; /** - * @member {string} [provisioningState] The provisioning state for the - * ManagementConfiguration. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The provisioning state for the ManagementConfiguration. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provisioningState?: string; /** - * @member {any} template The Json object containing the ARM template to - * deploy + * The Json object containing the ARM template to deploy */ template: any; } /** - * @interface - * An interface representing SolutionPlan. - * Plan for solution object supported by the OperationsManagement resource - * provider. - * + * Plan for solution object supported by the OperationsManagement resource provider. */ export interface SolutionPlan { /** - * @member {string} [name] name of the solution to be created. For Microsoft - * published solution it should be in the format of - * solutionType(workspaceName). SolutionType part is case sensitive. For - * third party solution, it can be anything. + * name of the solution to be created. For Microsoft published solution it should be in the + * format of solutionType(workspaceName). SolutionType part is case sensitive. For third party + * solution, it can be anything. */ name?: string; /** - * @member {string} [publisher] Publisher name. For gallery solution, it is - * Microsoft. + * Publisher name. For gallery solution, it is Microsoft. */ publisher?: string; /** - * @member {string} [promotionCode] promotionCode, Not really used now, can - * you left as empty + * promotionCode, Not really used now, can you left as empty */ promotionCode?: string; /** - * @member {string} [product] name of the solution to enabled/add. For - * Microsoft published gallery solution it should be in the format of - * OMSGallery/. This is case sensitive + * name of the solution to enabled/add. For Microsoft published gallery solution it should be in + * the format of OMSGallery/. This is case sensitive */ product?: string; } /** - * @interface - * An interface representing Solution. * The container for solution. - * - * @extends BaseResource */ export interface Solution extends BaseResource { /** - * @member {string} [id] Resource ID. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource ID. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; /** - * @member {string} [name] Resource name. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * @member {string} [type] Resource type. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: string; /** - * @member {string} [location] Resource location + * Resource location */ location?: string; /** - * @member {SolutionPlan} [plan] Plan for solution object supported by the - * OperationsManagement resource provider. + * Resource tags + */ + tags?: { [propertyName: string]: string }; + /** + * Plan for solution object supported by the OperationsManagement resource provider. */ plan?: SolutionPlan; /** - * @member {SolutionProperties} [properties] Properties for solution object - * supported by the OperationsManagement resource provider. + * Properties for solution object supported by the OperationsManagement resource provider. */ properties?: SolutionProperties; } /** - * @interface - * An interface representing SolutionPropertiesList. * the list of solution response - * */ export interface SolutionPropertiesList { /** - * @member {Solution[]} [value] List of solution properites within the - * subscription. + * List of solution properties within the subscription. */ value?: Solution[]; } /** - * @interface - * An interface representing ManagementAssociation. * The container for solution. - * - * @extends BaseResource */ export interface ManagementAssociation extends BaseResource { /** - * @member {string} [id] Resource ID. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource ID. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; /** - * @member {string} [name] Resource name. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * @member {string} [type] Resource type. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: string; /** - * @member {string} [location] Resource location + * Resource location */ location?: string; /** - * @member {ManagementAssociationProperties} [properties] Properties for - * ManagementAssociation object supported by the OperationsManagement - * resource provider. + * Properties for ManagementAssociation object supported by the OperationsManagement resource + * provider. */ properties?: ManagementAssociationProperties; } /** - * @interface - * An interface representing ManagementAssociationPropertiesList. * the list of ManagementAssociation response - * */ export interface ManagementAssociationPropertiesList { /** - * @member {ManagementAssociation[]} [value] List of Management Association - * properites within the subscription. + * List of Management Association properties within the subscription. */ value?: ManagementAssociation[]; } /** - * @interface - * An interface representing ManagementConfiguration. * The container for solution. - * - * @extends BaseResource */ export interface ManagementConfiguration extends BaseResource { /** - * @member {string} [id] Resource ID. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource ID. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; /** - * @member {string} [name] Resource name. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * @member {string} [type] Resource type. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: string; /** - * @member {string} [location] Resource location + * Resource location */ location?: string; /** - * @member {ManagementConfigurationProperties} [properties] Properties for - * ManagementConfiguration object supported by the OperationsManagement - * resource provider. + * Properties for ManagementConfiguration object supported by the OperationsManagement resource + * provider. */ properties?: ManagementConfigurationProperties; } /** - * @interface - * An interface representing ManagementConfigurationPropertiesList. * the list of ManagementConfiguration response - * */ export interface ManagementConfigurationPropertiesList { /** - * @member {ManagementConfiguration[]} [value] List of Management - * Configuration properites within the subscription. + * List of Management Configuration properties within the subscription. */ value?: ManagementConfiguration[]; } /** - * @interface - * An interface representing CodeMessageErrorError. + * The properties of a Solution that can be patched. + */ +export interface SolutionPatch extends BaseResource { + /** + * Resource tags + */ + tags?: { [propertyName: string]: string }; +} + +/** * The error details for a failed request. - * */ export interface CodeMessageErrorError { /** - * @member {string} [code] The error type. + * The error type. */ code?: string; /** - * @member {string} [message] The error message. + * The error message. */ message?: string; } /** - * @interface - * An interface representing CodeMessageError. * The error body contract. - * */ export interface CodeMessageError { /** - * @member {CodeMessageErrorError} [error] The error details for a failed - * request. + * The error details for a failed request. */ error?: CodeMessageErrorError; } /** - * @interface * An interface representing OperationsManagementClientOptions. - * @extends AzureServiceClientOptions */ export interface OperationsManagementClientOptions extends AzureServiceClientOptions { - /** - * @member {string} [baseUri] - */ baseUri?: string; } - /** * @interface - * An interface representing the OperationListResult. * Result of the request to list solution operations. - * * @extends Array */ export interface OperationListResult extends Array { @@ -418,6 +332,27 @@ export type SolutionsCreateOrUpdateResponse = Solution & { * The response body as text (string format) */ bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Solution; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type SolutionsUpdateResponse = Solution & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -437,6 +372,7 @@ export type SolutionsGetResponse = Solution & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -456,6 +392,7 @@ export type SolutionsListByResourceGroupResponse = SolutionPropertiesList & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -475,6 +412,7 @@ export type SolutionsListBySubscriptionResponse = SolutionPropertiesList & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -494,6 +432,27 @@ export type SolutionsBeginCreateOrUpdateResponse = Solution & { * The response body as text (string format) */ bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Solution; + }; +}; + +/** + * Contains response data for the beginUpdate operation. + */ +export type SolutionsBeginUpdateResponse = Solution & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -513,6 +472,7 @@ export type ManagementAssociationsListBySubscriptionResponse = ManagementAssocia * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -532,6 +492,7 @@ export type ManagementAssociationsCreateOrUpdateResponse = ManagementAssociation * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -551,6 +512,7 @@ export type ManagementAssociationsGetResponse = ManagementAssociation & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -570,6 +532,7 @@ export type ManagementConfigurationsListBySubscriptionResponse = ManagementConfi * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -589,6 +552,7 @@ export type ManagementConfigurationsCreateOrUpdateResponse = ManagementConfigura * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -608,6 +572,7 @@ export type ManagementConfigurationsGetResponse = ManagementConfiguration & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -627,6 +592,7 @@ export type OperationsListResponse = OperationListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ diff --git a/sdk/operationsmanagement/arm-operations/src/models/managementAssociationsMappers.ts b/sdk/operationsmanagement/arm-operations/src/models/managementAssociationsMappers.ts index 9298a1573e25..527b7a6aa717 100644 --- a/sdk/operationsmanagement/arm-operations/src/models/managementAssociationsMappers.ts +++ b/sdk/operationsmanagement/arm-operations/src/models/managementAssociationsMappers.ts @@ -1,25 +1,23 @@ /* * 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 { - ManagementAssociationPropertiesList, - ManagementAssociation, + ArmTemplateParameter, BaseResource, - ManagementAssociationProperties, CodeMessageError, CodeMessageErrorError, - SolutionProperties, + ManagementAssociation, + ManagementAssociationProperties, + ManagementAssociationPropertiesList, + ManagementConfiguration, ManagementConfigurationProperties, - ArmTemplateParameter, Solution, + SolutionPatch, SolutionPlan, - ManagementConfiguration + SolutionProperties } from "../models/mappers"; - diff --git a/sdk/operationsmanagement/arm-operations/src/models/managementConfigurationsMappers.ts b/sdk/operationsmanagement/arm-operations/src/models/managementConfigurationsMappers.ts index e7cd4a5106ea..9f1584bf25a6 100644 --- a/sdk/operationsmanagement/arm-operations/src/models/managementConfigurationsMappers.ts +++ b/sdk/operationsmanagement/arm-operations/src/models/managementConfigurationsMappers.ts @@ -1,25 +1,23 @@ /* * 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 { - ManagementConfigurationPropertiesList, - ManagementConfiguration, - BaseResource, - ManagementConfigurationProperties, ArmTemplateParameter, + BaseResource, CodeMessageError, CodeMessageErrorError, - SolutionProperties, + ManagementAssociation, ManagementAssociationProperties, + ManagementConfiguration, + ManagementConfigurationProperties, + ManagementConfigurationPropertiesList, Solution, + SolutionPatch, SolutionPlan, - ManagementAssociation + SolutionProperties } from "../models/mappers"; - diff --git a/sdk/operationsmanagement/arm-operations/src/models/mappers.ts b/sdk/operationsmanagement/arm-operations/src/models/mappers.ts index 8dd842c003bb..1ec5c7b8c44a 100644 --- a/sdk/operationsmanagement/arm-operations/src/models/mappers.ts +++ b/sdk/operationsmanagement/arm-operations/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"; @@ -267,6 +265,17 @@ export const Solution: msRest.CompositeMapper = { name: "String" } }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, plan: { serializedName: "plan", type: { @@ -439,6 +448,27 @@ export const ManagementConfigurationPropertiesList: msRest.CompositeMapper = { } }; +export const SolutionPatch: msRest.CompositeMapper = { + serializedName: "SolutionPatch", + type: { + name: "Composite", + className: "SolutionPatch", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + export const CodeMessageErrorError: msRest.CompositeMapper = { serializedName: "CodeMessageError_error", type: { diff --git a/sdk/operationsmanagement/arm-operations/src/models/operationsMappers.ts b/sdk/operationsmanagement/arm-operations/src/models/operationsMappers.ts index 2edcc577920e..689688180be7 100644 --- a/sdk/operationsmanagement/arm-operations/src/models/operationsMappers.ts +++ b/sdk/operationsmanagement/arm-operations/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/operationsmanagement/arm-operations/src/models/solutionsMappers.ts b/sdk/operationsmanagement/arm-operations/src/models/solutionsMappers.ts index 03264e696d61..aa27c2b4735f 100644 --- a/sdk/operationsmanagement/arm-operations/src/models/solutionsMappers.ts +++ b/sdk/operationsmanagement/arm-operations/src/models/solutionsMappers.ts @@ -1,25 +1,23 @@ /* * 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 { - Solution, + ArmTemplateParameter, BaseResource, - SolutionPlan, - SolutionProperties, CodeMessageError, CodeMessageErrorError, - SolutionPropertiesList, + ManagementAssociation, ManagementAssociationProperties, + ManagementConfiguration, ManagementConfigurationProperties, - ArmTemplateParameter, - ManagementAssociation, - ManagementConfiguration + Solution, + SolutionPatch, + SolutionPlan, + SolutionProperties, + SolutionPropertiesList } from "../models/mappers"; - diff --git a/sdk/operationsmanagement/arm-operations/src/operations/managementAssociations.ts b/sdk/operationsmanagement/arm-operations/src/operations/managementAssociations.ts index 78579c531814..7f751674c0ad 100644 --- a/sdk/operationsmanagement/arm-operations/src/operations/managementAssociations.ts +++ b/sdk/operationsmanagement/arm-operations/src/operations/managementAssociations.ts @@ -27,8 +27,8 @@ export class ManagementAssociations { } /** - * Retrieves the ManagementAssociatons list. - * @summary Retrieves the ManagementAssociatons list for the subscription + * Retrieves the ManagementAssociations list. + * @summary Retrieves the ManagementAssociations list for the subscription * @param [options] The optional parameters * @returns Promise */ diff --git a/sdk/operationsmanagement/arm-operations/src/operations/solutions.ts b/sdk/operationsmanagement/arm-operations/src/operations/solutions.ts index c6088580a276..678c7ef9409c 100644 --- a/sdk/operationsmanagement/arm-operations/src/operations/solutions.ts +++ b/sdk/operationsmanagement/arm-operations/src/operations/solutions.ts @@ -41,6 +41,20 @@ export class Solutions { .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } + /** + * Patch a Solution. Only updating tags supported. + * @summary Patch a Solution. + * @param resourceGroupName The name of the resource group to get. The name is case insensitive. + * @param solutionName User Solution Name. + * @param parameters The parameters required to patch a Solution. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, solutionName: string, parameters: Models.SolutionPatch, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdate(resourceGroupName,solutionName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + /** * Deletes the solution in the subscription. * @summary Deletes the solution @@ -162,6 +176,27 @@ export class Solutions { options); } + /** + * Patch a Solution. Only updating tags supported. + * @summary Patch a Solution. + * @param resourceGroupName The name of the resource group to get. The name is case insensitive. + * @param solutionName User Solution Name. + * @param parameters The parameters required to patch a Solution. + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdate(resourceGroupName: string, solutionName: string, parameters: Models.SolutionPatch, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + solutionName, + parameters, + options + }, + beginUpdateOperationSpec, + options); + } + /** * Deletes the solution in the subscription. * @summary Deletes the solution @@ -288,6 +323,38 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { serializer }; +const beginUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationsManagement/solutions/{solutionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.solutionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.SolutionPatch, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.Solution + }, + default: { + bodyMapper: Mappers.CodeMessageError + } + }, + serializer +}; + const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationsManagement/solutions/{solutionName}", diff --git a/sdk/operationsmanagement/arm-operations/src/operationsManagementClientContext.ts b/sdk/operationsmanagement/arm-operations/src/operationsManagementClientContext.ts index 9902f9b551f6..235797226223 100644 --- a/sdk/operationsmanagement/arm-operations/src/operationsManagementClientContext.ts +++ b/sdk/operationsmanagement/arm-operations/src/operationsManagementClientContext.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-operations"; -const packageVersion = "0.1.0"; +const packageVersion = "2.1.0"; export class OperationsManagementClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials; diff --git a/sdk/operationsmanagement/arm-operations/tsconfig.json b/sdk/operationsmanagement/arm-operations/tsconfig.json index 87bbf5b5fa49..422b584abd5e 100644 --- a/sdk/operationsmanagement/arm-operations/tsconfig.json +++ b/sdk/operationsmanagement/arm-operations/tsconfig.json @@ -9,7 +9,7 @@ "esModuleInterop": true, "allowSyntheticDefaultImports": true, "forceConsistentCasingInFileNames": true, - "lib": ["es6"], + "lib": ["es6", "dom"], "declaration": true, "outDir": "./esm", "importHelpers": true