diff --git a/sdk/operationsmanagement/arm-operations/LICENSE.txt b/sdk/operationsmanagement/arm-operations/LICENSE.txt index a70e8cf66038..2d3163745319 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) 2021 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 43f7f84ffe30..83830ffe66f3 100644 --- a/sdk/operationsmanagement/arm-operations/README.md +++ b/sdk/operationsmanagement/arm-operations/README.md @@ -1,11 +1,11 @@ ## Azure OperationsManagementClient SDK for JavaScript -This package contains an isomorphic SDK (runs both in Node.js and in browsers) for OperationsManagementClient. +This package contains an isomorphic SDK (runs both in node.js and in browsers) for OperationsManagementClient. ### Currently supported environments - [LTS versions of Node.js](https://nodejs.org/about/releases/) -- Latest versions of Safari, Chrome, Edge, and Firefox. +- Latest versions of Safari, Chrome, Edge and Firefox. ### Prerequisites @@ -21,7 +21,6 @@ Install both packages using the below command: ```bash npm install --save @azure/arm-operations @azure/identity ``` - > **Note**: You may have used either `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` in the past. These packages are in maintenance mode receiving critical bug fixes, but no new features. If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/), or are writing a client side browser application, we strongly encourage you to upgrade to `@azure/identity` which uses the latest versions of Azure Active Directory and MSAL APIs and provides more authentication options. @@ -37,7 +36,6 @@ If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/ In the below samples, we pass the credential and the Azure subscription id to instantiate the client. Once the client is created, explore the operations on it either in your favorite editor or in our [API reference documentation](https://docs.microsoft.com/javascript/api) to get started. - #### nodejs - Authentication, client creation, and get solutions as an example written in JavaScript. ##### Sample code @@ -87,7 +85,7 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t const credential = new InteractiveBrowserCredential( { clientId: "", - tenantId: "" + tenant: "" }); const client = new Azure.ArmOperations.OperationsManagementClient(creds, subscriptionId); const resourceGroupName = "testresourceGroupName"; diff --git a/sdk/operationsmanagement/arm-operations/package.json b/sdk/operationsmanagement/arm-operations/package.json index a10ddfb561a1..a4527260c1b3 100644 --- a/sdk/operationsmanagement/arm-operations/package.json +++ b/sdk/operationsmanagement/arm-operations/package.json @@ -2,12 +2,12 @@ "name": "@azure/arm-operations", "author": "Microsoft Corporation", "description": "OperationsManagementClient Library with typescript type definitions for node.js and browser.", - "version": "2.2.1", + "version": "3.0.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.4.0", - "@azure/ms-rest-js": "^1.11.0", + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", "@azure/core-auth": "^1.1.4", - "tslib": "^1.9.3" + "tslib": "^1.10.0" }, "keywords": [ "node", @@ -22,17 +22,18 @@ "types": "./esm/operationsManagementClient.d.ts", "devDependencies": { "typescript": "^3.6.0", - "rollup": "^0.66.2", - "rollup-plugin-node-resolve": "^3.4.0", - "uglify-js": "^3.4.9" + "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/feature/v4/sdk/operationsmanagement/arm-operations", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/feature/v4/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", @@ -44,6 +45,7 @@ "esm/**/*.d.ts", "esm/**/*.d.ts.map", "src/**/*.ts", + "README.md", "rollup.config.js", "tsconfig.json" ], diff --git a/sdk/operationsmanagement/arm-operations/rollup.config.js b/sdk/operationsmanagement/arm-operations/rollup.config.js index faec19d49462..0bf25e285dc0 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", @@ -15,17 +21,17 @@ const config = { "@azure/ms-rest-azure-js": "msRestAzure" }, banner: `/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * 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..45f29a566320 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. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * 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..7f42b3b46243 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. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * 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..a936a4bec469 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. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * 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..933872ef096d 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. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * 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..938d3e665a23 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. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * 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/parameters.ts b/sdk/operationsmanagement/arm-operations/src/models/parameters.ts index 50b33a6fdfa5..1ae746c29273 100644 --- a/sdk/operationsmanagement/arm-operations/src/models/parameters.ts +++ b/sdk/operationsmanagement/arm-operations/src/models/parameters.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/operationsmanagement/arm-operations/src/models/solutionsMappers.ts b/sdk/operationsmanagement/arm-operations/src/models/solutionsMappers.ts index 03264e696d61..90073847148f 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. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * 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/index.ts b/sdk/operationsmanagement/arm-operations/src/operations/index.ts index 83982e260ebc..a37a32479c0f 100644 --- a/sdk/operationsmanagement/arm-operations/src/operations/index.ts +++ b/sdk/operationsmanagement/arm-operations/src/operations/index.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/operationsmanagement/arm-operations/src/operations/managementAssociations.ts b/sdk/operationsmanagement/arm-operations/src/operations/managementAssociations.ts index 78579c531814..f4220e6d58d7 100644 --- a/sdk/operationsmanagement/arm-operations/src/operations/managementAssociations.ts +++ b/sdk/operationsmanagement/arm-operations/src/operations/managementAssociations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -27,8 +26,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/managementConfigurations.ts b/sdk/operationsmanagement/arm-operations/src/operations/managementConfigurations.ts index 218b3c65ca2e..6a1ce433309e 100644 --- a/sdk/operationsmanagement/arm-operations/src/operations/managementConfigurations.ts +++ b/sdk/operationsmanagement/arm-operations/src/operations/managementConfigurations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/operationsmanagement/arm-operations/src/operations/operations.ts b/sdk/operationsmanagement/arm-operations/src/operations/operations.ts index ff000963bc27..76d816261bd8 100644 --- a/sdk/operationsmanagement/arm-operations/src/operations/operations.ts +++ b/sdk/operationsmanagement/arm-operations/src/operations/operations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/operationsmanagement/arm-operations/src/operations/solutions.ts b/sdk/operationsmanagement/arm-operations/src/operations/solutions.ts index c6088580a276..1f7626d23f78 100644 --- a/sdk/operationsmanagement/arm-operations/src/operations/solutions.ts +++ b/sdk/operationsmanagement/arm-operations/src/operations/solutions.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -41,6 +40,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 +175,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 +322,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/operationsManagementClient.ts b/sdk/operationsmanagement/arm-operations/src/operationsManagementClient.ts index 9097e6a74ebb..470d9e347a3e 100644 --- a/sdk/operationsmanagement/arm-operations/src/operationsManagementClient.ts +++ b/sdk/operationsmanagement/arm-operations/src/operationsManagementClient.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/operationsmanagement/arm-operations/src/operationsManagementClientContext.ts b/sdk/operationsmanagement/arm-operations/src/operationsManagementClientContext.ts index af80d2e2253b..d33683885348 100644 --- a/sdk/operationsmanagement/arm-operations/src/operationsManagementClientContext.ts +++ b/sdk/operationsmanagement/arm-operations/src/operationsManagementClientContext.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -10,11 +9,11 @@ import * as Models from "./models"; import * as msRest from "@azure/ms-rest-js"; -import { TokenCredential } from "@azure/core-auth"; import * as msRestAzure from "@azure/ms-rest-azure-js"; +import { TokenCredential } from "@azure/core-auth"; const packageName = "@azure/arm-operations"; -const packageVersion = "2.2.1"; +const packageVersion = "3.0.0"; export class OperationsManagementClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials | TokenCredential; 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